From 4ea1e0abb0265a95f3f49494d2f0815b6be6d7d6 Mon Sep 17 00:00:00 2001
From: ramparab <49212302+ramparab@users.noreply.github.com>
Date: Tue, 9 Jun 2020 00:03:54 -0700
Subject: [PATCH] FR FE changes (#15)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Remove quotes from data queries in RI apis (#9323)
* [DataFactory]Store settings should be added for Delete and GetMetadata (#9208)
* [DataFactory]Store settings should be added for Delete and GetMetadata Activity
* Add format settings for GetMetadata
* [Hub Generated] Review request for Microsoft.ChangeAnalysis to add version preview/2020-04-01-preview (#8981)
* New Readme Config File
* New Go Language Readme Config File
* New Typescript Language Readme Config File
* New Python Language Readme Config File
* New C# Language Readme Config File
* New Ruby Language Readme Config File
* New Swagger Spec File
* New Swagger Example Spec File
* add swagger spec second time
* trying to fix violations #1
* adding descriptions and schema tag for default error
* removing required location element from proxy resource.
* adding prettifier fixed
* update 3
* update 4
* update 5
* update 6
* update 7
* update 8
* update 9
* update 10
* update 11
* update 12
* update 13
* update 14
* update 15
* update 16
* update 17
* update 18
* Adds suppression to readme
* updating comments of few models
* changing description of few elements
* prettier run:
Co-authored-by: Alex Dubinkov
* regenerated all-api-versions
* Fix readme.go.md for some sql service (#9348)
* Update network (#9349)
* Add multiapi section (#9347)
* Dataplane swagger for tables (#8151)
* adding swagger for tables dataplane
* updating produces/consumes, adding format parameter and adding DataServiceVersion header
* update swagger so that query parameters do not appear in x-ms-paths
* add new custom words, fix incorrect api version
* making suggested changes to continuation header, response status codes
* Updates to tables spec
* Fixed indentation
* Removed storage references
* Grammar
* Improved match condition description
* Remove format statements
* Removed excess tags
* Fix extra commas
* Added missing example
* Updated Delete example
* Run prettier
* Removed duplicate API version
* Fixed insert response
* Removed 2018 readme tag
* Remove storage name
* Remove multi-api reference
Co-authored-by: Sam Hurd
Co-authored-by: annatisch
* regenerated all-api-versions
* Datr m (#9332)
* update readme docs
* add nullables
* add autogen
* location required
* add require to all
* add requires
* prettier
* track resoruce ref and require for properties
* remove #
* fix # resoruce
* pr comments
* fix ruby
* go fix
* azure_mgmt_desktop_virtualization
* rekickoff tests
* regenerated all-api-versions
* Allow empty access policies array in HealthcareApis (#9326)
* Allow empty access polies array in HealthcareApis.
* accessPolicies property can be omitted
* [CDN] Add API version 2020-04-15 (#9242)
* regenerated all-api-versions
* Update readme.md (#9384)
* Update readme.md
Adding stable version to not break existing APIs
* Added examples
* fix example
* prettier fix
* regenerated all-api-versions
* [MixedReality] Version Iteration for new Releases (#9351)
* Version Iteration for new Releases (#8848)
* Version Iteration for new Releases
There are going to be 2 significant releases:
1. Public Preview of Remote Rendering in April 6th
2. GA of Spatial Anchors in May
* Referring new swagger files in readme.md
* Specifying default package version as 2020-05-01
* Fix MV
* Fix MV (#9397)
Fix MV in Patch examples
Co-authored-by: Xiangyu Luo
Co-authored-by: Lei Ni
* fix network (#9369)
* fix network
* duplicated publicipprefix
* fixed example in 2018-01-01
* final updates
* missing examples
* regenerated all-api-versions
* SQLDB - update LicenseType description (#9001)
* SDK support for Table and Queue Storage Services (#9259)
* Adding table spec, without examples
* Adding queue swagger, also updating comments for table
* Updated the models to include ARM fields, completed, no examples
* Added list table and queue services spec
* Adding table CRUD examples
* Adding Queue CRUD examples
* Validation complete, TablName changed to camelCase
* Modified comment
* Spell correction
* changing order in readme.md
* Changed the object name from Queue to StorageQueue, as sdk code gen throws name conflict error with Collections.Queue
* Resolve prettier check errors
* Change URI param to be camel case
* updated default error response schema
* Change Default error response model schema
* Added x-ms-nextLink
* regenerated all-api-versions
* [ACR] add regionEndpointEnabled to replication properties and replicationUpdateParameters (#8840)
* add regionendpointenabled to replication properties and replicationupdateparameters
* fix property placement error
* Update spec. with update properties
* Update descriptions
Co-authored-by: Tosin Adewale
* update triage label (#9396)
* validate blockchain cli codegen (#9089)
* validate blockchain cli codegen
* use strong password with length>=12
Co-authored-by: Changlong Liu
* feat: add subscription 2019 10 01 preview (#9388)
* [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 (#9288)
* adding the views api to the 2019-11-01 version
* Fix api version value
* adding private view list example document
* Fix enum conflict
* fix Granularity enum type
* Add api version of go SDK for imagebuilder (#9408)
* Update PR template (#9371)
* Update PR template
* Add FAQ link
* add Microsoft.AVS 2019-08-09-preview API spec (#9307)
* cp -r vmwarevirtustream vmware
* rebrand
* add sku to PrivateCloud
* add SSL thumbprints
* Fix description typo (#5)
* lists return value[]
* suppress R3020
* fix suppress
* add Locations_ prefix
Co-authored-by: jspearman3
* regenerated all-api-versions
* Add 2020-04-01 API specification for Microsoft.Peering (#9361)
* Remove readonly flag from microsoftSessionAddress properties in BgpSession; add an example for IxRs directPeeringType
* Add 2020-04-01 API specification for Microsoft.Peering
* Fix subId
* Fix static validation issues
* Fix GetPeeringReceivedRoutes example
* Fix PeeringServiceSku
* Add RPKI to custom-words
* Update readme to include package-2020-04-01
* Fix input file path in package-2020-04-01
* Fix ErrorResponse data model
Co-authored-by: Praneeth Sanapathi
* Move added client name IdentityUserAssignedIdentitiesValue into an inner scope (#9363)
* Bug fixes: skip url encoding for ScopeParameter; add client name for userAssignedIdentities.
* Pretty check fix.
* Move added client name into additionalProperties of userAssignedIdentities.
* Change operationID for table and queue, update the name of an example (#9410)
* update version of rest-api-specs-scripts in PPE (#9420)
Co-authored-by: Jianye Xi
* adding new properties (#9404)
* Pipeline devops (#9374)
* netapp trenton pipeline
* logic pipeline test
* Revert "logic pipeline test"
This reverts commit ad9f1f00d99379de1e461fcbb6c803a491b5bd29.
* devops pipeline test
* Update readme.md
Co-authored-by: root
* typo (#9210)
* IoT Edge in Central APIs initial (#9248)
* IoT Edge in Central APIs initial
* making recommended fixes
* Moved storage private link related models into common types (#8935)
* Moved private link related model into common types
* Fix path to common types.json
* Fix parameter reference
* fix prettier issue
* Resovled the conflict and moved PrivateEndpointConnectionListResult into common and updated reference
* EventGrid: Update 2020-04-01-preview swagger to include new properties per customer's feedback (#9402)
* Update 2020-04-01-preview swagger to include new properties per customer's feedback
* fix spelling
* add readonly flag for readiness state
* fix prettier
Co-authored-by: Ashraf Hamad
* [Hub Generated] Review request for Microsoft.VirtualMachineImages to add version stable/2020-02-14 (#9411)
* [Azure Stack] Updates to Azs.Storage.Admin spec (#8959)
* commit 1ef81911c39d8f618bf6ec097223ff5e8961b3cb
Author: Yuxing Zhou
Date: Thu Feb 6 09:13:52 2020 +0800
[Azure Stack] Update storage admin specs for new generation with autorest-beta (#8306)
* Update storage admin specs for new generation with autorest-beta
* fix code style
commit 9e551f0eab4057d4c2f54c333c7aa2a1a564c125
Author: bganapa
Date: Tue Nov 12 11:44:22 2019 -0800
Reset to Stackadmin2 (#7766)
* Fix resourcegroup case
* Fix old version
* Address PR feedback
* Customerprovider pipeline2[DONOT MERGE] (#9428)
* customer provider
* add flag
* Add DeletedWorkspaces API (#9401)
* Add force flag (#9417)
* Add force flag
* Fix
* [Storage] Adding support for listing soft deleted blob containers (#9435)
* [Storage] Adding support for listing soft deleted blob containers
. Adding swagger support for listing soft deleted blob containers
. Added examples as well
* Update blob.json
* Update DeletedBlobContainersList.json
Prettier check failing
* Create a New Default Tag for Code Generation (#9440)
Include both Spatial Anchors and Remote Rendering in the same package.
* regenerated all-api-versions
* fastfix_tfpr (#9439)
Co-authored-by: Xiaoxu Qi
* Adding 200 response in CreateOrUpdate api (#9228)
* Adding 200 response in CreateOrUpdate api
* Update example
* Empty commit to trigger build
* Updated README tag version (#9240)
* Updated README tag version
* Moved provisioning state under properties, added operations API
* fixed json syntax
* Added operations list
* Added Display
* Update bookmark relations API (#8495)
* Update bookmark relations API
* fix pr comments
* fix invalid examples failing model validation
* Fixed invalid reference (#9449)
* [Hub Generated] Review request for Microsoft.VirtualMachineImages to add version stable/2020-02-14 (#9451)
* SKU api filter takes location only. (#9328)
* change to test logic for az (#9443)
* [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (#9453)
* Adding ReservationRecommendationDetails API
Adding ReservationRecommendationDetails API
* fixing semantic errors
* test fix
* test
* updating property lookbackUnitType
* prettified
* prettified examples
* Updating scope parameter
* updating sample
* adding 204 status code
* updating examples with 204
* updating samples
* updating 204
* prettify
* prettifying
* Update swagger specs for Managed Instance (#8182)
- Add optional parameter maintenance configuration id.
* luis authoring api updates for nested children and required features (#9405)
* luis authoring api updates for nested children and required features
* fix examples
* change required field "enableNestedChildren" to optional
* add default value for enableNestedChildren
* remove deprecated permissions API
* [Hub Generated] Review request for Microsoft.ResourceGraph to add version stable/2019-04-01 (#9215)
* Fixing comments
* update oprationId
* update oprationId
* Revert operation change
* test commit
* Revert "test commit"
This reverts commit 1fb003317a14420f912bf8a625570224d332b227.
* cost-management-for-cli-extensions (#9392)
* add 2019-10-preview tag for luis (#9406)
* upgrade pipeline scripts version to 0.8.0 (#9457)
Co-authored-by: Jianye Xi
* Make CDN privateEndpointStatus modeled as string (#9433)
* [Cognitive Service Computer Vision] Create CV v3.0 API version swagger (#8734)
* [Cognitive Service Computer Vision] Create CV v3.0 API version swagger
* Complete Compter vision's readme file to fix build issue
* Correct CV v3.0 examples to match swagger schema
* Run Prettier script on new examples
Co-authored-by: bob
* regenerated all-api-versions
* added app service schema (#9310)
* added app service schema
* added ref to new file in readme.md
* prettier
* JSON Lint
* created classes for app event type detail
* remove delete and create event data
* fix format
* ran prettier
* fix async status and remove description from each ref
* remove x-ms-enum for some
* fix x-ms-enum
* remove x-ms-enum from status
* add x-ms-enum to all enum and add model as extensible
* typo to model as string
* move model as string under x-ms-enum
* remove last empty line:
* add back last empty line
Co-authored-by: Elle Tojaroon
* Added new SecureScore API to Microsoft.Security (#8235)
* Set theme jekyll-theme-midnight
* Adding new APIs for secure score
* Updated files
* updated md file
* Working on 1 path at a time
* Fix type to ref
* more fixes
* removed ref type
* AutoRest fixes
* more fixes
* Internal PR
* fixed some static validation issues
* Fixed some more auto-rest issues
* Fixed example + organizing readonly attribute
* Run prettier on files
* Changed initiativeId to policySetDefinitionId in the sample files
* Changed assessmentsMetadata to assessmentsDefinition
* Added scope in defintions example and adjust enum value of BuiltIn
* Added missing fields and align examples
* Renamed fields in example files
* Changed return value
* Added control definitions per subscription scope
* Added definition property (optional, in case of $expand)
* prettier updated files
* prettier again ...
* PR comments
* Renamed enum
* Fixed some errors
* Remove "secureScoreName" parameter from example
* Changed operationId from GetSecureScores_Single to SecureScores_Get
* prettifying the code
* Updated based on PR comments
* Fix casing issues in example files name
* Fixing sample files and remove some enum options
* Updated readme.md file
* Remove trailing whitespace
* Update specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/secureScore.json
Co-Authored-By: Chen Lahav
* Update specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/secureScore.json
Co-Authored-By: Chen Lahav
* Update specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/secureScore.json
Co-Authored-By: Chen Lahav
* Update specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/secureScore.json
Co-Authored-By: Chen Lahav
* Update specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/secureScore.json
Co-Authored-By: Chen Lahav
* Update specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/GetSecureScoresSingle_example.json
Co-Authored-By: Chen Lahav
* Fixed PR comments
* Fix definitions renaming
* Fix examples
* Trying to fix model validation
* Changed example type
* Updating from master (Resolving conflicts)
* Converting all EOL to CRLF + remove trailing blanks
* Removed Scope paths, updated examples
* Replaced scope with sub id in example
* updated secureScoresControls id in examples
* example files ids and type fixes
Co-authored-by: Gideon Romm
Co-authored-by: Chen Lahav
* Fix operation Ids for Metadata, so they show up correctly in the REST… (#9414)
* Fix operation Ids for Metadata, so they show up correctly in the REST docs toc.
* Fix operation id for AvailableServiceTiers
* Separate Python readme (#9416)
* Updated default tag to latest stable version. (#9085)
* Updated default tag to newest stable version.
* Modified swagger to include next link property and azure resource properties.
* Addressed CI errors.
Co-authored-by: Jacob Hill
* add time trigger for PR author (#9468)
* add time trigger for PR author
* add reviewed-changesRequired
* api-version 2020-05 of mixedreality for go SDK (#9474)
* api-version 2020-05
* fix
* [Datafactory] Enable Type Conversion in Copy Activity (#9471)
Co-authored-by: David Zhao
* kubernetes - fixed client name (#9421)
* fixed client name
* updated name
* Create swagger for a new API: AutoDismissAlertsRules (#7292)
* Create swagger for a new API: AutoDismissAlertsRules
* Add AutoDismiss rule name parameter to alerts API. Fix some descriptions.
* Remove CompromisedEntity from the examples
* update readmeFile
* Renaming auto dismiss to suppression
* Update PutAlertsSuppressionRule_example.json
* Fixing example - sending read-only property error
* Removing read-only fields from examples/AlertsSuppressionRules/PutAlertsSuppressionRule_example.json
* ARM CR: changing `UTC` to `Utc` + updating expirationDateUtc description
* Adding "ScopeElement" for "allOf" element + fixing examples
Co-authored-by: Nitsan Bracha
Co-authored-by: Nitsan Bracha
* regenerated all-api-versions
* update scripts version in PPE pipeline (#9494)
Co-authored-by: Jianye Xi
* pricing tier swagger (#9094)
* pricing tier swagger
* remove readonly in sku model
* update appplatform json and example
* update list sku
* revert to data action
* update list skus
* add resource sku definition
* revert sqlparallel read settings (#9497)
* add sharepointonlinelist connector
* support parallel read of sql sources
* revert sqlparallel settings
* [CosmosDB] Introducing the apiVersion 04-01-2020 (#9302)
* Adding notebooks in 1212 and 0301
* Changes to include EnableFreeTier property in DatabaseAccount
* Ran Prettier
* Fixed model failures
* Revert "Fixed model failures"
This reverts commit ecef06e8b9c7b0ad3c36f5fce84bd72ebee1a141.
* Revert "Ran Prettier"
This reverts commit 9d2cc52313bf9f45b172f6769d57d3be60ea1d6d.
* Revert "Changes to include EnableFreeTier property in DatabaseAccount"
This reverts commit 62f58ab6c666d8aad4bbecb94f41e3a80c49289a.
* Created apiVersion 2020-05-04 with EnableFreeTier property in DatabaseAccount
* Replace IpRangeFilter by IpRules
* Revert "Replace IpRangeFilter by IpRules"
This reverts commit ddb21350fd4cd927fb4333617f19e85cfc46b5f9.
* Fixed EnableFreeTier changes
* Replace IpRangeFilter by IpRules
* Fixes in model
* Revert "Fixes in model"
This reverts commit 97a6a0b62c6752cb6f75529e068e9c2c70618c06.
* correcting examples
* fix in ListByResourcegroup
* renaming
* changing ipAddressOrRange
* fix
* fix for model
* fix for model
* fixing
* Adding apiProperties
* adding swagger-to-sdk for python
* introduces AutoscaleSettings
* removing .net from swagger-to-sdk to avoid failing CI
* added analyticalStorage related changes
* changes in models
* addressed comments
* correcting IpAdressOrRange
* nit
* Making OptionsResource object readonly
* temporarily disabling js in swagger to sdk
* Revert "temporarily disabling js in swagger to sdk"
This reverts commit 5d68004a50e0d5e2c41ac19ccc1243893053261a.
Co-authored-by: Meha Kaushik
* regenerated all-api-versions
* add optional properties for saved search (#9498)
* add optional properties
* Update SavedSearches.json
* Update SavedSearches.json
* Support Infrastructure Encryption - secondary layer of encryption at … (#8773)
* Support Infrastructure Encryption - secondary layer of encryption at REST for accounts.
Add a boolean property to Microsoft.Storage/storageAccounts resource under encryption attributes to opt-in for a secondary layer of encryption for data at rest.
* requireInfrastructureEncryption is optional and defaults to null.
* PPE enable avocado0.6.4 (#9493)
* add x-ms-api-version for operations that api-version is required as parameter for sdk (#9441)
* Merge Mixed Reality Changes to Master (#9502)
* Version Iteration for new Releases (#8848)
* Version Iteration for new Releases
There are going to be 2 significant releases:
1. Public Preview of Remote Rendering in April 6th
2. GA of Spatial Anchors in May
* Referring new swagger files in readme.md
* Specifying default package version as 2020-05-01
* Fix MV
* Fix MV (#9397)
Fix MV in Patch examples
* Add MSI property to Remote Rendering Account (#9476)
* Add MSI property to Remote Rendering Account
* Fix typo
* Fix examples
* Fix case mismatch in examples
Co-authored-by: Lei Ni
* regenerated all-api-versions
* add issue_assignment and rename assignment.yml (#9510)
* add issue_assignment and rename assignment.yml =>
pull_request_assignment.yml
* reserve assignment.yml for a period time
* [Hub Generated] Review request for Microsoft.ResourceGraph to add version preview/2020-04-01-preview (#9025)
* Adds base for updating Microsoft.ResourceGraph from version stable/2019-04-01 to version 2020-04-01-preview
* Updates readme
* Updates API version in new specs and examples
* Push changes
* Validation fixes
* More validation fixes
* Add x-ms-enum
* Adds suppression to readme
* Prettier fixes
* Fix object type
* update operation ids
* Adding GraphQuery
* Fix added paren
* Fix addition of 2020 version
* Prettier
* Move up properties
* Insert to properties bag
* Add to resource properly
* Move to GraphQueryResource
* regenerated all-api-versions
* Add subscription bound for cost management (#9514)
* Dev todo microsoft.sample rp 2020 05 01 (#9513)
* New Readme Config File
* New Go Language Readme Config File
* New Typescript Language Readme Config File
* New Python Language Readme Config File
* New C# Language Readme Config File
* New Ruby Language Readme Config File
* New Swagger Spec File
* New Swagger Example Spec File
* add new swagger.json
* regenerated all-api-versions
* add usePrivateLinkConnection parameter to data sync APIs (#9454)
* add private link connection parameter to data sync
* add usePrivateLinkConnection parameter to examples
* allow usePrivateLinkConnection to be read
* add usePrivateLinkConnection property to example returns
* remove old unreferenced example files
* correct swagger version
* add syncMemberAzureDatabaseResourceId parameters to examples
* fix readme.md
* prettify examples
* regenerated all-api-versions
* Eyes on setting (#9355)
* try
* commit
* commot
* try
* validation
* [Ready For Review] Add APIs for preparing Azure Notebook from AML workspace, and return required info to user for notebook initialization (#9058)
* Add Identity to createWorkpace example
* swagger change for provisioning Notebook
* new line at the end of the file
* fixup
* address comments
* change listresourcepreparationerrors from post to get
* address comments
* fix ResourceId values in example and fix casing issue
* fix casing
* remove listResourcePreparationErrors API and add the errors in GetWorkspace
* remove an extra coma
* remove prepareResourceErrors API
* fix errors reported by pipeline
* fix prettier check
* fix computes examples
* one more fix for existing examples
* remove identity
* address comments
* add description to NotebookResourceInfo.resourceId
* fix spell check and prettier check
* Cli codegen onboard operationsmanagement (#8874)
* Cli onboard blockchain (#9530)
* Cli onboard hardwaresecuritymodules (#9532)
* Policy compliance data enable pagination (#7909)
* initial commit
* Events for 2019-09-01
* fix oav errors
* Update 2019-10 tag with 2019-10-01-policyevents
* add file to input list
* add policyevents to 2018-07-01-preview version
* fix path in readme
* add examples in events, add parameters
* specfication files
* fix avocado
* fix typo
* Fix prettier
* Update description for apiversion param
* fix typo and description
* Revert Lint warning
* Remove metadata from events and add missing compliancestates in examples
* Add the missing x-ms-pageable
Co-authored-by: Namrata Jagasia
Co-authored-by: Phoenix He
* regenerated all-api-versions
* Logic pipeline (#9372)
* netapp trenton pipeline
* logic pipeline test
Co-authored-by: root
* updated the tags for fix doc generation issue. (#9528)
Co-authored-by: v-ajnava
* [T2] removed duplicated schemas in storage (#9527)
* duplicated schemas in storage
* trying to fix storage duplication
* [Hub Generated] Review request for Microsoft.AlertsManagement to add version preview/2019-05-05-preview (#9540)
* Added missing Alert Modification Events
* Added Subscription value to Scope Type Enum
* EventGrid: Update 2020-04-01-preview swagger to use enum as string for parentType (#9545)
* update swagger
* fix prettier
Co-authored-by: Ashraf Hamad
* update @azure/oad version to fix breaking issue (#9551)
Co-authored-by: Jianye Xi
* [Synapse Data Plane]Add vnet feature to data plane (#8753)
* Add vnet feature to data plane
* Support multiple client
* 1. Add x-ms-pageable to list api
Co-authored-by: Zhenyu Zhou
* Microsoft.Batch 2020-05-01 (#9452)
* Adds base for updating Microsoft.Batch from version stable/2020-03-01 to version 2020-05-01
* Updates readme
* Updates API version in new specs and examples
* Updates for Microsoft.Batch 2020-05-01
This version adds System Managed Identity to Batch accounts and allows for
setting Encryption properties on a Batch account.
* Fix swagger errors with private endpoint APIs
* updating peering az specification (#9489)
* regenerated all-api-versions
* test for deviceprovisioningservices (#9350)
* Update readme.cli.md
* test for deviceprovisioningservices
* [Computer Vision 3.0] Update Read Language parameter description to include new languages (#9548)
* [AMS] update AMS stable version to include Edge list api (#9492)
* [AMS] update AMS stable version to include Edge list api
* fix an example
* fix better descriptions.
* more descriptive description
* Add New ApiVersion 2020-03-01 (#9480)
* Update SavedSearches.json (#9550)
* Link workspace (#8994)
* create 2020-04-01-preview version
* add LinkedWorkspace
* remove tailing whitespace
* fix build error
* address comments
* fix updateAmlCompute example
* fix build
* address comments
Co-authored-by: Richard Li
* Add capabilities for cognitive services. (#9491)
* Added operations api in Microsoft.OffAzure GA version (#9465)
* Create swagger.json
Added swagger for vmwaresite, hypervsite, serversite
* Update swagger.json
Addition of Importsite resource
* Referred swagger in readme.md
* changed readme to have 2 api-versions
* Updated readme
* Updated ip address name
* Create migrate.json
* deleted preview changes
* Fixed new version
* fixed job definition, get and put site
* Update migrate.json
* Update migrate.json
* Added examples. Removed server and import stacks
* Removed extra code
* Made it in accordance with private preview PR
* Examples added
* fixed comments
* added tags
* Resolved conflicts
* fixed file
* Fixed spellings
* fixed spellings
* added examples
* fixed example
* fixed examples
* fixed examples
* fixed discrption
* fixed prettier check
* fixed enums
* prettier check
* Update readme.md
* Added operations list
* Create migrate.json
* added OperationDisplay definition
* error fixed
* Update migrate.json
* fixed errors
* Update Operations_List.json
* Update migrate.json
* Removed parameters
* Ran Prettier check
* Update migrate.json
* Update migrate.json
* prettier check
* Added api-version parameter under convertToSinglePlacementGroup for VMSS (#9555)
* Update isFollowed property to boolean (#9500)
* feat: update java readme (#9570)
* Update secureScore.json (#9517)
* Update secureScore.json
Revert enum custom value and fix SDK creation
* Trying to prevent "Breaking changes" when removed
* [Hub Generated] Review request for Microsoft.DigitalTwins to add version preview/2020-03-01-preview (#9459)
* swagger change
* remove integration examples
* Enable excel in public swagger (#8875)
* Enable excel in public swagger
* update
* rollback dataflow change
Co-authored-by: zhanyu2014
* Remove sample todo resource provider (#9572)
* Operationalinsights tables, wokspace capping and sku (#9505)
* Workspace tables
* Pretty
* Fixes
* Fix
* Fixes
* Add missing properties for capping and SKU
* Fixes
* Fix
* PR fixes - change PUT to PATCH
* Unrequire properties in /tabels PATCH
* Adding the documentations for 5 new lint rules (#9569)
* Adding 5 new lint rules
* update
* update created date
* fix typo
Co-authored-by: Jianye Xi
* Optional 'workspace' property (#9495)
Co-authored-by: Liran Chen
* enable trenton package in prod (#9582)
Co-authored-by: Xiaoxu Qi
* [Hub Generated] Review request for Microsoft.ManagedServices to add version preview/2020-02-01-preview (#8913)
* Adds base for updating Microsoft.ManagedServices from version stable/2019-09-01 to version 2020-02-01-preview
* Updates readme
* Updates API version in new specs and examples
* Added all changes from PR 1138 to a new API version folder
* Removed readOnly: true from multiFactorAuthProvider
* Added principalIdDisplayName and delegatedRoleDefinitionsId to Authorization object + changed description of maximumActivationDuration to reflect ISO 8601 format
* Made changes reflecting Chris Eggert's suggestions
* Fixed camel case mistake
* Fixed registrationDefinitionIdParameter references
* Adds base for updating Microsoft.ManagedServices from version stable/2019-09-01 to version 2020-02-01-preview
* Updates readme
* Updates API version in new specs and examples
* Updated read.md
* Fixed wrong tag in readme
* regenerated all-api-versions
* Add reboot parameters. (#9426)
* Add reboot parameters.
* Add examples and remove required on rebootType.
* Fix prettier errors.
* Azure Spring Cloud: Support API to enable/disable MSI (#8966)
* Azure Spring Cloud: Support API to enable/disable MSI
* Fix issue
Co-authored-by: Xiaoyun Ding
* [Azure SignalR service]Support Private Link and add new api-version (#9377)
* Run prettier
* Adding new apiVersion 2020-05-01 and support PrivateLink
* Using the same schema for SignalR PUT api
* No changes, to trigger pipeline build
* Using shared definition to avoid duplication
* resolve comments
* fix avocado
* Removing legacy file
* add readme file for alertsmanagement (#9578)
* update package name and output folder in readme.typescript.md
* add trenton readme file for alertsmanagement
* update override for type
* Get buildID for package version (#9594)
Co-authored-by: Xiaoxu Qi
* Changes for EA invoice scenarios (#9508)
* Added invoice download APIs. Added billing account-level invoice APIs for supporting EA invoices.
* Fixed billing subscription invoice download scope
* Added invoice rebillDetails
* Reduced changes to those for supporting EA invoices
* Reduced changes to those for supporting EA invoices 2
* Reduced changes to those for supporting EA invoices 3
* PR feedback
* Added Cleared value for invoice status.
* Changed invoice status Cleared to Void
* Removed documents/source property from invoice example
* documentation updates (#9583)
* documentation updates
* Reverting user impersonate value
* Add readme.md for typescript sdk generation (#9339)
* Update links in PULL_REQUEST_TEMPLATE.md (#9529)
* Update links
* Default unchecked
* Update specificationRepositoryConfiguration.json (#9345)
* Creating Labeler for Compute Updates (#9554)
* Create label.yml
* Create pr-labeler.yml
* Update pr-labeler.yml
* Update pr-labeler.yml
* Rename pr-labeler.yml to labeler.yml
* Update and rename label.yml to labelr.yml
* Update labeler.yml
* Update labelr.yml
* Rename labelr.yml to labeler.yml
* Update labeler.yml
* Update labeler.yml
* Update labeler.yml
* Update labeler.yml
* Update labeler.yml
* Update labeler.yml
* labeler for compute update
* Update labeler.yml
* Rename labeler.yml to ComputeReviewLabeler.yml
* Update and rename labeler.yml to computeReviewLabeler.yml
* Rename ComputeReviewLabeler.yml to computeReviewLabeler.yml
* Update CODEOWNERS
* Dev containerservice microsoft.container service 2020 04 01 (#9484)
* Adds base for updating Microsoft.ContainerService from version stable/2020-03-01 to version 2020-04-01
* Updates readme
* Updates API version in new specs and examples
* Support Node Image Version (#8865)
* Add deprecated field to ContainerService GetAccessProfile 2020/04/01 API swagger (#9083)
* Remove Low option from 04-01 API version (#9084)
* Add a max surge upgrade setting (#9331)
* [AKS] Apply patch from 0301 API version to 0401 (#9412)
Co-authored-by: Xiaofang Zhang
Co-authored-by: ruchikaguptaa
Co-authored-by: Paul Miller
Co-authored-by: Marwan Ahmed
* Remove ISO8601 date format, ad current implementation uses another fo… (#9591)
* Remove ISO8601 date format, ad current implementation uses another format and it breaks CLI.
* One more date format change
* [Hub Generated] Review request for Microsoft.AzureActiveDirectory to add version preview/2020-05-01-preview (#9458)
* New Readme Config File
* New Go Language Readme Config File
* New Typescript Language Readme Config File
* New Python Language Readme Config File
* New C# Language Readme Config File
* New Ruby Language Readme Config File
* New Swagger Spec File
* New Swagger Example Spec File
* making changes
* Fixing errors
* Fixing errors
* Fixing build errors
* Fixing pretty print
* Adding Examples to the swagger review
* Fixing semantic issues
* removing code
* removing required flags
* Fixing Lint issues
* Fixing Lint issues
* Fixing build failures
* Fixing build errors
* grammer error fix
* PR comments
* fixing build
* Fixing build errors
* Fixing grammer
* PR comments
* Failing Validation
Co-authored-by: animesh
* regenerated all-api-versions
* Cli onboard desktopvirtualization (#9531)
* cli validation for desktopvirtualization
* WIP
* rename filter
* correct example
* rename extension
* revert host-pool PATCH example
* add expiredTime in RegistrationInfoPatch
Co-authored-by: Changlong Liu
* regenerated all-api-versions
* BillingRP - Introducing the stable version (#9541)
* BillingRP swagger
* Changes for the GA version
Changes for the GA version
* Incorporated review comments
Incorporated review comments
* Fixed Prettier Check failures
Fixed Prettier Check failures
* Fixed Prettier Check failures
Fixed Prettier Check failures
* Added BillingSubscription patch
Added BillingSubscription patch
Co-authored-by: Anirban Sarkar
* Speaker Recognition v2 (#9587)
* Speaker Recognition v2
Split service into 2 APIs; Speaker Identification and Speaker Verification
* Spelling mistakes fixed
* Prettier run
* add item name
* Remove go support for now
will add it later when we figure out the issue
* regenerated all-api-versions
* Update API specs 2020-04-01 (#9383)
* Update API specs 2020-04-01
* Fix place
* Fix version
* Comments
* Fix json
* copy check files
* Include old examples
* Copy file over
* Add files
* Change version
* Try reverting 2020-05-01 changes
* Revert 2020-05-01 changes to test
* Move version to end of file
* Revert "Move version to end of file"
This reverts commit 1c972299239680a2d350fabc4c177dda16eb9117.
* Revert "Revert 2020-05-01 changes to test"
This reverts commit ff0936aadbdf0842916fc9390b9395c7b232ad49.
* Revert "Try reverting 2020-05-01 changes"
This reverts commit f270e0d0e6e4be79bdccea36a6a1b50671354d0d.
* Remove extra ```
* revert breaking 2020-05-01 change
* Fix case
* regenerated all-api-versions
* Add async operation's api to storage cache RP (#9483)
* Add basicpublishingcredentialspolicies to Microsoft.Web 2019-08-01 (#9250)
* Add basicpublishingcredentialspolicies to Microsoft.Web stable 2019-08-01
* Made new resource a proxy only resource
* Added missing reference
* Addressing comments
* Added examples
* Removed description as a required field for SearchIndexerSkillset (#9588)
* Removed color and imageType from the visualFeature enumeration in the V2 SDK. These weren't referenced in the examples.
* Removed description as a required field for SearchIndexerSkillset
* add secondly (#9225)
* Removed TextExtractionAlgorithm from OCRSkill (#9604)
* Removed color and imageType from the visualFeature enumeration in the V2 SDK. These weren't referenced in the examples.
* Removed property TextExtractionAlgorithm (which is obsolete) and added property LineEnding to OCRSkill
* Fixed bug with json escape characters and quoted default values in descriptions
* Backing out changes for LineEnding, so we can get the TextExtractionAlgorithm removal in
* Changed skill-related enums to strings for values that may change (#9621)
* Removed color and imageType from the visualFeature enumeration in the V2 SDK. These weren't referenced in the examples.
* Changed skill-related enums to be strings for values that may change in the future
* Add checkTrialAvailability endpoint to Microsoft.AVS manifest (#9618)
Co-authored-by: David Ricciardi
* update 2019-06-01-preview ManagedDatabases swagger file (#9535)
* update 2019-06-01-preview ManagedDatabases swagger file
* added newline to eof
* Update script version for PPE pipeline (#9616)
* Add free-form object spec for testing purpose.
* Revert "Add free-form object spec for testing purpose."
This reverts commit b711d809b6ae964fcbe7d04f31fec76db8798438.
* Update script version for ppe pipeline.
* added dismiss alerts and get single alert. (#9434)
* [DataFactory] - Add xml dataset (#9615)
* Add xml dataset
* Fixed typo
* Fixed typo
* Fixed typo
* Fixed prettier check issues
* Removed namespaces in xml ReadSettings
Co-authored-by: Shawn Xiao (IM)
* add linked service and schema linked service to data flow source/sink (#9605)
* add alert link to security alert arm model (#9566)
* add alert link to security alert arm model
* Add alert link to example file
* Change to lowercase
Co-authored-by: Amir Keren
* EventHub: fixed the Cluster PUT API (#9596)
* fixed the Cluster PUT API
* fix examples
* examples fix
* example fixes
* corrected example cluster_put
Co-authored-by: v-ajnava
* [AKS] re-apply the changes to making the count field optional to fix regressions (#9610)
* Swagger for the new ARM resource PrivateLinkHub (#9482)
* Swagger for the new ARM resource PrivateLinkHub
* fix review comments
* Added descriptions
* prettier fixes
* Add reference to json in readme
* Add Patch operation
* Added enum for Provisioning State
* update example
* regenerated all-api-versions
* Fix output folder in peering (#9631)
* Add Readme File for Container Registry (#9632)
* Fix linter doc mistake (#9630)
* update @azure/oad version to fix breaking issue
* Adding 5 new lint rules
* fix typo
* fix typo
Co-authored-by: Jianye Xi
* Move serverVulnerabilityAssessment API to stable-2020-01-01 (#9097)
* Move serverVulnerabilityAssessment API to stable-2020-01-01
* remove preview version
* Removed API that is not reachable
* fix conflicts
* Add serverVA in missing parts
* Add missing serverVA
* revert readme
* ASC: Move VA to 2020-01-01
* update GC Swagger spec to match with most recent service interface (#9595)
* update Guestconfiguration Swagger spec to match with most recent service Api interface
* fix auto check-Part1
* roll back style change
* fix auto check-Part2
* fix auto check-Part3
* fix auto check-Part4
* fix auto check-Part5
* fix auto check-Part6 - readonly
* fix auto check-Part7
* fix auto check-Part8
* fix auto check-Part9 -- error code
* roll back to Part5
* roll back to Part5.1
* roll back to Part5.2
* roll back to Part5.3
* roll back to Part5.4
Co-authored-by: ge huang
* Merge 7.2 into master (#9590)
* Adding 7.2-preview version (#8397)
* Adding 7.2-preview version
Signed-off-by: vasanthrajams
* Resolve PR feedback
* Fix output-folder for go code generation
Co-authored-by: Heath Stewart
* full backup restore yaml changes (#8685)
* Adding the required swagger file changes for full HSM backup
Signed-off-by: vasanthrajams
* Resolved a few semantic errors in pipeline
Signed-off-by: vasanthrajams
* Fixed incremental github pipeline model validation erors
Signed-off-by: vasanthrajams
* Fixed review comments & ci pipeline
* spell check fix
* pretty fix
* Adding required headers as per azure async operations guidelines
Signed-off-by: vasanthrajams
* Fixed minor typos
Signed-off-by: vasanthrajams
Co-authored-by: vasanthrajams
* selective key restore (#8781)
* selective key restore
* moved selective key restore to keys.json
* fixed github pipeline checks
* example missing folder property
* Resolved review comments
* minor fix
* review comments
* pretty check fix
Co-authored-by: vasanthrajams
* Additional 7.2 preview changes (#9141)
* Additional 7.2 preview changes
* Corrections and Feedback updates
* Remove ProtectedKey
* Patch export sample
* Fix validation errors
* Fix more validation errors
* More validation fixes
* Add 6 more AES-CBC algorithms (#9317)
* Add 6 more algorithms
* Add new words to fix the spelling
* Adding 7.2-preview version (#8397)
* Adding 7.2-preview version
Signed-off-by: vasanthrajams
* Resolve PR feedback
* Fix output-folder for go code generation
Co-authored-by: Heath Stewart
* selective key restore (#8781)
* selective key restore
* moved selective key restore to keys.json
* fixed github pipeline checks
* example missing folder property
* Resolved review comments
* minor fix
* review comments
* pretty check fix
Co-authored-by: vasanthrajams
* Additional 7.2 preview changes (#9141)
* Additional 7.2 preview changes
* Corrections and Feedback updates
* Remove ProtectedKey
* Patch export sample
* Fix validation errors
* Fix more validation errors
* More validation fixes
* Add 6 more AES-CBC algorithms (#9317)
* Add 6 more algorithms
* Add new words to fix the spelling
* fixing validation failures
* key-version example fix
* model validation
Co-authored-by: Heath Stewart
Co-authored-by: vasanthrajams
Co-authored-by: Hervey Wilson
Co-authored-by: Rick Qing Xu
* monitor readme fix (#9635)
* [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (#9418)
* added forecast api and all of it's scopes
* removed extra external forecast example links
* updated budgets api to reflect current version
* fixed filter properties
* fixed typos
* cleaned up description
* removed OR from budgetFilter
* Revert "removed extra external forecast example links"
This reverts commit b491abae116fd1e484b0b9d18fbe4bd86aec0fd2.
* Revert "added forecast api and all of it's scopes"
This reverts commit 6de98db14004d5701c56c42adcade4ee583c011b.
* fixed Budgets as per PM's suggestions
* renamed x-ms-enum name to avoid conflict
* [DataFactory] Add GlobalParameters and update waitTimeInSeconds in WaitActivity (#9362)
* Update data type of waitTimeInSeconds in WaitActivity
* add global parameters
Co-authored-by: Kang Tao
* update identity type enum (#9649)
Co-authored-by: Richard Li
* Revert "Fix Parameter Description for validate resource move (#8524)" (#9580)
This reverts commit cb0a81fefacc56fca338e3a2658a9390b305fa61.
* Correcting the swagger to accept downloadToken similar to other download operations (#9651)
Correcting the swagger to accept downloadToken similar to other download operations
Co-authored-by: Anirban Sarkar
* renaming operationIds fro Cluster put and patch as per guidelines (#9639)
Co-authored-by: v-ajnava
* Updating documentation of Quota APIs. Removing Summary field. (#9641)
* Updating operationId to group the opearions in a logical way and the generate APIs are grouped together based on the operations.
* 1. Updating schema for autoQuotaRequest
2. Updating examples.
* Updates to data model and examples.
* Model Update.
* Data Model Fix.
* Fixing Data Model for AQI.
* Removing duplicate definitions.
* Adding type=object for emailAction.
* Putting the similar definitions together.
* Model Fix.
* Fixing AQI examples.
* Adding descriptions for enum.
* Fixing Spell Check error.
* Removing used object: phoneActions.
Updating the comments for Put and Patch, that both can be used to update quota.
* Updating the Put operatonId as _CreateOrUpdate.
* Making Tag information same - QuotaInformation.
* Updating example for commit.
* 1. Updating description of Quota APIs.
2. Removing Summary, as summary and description was combined in the doc. It had repeated statements.
* 1. Updating descriptions.
2. Adding BatchML examples and making the example names as - MachineLearningServices.
* Upadatin serviceLimitsRequests in path.
* Update CODEOWNERS (#9669)
* add deleteFilesAfterCompletion to binary sources. add listAfter/listBefore to adls gen1 source (#9472)
Co-authored-by: Haoran Sun
* Fix bad output-folder (#9658)
* enable rest-api-specs-scripts@0.10.2 (#9671)
* Update API specs 2020-05-01 (#9542)
* update 2020-05-01 version
* Add samples
* Update version
* Update example
* Fix case
* regenerated all-api-versions
* Event Grid: 2020-06-01 Swagger (#9629)
* [HDInsight]-Add livyspark api spec for hdi. (#9469)
* Add livyspark api spec for hdi.
* Prettier check
* Update code style.
* fix comments
* prettier check
* Update the code in order to unify the naming rules.
* updated AppServicePlan doc (#9679)
* Kusto: update java readme (#9576)
* Updating Patch API description. (#9676)
* Updating operationId to group the opearions in a logical way and the generate APIs are grouped together based on the operations.
* 1. Updating schema for autoQuotaRequest
2. Updating examples.
* Updates to data model and examples.
* Model Update.
* Data Model Fix.
* Fixing Data Model for AQI.
* Removing duplicate definitions.
* Adding type=object for emailAction.
* Putting the similar definitions together.
* Model Fix.
* Fixing AQI examples.
* Adding descriptions for enum.
* Fixing Spell Check error.
* Removing used object: phoneActions.
Updating the comments for Put and Patch, that both can be used to update quota.
* Updating the Put operatonId as _CreateOrUpdate.
* Making Tag information same - QuotaInformation.
* Updating example for commit.
* 1. Updating description of Quota APIs.
2. Removing Summary, as summary and description was combined in the doc. It had repeated statements.
* 1. Updating descriptions.
2. Adding BatchML examples and making the example names as - MachineLearningServices.
* Upadatin serviceLimitsRequests in path.
* Updating Patch API description.
* Patch description updated.
* Update data share examples for consumer invitations (#9668)
* update examples for consumer invitations with correct id
* run prettier
* Remove lt rv1 WaitForARMFeedback (#9247)
* add readme.az for databoxedge (#9683)
* add readme.az
* add cli_extension
* validate CLI codegen for databox (#9211)
* validate databox
* repo: azure-cli-extensions
* relocate python config
Co-authored-by: Changlong Liu
* updated resources readme (#9638)
* Update InfrastructureEncryption property description for PostgreSQL and MySQL (#9390)
* Update InfrastructureEncryption property description for PostgreSQL and MySQL
* Update InfrastructureEncryption property description for PostgreSQL and MySQL
* Update allowed range for nodeCount (#9602)
* Update allowed range for nodeCount
* Remove minimum
* Remove features mode (#9645)
* Documentation fix (#9693)
* Tables swagger fixes (#9584)
* According to this PR https://github.com/Azure/azure-sdk-for-net/pull/7235 having Vision.FormRecognizer folder was mistake. (#8422)
But this readme still contains vision and if you try to regenerate code in azure-sdk-for-net repository they would be created in Vision.FormRecognizer rather than just FormRecognizer.
* init (#9667)
* Onboard python track2 codegen (#9708)
* align eTag with server (#9687)
* align with server
* revert for certain
* IngestionMode Flag (#9654)
* IngestionMode Flag
* fix for missing bracket
* diganostic with an A
* Update property range due to tier sensitive. (#9422)
Signed-off-by: Pan Li
* fix swagger bug (#9709)
* Update GraphQuery location property readOnly=false (#9568)
* remove location readOnly property
* set location readOnly false
* Update bms.json (#9711)
Azure Backup Health
* Azure Digital Twins 2020-05-31-preview (#9622)
* Azure Digital Twins 2020-05-31-preview swagger.
* Updates.
* Updates.
* Update host name.
* Add custom words.
* Fix host name so that verification tools work.
* Prettier updates.
* Try file name without spaces.
* Update md files.
* Add missing api-version.
* Fix readme.go.md.
* [Synapse] - Update data plane Swagger specs (#9534)
* Update Synapse Swagger data plane specs
* Fix notebook
* Create three clients in Readme
* Update Readme for managed Vnet
* Rename scheme name
* Minor change
* Update example
* Rename development to artifact
Co-authored-by: Dongwei Wang
Co-authored-by: Laurent Mazuel
* New API version for Iot Hub Get Endpoint Health (#9680)
* Adds base for updating Microsoft.Devices from version stable/2020-03-01 to version 2020-04-01
* Updates readme
* Updates API version in new specs and examples
* initial version
* camel case
* reviewed comments
Co-authored-by: Juan Carpio Castellanos
* remove whitespace (#9703)
* remove whitespace
* fix example
Co-authored-by: Richard Li
* Fix VirtualMachineScaleSetIPConfigurationProperties Load Balancer description (#9675)
* add codegen config for GuesConfiguration (#9692)
* add codegen config
* enable pipeline
* [Hub Generated] Review request for Microsoft.Databricks to add version stable/2018-04-01 (#9657)
* 1.Breaking Change - Removing duplicate autoQuotaIncreaseState from supportTicketAction. (#9724)
2. Removing state=enabledForPreview.
3. Updating Example.
* Add sql parallel read properties (#9712)
* add httpRequestTimeout to odata based connector activities
* add httpRequestTimeout to odata based connector activities
* add sql parallel read properties
* Custom vision 3 3 (#9522)
* Establish base from previous version to compare against
* Alphabetize paths
* API Updates
* Add missing error messages
* Fix file type
* Spelling fix
* Run prettier
* Update all apis
* Changing aspects/opinions to optional properties from required proper… (#9702)
* Changing aspects/opinions to optional properties from required properties
* removing (Optional) description
Co-authored-by: josuh
* Adding the missing api-version parameter for move and validate move APIs. It is already part of the examples. (#9732)
* Correcting the swagger to accept downloadToken similar to other download operations
Correcting the swagger to accept downloadToken similar to other download operations
* Adding the missing api-version parameter for move and validate move apis. IT is already part of the examples.
Adding the missing api-version parameter for move and validate move apis. IT is already part of the examples.
Co-authored-by: Anirban Sarkar
* Add Missing Json in Readme for Monitor (#9730)
* Delete labeler (#9738)
* Delete computeReviewLabeler.yml
* Delete computeReviewLabeler.yml
* Update CODEOWNERS
* enable t2 generation (#9749)
* enable t2 generation (#9756)
* Added the allowed values to $select, $expand and $filter queries unde… (#9585)
* Added the allowed values to $select, $expand and $filter queries under VMSS and to $select query for Avset
* Adding allowed values in the corresponding descriptions field
* changing the examples
* DiskRP Swagger changes for 2020-05-01 (#9552)
* baseline commit for disk.json
* changes related to disk access, changes in disk encryption set for new api version, new examples related to disk access
* adding few more examples, more changes to disk.json
* prettier commit
* few fixes
* added more examples and fixed readme.md, fixed typos in disk.json
* fixing readme
* prettier fixes
* fix ref to example
* adding network access policy and diskAccessId to snapshots
* fix readme.md
* fixing enum descriptions
* fixing enum description
* fixing descriptions
* fixing validations
* fix swagger api version
* reverting des change to make sourceVault optional
* fix field name actionsRequired
* fixing descryptions for encryption at rest
* consolidating enums and fixing type
* [Resources] Add new API version (#9487)
* Initial commit with the old version
* Add error proprty to DeploymentOperationProperties
* Add enum values for provisioningState
* Update provisioningState description
* Update statusMessage property
* Update api-version and parameters in examples
* Update readme.md to refer to the new resources swagger
* Prettier fix; we can Python sdk too
* Added id and relativePath parameters to TemplateLink
* update csharp and java read me files for the new API
* Address Pr feedback
* Examples for TemplateSpecs deployment
* Unblock Java SDK generation
* Fix examples for templatespecs
* prettier fixes
Co-authored-by: Filiz Topatan
Co-authored-by: Gokul Premraj
* Add multiapi support (#9759)
* fixed examples and BudgetCategory as PM suggested (#9776)
* Fix Error Response Structure (#9733)
Co-authored-by: Zhenyu Zhou
* Adding new resource type azureADMetrics (#9636)
* Adds base for updating Microsoft.Aadiam from version preview/2020-03-01-preview to version 2020-07-01-preview
* Updates readme
* Updates API version in new specs and examples
* added azureADHealth
* rough commit (without examples) for azureADHealth
* changed Ad to AD
* added examples for azureadhealth
* removed private link files from 2020-07-01 preview
* examples updated for azureadhealth
* removed alltenants and tenants params from examples
* Fix Linting errors
* Update readme to make avocado fix
* minor fix
* custom word addition
* Update examples to match spec
* Make PrivateLinkPolicyName parameter have same values to solve LintDiff error
* Make subscriptionIdParameter identical in all json files
* error fixes for all model errors
* fixed model validation error
* additional suppressions for pascal case and operations
* added azureadhealth in readme to fix avocado error
* added privatelink api version along with azureadhealth
* changed api version to the filepath version
* modified for corrections on AzureADHealthGet
* aded changes to match spec and example
* reverted passing commit from before
* renamed to azureadmetrics
* Readme changes
* azureadmetrics custom word change
* azureadmetrics file updates
* properties
* quick prettier fix
* minor change to run tests again
* addressing comments
* location and tag changes
* delete doesnt take in param
* removed duplicate tag def
* syntax check
* comment changes, except the provisioningState change
* provisioningstate property addition
* provisioningState example fixes
* properties fix
* semantic validation error fix
Co-authored-by: Hyewon Lee
Co-authored-by: Abbe Blank
* enable t2 generation (#9755)
* enable t2 generation (#9752)
* test support (#9741)
* enable t2 generation (#9751)
* Adding swagger for Template Specs (#9778)
* Adding swagger for Template Specs
* Running prettier to fix whitespace/newline alignments
* enabling track2 generation (#9754)
* Updates for FE changes
Co-authored-by: Zach Rathbun
Co-authored-by: TinaHu1 <51737887+TinaHu1@users.noreply.github.com>
Co-authored-by: Alex Aloni
Co-authored-by: Alex Dubinkov
Co-authored-by: azuresdkci
Co-authored-by: Arcturus
Co-authored-by: shurd
Co-authored-by: Sam Hurd
Co-authored-by: annatisch
Co-authored-by: datr93 <43795914+datr93@users.noreply.github.com>
Co-authored-by: John Stairs
Co-authored-by: Landon Smith
Co-authored-by: navysingla <47647464+navysingla@users.noreply.github.com>
Co-authored-by: Jiashuo Li
Co-authored-by: Xiangyu Luo
Co-authored-by: Lei Ni
Co-authored-by: Zim Kalinowski
Co-authored-by: Steve Stein
Co-authored-by: Himanshu Chhabra
Co-authored-by: Tosin Adewale
Co-authored-by: Tosin Adewale
Co-authored-by: Ruoxuan Wang <52271048+ruowan@users.noreply.github.com>
Co-authored-by: changlong-liu <59815250+changlong-liu@users.noreply.github.com>
Co-authored-by: Changlong Liu
Co-authored-by: Tanyi Chen
Co-authored-by: elabicha <61994320+elabicha@users.noreply.github.com>
Co-authored-by: Phoenix He
Co-authored-by: Cameron Taggart
Co-authored-by: jspearman3
Co-authored-by: Praneeth Sanapathi
Co-authored-by: Praneeth Sanapathi
Co-authored-by: Ran Wang
Co-authored-by: JianyeXi <59603451+jianyexi@users.noreply.github.com>
Co-authored-by: Jianye Xi
Co-authored-by: ayfathim
Co-authored-by: 陈箭飞 <32889038+chenjianfei2017@users.noreply.github.com>
Co-authored-by: root
Co-authored-by: Vivian Liu
Co-authored-by: Allen Zhang
Co-authored-by: Ashraf Hamad
Co-authored-by: Ashraf Hamad
Co-authored-by: Feiyu Shi <44449256+feiyushi@users.noreply.github.com>
Co-authored-by: Vishnu Priya Ananthu Sundaram
Co-authored-by: Yoram Singer <37076505+yoramsinger@users.noreply.github.com>
Co-authored-by: Priyaranjan Pandey
Co-authored-by: xiaoxu qi
Co-authored-by: Xiaoxu Qi
Co-authored-by: Junbo Wang
Co-authored-by: Donald Liu <32778916+PakDLiu@users.noreply.github.com>
Co-authored-by: ityankel <47292630+ityankel@users.noreply.github.com>
Co-authored-by: Marcin Jastrzebski
Co-authored-by: Avinash
Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com>
Co-authored-by: srilatha inavolu
Co-authored-by: ivkule <59470194+ivkule@users.noreply.github.com>
Co-authored-by: NourEldin Yasser <65115481+a-noyass@users.noreply.github.com>
Co-authored-by: John Call
Co-authored-by: Thomas Reis
Co-authored-by: bob
Co-authored-by: Paviya (Elle) Tojaroon
Co-authored-by: Elle Tojaroon
Co-authored-by: giromm2ms <52413295+giromm2ms@users.noreply.github.com>
Co-authored-by: Gideon Romm
Co-authored-by: Chen Lahav
Co-authored-by: Jacob Hill
Co-authored-by: Jacob Hill
Co-authored-by: David Zhao <31305478+davidzhaoyue@users.noreply.github.com>
Co-authored-by: David Zhao
Co-authored-by: yibirnba <52132191+yibirnba@users.noreply.github.com>
Co-authored-by: Nitsan Bracha
Co-authored-by: Nitsan Bracha
Co-authored-by: Zihong
Co-authored-by: Zhiyong Yang
Co-authored-by: Meha Kaushik
Co-authored-by: Meha Kaushik
Co-authored-by: Arik Olsh <47111029+arolshan@users.noreply.github.com>
Co-authored-by: Anthony Kunnel Jose
Co-authored-by: erich-wang
Co-authored-by: Arthur Ning <57385816+akning-ms@users.noreply.github.com>
Co-authored-by: Fernando Fonseca
Co-authored-by: liemilyg <45784009+liemilyg@users.noreply.github.com>
Co-authored-by: zhaomuzhi
Co-authored-by: najagasi <49212852+najagasi@users.noreply.github.com>
Co-authored-by: Namrata Jagasia
Co-authored-by: Ajit Navasare
Co-authored-by: v-ajnava
Co-authored-by: orieldar
Co-authored-by: aim-for-better
Co-authored-by: Zhenyu Zhou
Co-authored-by: Mark Young
Co-authored-by: giakas
Co-authored-by: ankushbindlish2 <34896519+ankushbindlish2@users.noreply.github.com>
Co-authored-by: Richard Li
Co-authored-by: Richard Li
Co-authored-by: Yang Yuan
Co-authored-by: pajind
Co-authored-by: srcharug <62158390+srcharug@users.noreply.github.com>
Co-authored-by: docohe <54349195+docohe@users.noreply.github.com>
Co-authored-by: Nate Lehman
Co-authored-by: yuzhangyi <44692931+yuzhangyi@users.noreply.github.com>
Co-authored-by: zhanyu2014
Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com>
Co-authored-by: Liran Chen <1437075+liranc@users.noreply.github.com>
Co-authored-by: Liran Chen
Co-authored-by: Saif Kayani
Co-authored-by: Lakshmi Priya Sekar
Co-authored-by: Xiaoyun Ding
Co-authored-by: Xiaoyun Ding
Co-authored-by: chunyu3
Co-authored-by: jbuls <48029054+jbuls@users.noreply.github.com>
Co-authored-by: sarajang <37909871+sarajang@users.noreply.github.com>
Co-authored-by: Theodore Chang
Co-authored-by: Frank Gao <4760010+gtxistxgao@users.noreply.github.com>
Co-authored-by: Xiaofang Zhang
Co-authored-by: ruchikaguptaa
Co-authored-by: Paul Miller
Co-authored-by: Marwan Ahmed
Co-authored-by: animeshseth90 <64622013+animeshseth90@users.noreply.github.com>
Co-authored-by: animesh
Co-authored-by: Anirban Sarkar <33848291+asarkar84@users.noreply.github.com>
Co-authored-by: Anirban Sarkar
Co-authored-by: Youssef Shahin
Co-authored-by: digavino <48699384+digavino@users.noreply.github.com>
Co-authored-by: brpanask <64860651+brpanask@users.noreply.github.com>
Co-authored-by: Shubham Dhond
Co-authored-by: Jennifer Marsman
Co-authored-by: Xia ZHU <398289931@qq.com>
Co-authored-by: David
Co-authored-by: David Ricciardi
Co-authored-by: xaliciayang <59986952+xaliciayang@users.noreply.github.com>
Co-authored-by: Ray Chen
Co-authored-by: sashahdo <64434373+sashahdo@users.noreply.github.com>
Co-authored-by: shawnxzq
Co-authored-by: Shawn Xiao (IM)
Co-authored-by: Richard Zhang
Co-authored-by: Amir Keren
Co-authored-by: Amir Keren
Co-authored-by: sugandhaamic <65259091+sugandhaamic@users.noreply.github.com>
Co-authored-by: Liang Wang
Co-authored-by: Amit Aviram
Co-authored-by: Ge Huang
Co-authored-by: ge huang
Co-authored-by: vasanthrajams <60414148+vasanthrajams@users.noreply.github.com>
Co-authored-by: Heath Stewart
Co-authored-by: vasanthrajams
Co-authored-by: Hervey Wilson
Co-authored-by: Rick Qing Xu
Co-authored-by: kangtao
Co-authored-by: Kang Tao
Co-authored-by: Rahul Singh <53578268+rahuls-microsoft@users.noreply.github.com>
Co-authored-by: Kamil Sobol <61715331+kasobol-msft@users.noreply.github.com>
Co-authored-by: rickysun93
Co-authored-by: Haoran Sun
Co-authored-by: Shangwei Sun <63389531+sunsw1994@users.noreply.github.com>
Co-authored-by: gkgaurav31
Co-authored-by: Chuang <54572251+xccc-msft@users.noreply.github.com>
Co-authored-by: bradrich-msft <53872276+bradrich-msft@users.noreply.github.com>
Co-authored-by: Shinil Mannadath
Co-authored-by: Dongwei Wang
Co-authored-by: Raouf Merouche
Co-authored-by: Ivan Matantsev
Co-authored-by: tofriedl <50571149+tofriedl@users.noreply.github.com>
Co-authored-by: Pan Li
Co-authored-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com>
Co-authored-by: lapradh <66009265+lapradh@users.noreply.github.com>
Co-authored-by: Brian Crawford
Co-authored-by: Dongwei Wang
Co-authored-by: Laurent Mazuel
Co-authored-by: jucarpio <57114852+jucarpio@users.noreply.github.com>
Co-authored-by: Juan Carpio Castellanos
Co-authored-by: Cecile Robert-Michon
Co-authored-by: Rodge Fu
Co-authored-by: Subrahmanyam Mandavilli
Co-authored-by: Andrew <30499261+areddish@users.noreply.github.com>
Co-authored-by: Joohee Suh <58048046+josuhazure@users.noreply.github.com>
Co-authored-by: josuh
Co-authored-by: chetmaddula <57730350+chetmaddula@users.noreply.github.com>
Co-authored-by: Filiz Topatan
Co-authored-by: Filiz Topatan
Co-authored-by: Gokul Premraj
Co-authored-by: Hyewon Lee
Co-authored-by: Hyewon Lee
Co-authored-by: Abbe Blank
Co-authored-by: stuartko <47676853+stuartko@users.noreply.github.com>
Co-authored-by: Sandeep Parab
---
.../package-lock.json | 191 +-
.azure-pipelines-preproduction/package.json | 4 +-
.azure-pipelines/SDKAutomation.yml | 6 +
.github/PULL_REQUEST_TEMPLATE.md | 27 +-
.github/issue_assignment.yml | 22 +
.github/pull_request_assignment.yml | 154 +
.github/sla.yml | 6 +-
CODEOWNERS | 2 +-
custom-words.txt | 33 +-
.../openapi-authoring-automated-guidelines.md | 191 +-
package-lock.json | 193 +-
package.json | 2 +-
preproduction-azure-pipelines.yml | 1 +
.../2019-05-05-preview/AlertsManagement.json | 11 +-
.../resource-manager/readme.trenton.md | 47 +
.../resource-manager/readme.md | 1 +
.../preview/2018-04-20/swagger.json | 4 +-
.../preview/v1/AppInsights.json | 4 +-
.../componentProactiveDetection_API.json | 0
.../components_API.json | 14 +
.../examples/ComponentsCreate.json | 6 +-
.../examples/ComponentsDelete.json | 0
.../examples/ComponentsGet.json | 3 +-
.../examples/ComponentsList.json | 6 +-
.../ComponentsListByResourceGroup.json | 6 +-
.../examples/ComponentsPurge.json | 0
.../examples/ComponentsPurgeStatus.json | 0
.../examples/ComponentsUpdate.json | 6 +-
.../examples/ComponentsUpdateTagsOnly.json | 6 +-
.../ProactiveDetectionConfigurationGet.json | 0
...ProactiveDetectionConfigurationUpdate.json | 0
.../ProactiveDetectionConfigurationsList.json | 0
.../2020-02-02-preview/components_API.json | 14 +
.../examples/ComponentsCreate.json | 3 +-
.../examples/ComponentsGet.json | 3 +-
.../examples/ComponentsList.json | 6 +-
.../ComponentsListByResourceGroup.json | 6 +-
.../examples/ComponentsUpdate.json | 3 +-
.../examples/ComponentsUpdateTagsOnly.json | 3 +-
.../WebTestResults_API.json | 294 +
.../examples/Operations_List.json | 23 +
.../WebTestResultsTestResultFile.json | 21 +
.../stable/2015-05-01/components_API.json | 14 +
.../2015-05-01/examples/ComponentsCreate.json | 3 +-
.../2015-05-01/examples/ComponentsGet.json | 3 +-
.../2015-05-01/examples/ComponentsList.json | 6 +-
.../ComponentsListByResourceGroup.json | 6 +-
.../2015-05-01/examples/ComponentsUpdate.json | 3 +-
.../examples/ComponentsUpdateTagsOnly.json | 3 +-
.../resource-manager/readme.md | 29 +-
.../2019-05-01-preview/appplatform.json | 323 +-
.../examples/Apps_CreateOrUpdate.json | 11 +
.../2019-05-01-preview/examples/Apps_Get.json | 5 +
.../examples/Apps_List.json | 5 +
.../examples/Apps_Update.json | 15 +
.../examples/Services_CreateOrUpdate.json | 12 +
.../examples/Services_Get.json | 4 +
.../examples/Services_List.json | 4 +
.../examples/Services_ListBySubscription.json | 4 +
.../examples/Services_Update.json | 12 +
.../2019-05-01-preview/examples/Sku_List.json | 36 +
.../resource-manager/readme.cli.md | 15 +-
.../preview/2015-06-01-preview/Commerce.json | 3 +-
.../commerce/readme.azsautogen.md | 8 +
.../resource-manager/commerce/readme.md | 1 -
.../examples/StorageAccounts/Undelete.json | 6 +-
.../preview/2019-08-08/settings.json | 3 +-
.../preview/2019-08-08/storage.json | 4 +-
.../preview/2019-08-08/storageaccounts.json | 14 +-
.../storage/readme.azsautogen.md | 55 +
.../stable/2020-02-15/kusto.json | 2 +-
.../resource-manager/readme.java.md | 14 +
.../AzureADPrivateLinkPolicyCreate.json | 50 +
.../AzureADPrivateLinkPolicyDelete.json | 24 +
.../examples/AzureADPrivateLinkPolicyGet.json | 24 +
.../AzureADPrivateLinkPolicyList.json | 27 +
...ADPrivateLinkPolicyListBySubscription.json | 27 +
.../AzureADPrivateLinkPolicyMinCreate.json | 50 +
.../AzureADPrivateLinkPolicyUpdate.json | 28 +
.../AzureADPrivateLinkResourceGet.json | 25 +
.../AzureADPrivateLinkResourceListGet.json | 29 +
.../privateLinkForAzureAD.json | 480 ++
.../privateLinkResources.json | 268 +
.../2020-07-01-preview/azureADMetrics.json | 432 +
.../AzureADMetricsCreateOrUpdate.json | 38 +
.../examples/AzureADMetricsDelete.json | 12 +
.../examples/AzureADMetricsGet.json | 22 +
.../examples/AzureADMetricsList.json | 24 +
.../AzureADMetricsListBySubscription.json | 23 +
.../examples/AzureADMetricsUpdate.json | 26 +
.../resource-manager/readme.md | 55 +-
.../preview/2019-07-24-preview/azuredata.json | 387 +
.../CreateOrUpdateSqlServerInstance.json | 63 +
.../examples/DeleteSqlServerInstance.json | 12 +
.../examples/GetSqlServerInstance.json | 30 +
.../ListByResourceGroupSqlServerInstance.json | 51 +
.../ListSubscriptionSqlServerInstance.json | 50 +
.../examples/UpdateSqlServerInstance.json | 32 +
.../azuredata/resource-manager/readme.go.md | 19 +-
.../stable/2020-05-01/BatchManagement.json | 5147 +++++++++++
.../examples/ApplicationCreate.json | 32 +
.../examples/ApplicationDelete.json | 13 +
.../2020-05-01/examples/ApplicationGet.json | 26 +
.../2020-05-01/examples/ApplicationList.json | 37 +
.../examples/ApplicationPackageActivate.json | 31 +
.../examples/ApplicationPackageCreate.json | 28 +
.../examples/ApplicationPackageDelete.json | 14 +
.../examples/ApplicationPackageGet.json | 28 +
.../examples/ApplicationPackageList.json | 37 +
.../examples/ApplicationUpdate.json | 34 +
.../examples/BatchAccountCreate_BYOS.json | 53 +
.../examples/BatchAccountCreate_Default.json | 44 +
...hAccountCreate_SystemAssignedIdentity.json | 49 +
.../examples/BatchAccountDelete.json | 13 +
.../2020-05-01/examples/BatchAccountGet.json | 35 +
.../examples/BatchAccountGetKeys.json | 17 +
.../2020-05-01/examples/BatchAccountList.json | 37 +
.../BatchAccountListByResourceGroup.json | 38 +
.../examples/BatchAccountRegenerateKey.json | 20 +
...atchAccountSynchronizeAutoStorageKeys.json | 11 +
.../examples/BatchAccountUpdate.json | 42 +
.../examples/CertificateCancelDeletion.json | 32 +
.../examples/CertificateCreate_Full.json | 39 +
.../examples/CertificateCreate_Minimal.json | 36 +
.../CertificateCreate_MinimalCer.json | 36 +
.../examples/CertificateDelete.json | 19 +
.../2020-05-01/examples/CertificateGet.json | 30 +
.../CertificateGetWithDeletionError.json | 43 +
.../2020-05-01/examples/CertificateList.json | 32 +
.../examples/CertificateListWithFilter.json | 38 +
.../examples/CertificateUpdate.json | 36 +
...onCheckNameAvailability_AlreadyExists.json | 20 +
...cationCheckNameAvailability_Available.json | 18 +
.../examples/LocationGetQuotas.json | 14 +
.../examples/PoolCreate_CustomImage.json | 65 +
.../examples/PoolCreate_FullExample.json | 285 +
...eate_MinimalCloudServiceConfiguration.json | 72 +
...te_MinimalVirtualMachineConfiguration.json | 77 +
.../PoolCreate_NoPublicIPAddresses.json | 77 +
.../examples/PoolCreate_PublicIPs.json | 83 +
...oolCreate_VirtualMachineConfiguration.json | 189 +
.../2020-05-01/examples/PoolDelete.json | 19 +
.../examples/PoolDisableAutoScale.json | 56 +
.../stable/2020-05-01/examples/PoolGet.json | 155 +
.../stable/2020-05-01/examples/PoolList.json | 161 +
.../examples/PoolListWithFilter.json | 44 +
.../2020-05-01/examples/PoolStopResize.json | 62 +
.../examples/PoolUpdate_EnableAutoScale.json | 69 +
.../examples/PoolUpdate_OtherProperties.json | 115 +
.../examples/PoolUpdate_RemoveStartTask.json | 65 +
.../examples/PoolUpdate_ResizePool.json | 74 +
.../examples/PrivateBatchAccountCreate.json | 53 +
.../examples/PrivateBatchAccountGet.json | 48 +
.../PrivateEndpointConnectionGet.json | 27 +
.../PrivateEndpointConnectionUpdate.json | 47 +
.../PrivateEndpointConnectionsList.json | 31 +
.../examples/PrivateLinkResourceGet.json | 27 +
.../examples/PrivateLinkResourcesList.json | 31 +
.../batch/resource-manager/readme.md | 24 +-
.../preview/2019-10-01-preview/billing.json | 85 +-
.../examples/BillingAccountInvoice.json | 81 +
.../stable/2020-05-01/billing.json | 6092 +++++++++++++
.../2020-05-01/examples/AddressInvalid.json | 36 +
.../2020-05-01/examples/AddressValid.json | 28 +
.../2020-05-01/examples/AgreementByName.json | 36 +
.../AgreementsListByBillingAccount.json | 59 +
.../AvailableBalanceByBillingProfile.json | 22 +
.../2020-05-01/examples/BillingAccount.json | 22 +
.../examples/BillingAccountInvoicesList.json | 150 +
.../BillingAccountPermissionsList.json | 39 +
.../BillingAccountRoleAssignment.json | 25 +
.../BillingAccountRoleAssignmentDelete.json | 25 +
.../BillingAccountRoleAssignmentList.json | 42 +
.../BillingAccountRoleDefinition.json | 47 +
.../BillingAccountRoleDefinitionsList.json | 127 +
.../examples/BillingAccountWithExpand.json | 159 +
.../examples/BillingAccountsList.json | 50 +
.../BillingAccountsListWithExpand.json | 337 +
...ntsListWithExpandForEnrollmentDetails.json | 107 +
.../2020-05-01/examples/BillingProfile.json | 52 +
.../BillingProfilePermissionsList.json | 40 +
.../BillingProfileRoleAssignment.json | 26 +
.../BillingProfileRoleAssignmentDelete.json | 26 +
.../BillingProfileRoleAssignmentList.json | 43 +
.../BillingProfileRoleDefinition.json | 48 +
.../BillingProfileRoleDefinitionsList.json | 83 +
.../examples/BillingProfileWithExpand.json | 71 +
.../BillingProfilesListByBillingAccount.json | 95 +
.../BillingProfilesListWithExpand.json | 133 +
.../2020-05-01/examples/BillingProperty.json | 34 +
.../examples/BillingSubscription.json | 36 +
.../examples/BillingSubscriptionInvoice.json | 55 +
.../BillingSubscriptionInvoiceDownload.json | 21 +
.../BillingSubscriptionInvoicesList.json | 79 +
...lingSubscriptionsListByBillingAccount.json | 89 +
...lingSubscriptionsListByBillingProfile.json | 90 +
.../BillingSubscriptionsListByCustomer.json | 69 +
...lingSubscriptionsListByInvoiceSection.json | 91 +
.../stable/2020-05-01/examples/Customer.json | 21 +
.../examples/CustomerPermissionsList.json | 27 +
.../2020-05-01/examples/CustomerPolicy.json | 19 +
.../examples/CustomerWithExpand.json | 38 +
.../CustomersListByBillingAccount.json | 34 +
.../CustomersListByBillingProfile.json | 35 +
.../2020-05-01/examples/Instruction.json | 22 +
.../InstructionsListByBillingProfile.json | 35 +
.../stable/2020-05-01/examples/Invoice.json | 83 +
.../2020-05-01/examples/InvoiceById.json | 82 +
.../2020-05-01/examples/InvoiceDownload.json | 21 +
.../2020-05-01/examples/InvoiceSection.json | 25 +
.../InvoiceSectionPermissionsList.json | 41 +
.../InvoiceSectionRoleAssignment.json | 27 +
.../InvoiceSectionRoleAssignmentDelete.json | 27 +
.../InvoiceSectionRoleAssignmentList.json | 44 +
.../InvoiceSectionRoleDefinition.json | 49 +
.../InvoiceSectionRoleDefinitionsList.json | 84 +
.../InvoiceSectionsListByBillingProfile.json | 41 +
...ceSectionsListWithCreateSubPermission.json | 35 +
.../InvoicesListByBillingProfile.json | 161 +
.../examples/MoveBillingSubscription.json | 42 +
.../2020-05-01/examples/MoveProduct.json | 49 +
.../stable/2020-05-01/examples/Policy.json | 21 +
.../stable/2020-05-01/examples/Product.json | 39 +
.../ProductsListByBillingAccount.json | 70 +
.../ProductsListByBillingProfile.json | 71 +
.../examples/ProductsListByCustomer.json | 75 +
.../ProductsListByInvoiceSection.json | 71 +
.../examples/PutBillingProfile.json | 76 +
.../2020-05-01/examples/PutInstruction.json | 29 +
.../examples/PutInvoiceSection.json | 40 +
.../examples/TransactionsListByInvoice.json | 124 +
.../examples/UpdateBillingAccount.json | 53 +
.../examples/UpdateBillingProperty.json | 39 +
.../examples/UpdateBillingSubscription.json | 41 +
.../examples/UpdateCustomerPolicy.json | 24 +
.../2020-05-01/examples/UpdatePolicy.json | 28 +
.../2020-05-01/examples/UpdateProduct.json | 44 +
.../examples/ValidateProductMoveFailure.json | 21 +
.../examples/ValidateProductMoveSuccess.json | 17 +
.../ValidateSubscriptionMoveFailure.json | 21 +
.../ValidateSubscriptionMoveSuccess.json | 17 +
.../billing/resource-manager/readme.go.md | 10 +
.../billing/resource-manager/readme.md | 26 +-
.../billing/resource-manager/readme.ruby.md | 10 +
.../examples/BlockchainMembers_Create.json | 4 +-
.../examples/BlockchainMembers_Update.json | 4 +-
.../examples/TransactionNodes_Create.json | 2 +-
.../examples/TransactionNodes_Update.json | 2 +-
.../blockchain/resource-manager/readme.az.md | 12 +
.../blockchain/resource-manager/readme.cli.md | 20 +-
.../blockchain/resource-manager/readme.md | 1 +
.../resource-manager/readme.python.md | 12 +-
.../2020-03-31/cdnwebapplicationfirewall.json | 15 +-
.../Microsoft.Cdn/stable/2020-04-15/cdn.json | 5518 ++++++++++++
.../2020-04-15/cdnwebapplicationfirewall.json | 926 ++
.../examples/CheckNameAvailability.json | 18 +
...CheckNameAvailabilityWithSubscription.json | 19 +
.../examples/CustomDomains_Create.json | 62 +
.../examples/CustomDomains_Delete.json | 29 +
.../CustomDomains_DisableCustomHttps.json | 28 +
...tomDomains_EnableCustomHttpsUsingBYOC.json | 43 +
...CustomHttpsUsingCDNManagedCertificate.json | 37 +
.../examples/CustomDomains_Get.json | 27 +
.../CustomDomains_ListByEndpoint.json | 30 +
.../2020-04-15/examples/EdgeNodes_List.json | 107 +
.../2020-04-15/examples/Endpoints_Create.json | 543 ++
.../2020-04-15/examples/Endpoints_Delete.json | 13 +
.../2020-04-15/examples/Endpoints_Get.json | 70 +
.../examples/Endpoints_ListByProfile.json | 77 +
.../examples/Endpoints_ListResourceUsage.json | 29 +
.../examples/Endpoints_LoadContent.json | 18 +
.../examples/Endpoints_PurgeContent.json | 18 +
.../2020-04-15/examples/Endpoints_Start.json | 83 +
.../2020-04-15/examples/Endpoints_Stop.json | 83 +
.../2020-04-15/examples/Endpoints_Update.json | 138 +
.../Endpoints_ValidateCustomDomain.json | 21 +
.../2020-04-15/examples/Operations_List.json | 93 +
.../examples/OriginGroups_Create.json | 109 +
.../examples/OriginGroups_Delete.json | 14 +
.../2020-04-15/examples/OriginGroups_Get.json | 44 +
.../examples/OriginGroups_ListByEndpoint.json | 41 +
.../examples/OriginGroups_Update.json | 71 +
.../2020-04-15/examples/Origins_Create.json | 108 +
.../2020-04-15/examples/Origins_Delete.json | 14 +
.../2020-04-15/examples/Origins_Get.json | 37 +
.../examples/Origins_ListByEndpoint.json | 40 +
.../2020-04-15/examples/Origins_Update.json | 76 +
.../2020-04-15/examples/Profiles_Create.json | 64 +
.../2020-04-15/examples/Profiles_Delete.json | 12 +
.../examples/Profiles_GenerateSsoUri.json | 15 +
.../2020-04-15/examples/Profiles_Get.json | 26 +
.../2020-04-15/examples/Profiles_List.json | 42 +
.../Profiles_ListByResourceGroup.json | 43 +
.../examples/Profiles_ListResourceUsage.json | 22 +
...ofiles_ListSupportedOptimizationTypes.json | 18 +
.../2020-04-15/examples/Profiles_Update.json | 51 +
.../examples/ResourceUsage_List.json | 20 +
.../2020-04-15/examples/ValidateProbe.json | 18 +
.../examples/WafListManagedRuleSets.json | 53 +
.../2020-04-15/examples/WafListPolicies.json | 265 +
.../2020-04-15/examples/WafPatchPolicy.json | 272 +
.../examples/WafPolicyCreateOrUpdate.json | 505 ++
.../2020-04-15/examples/WafPolicyDelete.json | 12 +
.../2020-04-15/examples/WafPolicyGet.json | 139 +
.../cdn/resource-manager/readme.go.md | 9 +-
specification/cdn/resource-manager/readme.md | 12 +
.../cdn/resource-manager/readme.ruby.md | 10 +
.../2020-04-01-preview/changeanalysis.json | 519 ++
.../examples/ConfigurationProfileCreate.json | 26 +
...onfigurationProfileCreateWithIdentity.json | 35 +
.../examples/ConfigurationProfileDelete.json | 11 +
.../examples/ConfigurationProfileGet.json | 30 +
.../examples/ConfigurationProfileUpdate.json | 36 +
...onfigurationProfileUpdateWithIdentity.json | 44 +
.../examples/OperationsList.json | 37 +
.../resource-manager/readme.csharp.md | 15 +
.../resource-manager/readme.go.md | 19 +
.../changeanalysis/resource-manager/readme.md | 140 +
.../resource-manager/readme.python.md | 21 +
.../resource-manager/readme.ruby.md | 19 +
.../resource-manager/readme.typescript.md | 13 +
.../preview/v1.0/AnomalyDetector.json | 7 +-
.../data-plane/ComputerVision/readme.go.md | 2 +-
.../data-plane/ComputerVision/readme.md | 17 +-
.../data-plane/ComputerVision/readme.ruby.md | 11 +
.../stable/v3.0/ComputerVision.json | 1840 ++++
.../ComputerVision/stable/v3.0/Ocr.json | 452 +
...cessfulAnalyzeImageByDomainWithStream.json | 34 +
...SuccessfulAnalyzeImageByDomainWithUrl.json | 36 +
.../SuccessfulAnalyzeImageWithStream.json | 176 +
.../SuccessfulAnalyzeImageWithUrl.json | 184 +
.../SuccessfulDescribeImageWithStream.json | 44 +
.../SuccessfulDescribeImageWithUrl.json | 46 +
.../SuccessfulDetectObjectsWithStream.json | 35 +
.../SuccessfulDetectObjectsWithUrl.json | 37 +
...SuccessfulGenerateThumbnailWithStream.json | 16 +
.../SuccessfulGenerateThumbnailWithUrl.json | 18 +
...SuccessfulGetAreaOfInterestWithStream.json | 26 +
.../SuccessfulGetAreaOfInterestWithUrl.json | 28 +
.../examples/SuccessfulGetReadResult.json | 369 +
.../v3.0/examples/SuccessfulListModels.json | 27 +
.../examples/SuccessfulReadWithStream.json | 15 +
.../v3.0/examples/SuccessfulReadWithUrl.json | 17 +
...cessfulRecognizePrintedTextWithStream.json | 77 +
...SuccessfulRecognizePrintedTextWithUrl.json | 79 +
.../SuccessfulTagImageWithStream.json | 53 +
.../examples/SuccessfulTagImageWithUrl.json | 55 +
.../CustomVision/Prediction/readme.go.md | 10 +
.../CustomVision/Prediction/readme.md | 12 +-
.../CustomVision/Prediction/readme.ruby.md | 12 +
.../Prediction/stable/v3.1/Prediction.json | 922 ++
.../stable/v3.1/examples/ClassifyImage.json | 33 +
.../v3.1/examples/ClassifyImageUrl.json | 35 +
.../examples/ClassifyImageUrlWithNoStore.json | 35 +
.../examples/ClassifyImageWithNoStore.json | 33 +
.../stable/v3.1/examples/DetectImage.json | 45 +
.../stable/v3.1/examples/DetectImageUrl.json | 47 +
.../examples/DetectImageUrlWithNoStore.json | 47 +
.../v3.1/examples/DetectImageWithNoStore.json | 45 +
.../CustomVision/Training/readme.go.md | 11 +
.../CustomVision/Training/readme.md | 14 +-
.../CustomVision/Training/readme.ruby.md | 11 +
.../Training/stable/v3.3/Training.json | 5606 ++++++++++++
.../v3.3/examples/CreateImageRegions.json | 81 +
.../stable/v3.3/examples/CreateImageTags.json | 31 +
.../v3.3/examples/CreateImagesFromData.json | 94 +
.../v3.3/examples/CreateImagesFromFiles.json | 82 +
.../examples/CreateImagesFromPredictions.json | 81 +
.../v3.3/examples/CreateImagesFromUrls.json | 82 +
.../stable/v3.3/examples/CreateProject.json | 26 +
.../stable/v3.3/examples/CreateTag.json | 23 +
.../v3.3/examples/DeleteImageRegions.json | 14 +
.../stable/v3.3/examples/DeleteImageTags.json | 19 +
.../stable/v3.3/examples/DeleteImages.json | 16 +
.../stable/v3.3/examples/DeleteIteration.json | 12 +
.../v3.3/examples/DeletePrediction.json | 15 +
.../stable/v3.3/examples/DeleteProject.json | 11 +
.../stable/v3.3/examples/DeleteTag.json | 12 +
.../stable/v3.3/examples/ExportIteration.json | 21 +
.../stable/v3.3/examples/ExportProject.json | 16 +
.../stable/v3.3/examples/GetArtifact.json | 14 +
.../stable/v3.3/examples/GetDomain.json | 20 +
.../stable/v3.3/examples/GetDomains.json | 70 +
.../stable/v3.3/examples/GetExports.json | 22 +
.../stable/v3.3/examples/GetImageCount.json | 14 +
.../examples/GetImagePerformanceCount.json | 18 +
.../v3.3/examples/GetImagePerformances.json | 43 +
.../examples/GetImageRegionProposals.json | 29 +
.../stable/v3.3/examples/GetImages.json | 47 +
.../stable/v3.3/examples/GetImagesByIds.json | 15 +
.../stable/v3.3/examples/GetIteration.json | 34 +
.../examples/GetIterationPerformance.json | 39 +
.../stable/v3.3/examples/GetIterations.json | 74 +
.../stable/v3.3/examples/GetProject.json | 24 +
.../stable/v3.3/examples/GetProjects.json | 25 +
.../Training/stable/v3.3/examples/GetTag.json | 21 +
.../v3.3/examples/GetTaggedImageCount.json | 15 +
.../stable/v3.3/examples/GetTaggedImages.json | 15 +
.../stable/v3.3/examples/GetTags.json | 22 +
.../v3.3/examples/GetUntaggedImageCount.json | 15 +
.../v3.3/examples/GetUntaggedImages.json | 15 +
.../stable/v3.3/examples/ImportProject.json | 25 +
.../v3.3/examples/PublishIteration.json | 17 +
.../v3.3/examples/QueryPredictions.json | 66 +
.../examples/QuerySuggestedImageCount.json | 22 +
.../v3.3/examples/QuerySuggestedImages.json | 54 +
.../stable/v3.3/examples/QuickTestImage.json | 33 +
.../v3.3/examples/QuickTestImageUrl.json | 35 +
.../v3.3/examples/SuggestTagsAndRegions.json | 39 +
.../stable/v3.3/examples/TrainProject.json | 33 +
.../v3.3/examples/UnpublishIteration.json | 12 +
.../v3.3/examples/UpdateImageMetadata.json | 43 +
.../stable/v3.3/examples/UpdateIteration.json | 37 +
.../stable/v3.3/examples/UpdateProject.json | 31 +
.../stable/v3.3/examples/UpdateTag.json | 26 +
.../v2.1-preview.1/FormRecognizer.json | 14 +
.../v2.1-preview.2/FormRecognizer.json | 2054 +++++
.../v2.1-preview.2/examples/AnalyzeBatch.json | 16 +
.../examples/AnalyzeOperationResult.json | 26 +
.../examples/BusinessCardBatch.json | 15 +
.../examples/BusinessCardBatchResult.json | 26 +
.../examples/ComposeModels.json | 18 +
.../v2.1-preview.2/examples/CopyModel.json | 25 +
.../examples/CopyModelAuthorization.json | 20 +
.../examples/CopyOperationResult.json | 23 +
.../CopyOperationResultWithErrors.json | 28 +
.../v2.1-preview.2/examples/DeleteModel.json | 12 +
.../v2.1-preview.2/examples/GetModel.json | 51 +
.../v2.1-preview.2/examples/GetModels.json | 35 +
.../examples/GetModelsSummary.json | 20 +
.../v2.1-preview.2/examples/LayoutBatch.json | 16 +
.../examples/LayoutBatchResult.json | 24 +
.../examples/ReceiptsBatch.json | 15 +
.../examples/ReceiptsBatchResult.json | 26 +
.../v2.1-preview.2/examples/TrainBatch.json | 18 +
.../examples/TrainBatchWithSubFolders.json | 23 +
.../data-plane/FormRecognizer/readme.md | 2 +-
.../preview/v3.0/LUIS-Authoring.json | 249 +-
.../examples/SuccessfulAddLabelRequest.json | 1 +
.../SuccessfulBatchAddLabelsRequest.json | 1 +
...uccessfulReviewLabeledExamplesRequest.json | 3 +-
...SuccessfulGetEntitySuggestionExamples.json | 3 +-
...uccessfulGetIntentsSuggestionExamples.json | 3 +-
.../SuccessfulAddUserToAccessListRequest.json | 19 -
...ulGetApplicationUserAccessListRequest.json | 18 -
...essfulRemoveUserFromAccessListRequest.json | 19 -
...fulReplacesUsersFromAccessListRequest.json | 22 -
.../preview/v2.0/Identification.json | 831 ++
.../v2.0/examples/createEnrollment.json | 114 +
.../preview/v2.0/examples/createProfile.json | 95 +
.../preview/v2.0/examples/deleteProfile.json | 48 +
.../preview/v2.0/examples/fetchProfile.json | 71 +
.../v2.0/examples/identifySingleSpeaker.json | 99 +
.../preview/v2.0/examples/listProfiles.json | 75 +
.../preview/v2.0/examples/resetProfile.json | 59 +
.../Identification/readme.md | 92 +
.../Identification/readme.nodejs.md | 14 +
.../Identification/readme.python.md | 26 +
.../Identification/readme.typescript.md | 12 +
.../preview/v2.0/Verification.json | 1408 +++
.../preview/v2.0/examples/deleteProfile.json | 48 +
.../preview/v2.0/examples/phrases.json | 63 +
.../preview/v2.0/examples/resetProfile.json | 59 +
.../textDependentCreateEnrollment.json | 115 +
.../examples/textDependentCreateProfile.json | 95 +
.../examples/textDependentFetchProfile.json | 71 +
.../examples/textDependentListProfiles.json | 75 +
.../textIndependentCreateEnrollment.json | 114 +
.../textIndependentCreateProfile.json | 95 +
.../examples/textIndependentFetchProfile.json | 71 +
.../examples/textIndependentListProfiles.json | 75 +
.../preview/v2.0/examples/verify.json | 86 +
.../SpeakerRecognition/Verification/readme.md | 92 +
.../Verification/readme.nodejs.md | 14 +
.../Verification/readme.python.md | 26 +
.../Verification/readme.typescript.md | 12 +
.../preview/v3.1-preview.1/TextAnalytics.json | 4 +-
.../stable/2017-04-18/cognitiveservices.json | 17 +-
.../resource-management/v1/privatelinks.json | 174 +
.../stable/2015-06-15/compute.json | 6 +-
.../stable/2016-03-30/compute.json | 8 +-
.../stable/2017-03-30/compute.json | 8 +-
.../ListAvailabilitySetsInASubscription.json | 2 +-
.../stable/2017-12-01/compute.json | 8 +-
.../ListAvailabilitySetsInASubscription.json | 2 +-
.../stable/2018-04-01/compute.json | 8 +-
.../ListAvailabilitySetsInASubscription.json | 2 +-
.../stable/2018-06-01/compute.json | 8 +-
.../ListAvailabilitySetsInASubscription.json | 2 +-
.../stable/2018-10-01/compute.json | 8 +-
.../ListAvailabilitySetsInASubscription.json | 2 +-
.../stable/2019-03-01/compute.json | 11 +-
.../ListAvailabilitySetsInASubscription.json | 2 +-
.../stable/2019-04-01/skus.json | 2 +-
.../stable/2019-07-01/compute.json | 11 +-
.../ListAvailabilitySetsInASubscription.json | 2 +-
.../stable/2019-07-01/gallery.json | 3 -
.../stable/2019-12-01/compute.json | 15 +-
.../ListAvailabilitySetsInASubscription.json | 2 +-
.../stable/2019-12-01/gallery.json | 3 -
.../stable/2020-05-01/disk.json | 2641 ++++++
.../examples/CreateADiskAccess.json | 32 +
.../examples/CreateADiskEncryptionSet.json | 60 +
.../CreateAManagedDiskByCopyingASnapshot.json | 45 +
...managedBlobFromADifferentSubscription.json | 48 +
...nUnmanagedBlobFromTheSameSubscription.json | 45 +
.../CreateAManagedDiskFromAPlatformImage.json | 54 +
...AManagedDiskFromAnExistingManagedDisk.json | 45 +
.../CreateAManagedDiskWithDiskAccess.json | 49 +
...eateAManagedDiskWithDiskEncryptionSet.json | 51 +
.../examples/CreateAManagedUploadDisk.json | 45 +
...managedBlobFromADifferentSubscription.json | 48 +
...nUnmanagedBlobFromTheSameSubscription.json | 45 +
...CreateASnapshotFromAnExistingSnapshot.json | 45 +
.../examples/CreateAnEmptyManagedDisk.json | 45 +
.../examples/DeleteADiskAccess.json | 13 +
.../examples/DeleteADiskEncryptionSet.json | 13 +
.../GetDiskAccessPrivateLinkResources.json | 30 +
.../GetInformationAboutADiskAccess.json | 26 +
...nAboutADiskAccessWithPrivateEndpoints.json | 44 +
...GetInformationAboutADiskEncryptionSet.json | 35 +
.../GetInformationAboutAManagedDisk.json | 57 +
.../GetInformationAboutASnapshot.json | 53 +
.../ListDiskAccessesInAResourceGroup.json | 62 +
.../ListDiskAccessesInASubscription.json | 61 +
...istDiskEncryptionSetsInAResourceGroup.json | 62 +
...ListDiskEncryptionSetsInASubscription.json | 61 +
.../ListManagedDisksInAResourceGroup.json | 120 +
.../ListManagedDisksInASubscription.json | 119 +
.../ListSnapshotsInAResourceGroup.json | 57 +
.../ListSnapshotsInASubscription.json | 99 +
.../examples/UpdateADiskAccess.json | 40 +
.../examples/UpdateADiskEncryptionSet.json | 68 +
.../UpdateAManagedDiskToRemoveDiskAccess.json | 43 +
.../compute/resource-manager/readme.md | 26 +-
.../stable/2019-10-01/consumption.json | 352 +-
.../stable/2019-10-01/examples/Budget.json | 61 +-
.../2019-10-01/examples/BudgetsList.json | 122 +-
.../examples/CreateOrUpdateBudget.json | 181 +-
.../examples/ReservationDetails.json | 2 +-
.../ReservationDetailsByBillingAccountId.json | 2 +-
.../ReservationDetailsWithReservationId.json | 2 +-
...RecommendationDetailsByBillingAccount.json | 99 +
...RecommendationDetailsByBillingProfile.json | 66 +
...onRecommendationDetailsBySubscription.json | 70 +
.../examples/ReservationSummariesDaily.json | 2 +-
...ionSummariesDailyWithBillingAccountId.json | 2 +-
...vationSummariesDailyWithReservationId.json | 2 +-
...ionTransactionsListByBillingAccountId.json | 2 +-
.../2019-12-01-preview/containerregistry.json | 19 +
.../resource-manager/readme.az.md | 20 +
.../resource-manager/readme.cli.md | 9 +
.../examples/AgentPools_Update.json | 73 +
.../stable/2019-11-01/managedClusters.json | 12 +-
.../examples/AgentPools_Update.json | 73 +
.../stable/2020-01-01/managedClusters.json | 12 +-
.../examples/AgentPools_Update.json | 73 +
.../stable/2020-02-01/managedClusters.json | 12 +-
.../examples/AgentPools_Update.json | 73 +
.../stable/2020-03-01/managedClusters.json | 12 +-
.../examples/AgentPoolsCreate_Spot.json | 84 +
.../examples/AgentPoolsCreate_Update.json | 86 +
.../2020-04-01/examples/AgentPoolsDelete.json | 13 +
.../2020-04-01/examples/AgentPoolsGet.json | 29 +
...entPoolsGetAgentPoolAvailableVersions.json | 32 +
.../examples/AgentPoolsGetUpgradeProfile.json | 28 +
.../2020-04-01/examples/AgentPoolsList.json | 29 +
.../examples/AgentPools_Update.json | 73 +
.../ManagedClustersCreate_Update.json | 249 +
.../examples/ManagedClustersDelete.json | 12 +
.../examples/ManagedClustersGet.json | 96 +
.../ManagedClustersGetAccessProfile.json | 22 +
.../ManagedClustersGetUpgradeProfile.json | 49 +
.../examples/ManagedClustersList.json | 65 +
.../ManagedClustersListByResourceGroup.json | 66 +
...edClustersListClusterCredentialResult.json | 20 +
.../ManagedClustersResetAADProfile.json | 18 +
...dClustersResetServicePrincipalProfile.json | 16 +
...agedClustersRotateClusterCertificates.json | 12 +
.../examples/ManagedClustersUpdateTags.json | 68 +
.../stable/2020-04-01/managedClusters.json | 2609 ++++++
.../resource-manager/readme.go.md | 11 +
.../resource-manager/readme.java.md | 14 +
.../resource-manager/readme.md | 27 +-
.../resource-manager/readme.python.md | 12 +
.../2019-02-02/examples/TableCreate.json | 22 +
.../2019-02-02/examples/TableDelete.json | 10 +
.../examples/TableDeleteEntity.json | 14 +
.../preview/2019-02-02/examples/TableGet.json | 23 +
.../examples/TableInsertEntity.json | 48 +
.../2019-02-02/examples/TableMergeEntity.json | 27 +
.../examples/TableQueryEntities.json | 30 +
...leQueryEntitiesWithPartitionAndRowKey.json | 31 +
.../examples/TableUpdateEntity.json | 27 +
.../preview/2019-02-02/table.json | 1913 +++++
.../cosmos-db/data-plane/readme.go.md | 26 +
specification/cosmos-db/data-plane/readme.md | 248 +
.../cosmos-db/data-plane/readme.nodejs.md | 14 +
.../cosmos-db/data-plane/readme.python.md | 38 +
.../cosmos-db/data-plane/readme.typescript.md | 12 +
.../CosmosDBNotebookWorkspaceCreate.json | 23 +
.../CosmosDBNotebookWorkspaceDelete.json | 13 +
.../CosmosDBNotebookWorkspaceGet.json | 22 +
.../CosmosDBNotebookWorkspaceList.json | 25 +
...DBNotebookWorkspaceListConnectionInfo.json | 17 +
...BNotebookWorkspaceRegenerateAuthToken.json | 13 +
.../CosmosDBNotebookWorkspaceStart.json | 13 +
.../stable/2019-12-12/notebook.json | 461 +
.../CosmosDBNotebookWorkspaceCreate.json | 23 +
.../CosmosDBNotebookWorkspaceDelete.json | 13 +
.../CosmosDBNotebookWorkspaceGet.json | 22 +
.../CosmosDBNotebookWorkspaceList.json | 25 +
...DBNotebookWorkspaceListConnectionInfo.json | 17 +
...BNotebookWorkspaceRegenerateAuthToken.json | 13 +
.../CosmosDBNotebookWorkspaceStart.json | 13 +
.../stable/2020-03-01/notebook.json | 461 +
.../stable/2020-04-01/cosmos-db.json | 7519 +++++++++++++++++
...CosmosDBCassandraKeyspaceCreateUpdate.json | 36 +
.../CosmosDBCassandraKeyspaceDelete.json | 13 +
.../CosmosDBCassandraKeyspaceGet.json | 28 +
.../CosmosDBCassandraKeyspaceList.json | 28 +
...osmosDBCassandraKeyspaceThroughputGet.json | 30 +
...osDBCassandraKeyspaceThroughputUpdate.json | 40 +
.../CosmosDBCassandraTableCreateUpdate.json | 79 +
.../CosmosDBCassandraTableDelete.json | 14 +
.../examples/CosmosDBCassandraTableGet.json | 50 +
.../examples/CosmosDBCassandraTableList.json | 50 +
.../CosmosDBCassandraTableThroughputGet.json | 31 +
...osmosDBCassandraTableThroughputUpdate.json | 39 +
...osmosDBCollectionGetMetricDefinitions.json | 41 +
.../CosmosDBCollectionGetMetrics.json | 55 +
.../examples/CosmosDBCollectionGetUsages.json | 29 +
...CosmosDBCollectionPartitionGetMetrics.json | 57 +
.../CosmosDBCollectionPartitionGetUsages.json | 31 +
...DBCollectionPartitionRegionGetMetrics.json | 58 +
...osmosDBDatabaseAccountCheckNameExists.json | 10 +
.../CosmosDBDatabaseAccountCreateMax.json | 149 +
.../CosmosDBDatabaseAccountCreateMin.json | 81 +
.../CosmosDBDatabaseAccountDelete.json | 12 +
...DatabaseAccountFailoverPriorityChange.json | 24 +
.../examples/CosmosDBDatabaseAccountGet.json | 86 +
...DBDatabaseAccountGetMetricDefinitions.json | 39 +
.../CosmosDBDatabaseAccountGetMetrics.json | 53 +
.../CosmosDBDatabaseAccountGetUsages.json | 27 +
.../examples/CosmosDBDatabaseAccountList.json | 85 +
...sDBDatabaseAccountListByResourceGroup.json | 70 +
...BDatabaseAccountListConnectionStrings.json | 13 +
...baseAccountListConnectionStringsMongo.json | 20 +
.../CosmosDBDatabaseAccountListKeys.json | 18 +
...smosDBDatabaseAccountListReadOnlyKeys.json | 16 +
.../CosmosDBDatabaseAccountOfflineRegion.json | 18 +
.../CosmosDBDatabaseAccountOnlineRegion.json | 18 +
.../CosmosDBDatabaseAccountPatch.json | 129 +
.../CosmosDBDatabaseAccountRegenerateKey.json | 15 +
...smosDBDatabaseAccountRegionGetMetrics.json | 54 +
.../CosmosDBDatabaseGetMetricDefinitions.json | 40 +
.../examples/CosmosDBDatabaseGetMetrics.json | 54 +
.../examples/CosmosDBDatabaseGetUsages.json | 28 +
.../CosmosDBGremlinDatabaseCreateUpdate.json | 39 +
.../CosmosDBGremlinDatabaseDelete.json | 13 +
.../examples/CosmosDBGremlinDatabaseGet.json | 28 +
.../examples/CosmosDBGremlinDatabaseList.json | 31 +
.../CosmosDBGremlinDatabaseThroughputGet.json | 30 +
...smosDBGremlinDatabaseThroughputUpdate.json | 40 +
.../CosmosDBGremlinGraphCreateUpdate.json | 124 +
.../examples/CosmosDBGremlinGraphDelete.json | 14 +
.../examples/CosmosDBGremlinGraphGet.json | 69 +
.../examples/CosmosDBGremlinGraphList.json | 72 +
.../CosmosDBGremlinGraphThroughputGet.json | 31 +
.../CosmosDBGremlinGraphThroughputUpdate.json | 41 +
...CosmosDBMongoDBCollectionCreateUpdate.json | 71 +
.../CosmosDBMongoDBCollectionDelete.json | 14 +
.../CosmosDBMongoDBCollectionGet.json | 46 +
.../CosmosDBMongoDBCollectionList.json | 46 +
...osmosDBMongoDBCollectionThroughputGet.json | 31 +
...osDBMongoDBCollectionThroughputUpdate.json | 41 +
.../CosmosDBMongoDBDatabaseCreateUpdate.json | 36 +
.../CosmosDBMongoDBDatabaseDelete.json | 13 +
.../examples/CosmosDBMongoDBDatabaseGet.json | 28 +
.../examples/CosmosDBMongoDBDatabaseList.json | 28 +
.../CosmosDBMongoDBDatabaseThroughputGet.json | 30 +
...smosDBMongoDBDatabaseThroughputUpdate.json | 40 +
.../CosmosDBNotebookWorkspaceCreate.json | 23 +
.../CosmosDBNotebookWorkspaceDelete.json | 13 +
.../CosmosDBNotebookWorkspaceGet.json | 22 +
.../CosmosDBNotebookWorkspaceList.json | 25 +
...DBNotebookWorkspaceListConnectionInfo.json | 17 +
...BNotebookWorkspaceRegenerateAuthToken.json | 13 +
.../CosmosDBNotebookWorkspaceStart.json | 13 +
.../examples/CosmosDBOperationsList.json | 22 +
.../CosmosDBPKeyRangeIdGetMetrics.json | 58 +
.../CosmosDBPKeyRangeIdRegionGetMetrics.json | 59 +
.../CosmosDBPercentileGetMetrics.json | 61 +
...mosDBPercentileSourceTargetGetMetrics.json | 41 +
.../CosmosDBPercentileTargetGetMetrics.json | 62 +
.../CosmosDBRegionCollectionGetMetrics.json | 56 +
.../CosmosDBSqlContainerCreateUpdate.json | 124 +
.../examples/CosmosDBSqlContainerDelete.json | 14 +
.../examples/CosmosDBSqlContainerGet.json | 74 +
.../examples/CosmosDBSqlContainerList.json | 74 +
.../CosmosDBSqlContainerThroughputGet.json | 31 +
.../CosmosDBSqlContainerThroughputUpdate.json | 41 +
.../CosmosDBSqlDatabaseCreateUpdate.json | 39 +
.../examples/CosmosDBSqlDatabaseDelete.json | 13 +
.../examples/CosmosDBSqlDatabaseGet.json | 30 +
.../examples/CosmosDBSqlDatabaseList.json | 33 +
.../CosmosDBSqlDatabaseThroughputGet.json | 30 +
.../CosmosDBSqlDatabaseThroughputUpdate.json | 40 +
...osmosDBSqlStoredProcedureCreateUpdate.json | 39 +
.../CosmosDBSqlStoredProcedureDelete.json | 15 +
.../CosmosDBSqlStoredProcedureGet.json | 29 +
.../CosmosDBSqlStoredProcedureList.json | 32 +
.../CosmosDBSqlTriggerCreateUpdate.json | 43 +
.../examples/CosmosDBSqlTriggerDelete.json | 15 +
.../examples/CosmosDBSqlTriggerGet.json | 31 +
.../examples/CosmosDBSqlTriggerList.json | 34 +
...sDBSqlUserDefinedFunctionCreateUpdate.json | 39 +
.../CosmosDBSqlUserDefinedFunctionDelete.json | 15 +
.../CosmosDBSqlUserDefinedFunctionGet.json | 29 +
.../CosmosDBSqlUserDefinedFunctionList.json | 32 +
.../examples/CosmosDBTableCreateUpdate.json | 35 +
.../examples/CosmosDBTableDelete.json | 13 +
.../2020-04-01/examples/CosmosDBTableGet.json | 28 +
.../examples/CosmosDBTableList.json | 28 +
.../examples/CosmosDBTableThroughputGet.json | 30 +
.../CosmosDBTableThroughputUpdate.json | 40 +
.../stable/2020-04-01/notebook.json | 461 +
.../cosmos-db/resource-manager/readme.md | 31 +-
.../stable/2019-11-01/costmanagement.json | 2236 +++--
.../examples/DismissResourceGroupAlerts.json | 59 +
.../examples/DismissSubscriptionAlerts.json | 58 +
.../2019-11-01/examples/PrivateView.json | 69 +
.../examples/PrivateViewCreateOrUpdate.json | 185 +
.../examples/PrivateViewDelete.json | 10 +
.../2019-11-01/examples/PrivateViewList.json | 131 +
.../examples/SingleResourceGroupAlert.json | 54 +
.../examples/SingleSubscriptionAlert.json | 53 +
.../examples/ViewByResourceGroup.json | 70 +
.../ViewCreateOrUpdateByResourceGroup.json | 186 +
.../examples/ViewDeleteByResourceGroup.json | 11 +
.../examples/ViewListByResourceGroup.json | 132 +
.../resource-manager/readme.az.md | 15 +
.../resource-manager/readme.cli.md | 1 +
.../resource-manager/readme.md | 32 +-
.../resource-manager/readme.python.md | 29 +
.../preview/2020-05-01-preview/cpim.json | 505 ++
.../examples/GuestUsagesCreate.json | 29 +
.../examples/GuestUsagesDelete.json | 11 +
.../examples/GuestUsagesGet.json | 22 +
.../examples/GuestUsagesResourceGroupGet.json | 23 +
.../examples/GuestUsagesSubscriptionGet.json | 22 +
.../examples/GuestUsagesUpdate.json | 29 +
.../examples/OperationsList.json | 87 +
.../cpim/resource-manager/readme.csharp.md | 15 +
.../cpim/resource-manager/readme.go.md | 19 +
specification/cpim/resource-manager/readme.md | 104 +
.../cpim/resource-manager/readme.python.md | 21 +
.../cpim/resource-manager/readme.ruby.md | 19 +
.../resource-manager/readme.typescript.md | 13 +
.../resource-manager/readme.md | 30 +
.../databox/resource-manager/readme.az.md | 12 +
.../databox/resource-manager/readme.md | 28 +-
.../databox/resource-manager/readme.python.md | 28 +
.../databoxedge/resource-manager/readme.az.md | 12 +
.../databoxedge/resource-manager/readme.md | 1 +
.../stable/2018-04-01/databricks.json | 347 +
.../WorkspaceVirtualNetPeeringGet.json | 43 +
.../WorkspaceVirtualNetPeeringList.json | 45 +
...ceVirtualNetworkPeeringCreateOrUpdate.json | 84 +
.../WorkspaceVirtualNetworkPeeringDelete.json | 14 +
.../stable/2018-06-01/datafactory.json | 41 +
.../2018-06-01/entityTypes/DataFlow.json | 16 +
.../2018-06-01/entityTypes/Dataset.json | 91 +
.../2018-06-01/entityTypes/Pipeline.json | 171 +-
.../examples/ConsumerInvitations_Get.json | 2 +-
.../ConsumerInvitations_ListInvitations.json | 2 +-
.../ConsumerInvitations_RejectInvitation.json | 2 +-
...ProviderShareSubscriptions_GetByShare.json | 8 +-
...roviderShareSubscriptions_ListByShare.json | 6 +-
.../ProviderShareSubscriptions_Reinstate.json | 8 +-
.../ProviderShareSubscriptions_Revoke.json | 15 +-
.../examples/ConsumerInvitations_Get.json | 2 +-
.../ConsumerInvitations_ListInvitations.json | 2 +-
.../ConsumerInvitations_RejectInvitation.json | 2 +-
...ProviderShareSubscriptions_GetByShare.json | 8 +-
...roviderShareSubscriptions_ListByShare.json | 6 +-
.../ProviderShareSubscriptions_Reinstate.json | 8 +-
.../ProviderShareSubscriptions_Revoke.json | 15 +-
.../resource-manager/readme.typescript.md | 13 +
.../desktopvirtualization.json | 94 +-
.../desktopvirtualization.json | 94 +-
.../desktopvirtualization.json | 108 +-
.../examples/HostPool_Create.json | 6 +-
.../examples/HostPool_Update.json | 1 +
.../resource-manager/readme.az.md | 22 +
.../resource-manager/readme.cli.md | 17 +
.../resource-manager/readme.go.md | 21 +
.../resource-manager/readme.java.md | 13 +-
.../resource-manager/readme.md | 44 +-
.../resource-manager/readme.python.md | 8 +-
.../resource-manager/readme.ruby.md | 30 +-
.../resource-manager/readme.cli.md | 43 +
.../devops/resource-manager/readme.md | 15 +
.../2020-05-31-preview/digitaltwins.json | 1497 ++++
.../CreateRelationshipAdvancedExample.json | 25 +
.../CreateRelationshipBasicExample.json | 21 +
.../examples/DeleteModel.json | 9 +
.../examples/DeleteRelationship.json | 10 +
.../examples/DeleteTwin.json | 9 +
.../examples/EventRouteDelete.json | 9 +
.../examples/EventRouteGet.json | 15 +
.../examples/EventRoutePut.json | 13 +
.../examples/EventRoutePutWithFilter.json | 13 +
.../examples/EventRoutesList.json | 24 +
.../examples/GetComponent.json | 53 +
.../examples/GetIncomingRelationship.json | 27 +
.../examples/GetRelationship.json | 29 +
.../examples/GetRelationshipById.json | 18 +
.../GetRelationshipByRelationshipName.json | 30 +
.../2020-05-31-preview/examples/GetTwin.json | 53 +
.../2020-05-31-preview/examples/ModelAdd.json | 47 +
.../examples/ModelGetById.json | 15 +
...odelGetByIdWithIncludeModelDefinition.json | 41 +
.../examples/ModelUpdateDecommissioned.json | 16 +
.../examples/ModelsGet.json | 35 +
...DependenciesAndIncludeModelDefinition.json | 70 +
.../PatchComponentAdvancedExample.json | 27 +
.../examples/PatchComponentBasicExample.json | 18 +
.../PatchRelationshipAdvancedExample.json | 26 +
.../PatchRelationshipBasicExample.json | 17 +
.../examples/PatchTwinAdvancedExample.json | 26 +
.../examples/PatchTwinBasicExample.json | 17 +
.../examples/PutTwinAdvancedExample.json | 71 +
.../examples/PutTwinBasicExample.json | 22 +
.../examples/QueryFirstPage.json | 44 +
.../examples/QueryJoin.json | 56 +
.../examples/QueryNextPage.json | 43 +
.../examples/SendTelemetry.json | 14 +
.../examples/SendTelemetryFromComponent.json | 15 +
.../digitaltwins/data-plane/readme.csharp.md | 15 +
.../digitaltwins/data-plane/readme.go.md | 19 +
.../digitaltwins/data-plane/readme.md | 79 +
.../digitaltwins/data-plane/readme.python.md | 21 +
.../digitaltwins/data-plane/readme.ruby.md | 19 +
.../data-plane/readme.typescript.md | 13 +
.../2020-03-01-preview/digitaltwins.json | 312 +-
.../examples/DigitalTwinsDelete_example.json | 3 -
.../examples/DigitalTwinsGet_example.json | 3 -
.../DigitalTwinsIoTHubDelete_example.json | 23 -
.../DigitalTwinsIoTHubGet_example.json | 21 -
.../DigitalTwinsIoTHubPut_example.json | 26 -
.../DigitalTwinsIoTHubsGet_example.json | 36 -
...gitalTwinsListByResourceGroup_example.json | 6 -
.../examples/DigitalTwinsList_example.json | 6 -
.../examples/DigitalTwinsPatch_example.json | 3 -
.../examples/DigitalTwinsPut_example.json | 11 +-
.../resource-manager/readme.go.md | 7 +
.../Microsoft.Web/stable/2018-01-01/Web.json | 594 ++
specification/eventgrid/data-plane/readme.md | 2 +
.../preview/2020-04-01-preview/EventGrid.json | 102 +-
.../stable/2020-06-01/EventGrid.json | 4496 ++++++++++
.../examples/DomainTopics_CreateOrUpdate.json | 21 +
.../examples/DomainTopics_Delete.json | 13 +
.../2020-06-01/examples/DomainTopics_Get.json | 21 +
.../examples/DomainTopics_ListByDomain.json | 32 +
.../examples/Domains_CreateOrUpdate.json | 57 +
.../2020-06-01/examples/Domains_Delete.json | 12 +
.../2020-06-01/examples/Domains_Get.json | 26 +
.../examples/Domains_ListByResourceGroup.json | 43 +
.../examples/Domains_ListBySubscription.json | 42 +
.../Domains_ListSharedAccessKeys.json | 16 +
.../examples/Domains_RegenerateKey.json | 19 +
.../2020-06-01/examples/Domains_Update.json | 57 +
...ateForCustomTopic_EventHubDestination.json | 61 +
...stomTopic_HybridConnectionDestination.json | 61 +
...orCustomTopic_StorageQueueDestination.json | 63 +
...dateForCustomTopic_WebhookDestination.json | 46 +
...bscriptions_CreateOrUpdateForResource.json | 46 +
...ptions_CreateOrUpdateForResourceGroup.json | 46 +
...iptions_CreateOrUpdateForSubscription.json | 44 +
...entSubscriptions_DeleteForCustomTopic.json | 12 +
.../EventSubscriptions_DeleteForResource.json | 12 +
...tSubscriptions_DeleteForResourceGroup.json | 12 +
...ntSubscriptions_DeleteForSubscription.json | 12 +
.../EventSubscriptions_GetForCustomTopic.json | 35 +
.../EventSubscriptions_GetForResource.json | 35 +
...ventSubscriptions_GetForResourceGroup.json | 35 +
...EventSubscriptions_GetForSubscription.json | 35 +
...ubscriptions_GetFullUrlForCustomTopic.json | 14 +
...ntSubscriptions_GetFullUrlForResource.json | 14 +
...scriptions_GetFullUrlForResourceGroup.json | 14 +
...bscriptions_GetFullUrlForSubscription.json | 14 +
.../EventSubscriptions_ListByDomainTopic.json | 78 +
.../EventSubscriptions_ListByResource.json | 79 +
...bscriptions_ListGlobalByResourceGroup.json | 55 +
...ListGlobalByResourceGroupForTopicType.json | 40 +
...ubscriptions_ListGlobalBySubscription.json | 54 +
..._ListGlobalBySubscriptionForTopicType.json | 39 +
...criptions_ListRegionalByResourceGroup.json | 64 +
...stRegionalByResourceGroupForTopicType.json | 65 +
...scriptions_ListRegionalBySubscription.json | 63 +
...istRegionalBySubscriptionForTopicType.json | 64 +
...entSubscriptions_UpdateForCustomTopic.json | 52 +
.../EventSubscriptions_UpdateForResource.json | 49 +
...tSubscriptions_UpdateForResourceGroup.json | 49 +
...ntSubscriptions_UpdateForSubscription.json | 49 +
.../2020-06-01/examples/Operations_List.json | 83 +
.../PrivateEndpointConnections_Delete.json | 14 +
.../PrivateEndpointConnections_Get.json | 33 +
...ateEndpointConnections_ListByResource.json | 36 +
.../PrivateEndpointConnections_Update.json | 63 +
.../examples/PrivateLinkResources_Get.json | 29 +
.../PrivateLinkResources_ListByResource.json | 32 +
.../2020-06-01/examples/TopicTypes_Get.json | 22 +
.../2020-06-01/examples/TopicTypes_List.json | 37 +
.../examples/TopicTypes_ListEventTypes.json | 34 +
.../examples/Topics_CreateOrUpdate.json | 57 +
.../2020-06-01/examples/Topics_Delete.json | 12 +
.../2020-06-01/examples/Topics_Get.json | 26 +
.../examples/Topics_ListByResourceGroup.json | 43 +
.../examples/Topics_ListBySubscription.json | 42 +
.../examples/Topics_ListEventTypes.json | 38 +
.../examples/Topics_ListSharedAccessKeys.json | 16 +
.../examples/Topics_RegenerateKey.json | 19 +
.../2020-06-01/examples/Topics_Update.json | 57 +
.../eventgrid/resource-manager/readme.go.md | 11 +-
.../eventgrid/resource-manager/readme.java.md | 15 +
.../eventgrid/resource-manager/readme.md | 18 +-
.../eventgrid/resource-manager/readme.ruby.md | 11 +
.../AvailableClusterRegions-preview.json | 4 +-
.../2018-01-01-preview/Clusters-preview.json | 32 +-
.../examples/Clusters/ClusterGet.json | 4 +-
.../examples/Clusters/ClusterPatch.json | 8 +-
.../examples/Clusters/ClusterPut.json | 10 +-
.../Clusters/ClustersListByResourceGroup.json | 4 +-
.../ipfilterrules-preview.json | 8 +-
.../namespaces-preview.json | 17 +-
.../networkrulessets-preview.json | 4 +-
.../quotaConfiguration-preview.json | 4 +-
.../virtualnetworkrules-preview.json | 8 +-
.../stable/2017-04-01/AuthorizationRules.json | 26 +-
.../2017-04-01/CheckNameAvailability.json | 2 +-
.../2017-04-01/disasterRecoveryConfigs.json | 2 +-
.../stable/2017-04-01/namespaces.json | 2 +-
.../stable/2017-04-01/networkRuleSets.json | 6 +-
.../eventhub/resource-manager/readme.md | 1 +
.../stable/2020-01-01/frontdoor.json | 2 +-
.../CheckFrontdoorNameAvailability.json | 18 +
...tdoorNameAvailabilityWithSubscription.json | 19 +
.../2020-04-01/examples/FrontdoorCreate.json | 568 ++
.../2020-04-01/examples/FrontdoorDelete.json | 12 +
.../examples/FrontdoorDisableHttps.json | 13 +
.../examples/FrontdoorEnableHttps.json | 25 +
.../FrontdoorFrontendEndpointGet.json | 25 +
.../FrontdoorFrontendEndpointList.json | 28 +
.../2020-04-01/examples/FrontdoorGet.json | 214 +
.../2020-04-01/examples/FrontdoorList.json | 217 +
.../2020-04-01/examples/FrontdoorListAll.json | 215 +
.../examples/FrontdoorPurgeContent.json | 18 +
.../examples/FrontdoorRulesEngineCreate.json | 281 +
.../examples/FrontdoorRulesEngineDelete.json | 13 +
.../examples/FrontdoorRulesEngineGet.json | 105 +
.../examples/FrontdoorRulesEngineList.json | 108 +
.../FrontdoorValidateCustomDomain.json | 20 +
.../examples/WafListManagedRuleSets.json | 69 +
.../2020-04-01/examples/WafListPolicies.json | 130 +
.../examples/WafPolicyCreateOrUpdate.json | 492 ++
.../2020-04-01/examples/WafPolicyDelete.json | 13 +
.../2020-04-01/examples/WafPolicyGet.json | 127 +
.../stable/2020-04-01/frontdoor.json | 2350 ++++++
.../stable/2020-04-01/network.json | 167 +
.../2020-04-01/webapplicationfirewall.json | 902 ++
.../2020-05-01/examples/FrontdoorCreate.json | 20 +-
.../2020-05-01/examples/FrontdoorGet.json | 5 +-
.../2020-05-01/examples/FrontdoorList.json | 5 +-
.../2020-05-01/examples/FrontdoorListAll.json | 5 +-
.../examples/WafListManagedRuleSets.json | 69 +
.../2020-05-01/examples/WafListPolicies.json | 130 +
.../examples/WafPolicyCreateOrUpdate.json | 492 ++
.../2020-05-01/examples/WafPolicyDelete.json | 13 +
.../2020-05-01/examples/WafPolicyGet.json | 127 +
.../stable/2020-05-01/frontdoor.json | 12 +-
.../2020-05-01/webapplicationfirewall.json | 902 ++
.../frontdoor/resource-manager/readme.go.md | 10 +
.../frontdoor/resource-manager/readme.md | 26 +-
.../common/v1/definitions.json | 27 +-
...pdateGuestConfigurationHCRPAssignment.json | 104 +
...eleteGuestConfigurationHCRPAssignment.json | 12 +
.../getGuestConfigurationHCRPAssignment.json | 36 +
...ConfigurationHCRPAssignmentReportById.json | 95 +
...estConfigurationHCRPAssignmentReports.json | 60 +
...listGuestConfigurationHCRPAssignments.json | 59 +
.../stable/2018-11-20/guestconfiguration.json | 367 +-
.../resource-manager/readme.az.md | 21 +
.../resource-manager/readme.cli.md | 9 +
.../resource-manager/readme.md | 11 +
.../resource-manager/readme.python.md | 27 +
.../examples/HanaOperations_List.json | 33 +
.../examples/ProviderInstances_Create.json | 6 +-
.../2020-02-07-preview/hanaonazure.json | 137 +-
.../hanaonazure/resource-manager/readme.md | 2 +-
.../resource-manager/readme.cli.md | 2 +-
.../resource-manager/readme.md | 13 +
.../examples/HDI_Job_DeleteSparkBatch.json | 14 +
.../HDI_Job_DeleteSparkSessionJob.json | 14 +
.../HDI_Job_DeleteSparkStatementJob.json | 14 +
.../examples/HDI_Job_Get.json | 4 +-
.../examples/HDI_Job_GetAppState.json | 2 +-
.../examples/HDI_Job_GetSparkBatchJob.json | 31 +
.../examples/HDI_Job_GetSparkBatchLog.json | 29 +
.../examples/HDI_Job_GetSparkBatchState.json | 14 +
.../examples/HDI_Job_GetSparkSessionJob.json | 34 +
.../examples/HDI_Job_GetSparkSessionLog.json | 29 +
.../HDI_Job_GetSparkSessionState.json | 14 +
.../HDI_Job_GetSparkStatementJob.json | 24 +
.../examples/HDI_Job_Kill.json | 7 +-
.../examples/HDI_Job_List.json | 2 +-
.../examples/HDI_Job_ListAfterJobId.json | 2 +-
.../examples/HDI_Job_ListSparkBatchJob.json | 38 +
.../examples/HDI_Job_ListSparkSessionJob.json | 41 +
.../HDI_Job_ListSparkStatementJob.json | 40 +
.../examples/HDI_Job_SubmitHiveJob.json | 2 +-
.../examples/HDI_Job_SubmitMapReduceJob.json | 2 +-
.../HDI_Job_SubmitMapReduceStreamingJob.json | 2 +-
.../examples/HDI_Job_SubmitPigJob.json | 2 +-
.../examples/HDI_Job_SubmitSparkBatchJob.json | 47 +
.../HDI_Job_SubmitSparkSessionJob.json | 44 +
.../HDI_Job_SubmitSparkStatementJob.json | 22 +
.../examples/HDI_Job_SubmitSqoopJob.json | 2 +-
.../preview/2018-11-01-preview/job.json | 12 +-
.../preview/2018-11-01-preview/livySpark.json | 1121 +++
specification/hdinsight/data-plane/readme.md | 11 +
.../examples/GetClusterVirtualMachines.json | 60 +-
.../2018-06-01-preview/virtualMachines.json | 11 +-
.../2018-08-20-preview/healthcare-apis.json | 6 +-
.../stable/2019-09-16/healthcare-apis.json | 6 +-
.../2020-01-01-preview/connectedClusters.json | 2 +-
.../resource-manager/readme.go.md | 7 +
.../stable/2020-02-14/imagebuilder.json | 2 +-
.../resource-manager/readme.go.md | 10 +
.../examples/modules_commands_send.json | 26 +
.../examples/modules_commandshistory_get.json | 24 +
.../modules_properties_components_get.json | 32 +
.../modules_properties_components_set.json | 31 +
.../examples/modules_properties_get.json | 33 +
.../examples/modules_properties_update.json | 34 +
.../examples/modules_telemetry_get.json | 23 +
.../2019-10-28-preview/iotcentral.json | 411 +-
.../examples/IotHub_ManualFailover.json | 15 +
.../examples/checkNameAvailability.json | 20 +
.../iothub_certificatescreateorupdate.json | 46 +
.../examples/iothub_certificatesdelete.json | 14 +
.../examples/iothub_certverify.json | 31 +
.../examples/iothub_createOrUpdate.json | 226 +
.../examples/iothub_createconsumergroup.json | 23 +
.../2020-04-01/examples/iothub_delete.json | 164 +
.../examples/iothub_deleteconsumergroup.json | 13 +
...othub_deleteprivateendpointconnection.json | 46 +
.../examples/iothub_exportdevices.json | 23 +
.../iothub_generateverificationcode.json | 26 +
.../2020-04-01/examples/iothub_get.json | 96 +
.../examples/iothub_getcertificate.json | 27 +
.../examples/iothub_getconsumergroup.json | 23 +
.../2020-04-01/examples/iothub_getjob.json | 20 +
.../2020-04-01/examples/iothub_getkey.json | 19 +
.../iothub_getprivateendpointconnection.json | 28 +
.../iothub_getprivatelinkresources.json | 27 +
.../2020-04-01/examples/iothub_getskus.json | 53 +
.../examples/iothub_importdevices.json | 23 +
.../2020-04-01/examples/iothub_listbyrg.json | 90 +
.../examples/iothub_listbysubscription.json | 89 +
.../examples/iothub_listcertificates.json | 30 +
.../examples/iothub_listehgroups.json | 26 +
.../2020-04-01/examples/iothub_listjobs.json | 23 +
.../2020-04-01/examples/iothub_listkeys.json | 46 +
...iothub_listprivateendpointconnections.json | 29 +
.../iothub_listprivatelinkresources.json | 30 +
.../examples/iothub_operations.json | 328 +
.../2020-04-01/examples/iothub_patch.json | 95 +
.../examples/iothub_quotametrics.json | 26 +
.../iothub_routingendpointhealth.json | 34 +
.../2020-04-01/examples/iothub_stats.json | 17 +
.../examples/iothub_testallroutes.json | 38 +
.../examples/iothub_testnewroute.json | 52 +
...othub_updateprivateendpointconnection.json | 53 +
.../2020-04-01/examples/iothub_usages.json | 25 +
.../stable/2020-04-01/iothub.json | 4168 +++++++++
.../iothub/resource-manager/readme.md | 13 +-
.../preview/7.2/backuprestore.json | 119 +
.../7.2/examples/ExportKey-example.json | 54 +
.../7.2/examples/FullBackup-example.json | 1 +
.../examples/FullBackup-pending-example.json | 1 +
.../7.2/examples/FullRestore-example.json | 3 +-
.../examples/FullRestore-pending-example.json | 1 +
.../examples/SelectiveRestore-example.json | 29 +
.../Microsoft.KeyVault/preview/7.2/keys.json | 190 +-
specification/keyvault/data-plane/readme.md | 36 +
.../logic/resource-manager/readme.az.md | 11 -
.../logic/resource-manager/readme.md | 15 +
.../2020-04-01-preview/examples/ListSkus.json | 79 +
.../examples/ListUsages.json | 400 +
.../examples/ListVMSizesResult.json | 455 +
.../examples/ListWorkspaceFeatures.json | 26 +
.../ListWorkspaceQuotasByVMFamily.json | 415 +
.../examples/amlComputeListNodes.json | 34 +
.../examples/createBasicAKSCompute.json | 44 +
.../examples/createBasicAmlCompute.json | 54 +
.../createBasicDataFactoryCompute.json | 44 +
.../examples/createLinkedWorkspace.json | 29 +
.../examples/createWorkspace.json | 140 +
.../examples/deleteCompute.json | 19 +
.../examples/deleteLinkedWorkspace.json | 13 +
.../examples/deleteWorkspace.json | 12 +
.../examples/getAKSCompute.json | 25 +
.../examples/getAmlCompute.json | 49 +
.../examples/getComputes.json | 41 +
.../examples/getLinkedWorkspace.json | 22 +
.../examples/getWorkspace.json | 74 +
.../getWorkspacesByResourceGroup.json | 56 +
.../examples/getWorkspacesBySubscription.json | 55 +
.../examples/listKeysAKSCompute.json | 19 +
.../examples/listLinkedWorkspaces.json | 32 +
.../examples/listWorkspaceKeys.json | 31 +
.../examples/patchAmlCompute.json | 36 +
.../examples/resyncWorkspaceKeys.json | 11 +
.../examples/updateAKSCompute.json | 53 +
.../examples/updateAmlCompute.json | 54 +
.../examples/updateQuota.json | 45 +
.../examples/updateWorkspace.json | 42 +
...kspaceDeletePrivateEndpointConnection.json | 14 +
...workspaceGetPrivateEndpointConnection.json | 30 +
.../workspaceListPrivateLinkResources.json | 28 +
...workspacePutPrivateEndpointConnection.json | 38 +
.../machineLearningServices.json | 3592 ++++++++
.../2020-03-01/examples/createWorkspace.json | 20 +-
.../2020-03-01/examples/getWorkspace.json | 10 +-
.../examples/listWorkspaceKeys.json | 4 +
.../2020-03-01/examples/updateAKSCompute.json | 1 -
.../2020-03-01/examples/updateAmlCompute.json | 12 +-
.../examples/workspacePrepareNotebook.json | 21 +
.../2020-03-01/machineLearningServices.json | 95 +
.../examples/createBasicAmlCompute.json | 2 +-
.../2020-04-01/examples/getAmlCompute.json | 2 +-
.../2020-04-01/examples/updateAmlCompute.json | 2 +-
.../2020-04-01/machineLearningServices.json | 2 +-
.../resource-manager/readme.md | 24 +
.../DeleteRegistrationAssignment.json | 12 +
.../DeleteRegistrationDefinition.json | 11 +
.../GetMarketplaceRegistrationDefinition.json | 35 +
...GetMarketplaceRegistrationDefinitions.json | 39 +
.../examples/GetOperations.json | 22 +
.../examples/GetRegistrationAssignment.json | 58 +
.../examples/GetRegistrationAssignments.json | 59 +
.../examples/GetRegistrationDefinition.json | 46 +
.../examples/GetRegistrationDefinitions.json | 49 +
.../examples/PutRegistrationAssignment.json | 36 +
.../examples/PutRegistrationDefinition.json | 113 +
.../2020-02-01-preview/managedservices.json | 1038 +++
.../resource-manager/readme.md | 14 +-
.../mariadb/resource-manager/readme.go.md | 9 -
.../stable/2018-07-01/Accounts.json | 108 +
.../accounts-list-media-edge-policies.json | 27 +
.../2020-01-01/examples/Operations_List.json | 54 +
.../stable/2020-01-01/migrate.json | 110 +-
.../examples/SpatialAnchorsAccount/Patch.json | 3 +-
.../examples/remote-rendering/Patch.json | 3 +-
.../examples/spatial-anchors/Patch.json | 3 +-
.../preview/2020-04-06-preview/common.json | 166 +
...eckNameAvailabilityForLocalUniqueness.json | 20 +
.../proxy/ExposingAvailableOperations.json | 50 +
.../examples/remote-rendering/Delete.json | 12 +
.../examples/remote-rendering/Get.json | 26 +
.../remote-rendering/GetByResourceGroup.json | 44 +
.../remote-rendering/GetBySubscription.json | 43 +
.../examples/remote-rendering/ListKeys.json | 16 +
.../examples/remote-rendering/Patch.json | 39 +
.../examples/remote-rendering/Put.json | 48 +
.../remote-rendering/RegenerateKey.json | 19 +
.../preview/2020-04-06-preview/proxy.json | 254 +
.../2020-04-06-preview/remote-rendering.json | 435 +
.../stable/2020-05-01/common.json | 166 +
...eckNameAvailabilityForLocalUniqueness.json | 20 +
.../proxy/ExposingAvailableOperations.json | 50 +
.../examples/spatial-anchors/Delete.json | 12 +
.../examples/spatial-anchors/Get.json | 23 +
.../spatial-anchors/GetByResourceGroup.json | 38 +
.../spatial-anchors/GetBySubscription.json | 37 +
.../examples/spatial-anchors/ListKeys.json | 16 +
.../examples/spatial-anchors/Patch.json | 33 +
.../examples/spatial-anchors/Put.json | 39 +
.../spatial-anchors/RegenerateKey.json | 19 +
.../stable/2020-05-01/proxy.json | 254 +
.../stable/2020-05-01/spatial-anchors.json | 428 +
.../resource-manager/readme.go.md | 10 +
.../resource-manager/readme.java.md | 33 +
.../mixedreality/resource-manager/readme.md | 45 +-
.../monitor/resource-manager/readme.md | 2 +
.../monitor/resource-manager/readme.python.md | 6 +
.../stable/2017-12-01/mysql.json | 14 +-
.../mysql/resource-manager/readme.go.md | 10 +
...ilableSslOptionsPredefinedPoliciesGet.json | 69 +-
.../stable/2018-07-01/publicIpPrefix.json | 15 +-
.../stable/2018-08-01/publicIpPrefix.json | 15 +-
.../stable/2018-10-01/publicIpPrefix.json | 15 +-
.../stable/2018-11-01/publicIpPrefix.json | 15 +-
...NetworkWatcherConnectionMonitorCreate.json | 70 +
...NetworkWatcherConnectionMonitorDelete.json | 13 +
.../NetworkWatcherConnectionMonitorGet.json | 35 +
.../NetworkWatcherConnectionMonitorList.json | 60 +
.../NetworkWatcherConnectionMonitorQuery.json | 77 +
.../NetworkWatcherConnectionMonitorStart.json | 13 +
.../NetworkWatcherConnectionMonitorStop.json | 13 +
...orkWatcherConnectionMonitorUpdateTags.json | 45 +
.../networkWatcherConnectionMonitorV1.json | 791 ++
...NetworkWatcherConnectionMonitorCreate.json | 70 +
...NetworkWatcherConnectionMonitorDelete.json | 13 +
.../NetworkWatcherConnectionMonitorGet.json | 35 +
.../NetworkWatcherConnectionMonitorList.json | 60 +
.../NetworkWatcherConnectionMonitorQuery.json | 77 +
.../NetworkWatcherConnectionMonitorStart.json | 13 +
.../NetworkWatcherConnectionMonitorStop.json | 13 +
...orkWatcherConnectionMonitorUpdateTags.json | 45 +
.../networkWatcherConnectionMonitorV1.json | 791 ++
...NetworkWatcherConnectionMonitorCreate.json | 70 +
...NetworkWatcherConnectionMonitorDelete.json | 13 +
.../NetworkWatcherConnectionMonitorGet.json | 35 +
.../NetworkWatcherConnectionMonitorList.json | 60 +
.../NetworkWatcherConnectionMonitorQuery.json | 77 +
.../NetworkWatcherConnectionMonitorStart.json | 13 +
.../NetworkWatcherConnectionMonitorStop.json | 13 +
...orkWatcherConnectionMonitorUpdateTags.json | 45 +
.../networkWatcherConnectionMonitorV1.json | 791 ++
.../2020-04-01/examples/P2SVpnGatewayGet.json | 3 -
.../P2SVpnGatewayGetConnectionHealth.json | 3 -
.../examples/P2SVpnGatewayList.json | 6 -
.../P2SVpnGatewayListByResourceGroup.json | 6 -
.../2020-04-01/examples/P2SVpnGatewayPut.json | 14 +-
.../examples/P2SVpnGatewayUpdateTags.json | 3 -
.../stable/2020-04-01/virtualWan.json | 7 -
.../network/resource-manager/readme.go.md | 9 +
.../network/resource-manager/readme.java.md | 14 +
.../network/resource-manager/readme.md | 12 +-
.../network/resource-manager/readme.python.md | 15 +
.../preview/2017-10-01/swagger.json | 4 +-
.../stable/v1/OperationalInsights.json | 4 +-
.../AvailableServiceTiers.json | 3 +-
.../2020-03-01-preview/DataSources.json | 2 +-
.../2020-03-01-preview/SavedSearches.json | 12 +-
.../preview/2020-03-01-preview/Tables.json | 241 +
.../2020-03-01-preview/Workspaces.json | 130 +-
.../examples/DataSourcesCreate.json | 4 +-
.../examples/DataSourcesGet.json | 2 +-
.../examples/DataSourcesListByWorkspace.json | 400 +-
.../SavedSearchesListByWorkspace.json | 2 +-
.../examples/TablesGet.json | 20 +
.../examples/TablesList.json | 35 +
.../examples/TablesUpdate.json | 25 +
...WorkspacesSavedSearchesCreateOrUpdate.json | 10 +-
.../examples/WorkspacesSavedSearchesGet.json | 6 +-
.../resource-manager/readme.md | 8 +-
.../resource-manager/readme.az.md | 25 +
.../resource-manager/readme.cli.md | 8 +
.../resource-manager/readme.md | 1 +
.../CheckServiceProviderAvailability.json | 15 +
.../examples/CreateDirectPeering.json | 169 +
.../examples/CreateExchangePeering.json | 166 +
.../2020-04-01/examples/CreatePeerAsn.json | 90 +
.../examples/CreatePeeringService.json | 43 +
.../examples/CreatePeeringServicePrefix.json | 45 +
.../CreatePeeringWithExchangeRouteServer.json | 134 +
.../examples/CreateRegisteredAsn.json | 40 +
.../examples/CreateRegisteredPrefix.json | 41 +
.../2020-04-01/examples/DeletePeerAsn.json | 11 +
.../2020-04-01/examples/DeletePeering.json | 12 +
.../examples/DeletePeeringService.json | 12 +
.../examples/DeletePeeringServicePrefix.json | 13 +
.../examples/DeleteRegisteredAsn.json | 13 +
.../examples/DeleteRegisteredPrefix.json | 13 +
.../2020-04-01/examples/GetPeerAsn.json | 38 +
.../2020-04-01/examples/GetPeering.json | 68 +
.../examples/GetPeeringReceivedRoutes.json | 29 +
.../examples/GetPeeringService.json | 23 +
.../examples/GetPeeringServicePrefix.json | 24 +
.../2020-04-01/examples/GetRegisteredAsn.json | 23 +
.../examples/GetRegisteredPrefix.json | 24 +
.../examples/ListDirectPeeringLocations.json | 81 +
.../ListExchangePeeringLocations.json | 73 +
.../examples/ListLegacyPeerings.json | 72 +
.../examples/ListPeerAsnsBySubscription.json | 41 +
.../examples/ListPeeringOperations.json | 243 +
...PeeringServiceCountriesBySubscription.json | 24 +
...PeeringServiceLocationsBySubscription.json | 32 +
.../examples/ListPeeringServiceProviders.json | 30 +
.../ListPeeringServicesByResourceGroup.json | 26 +
.../ListPeeringServicesBySubscription.json | 25 +
.../examples/ListPeeringsByResourceGroup.json | 71 +
.../examples/ListPeeringsBySubscription.json | 70 +
.../ListPrefixesByPeeringService.json | 38 +
.../examples/ListRegisteredAsnsByPeering.json | 45 +
.../ListRegisteredPrefixesByPeering.json | 48 +
.../examples/UpdatePeeringServiceTags.json | 33 +
.../examples/UpdatePeeringTags.json | 78 +
.../stable/2020-04-01/peering.json | 3410 ++++++++
.../peering/resource-manager/readme.az.md | 45 +
.../peering/resource-manager/readme.cli.md | 2 +-
.../peering/resource-manager/readme.go.md | 15 +
.../peering/resource-manager/readme.java.md | 19 +
.../peering/resource-manager/readme.md | 18 +
.../peering/resource-manager/readme.ruby.md | 22 +
.../PolicyEvents_FilterAndAggregateOnly.json | 25 +
...yEvents_FilterAndGroupByWithAggregate.json | 39 +
...ents_FilterAndGroupByWithoutAggregate.json | 37 +
.../PolicyEvents_FilterAndMultipleGroups.json | 64 +
...olicyEvents_QueryManagementGroupScope.json | 83 +
...nts_QueryManagementGroupScopeNextLink.json | 84 +
...PolicyEvents_QueryNestedResourceScope.json | 82 +
...sourceGroupLevelPolicyAssignmentScope.json | 85 +
...oupLevelPolicyAssignmentScopeNextLink.json | 86 +
.../PolicyEvents_QueryResourceGroupScope.json | 83 +
...vents_QueryResourceGroupScopeNextLink.json | 84 +
.../PolicyEvents_QueryResourceScope.json | 82 +
...licyEvents_QueryResourceScopeNextLink.json | 83 +
...ySubscriptionLevelNestedResourceScope.json | 82 +
...ubscriptionLevelPolicyAssignmentScope.json | 84 +
...ionLevelPolicyAssignmentScopeNextLink.json | 85 +
...ubscriptionLevelPolicyDefinitionScope.json | 84 +
...ionLevelPolicyDefinitionScopeNextLink.json | 85 +
...criptionLevelPolicySetDefinitionScope.json | 84 +
...LevelPolicySetDefinitionScopeNextLink.json | 85 +
...s_QuerySubscriptionLevelResourceScope.json | 82 +
.../PolicyEvents_QuerySubscriptionScope.json | 82 +
...Events_QuerySubscriptionScopeNextLink.json | 83 +
.../PolicyEvents_TimeRangeSortSelectTop.json | 43 +
.../PolicyStates_FilterAndAggregateOnly.json | 1 +
...yStates_FilterAndGroupByWithAggregate.json | 1 +
...ates_FilterAndGroupByWithoutAggregate.json | 1 +
.../PolicyStates_FilterAndMultipleGroups.json | 1 +
...olicyStates_QueryManagementGroupScope.json | 7 +-
...tes_QueryManagementGroupScopeNextLink.json | 80 +
...PolicyStates_QueryNestedResourceScope.json | 7 +-
...sourceGroupLevelPolicyAssignmentScope.json | 7 +-
...oupLevelPolicyAssignmentScopeNextLink.json | 82 +
.../PolicyStates_QueryResourceGroupScope.json | 7 +-
...tates_QueryResourceGroupScopeNextLink.json | 80 +
.../PolicyStates_QueryResourceScope.json | 7 +-
...rceScopeExpandPolicyEvaluationDetails.json | 1 +
...licyStates_QueryResourceScopeNextLink.json | 79 +
...ySubscriptionLevelNestedResourceScope.json | 7 +-
...ubscriptionLevelPolicyAssignmentScope.json | 7 +-
...ionLevelPolicyAssignmentScopeNextLink.json | 81 +
...ubscriptionLevelPolicyDefinitionScope.json | 7 +-
...ionLevelPolicyDefinitionScopeNextLink.json | 81 +
...criptionLevelPolicySetDefinitionScope.json | 7 +-
...LevelPolicySetDefinitionScopeNextLink.json | 87 +
...s_QuerySubscriptionLevelResourceScope.json | 7 +-
.../PolicyStates_QuerySubscriptionScope.json | 7 +-
...States_QuerySubscriptionScopeNextLink.json | 79 +
.../PolicyStates_TimeRangeSortSelectTop.json | 1 +
.../2018-07-01-preview/policyEvents.json | 1006 +++
.../2018-07-01-preview/policyStates.json | 88 +
.../examples/PolicyEvents_GetMetadata.json | 14 -
...olicyEvents_QueryManagementGroupScope.json | 7 +-
...nts_QueryManagementGroupScopeNextLink.json | 84 +
...PolicyEvents_QueryNestedResourceScope.json | 7 +-
...sourceGroupLevelPolicyAssignmentScope.json | 7 +-
...oupLevelPolicyAssignmentScopeNextLink.json | 86 +
.../PolicyEvents_QueryResourceGroupScope.json | 7 +-
...vents_QueryResourceGroupScopeNextLink.json | 84 +
.../PolicyEvents_QueryResourceScope.json | 7 +-
...licyEvents_QueryResourceScopeNextLink.json | 83 +
...ySubscriptionLevelNestedResourceScope.json | 7 +-
...ubscriptionLevelPolicyAssignmentScope.json | 7 +-
...ionLevelPolicyAssignmentScopeNextLink.json | 85 +
...ubscriptionLevelPolicyDefinitionScope.json | 7 +-
...ionLevelPolicyDefinitionScopeNextLink.json | 85 +
...criptionLevelPolicySetDefinitionScope.json | 7 +-
...LevelPolicySetDefinitionScopeNextLink.json | 85 +
...s_QuerySubscriptionLevelResourceScope.json | 7 +-
.../PolicyEvents_QuerySubscriptionScope.json | 7 +-
...Events_QuerySubscriptionScopeNextLink.json | 83 +
...olicyStates_QueryManagementGroupScope.json | 1 +
...tes_QueryManagementGroupScopeNextLink.json | 86 +
...PolicyStates_QueryNestedResourceScope.json | 1 +
...sourceGroupLevelPolicyAssignmentScope.json | 1 +
...oupLevelPolicyAssignmentScopeNextLink.json | 88 +
.../PolicyStates_QueryResourceGroupScope.json | 1 +
...tates_QueryResourceGroupScopeNextLink.json | 86 +
.../PolicyStates_QueryResourceScope.json | 1 +
...rceScopeExpandPolicyEvaluationDetails.json | 1 +
...licyStates_QueryResourceScopeNextLink.json | 85 +
...ySubscriptionLevelNestedResourceScope.json | 1 +
...ubscriptionLevelPolicyAssignmentScope.json | 1 +
...ionLevelPolicyAssignmentScopeNextLink.json | 87 +
...ubscriptionLevelPolicyDefinitionScope.json | 1 +
...ionLevelPolicyDefinitionScopeNextLink.json | 87 +
...criptionLevelPolicySetDefinitionScope.json | 1 +
...LevelPolicySetDefinitionScopeNextLink.json | 87 +
...s_QuerySubscriptionLevelResourceScope.json | 1 +
.../PolicyStates_QuerySubscriptionScope.json | 1 +
...States_QuerySubscriptionScopeNextLink.json | 85 +
.../stable/2019-10-01/policyEvents.json | 124 +-
.../stable/2019-10-01/policyStates.json | 88 +
.../policyinsights/resource-manager/readme.md | 5 +-
.../stable/2017-12-01/postgresql.json | 14 +-
.../postgresql/resource-manager/readme.go.md | 10 +
.../stable/2019-06-15/bms.json | 58 +-
.../stable/2018-07-10/service.json | 12 +-
.../examples/RedisCacheForceReboot.json | 6 +-
.../2019-07-01/examples/RedisCacheGet.json | 9 +-
.../preview/2019-07-01/redis.json | 15 +-
.../examples/getAutoQuotaIncreaseStatus.json | 3 +-
... => getMachineLearningServicesUsages.json} | 0
.../examples/patchComputeQuotaRequest.json | 4 +-
.../examples/putAutoQuotaIncrease.json | 6 +-
.../examples/putAutoQuotaIncreaseTurnOff.json | 2 -
.../putComputeOneSkuQuotaRequest.json | 4 +-
...LearningServicesQuotaRequestDedicated.json | 57 +
...arningServicesQuotaRequestLowPriority.json | 57 +
.../preview/2019-07-19/quota.json | 45 +-
.../2018-09-01-preview/graphquery.json | 17 +
.../examples/GraphQueryAdd.json | 42 +
.../examples/GraphQueryDelete.json | 14 +
.../examples/GraphQueryGet.json | 35 +
.../examples/GraphQueryList.json | 60 +
.../examples/GraphQueryUpdate.json | 43 +
.../examples/OperationsList.json | 76 +
.../examples/ResourceChangeDetails.json | 112 +
.../examples/ResourceChanges.json | 42 +
.../examples/ResourceChangesFirstPage.json | 44 +
.../examples/ResourceChangesNextPage.json | 45 +
.../examples/ResourcesBasicQuery.json | 72 +
.../examples/ResourcesComplexQuery.json | 49 +
.../examples/ResourcesFacetQuery.json | 257 +
.../examples/ResourcesFilterQuery.json | 63 +
.../examples/ResourcesFirstPageQuery.json | 68 +
.../examples/ResourcesMgBasicQuery.json | 70 +
.../examples/ResourcesNextPageQuery.json | 67 +
.../examples/ResourcesPropertiesQuery.json | 45 +
.../examples/ResourcesRandomPageQuery.json | 62 +
.../examples/ResourcesSummarizeQuery.json | 42 +
.../examples/ResourcesTenantBasicQuery.json | 69 +
.../2020-04-01-preview/graphquery.json | 469 +
.../2020-04-01-preview/resourcegraph.json | 868 ++
.../stable/2019-04-01/resourcegraph.json | 6 +-
.../resourcegraph/resource-manager/readme.md | 22 +-
.../examples/TemplateSpecVersionsCreate.json | 73 +
.../examples/TemplateSpecVersionsDelete.json | 13 +
.../examples/TemplateSpecVersionsGet.json | 36 +
.../examples/TemplateSpecVersionsList.json | 50 +
.../examples/TemplateSpecVersionsPatch.json | 44 +
.../examples/TemplateSpecsCreate.json | 54 +
.../examples/TemplateSpecsDelete.json | 12 +
.../examples/TemplateSpecsGet.json | 29 +
.../TemplateSpecsListByResourceGroup.json | 49 +
.../TemplateSpecsListBySubscription.json | 48 +
.../examples/TemplateSpecsPatch.json | 37 +
.../2019-06-01-preview/templateSpecs.json | 863 ++
.../stable/2019-08-01/resources.json | 30 +-
.../stable/2019-10-01/resources.json | 41 +-
.../examples/CalculateTemplateHash.json | 46 +
.../examples/CreateResourceGroup.json | 32 +
.../examples/ExportResourceGroup.json | 68 +
.../ExportResourceGroupWithFiltering.json | 46 +
.../2020-06-01/examples/GetTagsResource.json | 18 +
.../examples/GetTagsSubscription.json | 18 +
.../PostDeploymentWhatIfOnResourceGroup.json | 73 +
.../PostDeploymentWhatIfOnSubscription.json | 84 +
.../PutDeploymentAtManagementGroup.json | 139 +
.../examples/PutDeploymentAtScope.json | 151 +
.../examples/PutDeploymentAtTenant.json | 150 +
...ymentResourceGroupTemplateSpecsWithId.json | 92 +
...oymentSubscriptionTemplateSpecsWithId.json | 66 +
...ntWithOnErrorDeploymentLastSuccessful.json | 168 +
...thOnErrorDeploymentSpecificDeployment.json | 169 +
.../2020-06-01/examples/PutTagsResource.json | 26 +
.../examples/PutTagsSubscription.json | 26 +
.../stable/2020-06-01/resources.json | 5913 +++++++++++++
.../resource-manager/readme.csharp.md | 80 +
.../resources/resource-manager/readme.java.md | 14 +
.../resources/resource-manager/readme.md | 46 +-
.../resource-manager/readme.python.md | 70 +-
.../2019-05-06-preview/searchservice.json | 37 +-
.../SearchIndexSearchDocumentsGet.json | 11 -
.../SearchIndexSearchDocumentsPost.json | 12 -
.../2019-05-06-preview/searchindex.json | 64 -
...eateOrUpdateSharedPrivateLinkResource.json | 1 -
...viceToAllowAccessFromPrivateEndpoints.json | 81 +
...rviceToAllowAccessFromPublicCustomIPs.json | 104 +
...viceToAllowAccessFromPrivateEndpoints.json | 6 +-
...viceToAllowAccessFromPublicCustomIPs.json} | 6 +-
.../UpdatePrivateEndpointConnection.json | 1 -
.../stable/2020-03-13/search.json | 41 +-
.../search/resource-manager/readme.md | 2 +-
.../alertsSuppressionRules.json | 337 +
.../DeleteAlertsSuppressionRule_example.json | 10 +
.../GetAlertsSuppressionRule_example.json | 39 +
...SuppressionRulesWithAlertType_example.json | 43 +
.../GetAlertsSuppressionRules_example.json | 54 +
.../PutAlertsSuppressionRule_example.json | 63 +
...SecureScoreControlDefinitions_example.json | 58 +
...ntrolDefinitions_subscription_example.json | 83 +
.../GetSecureScoresSingle_example.json | 23 +
...rolsForNameWithExpand_builtin_example.json | 133 +
...eScoreControlsForName_builtin_example.json | 60 +
.../ListSecureScoreControls_example.json | 59 +
.../ListSecureScores_example.json | 26 +
.../2020-01-01-preview/secureScore.json | 586 ++
.../stable/2019-01-01/alerts.json | 31 +
...upLocationWithAutoDismissRule_example.json | 86 +
...ourceGroupWithAutoDismissRule_example.json | 85 +
...bscriptionWithAutoDismissRule_example.json | 84 +
...nsLocationWithAutoDismissRule_example.json | 85 +
.../2019-08-01/iotSecuritySolutions.json | 1 -
.../discoveredSecuritySolutions.json | 263 +
...SolutionResourceGroupLocation_example.json | 25 +
...SolutionsSubscriptionLocation_example.json | 39 +
...SecuritySolutionsSubscription_example.json | 38 +
.../GetExternalSecuritySolution_example.json | 28 +
...SolutionsSubscriptionLocation_example.json | 123 +
...SecuritySolutionsSubscription_example.json | 122 +
...erverVulnerabilityAssessments_example.json | 2 +-
...erverVulnerabilityAssessments_example.json | 2 +-
...erverVulnerabilityAssessments_example.json | 2 +-
...erverVulnerabilityAssessments_example.json | 2 +-
.../2020-01-01/externalSecuritySolutions.json | 388 +
.../serverVulnerabilityAssessments.json | 2 +-
.../resource-manager/common/v1/types.json | 19 +
.../security/resource-manager/readme.md | 706 +-
.../2019-01-01-preview/SecurityInsights.json | 278 +-
.../actions/CreateActionOfAlertRule.json | 3 -
.../alertRules/CreateFusionAlertRule.json | 2 +-
.../examples/bookmarks/CreateBookmark.json | 11 +-
.../relations/CreateBookmarkRelation.json | 29 +-
.../relations/GetAllBookmarkRelations.json | 9 +-
.../relations/GetBookmarkRelationByName.json | 9 +-
.../cases/relations/CreateCaseRelation.json | 6 +-
.../CreateOfficeDataConnetor.json | 3 -
.../entities/GetSecurityAlertEntityById.json | 3 +-
.../settings/DeleteEyesOnSetting.json | 14 +
.../examples/settings/GetAllSettings.json | 26 +
...ionSettings.json => GetEyesOnSetting.json} | 9 +-
...Settings.json => UpdateEyesOnSetting.json} | 19 +-
.../examples/settings/UpdateUebaSettings.json | 38 -
.../examples/CreateOrUpdate.json | 26 +
.../preview/2018-03-01-preview/signalr.json | 6 +
.../2020-05-01/examples/Operations_List.json | 25 +
...nalRPrivateEndpointConnections_Delete.json | 18 +
...SignalRPrivateEndpointConnections_Get.json | 29 +
...nalRPrivateEndpointConnections_Update.json | 45 +
.../SignalRPrivateLinkResources_List.json | 31 +
.../SignalR_CheckNameAvailability.json | 20 +
.../examples/SignalR_CreateOrUpdate.json | 278 +
.../2020-05-01/examples/SignalR_Delete.json | 17 +
.../2020-05-01/examples/SignalR_Get.json | 106 +
.../examples/SignalR_ListByResourceGroup.json | 109 +
.../examples/SignalR_ListBySubscription.json | 108 +
.../2020-05-01/examples/SignalR_ListKeys.json | 18 +
.../examples/SignalR_RegenerateKey.json | 25 +
.../2020-05-01/examples/SignalR_Restart.json | 17 +
.../2020-05-01/examples/SignalR_Update.json | 178 +
.../2020-05-01/examples/Usages_List.json | 36 +
.../stable/2020-05-01/signalr.json | 1741 ++++
.../signalr/resource-manager/readme.go.md | 10 +
.../signalr/resource-manager/readme.java.md | 16 +-
.../signalr/resource-manager/readme.md | 28 +-
.../signalr/resource-manager/readme.ruby.md | 11 +
.../examples/ManagedInstanceCreateMax.json | 9 +-
.../examples/ManagedInstanceGet.json | 3 +-
.../examples/ManagedInstanceList.json | 3 +-
.../ManagedInstanceListByResourceGroup.json | 6 +-
.../examples/ManagedInstanceUpdateMax.json | 6 +-
.../examples/ManagedInstanceUpdateMin.json | 3 +-
.../2015-05-01-preview/managedInstances.json | 4 +
.../preview/2017-10-01-preview/databases.json | 2 +-
.../examples/ManagedInstanceCreateMax.json | 9 +-
.../examples/ManagedInstanceGet.json | 3 +-
.../examples/ManagedInstanceList.json | 6 +-
.../ManagedInstanceListByInstancePool.json | 6 +-
.../ManagedInstanceListByResourceGroup.json | 6 +-
.../examples/ManagedInstanceUpdateMax.json | 6 +-
.../examples/ManagedInstanceUpdateMin.json | 3 +-
.../2018-06-01-preview/managedInstances.json | 4 +
.../preview/2019-06-01-preview/databases.json | 2 +-
.../examples/SyncGroupCancelSync.json | 13 +
.../examples/SyncGroupCreate.json | 54 +
.../examples/SyncGroupDelete.json | 15 +
.../examples/SyncGroupGet.json | 28 +
.../examples/SyncGroupGetHubSchema.json | 47 +
.../examples/SyncGroupGetLog.json | 37 +
.../examples/SyncGroupGetSyncDatabaseId.json | 18 +
.../examples/SyncGroupListByDatabase.json | 45 +
.../examples/SyncGroupPatch.json | 39 +
.../examples/SyncGroupRefreshHubSchema.json | 14 +
.../examples/SyncGroupTriggerSync.json | 13 +
.../examples/SyncGroupUpdate.json | 54 +
.../examples/SyncMemberCreate.json | 59 +
.../examples/SyncMemberDelete.json | 16 +
.../examples/SyncMemberGet.json | 30 +
.../examples/SyncMemberGetSchema.json | 48 +
.../examples/SyncMemberListBySyncGroup.json | 33 +
.../examples/SyncMemberPatch.json | 42 +
.../examples/SyncMemberRefreshSchema.json | 15 +
.../examples/SyncMemberUpdate.json | 59 +
.../2019-06-01-preview/managedDatabases.json | 14 +-
.../2019-06-01-preview/syncGroups.json | 1079 +++
.../2019-06-01-preview/syncMembers.json | 774 ++
.../backupLongTermRetentionPolicies.json | 279 -
.../backupLongTermRetentionVaults.json | 246 -
.../BackupLongTermRetentionPolicyGet.json | 24 -
.../BackupLongTermRetentionPolicyList.json | 28 -
.../BackupLongTermRetentionPolicyUpdate.json | 44 -
.../BackupLongTermRetentionVaultGet.json | 22 -
.../BackupLongTermRetentionVaultList.json | 25 -
.../BackupLongTermRetentionVaultUpdate.json | 40 -
.../2014-04-01/examples/OperationList.json | 16 -
specification/sql/resource-manager/readme.md | 34 +-
.../stable/2016-12-01/storage.json | 8 +
.../stable/2019-06-01/blob.json | 38 +
.../examples/DeletedBlobContainersList.json | 50 +
.../examples/QueueOperationDelete.json | 13 +
.../examples/QueueOperationGet.json | 25 +
.../examples/QueueOperationList.json | 40 +
.../examples/QueueOperationPatch.json | 20 +
.../examples/QueueOperationPut.json | 20 +
.../QueueOperationPutWithMetadata.json | 33 +
.../2019-06-01/examples/QueueServicesGet.json | 82 +
.../examples/QueueServicesList.json | 85 +
.../2019-06-01/examples/QueueServicesPut.json | 147 +
.../examples/StorageAccountCreate.json | 2 +
.../examples/TableOperationDelete.json | 13 +
.../examples/TableOperationGet.json | 22 +
.../examples/TableOperationList.json | 34 +
.../examples/TableOperationPatch.json | 22 +
.../examples/TableOperationPut.json | 22 +
.../2019-06-01/examples/TableServicesGet.json | 82 +
.../examples/TableServicesList.json | 85 +
.../2019-06-01/examples/TableServicesPut.json | 147 +
.../stable/2019-06-01/file.json | 1 +
.../stable/2019-06-01/queue.json | 560 ++
.../stable/2019-06-01/storage.json | 185 +-
.../stable/2019-06-01/table.json | 495 ++
.../storage/resource-manager/readme.md | 5 +
.../examples/AscOperations_Get.json | 20 +
.../stable/2020-03-01/storagecache.json | 98 +
.../stable/2019-10-01/storagesync.json | 12 +-
.../examples/CloudEndpoints_Create.json | 51 +
.../examples/CloudEndpoints_Delete.json | 28 +
.../examples/CloudEndpoints_Get.json | 33 +
.../CloudEndpoints_ListBySyncGroup.json | 36 +
.../examples/CloudEndpoints_PostBackup.json | 34 +
.../examples/CloudEndpoints_PostRestore.json | 49 +
.../examples/CloudEndpoints_PreBackup.json | 29 +
.../examples/CloudEndpoints_PreRestore.json | 47 +
.../CloudEndpoints_RestoreHeatbeat.json | 18 +
...CloudEndpoints_TriggerChangeDetection.json | 30 +
.../examples/OperationStatus_Get.json | 25 +
.../2020-03-01/examples/Operations_List.json | 214 +
.../PrivateEndpointConnections_Create.json | 46 +
.../PrivateEndpointConnections_Delete.json | 23 +
.../PrivateEndpointConnections_Get.json | 29 +
...tConnections_ListByStorageSyncService.json | 48 +
.../examples/PrivateLinkResources_List.json | 33 +
.../examples/RegisteredServers_Create.json | 60 +
.../examples/RegisteredServers_Delete.json | 27 +
.../examples/RegisteredServers_Get.json | 42 +
...teredServers_ListByStorageSyncService.json | 45 +
.../RegisteredServers_TriggerRollover.json | 29 +
.../examples/ServerEndpoints_Create.json | 65 +
.../examples/ServerEndpoints_Delete.json | 27 +
.../examples/ServerEndpoints_Get.json | 149 +
.../ServerEndpoints_ListBySyncGroup.json | 193 +
.../examples/ServerEndpoints_Recall.json | 31 +
.../examples/ServerEndpoints_Update.json | 88 +
...ceCheckNameAvailability_AlreadyExists.json | 20 +
...erviceCheckNameAvailability_Available.json | 18 +
.../examples/StorageSyncServices_Create.json | 38 +
.../examples/StorageSyncServices_Delete.json | 21 +
.../examples/StorageSyncServices_Get.json | 43 +
...orageSyncServices_ListByResourceGroup.json | 55 +
...torageSyncServices_ListBySubscription.json | 54 +
.../examples/StorageSyncServices_Update.json | 43 +
.../examples/SyncGroups_Create.json | 24 +
.../examples/SyncGroups_Delete.json | 18 +
.../2020-03-01/examples/SyncGroups_Get.json | 26 +
.../SyncGroups_ListByStorageSyncService.json | 29 +
.../2020-03-01/examples/Workflows_Abort.json | 17 +
.../2020-03-01/examples/Workflows_Get.json | 29 +
.../Workflows_ListByStorageSyncService.json | 32 +
.../stable/2020-03-01/storagesync.json | 4954 +++++++++++
.../storagesync/resource-manager/readme.md | 14 +-
.../resource-manager/readme.ruby.md | 11 +
.../2016-06-01/examples/getSubscription.json | 22 +
.../2016-06-01/examples/listLocations.json | 28 +
.../examples/listSubscriptions.json | 26 +
.../2016-06-01/examples/listTenants.json | 22 +
.../stable/2016-06-01/subscriptions.json | 20 +
.../resource-manager/readme.go.md | 10 +
.../subscription/resource-manager/readme.md | 17 +-
.../support/resource-manager/readme.cli.md | 64 +
.../artifacts.json} | 252 +-
.../entityTypes/DataFlow.json | 8 +-
.../entityTypes/Dataset.json | 8 +-
.../entityTypes/LinkedService.json | 268 +-
.../entityTypes/Notebook.json} | 6 +-
.../entityTypes/Pipeline.json | 100 +-
.../entityTypes/SparkJobDefinition.json | 6 +-
.../entityTypes/SqlScript.json | 4 +-
.../entityTypes/Trigger.json | 14 +-
.../ActivityRuns_QueryByPipelineRun.json | 5 +-
.../CreateManagedPrivateEndpoint.json | 33 +
.../DataFlowDebugSession_AddDataFlow.json | 5 +-
.../examples/DataFlowDebugSession_Create.json | 7 +-
.../examples/DataFlowDebugSession_Delete.json | 5 +-
.../DataFlowDebugSession_ExecuteCommand.json | 7 +-
...DataFlowDebugSession_QueryByWorkspace.json | 5 +-
.../examples/DataFlows_Create.json | 5 +-
.../examples/DataFlows_Delete.json | 11 +
.../examples/DataFlows_Get.json | 5 +-
.../examples/DataFlows_ListByWorkspace.json | 5 +-
.../examples/DataFlows_Update.json | 5 +-
.../examples/Datasets_Create.json | 5 +-
.../examples/Datasets_Delete.json | 11 +
.../examples/Datasets_Get.json | 5 +-
.../examples/Datasets_ListByWorkspace.json | 5 +-
.../examples/Datasets_Update.json | 5 +-
.../DeleteManagedPrivateEndpoint.json | 13 +
.../examples/GetManagedPrivateEndpoint.json | 27 +
.../examples/LinkedServices_Create.json | 5 +-
.../examples/LinkedServices_Delete.json | 11 +
.../examples/LinkedServices_Get.json | 5 +-
.../LinkedServices_ListByWorkspace.json | 5 +-
.../examples/LinkedServices_Update.json | 5 +-
.../examples/ListManagedPrivateEndpoints.json | 45 +
.../examples/Notebooks_Create.json} | 19 +-
.../examples/Notebooks_Delete.json | 11 +
.../examples/Notebooks_Get.json} | 15 +-
.../examples/Notebooks_ListByWorkspace.json} | 13 +-
.../Notebooks_ListSummaryByWorkSpace.json} | 13 +-
.../examples/Notebooks_Update.json} | 15 +-
.../examples/PipelineRuns_Cancel.json | 10 +
.../examples/PipelineRuns_Get.json | 5 +-
.../PipelineRuns_QueryByWorkspace.json | 5 +-
.../examples/Pipelines_Create.json | 5 +-
.../examples/Pipelines_CreateRun.json | 5 +-
.../examples/Pipelines_Delete.json | 11 +
.../examples/Pipelines_Get.json | 5 +-
.../examples/Pipelines_ListByWorkspace.json | 5 +-
.../examples/Pipelines_Update.json | 5 +-
.../examples/SparkJobDefinitions_Create.json | 5 +-
.../examples/SparkJobDefinitions_Debug.json | 7 +-
.../examples/SparkJobDefinitions_Delete.json | 5 +-
.../examples/SparkJobDefinitions_Execute.json | 7 +-
.../examples/SparkJobDefinitions_Get.json | 5 +-
.../SparkJobDefinitions_ListByWorkspace.json | 5 +-
.../examples/SparkJobDefinitions_Update.json | 5 +-
.../examples/SqlScripts_Create.json | 5 +-
.../examples/SqlScripts_Delete.json | 11 +
.../examples/SqlScripts_Get.json | 5 +-
.../examples/SqlScripts_ListByWorkspace.json | 5 +-
.../examples/SqlScripts_Update.json | 5 +-
.../TriggerRuns_QueryByWorkspace.json | 5 +-
.../examples/TriggerRuns_Rerun.json | 5 +-
.../examples/Triggers_Create.json | 5 +-
.../examples/Triggers_Delete.json | 11 +
.../examples/Triggers_Get.json | 5 +-
.../Triggers_GetEventSubscriptionStatus.json | 5 +-
.../examples/Triggers_ListByWorkspace.json | 5 +-
.../examples/Triggers_Start.json | 10 +
.../examples/Triggers_Stop.json | 10 +
.../examples/Triggers_SubscribeToEvents.json | 7 +-
.../Triggers_UnsubscribeFromEvents.json | 7 +-
.../examples/Triggers_Update.json | 5 +-
.../managedPrivateEndpoints.json | 299 +
.../adf/examples/DataFlows_Delete.json | 12 -
.../adf/examples/Datasets_Delete.json | 12 -
.../adf/examples/LinkedServices_Delete.json | 12 -
.../adf/examples/NoteBooks_Delete.json | 12 -
.../adf/examples/PipelineRuns_Cancel.json | 11 -
.../adf/examples/Pipelines_Delete.json | 12 -
.../adf/examples/SqlScripts_Delete.json | 12 -
.../adf/examples/Triggers_Delete.json | 12 -
.../adf/examples/Triggers_Start.json | 11 -
.../adf/examples/Triggers_Stop.json | 11 -
.../SparkFrontend_SparkBatch_Create.json | 5 +-
.../SparkFrontend_SparkBatch_Delete.json | 3 +-
.../SparkFrontend_SparkBatch_Get.json | 3 +-
.../SparkFrontend_SparkBatch_List.json | 3 +-
.../SparkFrontend_SparkSession_Create.json | 5 +-
...Frontend_SparkSession_CreateStatement.json | 5 +-
.../SparkFrontend_SparkSession_Delete.json | 3 +-
...Frontend_SparkSession_DeleteStatement.json | 3 +-
.../SparkFrontend_SparkSession_Get.json | 3 +-
...arkFrontend_SparkSession_GetStatement.json | 3 +-
.../SparkFrontend_SparkSession_List.json | 3 +-
...kFrontend_SparkSession_ListStatements.json | 3 +-
...arkFrontend_SparkSession_ResetTimeout.json | 3 +-
.../{sparkFrontend.json => sparkJob.json} | 494 +-
.../RoleAssignments_CreateRoleAssignment.json | 5 +-
...eAssignments_DeleteRoleAssignmentById.json | 3 +-
...RoleAssignments_GetRoleAssignmentById.json | 3 +-
...Assignments_ListCallerRoleAssignments.json | 3 +-
.../RoleAssignments_ListRoleAssignments.json | 3 +-
.../examples/Roles_GetRoleById.json | 3 +-
.../examples/Roles_ListRoles.json | 3 +-
.../roleAssignments.json | 64 +-
.../roles.json | 49 +-
specification/synapse/data-plane/readme.md | 95 +-
.../synapse/data-plane/readme.python.md | 23 +-
.../synapse/data-plane/readme.typescript.md | 4 +
.../2019-06-01-preview/bigDataPool.json | 2 -
.../CreateOrUpdatePrivateLinkHub.json | 53 +
.../examples/DeletePrivateLinkHub.json | 20 +
.../examples/GetPrivateLinkHub.json | 32 +
.../ListPrivateLinkHubsInResourceGroup.json | 39 +
.../ListPrivateLinkHubsInSubscription.json | 38 +
.../examples/UpdatePrivateLinkHub.json | 51 +
.../2019-06-01-preview/privatelinkhub.json | 422 +
.../synapse/resource-manager/readme.md | 2 +
.../examples/Clusters_CreateOrUpdate.json | 48 +
.../examples/Clusters_Delete.json | 14 +
.../examples/Clusters_Get.json | 28 +
.../examples/Clusters_List.json | 30 +
.../examples/Clusters_Update.json | 50 +
.../Locations_CheckQuotaAvailability.json | 18 +
.../Locations_CheckTrialAvailability.json | 15 +
.../examples/Operations_List.json | 22 +
.../PrivateClouds_CreateOrUpdate.json | 112 +
.../examples/PrivateClouds_Delete.json | 13 +
.../examples/PrivateClouds_Get.json | 57 +
.../examples/PrivateClouds_List.json | 60 +
.../PrivateClouds_ListAdminCredentials.json | 18 +
.../PrivateClouds_ListInSubscription.json | 57 +
.../examples/PrivateClouds_Update.json | 113 +
.../preview/2019-08-09-preview/vmware.json | 1340 +++
.../vmware/resource-manager/readme.csharp.md | 15 +
.../vmware/resource-manager/readme.md | 96 +
.../vmware/resource-manager/readme.python.md | 27 +
.../resource-manager/readme.typescript.md | 14 +
.../stable/2019-08-01/AppServicePlans.json | 2 +-
.../stable/2019-08-01/CommonDefinitions.json | 5 +-
.../stable/2019-08-01/WebApps.json | 310 +-
.../GetPublishingCredentialsPolicy.json | 18 +
.../ListPublishingCredentialsPolicies.json | 27 +
.../UpdatePublishingCredentialsPolicy.json | 23 +
specificationRepositoryConfiguration.json | 11 +-
1845 files changed, 172171 insertions(+), 5831 deletions(-)
create mode 100644 .github/issue_assignment.yml
create mode 100644 .github/pull_request_assignment.yml
create mode 100644 specification/alertsmanagement/resource-manager/readme.trenton.md
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/componentProactiveDetection_API.json (100%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/components_API.json (98%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ComponentsCreate.json (92%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ComponentsDelete.json (100%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ComponentsGet.json (92%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ComponentsList.json (92%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ComponentsListByResourceGroup.json (92%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ComponentsPurge.json (100%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ComponentsPurgeStatus.json (100%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ComponentsUpdate.json (93%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ComponentsUpdateTagsOnly.json (94%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ProactiveDetectionConfigurationGet.json (100%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ProactiveDetectionConfigurationUpdate.json (100%)
rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-05-01 => 2018-05-01-preview}/examples/ProactiveDetectionConfigurationsList.json (100%)
create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json
create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/Operations_List.json
create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WebTestResultsTestResultFile.json
create mode 100644 specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Sku_List.json
create mode 100644 specification/azsadmin/resource-manager/commerce/readme.azsautogen.md
create mode 100644 specification/azsadmin/resource-manager/storage/readme.azsautogen.md
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyCreate.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyDelete.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyGet.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyList.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyListBySubscription.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyMinCreate.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyUpdate.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkResourceGet.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkResourceListGet.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkForAzureAD.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkResources.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/azureADMetrics.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsCreateOrUpdate.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsDelete.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsGet.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsList.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsListBySubscription.json
create mode 100644 specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsUpdate.json
create mode 100644 specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdateSqlServerInstance.json
create mode 100644 specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/DeleteSqlServerInstance.json
create mode 100644 specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetSqlServerInstance.json
create mode 100644 specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListByResourceGroupSqlServerInstance.json
create mode 100644 specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListSubscriptionSqlServerInstance.json
create mode 100644 specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/UpdateSqlServerInstance.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/BatchManagement.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationCreate.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationDelete.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationGet.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationList.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageActivate.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageCreate.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageDelete.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageGet.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageList.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationUpdate.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_BYOS.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_Default.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountDelete.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountGet.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountGetKeys.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountList.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountListByResourceGroup.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountRegenerateKey.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountUpdate.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCancelDeletion.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_Full.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_Minimal.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_MinimalCer.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateDelete.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateGet.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateGetWithDeletionError.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateList.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateListWithFilter.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateUpdate.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationCheckNameAvailability_AlreadyExists.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationCheckNameAvailability_Available.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationGetQuotas.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_CustomImage.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_FullExample.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_NoPublicIPAddresses.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_PublicIPs.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_VirtualMachineConfiguration.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolDelete.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolDisableAutoScale.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolGet.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolList.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolListWithFilter.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolStopResize.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_EnableAutoScale.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_OtherProperties.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_RemoveStartTask.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_ResizePool.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateBatchAccountCreate.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateBatchAccountGet.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionGet.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionUpdate.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionsList.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateLinkResourceGet.json
create mode 100644 specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateLinkResourcesList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoice.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AddressInvalid.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AddressValid.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AgreementByName.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AgreementsListByBillingAccount.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AvailableBalanceByBillingProfile.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccount.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountInvoicesList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountPermissionsList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignment.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentDelete.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleDefinition.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleDefinitionsList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountWithExpand.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpand.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpandForEnrollmentDetails.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfile.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilePermissionsList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignment.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentDelete.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleDefinition.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleDefinitionsList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileWithExpand.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListWithExpand.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProperty.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscription.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoice.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoiceDownload.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoicesList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingAccount.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingProfile.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByCustomer.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByInvoiceSection.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Customer.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPermissionsList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPolicy.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerWithExpand.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingAccount.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingProfile.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Instruction.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InstructionsListByBillingProfile.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Invoice.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceById.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceDownload.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSection.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionPermissionsList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignment.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignmentDelete.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignmentList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleDefinition.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleDefinitionsList.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListWithCreateSubPermission.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoicesListByBillingProfile.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/MoveBillingSubscription.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/MoveProduct.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Policy.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Product.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingAccount.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingProfile.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByCustomer.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByInvoiceSection.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutBillingProfile.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutInstruction.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutInvoiceSection.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/TransactionsListByInvoice.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingAccount.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingProperty.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingSubscription.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateCustomerPolicy.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdatePolicy.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateProduct.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateProductMoveFailure.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateProductMoveSuccess.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateSubscriptionMoveFailure.json
create mode 100644 specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateSubscriptionMoveSuccess.json
create mode 100644 specification/blockchain/resource-manager/readme.az.md
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/cdn.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/cdnwebapplicationfirewall.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CheckNameAvailability.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CheckNameAvailabilityWithSubscription.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Create.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Delete.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_DisableCustomHttps.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_EnableCustomHttpsUsingBYOC.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Get.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_ListByEndpoint.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/EdgeNodes_List.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Create.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Delete.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Get.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ListByProfile.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ListResourceUsage.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_LoadContent.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_PurgeContent.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Start.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Stop.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Update.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ValidateCustomDomain.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Operations_List.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Create.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Delete.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Get.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_ListByEndpoint.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Update.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Create.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Delete.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Get.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_ListByEndpoint.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Update.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Create.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Delete.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_GenerateSsoUri.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Get.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_List.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListByResourceGroup.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListResourceUsage.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListSupportedOptimizationTypes.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Update.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/ResourceUsage_List.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/ValidateProbe.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafListManagedRuleSets.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafListPolicies.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPatchPolicy.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyCreateOrUpdate.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyDelete.json
create mode 100644 specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyGet.json
create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json
create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json
create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json
create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json
create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json
create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json
create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json
create mode 100644 specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json
create mode 100644 specification/changeanalysis/resource-manager/readme.csharp.md
create mode 100644 specification/changeanalysis/resource-manager/readme.go.md
create mode 100644 specification/changeanalysis/resource-manager/readme.md
create mode 100644 specification/changeanalysis/resource-manager/readme.python.md
create mode 100644 specification/changeanalysis/resource-manager/readme.ruby.md
create mode 100644 specification/changeanalysis/resource-manager/readme.typescript.md
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/ComputerVision.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/Ocr.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageByDomainWithStream.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageByDomainWithUrl.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageWithStream.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageWithUrl.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDescribeImageWithStream.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDescribeImageWithUrl.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDetectObjectsWithStream.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDetectObjectsWithUrl.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGenerateThumbnailWithStream.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGenerateThumbnailWithUrl.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetAreaOfInterestWithStream.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetAreaOfInterestWithUrl.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetReadResult.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulListModels.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulReadWithStream.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulReadWithUrl.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulRecognizePrintedTextWithStream.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulRecognizePrintedTextWithUrl.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulTagImageWithStream.json
create mode 100644 specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulTagImageWithUrl.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/Prediction.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImage.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageUrl.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageUrlWithNoStore.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageWithNoStore.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImage.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageUrl.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageUrlWithNoStore.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageWithNoStore.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/Training.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImageRegions.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImageTags.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromData.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromFiles.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromPredictions.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromUrls.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateProject.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateTag.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImageRegions.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImageTags.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImages.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteIteration.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeletePrediction.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteProject.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteTag.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ExportIteration.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ExportProject.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetArtifact.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetDomain.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetDomains.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetExports.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImageCount.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagePerformanceCount.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagePerformances.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImageRegionProposals.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImages.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagesByIds.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIteration.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIterationPerformance.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIterations.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetProject.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetProjects.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTag.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTaggedImageCount.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTaggedImages.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTags.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetUntaggedImageCount.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetUntaggedImages.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ImportProject.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/PublishIteration.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QueryPredictions.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuerySuggestedImageCount.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuerySuggestedImages.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuickTestImage.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuickTestImageUrl.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/SuggestTagsAndRegions.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/TrainProject.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UnpublishIteration.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateImageMetadata.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateIteration.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateProject.json
create mode 100644 specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateTag.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/FormRecognizer.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/AnalyzeBatch.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/AnalyzeOperationResult.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/BusinessCardBatch.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/BusinessCardBatchResult.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ComposeModels.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyModel.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyModelAuthorization.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyOperationResult.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyOperationResultWithErrors.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/DeleteModel.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModel.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModels.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModelsSummary.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/LayoutBatch.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/LayoutBatchResult.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ReceiptsBatch.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ReceiptsBatchResult.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/TrainBatch.json
create mode 100644 specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/TrainBatchWithSubFolders.json
delete mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulAddUserToAccessListRequest.json
delete mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulGetApplicationUserAccessListRequest.json
delete mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulRemoveUserFromAccessListRequest.json
delete mode 100644 specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulReplacesUsersFromAccessListRequest.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/Identification.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/createEnrollment.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/createProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/deleteProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/fetchProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/identifySingleSpeaker.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/listProfiles.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/resetProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.md
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.nodejs.md
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.python.md
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.typescript.md
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/Verification.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/deleteProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/phrases.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/resetProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentCreateEnrollment.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentCreateProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentFetchProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentListProfiles.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentCreateEnrollment.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentCreateProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentFetchProfile.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentListProfiles.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/verify.json
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.md
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.nodejs.md
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.python.md
create mode 100644 specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.typescript.md
create mode 100644 specification/common-types/resource-management/v1/privatelinks.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/disk.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateADiskAccess.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateADiskEncryptionSet.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByCopyingASnapshot.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskFromAPlatformImage.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskFromAnExistingManagedDisk.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskWithDiskAccess.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskWithDiskEncryptionSet.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedUploadDisk.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotFromAnExistingSnapshot.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAnEmptyManagedDisk.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/DeleteADiskAccess.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/DeleteADiskEncryptionSet.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetDiskAccessPrivateLinkResources.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskAccess.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskAccessWithPrivateEndpoints.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskEncryptionSet.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutAManagedDisk.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutASnapshot.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskAccessesInAResourceGroup.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskAccessesInASubscription.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskEncryptionSetsInAResourceGroup.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskEncryptionSetsInASubscription.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListManagedDisksInAResourceGroup.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListManagedDisksInASubscription.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListSnapshotsInAResourceGroup.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListSnapshotsInASubscription.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateADiskAccess.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateADiskEncryptionSet.json
create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateAManagedDiskToRemoveDiskAccess.json
create mode 100644 specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsByBillingAccount.json
create mode 100644 specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsByBillingProfile.json
create mode 100644 specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsBySubscription.json
create mode 100644 specification/containerregistry/resource-manager/readme.az.md
create mode 100644 specification/containerregistry/resource-manager/readme.cli.md
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2019-11-01/examples/AgentPools_Update.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-01-01/examples/AgentPools_Update.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-02-01/examples/AgentPools_Update.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/examples/AgentPools_Update.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsCreate_Spot.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsCreate_Update.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsDelete.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGet.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGetUpgradeProfile.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsList.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPools_Update.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersCreate_Update.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersDelete.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGet.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGetAccessProfile.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGetUpgradeProfile.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersList.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersListByResourceGroup.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersListClusterCredentialResult.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersResetAADProfile.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersResetServicePrincipalProfile.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersRotateClusterCertificates.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersUpdateTags.json
create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/managedClusters.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableCreate.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableDelete.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableDeleteEntity.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableGet.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableInsertEntity.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableMergeEntity.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableQueryEntities.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableQueryEntitiesWithPartitionAndRowKey.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableUpdateEntity.json
create mode 100644 specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/table.json
create mode 100644 specification/cosmos-db/data-plane/readme.go.md
create mode 100644 specification/cosmos-db/data-plane/readme.md
create mode 100644 specification/cosmos-db/data-plane/readme.nodejs.md
create mode 100644 specification/cosmos-db/data-plane/readme.python.md
create mode 100644 specification/cosmos-db/data-plane/readme.typescript.md
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceCreate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceStart.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/notebook.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceCreate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceStart.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/notebook.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceThroughputGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableThroughputGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableThroughputUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetMetricDefinitions.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetUsages.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionGetUsages.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionRegionGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCheckNameExists.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMin.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetUsages.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListByResourceGroup.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListConnectionStrings.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListKeys.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountOfflineRegion.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountOnlineRegion.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountPatch.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountRegenerateKey.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountRegionGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetMetricDefinitions.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetUsages.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseThroughputGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseThroughputUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphThroughputGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphThroughputUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionThroughputGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionThroughputUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseThroughputGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceCreate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceStart.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBOperationsList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPKeyRangeIdGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileSourceTargetGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileTargetGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBRegionCollectionGetMetrics.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerThroughputGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerThroughputUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseThroughputGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseThroughputUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableCreateUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableDelete.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableList.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableThroughputGet.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableThroughputUpdate.json
create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/notebook.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/DismissResourceGroupAlerts.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/DismissSubscriptionAlerts.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateView.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewCreateOrUpdate.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewDelete.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewList.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/SingleResourceGroupAlert.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/SingleSubscriptionAlert.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewByResourceGroup.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewCreateOrUpdateByResourceGroup.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewDeleteByResourceGroup.json
create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewListByResourceGroup.json
create mode 100644 specification/cost-management/resource-manager/readme.az.md
create mode 100644 specification/cost-management/resource-manager/readme.cli.md
create mode 100644 specification/cost-management/resource-manager/readme.python.md
create mode 100644 specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/cpim.json
create mode 100644 specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesCreate.json
create mode 100644 specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesDelete.json
create mode 100644 specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesGet.json
create mode 100644 specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesResourceGroupGet.json
create mode 100644 specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesSubscriptionGet.json
create mode 100644 specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesUpdate.json
create mode 100644 specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/OperationsList.json
create mode 100644 specification/cpim/resource-manager/readme.csharp.md
create mode 100644 specification/cpim/resource-manager/readme.go.md
create mode 100644 specification/cpim/resource-manager/readme.md
create mode 100644 specification/cpim/resource-manager/readme.python.md
create mode 100644 specification/cpim/resource-manager/readme.ruby.md
create mode 100644 specification/cpim/resource-manager/readme.typescript.md
create mode 100644 specification/databox/resource-manager/readme.az.md
create mode 100644 specification/databox/resource-manager/readme.python.md
create mode 100644 specification/databoxedge/resource-manager/readme.az.md
create mode 100644 specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetPeeringGet.json
create mode 100644 specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetPeeringList.json
create mode 100644 specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetworkPeeringCreateOrUpdate.json
create mode 100644 specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetworkPeeringDelete.json
create mode 100644 specification/datashare/resource-manager/readme.typescript.md
create mode 100644 specification/desktopvirtualization/resource-manager/readme.az.md
create mode 100644 specification/desktopvirtualization/resource-manager/readme.cli.md
create mode 100644 specification/deviceprovisioningservices/resource-manager/readme.cli.md
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/digitaltwins.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/CreateRelationshipAdvancedExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/CreateRelationshipBasicExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteModel.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteRelationship.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteTwin.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRouteDelete.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRouteGet.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutePut.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutePutWithFilter.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutesList.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetComponent.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetIncomingRelationship.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationship.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationshipById.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationshipByRelationshipName.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetTwin.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelAdd.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelGetById.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelGetByIdWithIncludeModelDefinition.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelUpdateDecommissioned.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelsGet.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelsGetWithDependenciesAndIncludeModelDefinition.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchComponentAdvancedExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchComponentBasicExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchRelationshipAdvancedExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchRelationshipBasicExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchTwinAdvancedExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchTwinBasicExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PutTwinAdvancedExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PutTwinBasicExample.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryFirstPage.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryJoin.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryNextPage.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/SendTelemetry.json
create mode 100644 specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/SendTelemetryFromComponent.json
create mode 100644 specification/digitaltwins/data-plane/readme.csharp.md
create mode 100644 specification/digitaltwins/data-plane/readme.go.md
create mode 100644 specification/digitaltwins/data-plane/readme.md
create mode 100644 specification/digitaltwins/data-plane/readme.python.md
create mode 100644 specification/digitaltwins/data-plane/readme.ruby.md
create mode 100644 specification/digitaltwins/data-plane/readme.typescript.md
delete mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json
delete mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json
delete mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json
delete mode 100644 specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json
create mode 100644 specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_CreateOrUpdate.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_Delete.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_Get.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_ListByDomain.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_CreateOrUpdate.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Delete.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Get.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListByResourceGroup.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListBySubscription.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListSharedAccessKeys.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_RegenerateKey.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Update.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForResource.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForSubscription.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForCustomTopic.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForResource.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForResourceGroup.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForSubscription.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForResource.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListByDomainTopic.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListByResource.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForResource.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForSubscription.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Operations_List.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Delete.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Update.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateLinkResources_Get.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateLinkResources_ListByResource.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_Get.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_List.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_ListEventTypes.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_CreateOrUpdate.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Delete.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Get.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListByResourceGroup.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListBySubscription.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListEventTypes.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListSharedAccessKeys.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_RegenerateKey.json
create mode 100644 specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Update.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/CheckFrontdoorNameAvailability.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/CheckFrontdoorNameAvailabilityWithSubscription.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorCreate.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorDelete.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorDisableHttps.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorEnableHttps.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorFrontendEndpointGet.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorFrontendEndpointList.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorGet.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorList.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorListAll.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorPurgeContent.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineCreate.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineDelete.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineGet.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineList.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorValidateCustomDomain.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafListManagedRuleSets.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafListPolicies.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyCreateOrUpdate.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyDelete.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyGet.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/frontdoor.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/network.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/webapplicationfirewall.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafListManagedRuleSets.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafListPolicies.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyCreateOrUpdate.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyDelete.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyGet.json
create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/webapplicationfirewall.json
create mode 100644 specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/createOrUpdateGuestConfigurationHCRPAssignment.json
create mode 100644 specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/deleteGuestConfigurationHCRPAssignment.json
create mode 100644 specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/getGuestConfigurationHCRPAssignment.json
create mode 100644 specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/getGuestConfigurationHCRPAssignmentReportById.json
create mode 100644 specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/listAllGuestConfigurationHCRPAssignmentReports.json
create mode 100644 specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/listGuestConfigurationHCRPAssignments.json
create mode 100644 specification/guestconfiguration/resource-manager/readme.az.md
create mode 100644 specification/guestconfiguration/resource-manager/readme.cli.md
create mode 100644 specification/guestconfiguration/resource-manager/readme.python.md
create mode 100644 specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/HanaOperations_List.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkBatch.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkSessionJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkStatementJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchLog.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchState.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionLog.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionState.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkStatementJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkBatchJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkSessionJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkStatementJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkBatchJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkSessionJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkStatementJob.json
create mode 100644 specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/livySpark.json
create mode 100644 specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_commands_send.json
create mode 100644 specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_commandshistory_get.json
create mode 100644 specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_get.json
create mode 100644 specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_set.json
create mode 100644 specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_get.json
create mode 100644 specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_update.json
create mode 100644 specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_telemetry_get.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/IotHub_ManualFailover.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/checkNameAvailability.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certificatescreateorupdate.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certificatesdelete.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certverify.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_createOrUpdate.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_createconsumergroup.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_delete.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_deleteconsumergroup.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_deleteprivateendpointconnection.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_exportdevices.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_generateverificationcode.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_get.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getcertificate.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getconsumergroup.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getjob.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getkey.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getprivateendpointconnection.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getprivatelinkresources.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getskus.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_importdevices.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listbyrg.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listbysubscription.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listcertificates.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listehgroups.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listjobs.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listkeys.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listprivateendpointconnections.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listprivatelinkresources.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_operations.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_patch.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_quotametrics.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_routingendpointhealth.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_stats.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_testallroutes.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_testnewroute.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_updateprivateendpointconnection.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_usages.json
create mode 100644 specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/iothub.json
create mode 100644 specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/ExportKey-example.json
create mode 100644 specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/SelectiveRestore-example.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListSkus.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListUsages.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListVMSizesResult.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListWorkspaceFeatures.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListWorkspaceQuotasByVMFamily.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/amlComputeListNodes.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicAKSCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicAmlCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicDataFactoryCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createLinkedWorkspace.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createWorkspace.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteLinkedWorkspace.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteWorkspace.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getAKSCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getAmlCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getComputes.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getLinkedWorkspace.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspace.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspacesByResourceGroup.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspacesBySubscription.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listKeysAKSCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listLinkedWorkspaces.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listWorkspaceKeys.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/patchAmlCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/resyncWorkspaceKeys.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateAKSCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateAmlCompute.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateQuota.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateWorkspace.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceDeletePrivateEndpointConnection.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceGetPrivateEndpointConnection.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceListPrivateLinkResources.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspacePutPrivateEndpointConnection.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/machineLearningServices.json
create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/workspacePrepareNotebook.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/DeleteRegistrationAssignment.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/DeleteRegistrationDefinition.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetMarketplaceRegistrationDefinition.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetMarketplaceRegistrationDefinitions.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetOperations.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationAssignment.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationAssignments.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationDefinition.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationDefinitions.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/PutRegistrationAssignment.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/PutRegistrationDefinition.json
create mode 100644 specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/managedservices.json
create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-list-media-edge-policies.json
create mode 100644 specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/examples/Operations_List.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/common.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/proxy/ExposingAvailableOperations.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Delete.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Get.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/GetByResourceGroup.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/GetBySubscription.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/ListKeys.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Patch.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Put.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/RegenerateKey.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/proxy.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/remote-rendering.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/common.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/ExposingAvailableOperations.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Delete.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Get.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/GetByResourceGroup.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/GetBySubscription.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/ListKeys.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Patch.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Put.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/RegenerateKey.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json
create mode 100644 specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json
create mode 100644 specification/mixedreality/resource-manager/readme.java.md
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorCreate.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorDelete.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorGet.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorList.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorQuery.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorStart.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorStop.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/networkWatcherConnectionMonitorV1.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorCreate.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorDelete.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorGet.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorList.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorQuery.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorStart.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorStop.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/networkWatcherConnectionMonitorV1.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorCreate.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorDelete.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorGet.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorList.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorQuery.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorStart.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorStop.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
create mode 100644 specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/networkWatcherConnectionMonitorV1.json
create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json
create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesGet.json
create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesList.json
create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesUpdate.json
create mode 100644 specification/operationsmanagement/resource-manager/readme.az.md
create mode 100644 specification/operationsmanagement/resource-manager/readme.cli.md
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CheckServiceProviderAvailability.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateDirectPeering.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateExchangePeering.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeerAsn.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringService.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringServicePrefix.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringWithExchangeRouteServer.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateRegisteredAsn.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateRegisteredPrefix.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeerAsn.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeering.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeeringService.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeeringServicePrefix.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeleteRegisteredAsn.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeleteRegisteredPrefix.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeerAsn.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeering.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringReceivedRoutes.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringService.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringServicePrefix.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetRegisteredAsn.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetRegisteredPrefix.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListDirectPeeringLocations.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListExchangePeeringLocations.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListLegacyPeerings.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeerAsnsBySubscription.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringOperations.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceCountriesBySubscription.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceLocationsBySubscription.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceProviders.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServicesByResourceGroup.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServicesBySubscription.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringsByResourceGroup.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringsBySubscription.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPrefixesByPeeringService.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListRegisteredAsnsByPeering.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListRegisteredPrefixesByPeering.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/UpdatePeeringServiceTags.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/UpdatePeeringTags.json
create mode 100644 specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/peering.json
create mode 100644 specification/peering/resource-manager/readme.az.md
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndAggregateOnly.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndGroupByWithAggregate.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndGroupByWithoutAggregate.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndMultipleGroups.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryManagementGroupScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryManagementGroupScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryNestedResourceScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionScope.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_TimeRangeSortSelectTop.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryManagementGroupScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyEvents.json
delete mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_GetMetadata.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryManagementGroupScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryManagementGroupScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
create mode 100644 specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionScopeNextLink.json
rename specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/{getBatchAIUsages.json => getMachineLearningServicesUsages.json} (100%)
create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putMachineLearningServicesQuotaRequestDedicated.json
create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putMachineLearningServicesQuotaRequestLowPriority.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryAdd.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryDelete.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryGet.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryList.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryUpdate.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/OperationsList.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangeDetails.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChanges.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangesFirstPage.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangesNextPage.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesBasicQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesComplexQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFacetQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFilterQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFirstPageQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesMgBasicQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesNextPageQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesPropertiesQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesRandomPageQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesSummarizeQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesTenantBasicQuery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/graphquery.json
create mode 100644 specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsCreate.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsDelete.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsGet.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsList.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsPatch.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsCreate.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsDelete.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsGet.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsListByResourceGroup.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsListBySubscription.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsPatch.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/templateSpecs.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/CalculateTemplateHash.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/CreateResourceGroup.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/ExportResourceGroup.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/ExportResourceGroupWithFiltering.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/GetTagsResource.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/GetTagsSubscription.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PostDeploymentWhatIfOnResourceGroup.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PostDeploymentWhatIfOnSubscription.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtManagementGroup.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtScope.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtTenant.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutTagsResource.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutTagsSubscription.json
create mode 100644 specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json
create mode 100644 specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json
create mode 100644 specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json
rename specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/{SearchUpdateServiceToAllowAccessFromCustomIPs.json => SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json} (90%)
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/DeleteAlertsSuppressionRule_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRule_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRulesWithAlertType_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRules_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/PutAlertsSuppressionRule_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_subscription_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/GetSecureScoresSingle_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControlsForNameWithExpand_builtin_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControlsForName_builtin_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControls_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScores_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/secureScore.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsResourceGroupLocationWithAutoDismissRule_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsResourceGroupWithAutoDismissRule_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsSubscriptionWithAutoDismissRule_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsSubscriptionsLocationWithAutoDismissRule_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/discoveredSecuritySolutions.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json
rename specification/security/resource-manager/Microsoft.Security/{preview/2019-01-01-preview => stable/2020-01-01}/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json (96%)
rename specification/security/resource-manager/Microsoft.Security/{preview/2019-01-01-preview => stable/2020-01-01}/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json (88%)
rename specification/security/resource-manager/Microsoft.Security/{preview/2019-01-01-preview => stable/2020-01-01}/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json (94%)
rename specification/security/resource-manager/Microsoft.Security/{preview/2019-01-01-preview => stable/2020-01-01}/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json (94%)
create mode 100644 specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/externalSecuritySolutions.json
rename specification/security/resource-manager/Microsoft.Security/{preview/2019-01-01-preview => stable/2020-01-01}/serverVulnerabilityAssessments.json (99%)
create mode 100644 specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/DeleteEyesOnSetting.json
create mode 100644 specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetAllSettings.json
rename specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/{GetFusionSettings.json => GetEyesOnSetting.json} (56%)
rename specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/{GetUebaSettings.json => UpdateEyesOnSetting.json} (51%)
delete mode 100644 specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/UpdateUebaSettings.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/Operations_List.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Delete.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Get.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Update.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateLinkResources_List.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_CheckNameAvailability.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_CreateOrUpdate.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Delete.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Get.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListByResourceGroup.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListBySubscription.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListKeys.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_RegenerateKey.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Restart.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Update.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/Usages_List.json
create mode 100644 specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/signalr.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupCancelSync.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupCreate.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupDelete.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGet.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetHubSchema.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetLog.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetSyncDatabaseId.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupListByDatabase.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupPatch.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupRefreshHubSchema.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupTriggerSync.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupUpdate.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberCreate.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberDelete.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberGet.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberGetSchema.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberListBySyncGroup.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberPatch.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberRefreshSchema.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberUpdate.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json
create mode 100644 specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json
delete mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json
delete mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json
delete mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyGet.json
delete mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyList.json
delete mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyUpdate.json
delete mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultGet.json
delete mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultList.json
delete mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultUpdate.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/DeletedBlobContainersList.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationDelete.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationGet.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationList.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPatch.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPut.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPutWithMetadata.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesGet.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesList.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesPut.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationDelete.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationGet.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationList.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationPatch.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationPut.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesGet.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesList.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesPut.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/queue.json
create mode 100644 specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/table.json
create mode 100644 specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-03-01/examples/AscOperations_Get.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Create.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Delete.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Get.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_ListBySyncGroup.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PostBackup.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PostRestore.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PreBackup.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PreRestore.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_RestoreHeatbeat.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_TriggerChangeDetection.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/OperationStatus_Get.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Operations_List.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Create.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Delete.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Get.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_ListByStorageSyncService.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateLinkResources_List.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Create.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Delete.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Get.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_ListByStorageSyncService.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_TriggerRollover.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Create.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Delete.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Get.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_ListBySyncGroup.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Recall.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Update.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServiceCheckNameAvailability_Available.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Create.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Delete.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Get.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_ListByResourceGroup.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_ListBySubscription.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Update.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Create.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Delete.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Get.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_ListByStorageSyncService.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_Abort.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_Get.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_ListByStorageSyncService.json
create mode 100644 specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/storagesync.json
create mode 100644 specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/getSubscription.json
create mode 100644 specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listLocations.json
create mode 100644 specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listSubscriptions.json
create mode 100644 specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listTenants.json
create mode 100644 specification/support/resource-manager/readme.cli.md
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf/datafactory.json => 2019-06-01-preview/artifacts.json} (95%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/entityTypes/DataFlow.json (94%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/entityTypes/Dataset.json (99%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/entityTypes/LinkedService.json (96%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf/entityTypes/NoteBook.json => 2019-06-01-preview/entityTypes/Notebook.json} (98%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/entityTypes/Pipeline.json (98%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/entityTypes/SparkJobDefinition.json (96%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/entityTypes/SqlScript.json (97%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/entityTypes/Trigger.json (97%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/ActivityRuns_QueryByPipelineRun.json (96%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/CreateManagedPrivateEndpoint.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/DataFlowDebugSession_AddDataFlow.json (95%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/DataFlowDebugSession_Create.json (87%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/DataFlowDebugSession_Delete.json (78%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/DataFlowDebugSession_ExecuteCommand.json (83%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/DataFlowDebugSession_QueryByWorkspace.json (87%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/DataFlows_Create.json (97%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Delete.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/DataFlows_Get.json (95%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/DataFlows_ListByWorkspace.json (95%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/DataFlows_Update.json (97%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Datasets_Create.json (95%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Delete.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Datasets_Get.json (92%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Datasets_ListByWorkspace.json (93%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Datasets_Update.json (94%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DeleteManagedPrivateEndpoint.json
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/GetManagedPrivateEndpoint.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/LinkedServices_Create.json (92%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Delete.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/LinkedServices_Get.json (91%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/LinkedServices_ListByWorkspace.json (91%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/LinkedServices_Update.json (93%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/ListManagedPrivateEndpoints.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf/examples/NoteBooks_Create.json => 2019-06-01-preview/examples/Notebooks_Create.json} (88%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Delete.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf/examples/NoteBooks_Get.json => 2019-06-01-preview/examples/Notebooks_Get.json} (84%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf/examples/NoteBooks_ListSummaryByWorkSpace.json => 2019-06-01-preview/examples/Notebooks_ListByWorkspace.json} (86%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf/examples/NoteBooks_ListByWorkspace.json => 2019-06-01-preview/examples/Notebooks_ListSummaryByWorkSpace.json} (86%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf/examples/NoteBooks_Update.json => 2019-06-01-preview/examples/Notebooks_Update.json} (90%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_Cancel.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/PipelineRuns_Get.json (89%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/PipelineRuns_QueryByWorkspace.json (94%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Pipelines_Create.json (97%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Pipelines_CreateRun.json (83%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Delete.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Pipelines_Get.json (95%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Pipelines_ListByWorkspace.json (95%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Pipelines_Update.json (97%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SparkJobDefinitions_Create.json (95%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SparkJobDefinitions_Debug.json (97%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SparkJobDefinitions_Delete.json (51%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SparkJobDefinitions_Execute.json (97%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SparkJobDefinitions_Get.json (93%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SparkJobDefinitions_ListByWorkspace.json (93%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SparkJobDefinitions_Update.json (95%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SqlScripts_Create.json (93%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Delete.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SqlScripts_Get.json (91%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SqlScripts_ListByWorkspace.json (91%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/SqlScripts_Update.json (92%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/TriggerRuns_QueryByWorkspace.json (91%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/TriggerRuns_Rerun.json (79%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Triggers_Create.json (94%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Delete.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Triggers_Get.json (92%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Triggers_GetEventSubscriptionStatus.json (60%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Triggers_ListByWorkspace.json (93%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Start.json
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Stop.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Triggers_SubscribeToEvents.json (76%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Triggers_UnsubscribeFromEvents.json (76%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview/adf => 2019-06-01-preview}/examples/Triggers_Update.json (94%)
create mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/managedPrivateEndpoints.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Delete.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Delete.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Delete.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Delete.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_Cancel.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Delete.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Delete.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Delete.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Start.json
delete mode 100644 specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Stop.json
rename specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/{sparkFrontend.json => sparkJob.json} (75%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview => 2020-02-01-preview}/examples/RoleAssignments_CreateRoleAssignment.json (85%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview => 2020-02-01-preview}/examples/RoleAssignments_DeleteRoleAssignmentById.json (81%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview => 2020-02-01-preview}/examples/RoleAssignments_GetRoleAssignmentById.json (87%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview => 2020-02-01-preview}/examples/RoleAssignments_ListCallerRoleAssignments.json (81%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview => 2020-02-01-preview}/examples/RoleAssignments_ListRoleAssignments.json (91%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview => 2020-02-01-preview}/examples/Roles_GetRoleById.json (84%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview => 2020-02-01-preview}/examples/Roles_ListRoles.json (87%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview => 2020-02-01-preview}/roleAssignments.json (88%)
rename specification/synapse/data-plane/Microsoft.Synapse/preview/{2019-11-01-preview => 2020-02-01-preview}/roles.json (83%)
create mode 100644 specification/synapse/resource-manager/Microsoft.Synapse/preview/2019-06-01-preview/examples/CreateOrUpdatePrivateLinkHub.json
create mode 100644 specification/synapse/resource-manager/Microsoft.Synapse/preview/2019-06-01-preview/examples/DeletePrivateLinkHub.json
create mode 100644 specification/synapse/resource-manager/Microsoft.Synapse/preview/2019-06-01-preview/examples/GetPrivateLinkHub.json
create mode 100644 specification/synapse/resource-manager/Microsoft.Synapse/preview/2019-06-01-preview/examples/ListPrivateLinkHubsInResourceGroup.json
create mode 100644 specification/synapse/resource-manager/Microsoft.Synapse/preview/2019-06-01-preview/examples/ListPrivateLinkHubsInSubscription.json
create mode 100644 specification/synapse/resource-manager/Microsoft.Synapse/preview/2019-06-01-preview/examples/UpdatePrivateLinkHub.json
create mode 100644 specification/synapse/resource-manager/Microsoft.Synapse/preview/2019-06-01-preview/privatelinkhub.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/Clusters_CreateOrUpdate.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/Clusters_Delete.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/Clusters_Get.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/Clusters_List.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/Clusters_Update.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/Locations_CheckQuotaAvailability.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/Locations_CheckTrialAvailability.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/Operations_List.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/PrivateClouds_CreateOrUpdate.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/PrivateClouds_Delete.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/PrivateClouds_Get.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/PrivateClouds_List.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/PrivateClouds_ListAdminCredentials.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/PrivateClouds_ListInSubscription.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/examples/PrivateClouds_Update.json
create mode 100644 specification/vmware/resource-manager/Microsoft.AVS/preview/2019-08-09-preview/vmware.json
create mode 100644 specification/vmware/resource-manager/readme.csharp.md
create mode 100644 specification/vmware/resource-manager/readme.md
create mode 100644 specification/vmware/resource-manager/readme.python.md
create mode 100644 specification/vmware/resource-manager/readme.typescript.md
create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/GetPublishingCredentialsPolicy.json
create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/ListPublishingCredentialsPolicies.json
create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/UpdatePublishingCredentialsPolicy.json
diff --git a/.azure-pipelines-preproduction/package-lock.json b/.azure-pipelines-preproduction/package-lock.json
index cd0b8e1f56e6..5a137fd25979 100644
--- a/.azure-pipelines-preproduction/package-lock.json
+++ b/.azure-pipelines-preproduction/package-lock.json
@@ -5,9 +5,9 @@
"requires": true,
"dependencies": {
"@azure/avocado": {
- "version": "0.6.3",
- "resolved": "https://registry.npmjs.org/@azure/avocado/-/avocado-0.6.3.tgz",
- "integrity": "sha512-OOCdgdwwt/PEYVesm1z1WVCX7YMNySdZX4RFN/+JI6u0nRsi+n3JHfwkytNyhSrwGKBY/OqUEyQcNFQkTw4OFg==",
+ "version": "0.6.4",
+ "resolved": "https://registry.npmjs.org/@azure/avocado/-/avocado-0.6.4.tgz",
+ "integrity": "sha512-tED+rfWh8Rhqg3huM8hXGDiAube8zpai9il687+sd5lTs3Or1sTNdTR8EdZRAnw1EghDp0csXbp32U+LQJsdoQ==",
"dev": true,
"requires": {
"@azure/openapi-markdown": "^0.9.1",
@@ -24,13 +24,17 @@
}
},
"@azure/oad": {
- "version": "0.7.1",
- "resolved": "https://registry.npmjs.org/@azure/oad/-/oad-0.7.1.tgz",
- "integrity": "sha512-KTlb+aQRFyKbd4ezie9wA5bthI+9Cia+j59PfYRyt8AD0L1RjW7DNvTXbpK7hOxRYPJdd/+1alczXRnWr99Pbw==",
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/@azure/oad/-/oad-0.8.1.tgz",
+ "integrity": "sha512-Xl5vTMkfPkv0wVUgbvfITpaV07o6RIPOWpyPcCiZgQpkpfc0vsSh4SK3K4JSJ44z4BXTOhCSmkYgv/Zvtq/vSQ==",
"dev": true,
"requires": {
"@ts-common/fs": "^0.2.0",
- "@ts-common/json-parser": "^0.7.0",
+ "@ts-common/iterator": "^0.3.6",
+ "@ts-common/json": "^0.3.1",
+ "@ts-common/json-parser": "^0.9.0",
+ "@ts-common/source-map": "^0.5.0",
+ "@ts-common/string-map": "^0.3.0",
"autorest": "^2.0.4407",
"glob": "^7.1.3",
"js-yaml": "^3.13.1",
@@ -44,12 +48,13 @@
},
"dependencies": {
"@ts-common/json-parser": {
- "version": "0.7.2",
- "resolved": "https://registry.npmjs.org/@ts-common/json-parser/-/json-parser-0.7.2.tgz",
- "integrity": "sha512-Rb0bA/maGzfjA7ZegDvfDABF+vz2norftJX80aTOLb88gLd2+SnD6gYVg3nZH9FpA5/34JXFDvMs4Fb5GuPoew==",
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/@ts-common/json-parser/-/json-parser-0.9.0.tgz",
+ "integrity": "sha512-how0z/Ak7Bay+feIYfJFVV8UMw8Ky2Czoo5XwN7QigCOlN4HyW6wSNup4zrZ7t6NUB0002tW/+IOKCH2lAVJOg==",
"dev": true,
"requires": {
- "@ts-common/iterator": "^0.3.4",
+ "@ts-common/add-position": "0.0.2",
+ "@ts-common/iterator": "^0.3.5",
"@ts-common/json": "^0.3.1",
"@ts-common/source-map": "^0.5.0",
"@ts-common/string-map": "^0.3.0",
@@ -88,20 +93,21 @@
}
},
"@azure/rest-api-specs-scripts": {
- "version": "0.8.0",
- "resolved": "https://registry.npmjs.org/@azure/rest-api-specs-scripts/-/rest-api-specs-scripts-0.8.0.tgz",
- "integrity": "sha512-vJxboVIH6D9Z6oFHNvMthkPtCGz3wMsxSgnkkZtS8fEvXHP3r8uNQgDbTdejp0zuH0XnRG3OrO504CwBkoM1Rw==",
+ "version": "0.10.2",
+ "resolved": "https://registry.npmjs.org/@azure/rest-api-specs-scripts/-/rest-api-specs-scripts-0.10.2.tgz",
+ "integrity": "sha512-g7W4eSvbn2q5wOF0FCj2lZ2yXuASfmIsZoib8ms4LXfixnA8CL2uW4XiVUvx2KzdW1RCCdjgh5n+LfCywLe4jw==",
"dev": true,
"requires": {
"@azure/avocado": "^0.4.1",
- "@azure/oad": "^0.7.0",
+ "@azure/oad": "^0.8.1",
+ "@azure/swagger-validation-common": "^0.0.2",
"@octokit/rest": "^16.42.0",
"@ts-common/string-map": "^0.3.0",
"commonmark": "0.27.0",
"fs-extra": "^7.0.1",
"glob": "^7.1.3",
"js-yaml": "^3.13.1",
- "oav": "0.21.5",
+ "oav": "^0.21.6",
"request": "^2.88.0"
},
"dependencies": {
@@ -152,6 +158,12 @@
}
}
},
+ "@azure/swagger-validation-common": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/@azure/swagger-validation-common/-/swagger-validation-common-0.0.2.tgz",
+ "integrity": "sha512-/OTgP3USqq2Cko6vzDgmODpqGjk9eTANYMBMXtgsTgh9RtR6b3HZdQTPe5dqkqes/YoIBW8IarJ0B0HucAv1+A==",
+ "dev": true
+ },
"@microsoft.azure/autorest-extension-base": {
"version": "1.0.13",
"resolved": "https://registry.npmjs.org/@microsoft.azure/autorest-extension-base/-/autorest-extension-base-1.0.13.tgz",
@@ -178,21 +190,21 @@
"dev": true
},
"@octokit/auth-token": {
- "version": "2.4.0",
- "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.0.tgz",
- "integrity": "sha512-eoOVMjILna7FVQf96iWc3+ZtE/ZT6y8ob8ZzcqKY1ibSQCnu4O/B7pJvzMx5cyZ/RjAff6DAdEb0O0Cjcxidkg==",
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.1.tgz",
+ "integrity": "sha512-NB81O5h39KfHYGtgfWr2booRxp2bWOJoqbWwbyUg2hw6h35ArWYlAST5B3XwAkbdcx13yt84hFXyFP5X0QToWA==",
"dev": true,
"requires": {
- "@octokit/types": "^2.0.0"
+ "@octokit/types": "^4.0.1"
}
},
"@octokit/endpoint": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.1.tgz",
- "integrity": "sha512-pOPHaSz57SFT/m3R5P8MUu4wLPszokn5pXcB/pzavLTQf2jbU+6iayTvzaY6/BiotuRS0qyEUkx3QglT4U958A==",
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.2.tgz",
+ "integrity": "sha512-xs1mmCEZ2y4shXCpFjNq3UbmNR+bLzxtZim2L0zfEtj9R6O6kc4qLDvYw66hvO6lUsYzPTM5hMkltbuNAbRAcQ==",
"dev": true,
"requires": {
- "@octokit/types": "^2.11.1",
+ "@octokit/types": "^4.0.1",
"is-plain-object": "^3.0.0",
"universal-user-agent": "^5.0.0"
},
@@ -215,6 +227,17 @@
"dev": true,
"requires": {
"@octokit/types": "^2.0.1"
+ },
+ "dependencies": {
+ "@octokit/types": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz",
+ "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==",
+ "dev": true,
+ "requires": {
+ "@types/node": ">= 8"
+ }
+ }
}
},
"@octokit/plugin-request-log": {
@@ -231,17 +254,28 @@
"requires": {
"@octokit/types": "^2.0.1",
"deprecation": "^2.3.1"
+ },
+ "dependencies": {
+ "@octokit/types": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz",
+ "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==",
+ "dev": true,
+ "requires": {
+ "@types/node": ">= 8"
+ }
+ }
}
},
"@octokit/request": {
- "version": "5.4.2",
- "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.2.tgz",
- "integrity": "sha512-zKdnGuQ2TQ2vFk9VU8awFT4+EYf92Z/v3OlzRaSh4RIP0H6cvW1BFPXq4XYvNez+TPQjqN+0uSkCYnMFFhcFrw==",
+ "version": "5.4.4",
+ "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.4.tgz",
+ "integrity": "sha512-vqv1lz41c6VTxUvF9nM+a6U+vvP3vGk7drDpr0DVQg4zyqlOiKVrY17DLD6de5okj+YLHKcoqaUZTBtlNZ1BtQ==",
"dev": true,
"requires": {
"@octokit/endpoint": "^6.0.1",
"@octokit/request-error": "^2.0.0",
- "@octokit/types": "^2.11.1",
+ "@octokit/types": "^4.0.1",
"deprecation": "^2.0.0",
"is-plain-object": "^3.0.0",
"node-fetch": "^2.3.0",
@@ -250,12 +284,12 @@
},
"dependencies": {
"@octokit/request-error": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.0.tgz",
- "integrity": "sha512-rtYicB4Absc60rUv74Rjpzek84UbVHGHJRu4fNVlZ1mCcyUPPuzFfG9Rn6sjHrd95DEsmjSt1Axlc699ZlbDkw==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.1.tgz",
+ "integrity": "sha512-5lqBDJ9/TOehK82VvomQ6zFiZjPeSom8fLkFVLuYL3sKiIb5RB8iN/lenLkY7oBmyQcGP7FBMGiIZTO8jufaRQ==",
"dev": true,
"requires": {
- "@octokit/types": "^2.0.0",
+ "@octokit/types": "^4.0.1",
"deprecation": "^2.0.0",
"once": "^1.4.0"
}
@@ -280,6 +314,17 @@
"@octokit/types": "^2.0.0",
"deprecation": "^2.0.0",
"once": "^1.4.0"
+ },
+ "dependencies": {
+ "@octokit/types": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz",
+ "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==",
+ "dev": true,
+ "requires": {
+ "@types/node": ">= 8"
+ }
+ }
}
},
"@octokit/rest": {
@@ -307,9 +352,9 @@
}
},
"@octokit/types": {
- "version": "2.12.1",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.12.1.tgz",
- "integrity": "sha512-LRLR1tjbcCfAmUElvTmMvLEzstpx6Xt/aQVTg2xvd+kHA2Ekp1eWl5t+gU7bcwjXHYEAzh4hH4WH+kS3vh+wRw==",
+ "version": "4.1.4",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-4.1.4.tgz",
+ "integrity": "sha512-W+aHUBA6pEZ8OC1fgfFW1/jrgtkaMVBhNr7jhhBErvbWQY4Ii9Hlf3LAurwcy5XXjz8EYluiCZjHhnQO4GSfNg==",
"dev": true,
"requires": {
"@types/node": ">= 8"
@@ -740,9 +785,9 @@
"dev": true
},
"aws4": {
- "version": "1.9.1",
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz",
- "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==",
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz",
+ "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==",
"dev": true
},
"balanced-match": {
@@ -3564,18 +3609,18 @@
"dev": true
},
"mime-db": {
- "version": "1.43.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz",
- "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==",
+ "version": "1.44.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
+ "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==",
"dev": true
},
"mime-types": {
- "version": "2.1.26",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz",
- "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==",
+ "version": "2.1.27",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz",
+ "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",
"dev": true,
"requires": {
- "mime-db": "1.43.0"
+ "mime-db": "1.44.0"
}
},
"minimatch": {
@@ -3715,9 +3760,9 @@
}
},
"moment": {
- "version": "2.24.0",
- "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz",
- "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==",
+ "version": "2.26.0",
+ "resolved": "https://registry.npmjs.org/moment/-/moment-2.26.0.tgz",
+ "integrity": "sha512-oIixUO+OamkUkwjhAVE18rAMfRJNsNe/Stid/gwHSOfHrOtw9EhAY2AHvdKZ/k/MggcYELFCJz/Sn2pL8b8JMw==",
"dev": true
},
"ms": {
@@ -3850,9 +3895,9 @@
"dev": true
},
"oav": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/oav/-/oav-0.21.5.tgz",
- "integrity": "sha512-UgF51hAZArAI9r4tSUCgJE8IYeh5Q3SLcCukwZ6jrWyG3Y8vXKl12Cs2ycGrbQg16Ygf2v2+Dkhx4RHh7uOyfw==",
+ "version": "0.21.6",
+ "resolved": "https://registry.npmjs.org/oav/-/oav-0.21.6.tgz",
+ "integrity": "sha512-zPLaeYuQh1aJND/e2BBLMXAy1qKvHVPido6byoC4K2wsM3MdIFrK0QePBMUXA9gZjNb6HO5oaRuM5uCEeFaxjg==",
"dev": true,
"requires": {
"@azure/openapi-markdown": "^0.9.2",
@@ -3948,9 +3993,9 @@
}
},
"@types/node-fetch": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.6.tgz",
- "integrity": "sha512-2w0NTwMWF1d3NJMK0Uiq2UNN8htVCyOWOD0jIPjPgC5Ph/YP4dVhs9YxxcMcuLuwAslz0dVEcZQUaqkLs3IzOQ==",
+ "version": "2.5.7",
+ "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.7.tgz",
+ "integrity": "sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw==",
"dev": true,
"requires": {
"@types/node": "*",
@@ -4529,9 +4574,9 @@
"dev": true
},
"qs": {
- "version": "6.9.3",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.3.tgz",
- "integrity": "sha512-EbZYNarm6138UKKq46tdx08Yo/q9ZhFoAXAI1meAFd2GtbRDhbZY2WQSICskT0c5q99aFzLG1D4nvTk9tqfXIw==",
+ "version": "6.9.4",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz",
+ "integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ==",
"dev": true
},
"randexp": {
@@ -5056,9 +5101,9 @@
"dev": true
},
"spdx-correct": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz",
- "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==",
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz",
+ "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",
"dev": true,
"requires": {
"spdx-expression-parse": "^3.0.0",
@@ -5072,9 +5117,9 @@
"dev": true
},
"spdx-expression-parse": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
- "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==",
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
+ "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
"dev": true,
"requires": {
"spdx-exceptions": "^2.1.0",
@@ -5471,9 +5516,9 @@
"dev": true
},
"uglify-js": {
- "version": "3.9.1",
- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.9.1.tgz",
- "integrity": "sha512-JUPoL1jHsc9fOjVFHdQIhqEEJsQvfKDjlubcCilu8U26uZ73qOg8VsN8O1jbuei44ZPlwL7kmbAdM4tzaUvqnA==",
+ "version": "3.9.4",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.9.4.tgz",
+ "integrity": "sha512-8RZBJq5smLOa7KslsNsVcSH+KOXf1uDU8yqLeNuVKwmT0T3FA0ZoXlinQfRad7SDcbZZRZE4ov+2v71EnxNyCA==",
"dev": true,
"optional": true,
"requires": {
@@ -5940,15 +5985,15 @@
}
},
"z-schema": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-4.2.2.tgz",
- "integrity": "sha512-7bGR7LohxSdlK1EOdvA/OHksvKGE4jTLSjd8dBj9YKT0S43N9pdMZ0Z7GZt9mHrBFhbNTRh3Ky6Eu2MHsPJe8g==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-4.2.3.tgz",
+ "integrity": "sha512-zkvK/9TC6p38IwcrbnT3ul9in1UX4cm1y/VZSs4GHKIiDCrlafc+YQBgQBUdDXLAoZHf2qvQ7gJJOo6yT1LH6A==",
"dev": true,
"requires": {
"commander": "^2.7.1",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
- "validator": "^11.0.0"
+ "validator": "^12.0.0"
},
"dependencies": {
"commander": {
@@ -5959,9 +6004,9 @@
"optional": true
},
"validator": {
- "version": "11.1.0",
- "resolved": "https://registry.npmjs.org/validator/-/validator-11.1.0.tgz",
- "integrity": "sha512-qiQ5ktdO7CD6C/5/mYV4jku/7qnqzjrxb3C/Q5wR3vGGinHTgJZN/TdFT3ZX4vXhX2R1PXx42fB1cn5W+uJ4lg==",
+ "version": "12.2.0",
+ "resolved": "https://registry.npmjs.org/validator/-/validator-12.2.0.tgz",
+ "integrity": "sha512-jJfE/DW6tIK1Ek8nCfNFqt8Wb3nzMoAbocBF6/Icgg1ZFSBpObdnwVY2jQj6qUqzhx5jc71fpvBWyLGO7Xl+nQ==",
"dev": true
}
}
diff --git a/.azure-pipelines-preproduction/package.json b/.azure-pipelines-preproduction/package.json
index 7d9c807b4684..e7d2d90308ab 100644
--- a/.azure-pipelines-preproduction/package.json
+++ b/.azure-pipelines-preproduction/package.json
@@ -10,8 +10,8 @@
"description": "Tests for Azure REST API Specifications",
"license": "MIT",
"devDependencies": {
- "@azure/avocado": "^0.6.3",
- "@azure/rest-api-specs-scripts": "^0.8.0",
+ "@azure/avocado": "^0.6.4",
+ "@azure/rest-api-specs-scripts": "^0.10.2",
"@ts-common/commonmark-to-markdown": "^1.2.0",
"@ts-common/fs": "0.2.0",
"@ts-common/iterator": "^0.3.6",
diff --git a/.azure-pipelines/SDKAutomation.yml b/.azure-pipelines/SDKAutomation.yml
index 6e481cdb9139..da696e39c823 100644
--- a/.azure-pipelines/SDKAutomation.yml
+++ b/.azure-pipelines/SDKAutomation.yml
@@ -23,6 +23,7 @@ jobs:
BLOB_STORAGE_PREFIX: sdkautomation-pipeline
SPEC_REPO: $(Build.Repository.Name)
PR_NUMBER: $(System.PullRequest.PullRequestNumber)
+ BUILD_ID: $(Build.BuildId)
strategy:
matrix:
Net:
@@ -33,6 +34,8 @@ jobs:
SDK_REPO_NAME: azure-sdk-for-js
Python:
SDK_REPO_NAME: azure-sdk-for-python
+ PythonT2:
+ SDK_REPO_NAME: azure-sdk-for-python-track2
Cliextension:
SDK_REPO_NAME: azure-cli-extensions
Go:
@@ -69,6 +72,8 @@ jobs:
-e SPEC_REPO \
-e PR_NUMBER \
-e SDK_REPO_NAME \
+ -e AZURE_DEVOPS_EXT_PAT \
+ -e BUILD_ID \
sdk-automation:latest npm start
env:
BLOB_STORAGE_NAME: $(blob-storage-name)
@@ -76,4 +81,5 @@ jobs:
GITHUB_COMMENT_AUTHOR_NAME: $(github-comment-author-name)
GITHUBAPP_ID: $(githubapp-id)
GITHUBAPP_PRIVATE_KEY: $(githubapp-private-key)
+ AZURE_DEVOPS_EXT_PAT: $(azure-devops-ext-pat)
displayName: SDK Automation
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 345d8c92354c..b8293d9af7b5 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,17 +1,20 @@
-### Latest improvements:
MSFT employees can try out our new experience at [OpenAPI Hub](https://aka.ms/openapiportal) - one location for using our validation tools and finding your workflow.
-
+
+
### Contribution checklist:
-- [ ] I have reviewed the [documentation](https://github.com/Azure/adx-documentation-pr/wiki/Overall-basic-flow) for the workflow.
-- [ ] [Validation tools](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/swagger-checklist.md#validation-tools-for-swagger-checklist) were run on swagger spec(s) and have all been fixed in this PR.
-- [ ] The [OpenAPI Hub](https://aka.ms/openapiportal) was used for checking validation status and next steps.
+- [ ] I have reviewed the [documentation](https://aka.ms/ameonboard) for the workflow.
+- [ ] [Validation tools](https://aka.ms/swaggertools) were run on swagger spec(s) and have all been fixed in this PR. [How to fix?](https://aka.ms/ci-fix)
+
+If any further question about AME onboarding or validation tools, please view the [FAQ](https://aka.ms/faqinprreview).
+
### ARM API Review Checklist
-- [ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
-- adding/removing APIs.
-- adding/removing properties.
-- adding/removing API-version.
-- adding a new service in Azure.
+- [ ] Service team MUST add the "**WaitForARMFeedback**" label if the management plane API changes fall into one of the below categories.
+ - adding/removing APIs.
+ - adding/removing properties.
+ - adding/removing API-version.
+ - adding a new service in Azure.
+
+Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
-Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
- [ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
-Please follow the link to find more details on [API review process](https://armwiki.azurewebsites.net/rp_onboarding/ResourceProviderOnboardingAPIRevieworkflow.html).
+Please follow the link to find more details on [API review process](https://aka.ms/SwaggerPRReview).
diff --git a/.github/issue_assignment.yml b/.github/issue_assignment.yml
new file mode 100644
index 000000000000..a6bd179385b2
--- /dev/null
+++ b/.github/issue_assignment.yml
@@ -0,0 +1,22 @@
+---
+- rule:
+ booleanFilterExpression: "needs-triage"
+ assignees:
+ - yungezz
+ - zikalino
+ - erich-wang
+ - NullMDR
+ - raych1
+ - lirenhe
+ - weidongxu-microsoft
+ - ArcturusZhang
+ - xccc-msft
+ - ChenTanyi
+ - fengzhou-msft
+ - njuCZ
+ - akning-ms
+ - markcowl
+ - leni-msft
+ - qianwens
+ - ruowan
+ - MyronFanQiu
diff --git a/.github/pull_request_assignment.yml b/.github/pull_request_assignment.yml
new file mode 100644
index 000000000000..e32d1ce22ba2
--- /dev/null
+++ b/.github/pull_request_assignment.yml
@@ -0,0 +1,154 @@
+---
+- rule:
+ # data-plane PR
+ paths:
+ - "specification/**/data-plane/**"
+ reviewers:
+ - anuchandy
+ - jhendrixMSFT
+ - lmazuel
+ - tjprescott
+
+- rule:
+ paths:
+ - "specification/network/**"
+ reviewers:
+ - lirenhe
+ - MyronFanQiu
+
+- rule:
+ paths:
+ - "specification/@(applicationinsights|operationalinsights)/**"
+ reviewers:
+ - MyronFanQiu
+
+- rule:
+ paths: "specification/compute/**"
+ reviewers:
+ - ArcturusZhang
+ - fengzhou-msft
+ - yungezz
+
+- rule:
+ paths: "specification/resources/**"
+ reviewers:
+ - raych1
+
+- rule:
+ paths:
+ - "specification/machinelearningservices/**"
+ reviewers:
+ - ArcturusZhang
+
+- rule:
+ paths:
+ - "specification/@(azureactivedirectory|appplatform)/**"
+ reviewers:
+ - njuCZ
+
+- rule:
+ paths:
+ - "specification/authorization/**"
+ reviewers:
+ - qianwens
+ - yungezz
+
+- rule:
+ paths:
+ - "specification/datafactory/**"
+ reviewers:
+ - qianwens
+
+- rule:
+ paths:
+ - "specification/monitor/**"
+ reviewers:
+ - weidongxu-microsoft
+ - MyronFanQiu
+
+- rule:
+ paths:
+ - "specification/storage/**"
+ reviewers:
+ - qianwens
+ - Juliehzl
+
+- rule:
+ paths: "specification/mediaservices/**"
+ reviewers:
+ - allenjzhang
+
+- rule:
+ paths:
+ - "specification/@(keyvault|notificationhubs)/**"
+ - "specification/@(databricks|containerregistry)/**"
+ reviewers:
+ - fengzhou-msft
+
+- rule:
+ paths:
+ - "specification/@(containerservice|containerinstance)/**"
+ reviewers:
+ - NullMDR
+ - fengzhou-msft
+ - yungezz
+
+- rule:
+ paths:
+ - "specification/mixedreality/**"
+ reviewers:
+ - leni-msft
+
+- rule:
+ paths:
+ - "specification/portal/**"
+ reviewers:
+ - NullMDR
+
+- rule:
+ paths:
+ - "specification/web/**"
+ reviewers:
+ - weidongxu-microsoft
+
+- rule:
+ paths:
+ - "documentation/**"
+ reviewers:
+ - josefree
+ - akning-ms
+
+- rule:
+ paths:
+ - "**/package.json"
+ - ".github/**"
+ - "**/azure-pipelines.yml"
+ - ".azure-pipelines/**"
+ - ".azure-pipelines-preproduction/**"
+ reviewers:
+ - akning-ms
+ - NullMDR
+ - raych1
+
+- rule:
+ # manager-plane PR
+ paths:
+ - "**"
+ reviewers:
+ - yungezz
+ - zikalino
+ - erich-wang
+ - NullMDR
+ - raych1
+ - lirenhe
+ - weidongxu-microsoft
+ - ArcturusZhang
+ - xccc-msft
+ - ChenTanyi
+ - fengzhou-msft
+ - njuCZ
+ - akning-ms
+ - markcowl
+ - leni-msft
+ - qianwens
+ - ruowan
diff --git a/.github/sla.yml b/.github/sla.yml
index 516ff14d76b4..f0ce3592d482 100644
--- a/.github/sla.yml
+++ b/.github/sla.yml
@@ -20,7 +20,7 @@
trigger:
- time
args:
- booleanFilterExpression: "!(NotReadyForReview||WaitForARMFeedback||WaitForARMRevisit||Approved-OkToMerge||(DoNotMerge&&(ARMSignedOff||Approved)))"
+ booleanFilterExpression: "!(NotReadyForReview||Reviewed-ChangesRequired||WaitForARMFeedback||WaitForARMRevisit||Approved-OkToMerge||(DoNotMerge&&(ARMSignedOff||Approved)))"
limit: 48h
message: 'Dear Swagger reviewer,
The PR ${URL} requires your attention. You receive the email either because PR author put on the label "WaitForReviewVisit", or because the PR has not been updated for over 48 hours.
The PR labeled with ${LABELS}
Quick info.
DO NOT REPLY: This is an automated email. If you have any questions, please send an email to the Swagger and Tools Team (vscswagger@microsoft.com).
Best regards,
Swagger and Tools Team, Azure Management Experience
'
subject: "Action Required: Please respond to the PR ${URL}"
@@ -64,7 +64,9 @@
name: "send email to PR author"
trigger:
- label
+ - time
args:
+ limit: 72h
booleanFilterExpression: (Reviewed-ChangesRequired||ARMChangeRequest)
message: 'Dear PR author,
The PR Reviewer has commented on your PR ${URL} , putting on the label "Reviewed-ChangesRequired" or "ARMChangeRequest". Please check out the comment by clicking the PR link attached previously, and update your commits accordingly.
Please ensure to remove "Reviewed-ChangesRequired" or "ARMChangeRequest" label, after you complete updates and comment back. If you need ARM board or swagger reviewer revisit your PR, please label the PR with "WaitForARMRevisit" and "WaitForReviewRevisit" respectively.
Quick info.
DO NOT REPLY: This is an automated email. If you have any questions, please send an email to the Swagger and Tools Team (vscswagger@microsoft.com).
Best regards,
Swagger and Tools Team, Azure Management Experience
'
subject: "Action Required: Please update your PR ${URL}"
@@ -76,7 +78,7 @@
action: sendEmail
scope: issue
args:
- booleanFilterExpression: "triage"
+ booleanFilterExpression: "needs-triage"
limit: 48h
message: " Dear Swagger reviewer,
Please response to the issue ${URL} . The issue isn't updated in 48 hours.
Quick info. - If you have any question, please send email to Visual Studio Swagger and Tool team vscswagger@microsoft.com.
Best regards,
Azure Management Experience
"
subject: "Action Required: Please respond to issue ${URL}"
diff --git a/CODEOWNERS b/CODEOWNERS
index 2444dda0fade..c5db75e8217f 100644
--- a/CODEOWNERS
+++ b/CODEOWNERS
@@ -66,7 +66,7 @@
/specification/servicebus/ @sazeesha @v-ajnava
/specification/servicefabric/ @juhacket @samedder
/specification/sql/ @dnayantara @jaredmoo @nathannfan
-/specification/storage/ @jasonyang-msft @xiaonlimsft
+/specification/storage/ @blueww @jasonyang-msft @xiaonlimsft @kasobol-msft
/specification/storageimportexport/ @leoz-ms
/specification/storagesync/ @ankushbindlish2
/specification/storsimple8000series/ @manaas-microsoft
diff --git a/custom-words.txt b/custom-words.txt
index 52230457869e..626e14de791b 100644
--- a/custom-words.txt
+++ b/custom-words.txt
@@ -1,4 +1,7 @@
-AADDS
+A128CBCPAD
+A192CBCPAD
+A256CBCPAD
+AADDS
aadiam
AADP
AATP
@@ -115,6 +118,7 @@ australiaeast
australiasoutheast
authenticatable
Authenticode
+authorityURL
authorizationrules
authprovider
authproviders
@@ -264,6 +268,8 @@ CIDR
CIDRs
CIFS
ciphertext
+claimCondition
+claimType
clfs
Clickthrough
clientaccesspolicy
@@ -330,6 +336,8 @@ costcenter
costinsights
costmanagement
Couchbase
+cpim
+CPIM
creatable
createconsumergroup
createorupdate
@@ -458,6 +466,7 @@ domainservices
DOTALL
DRMs
dsmax
+DTDL
Dtus
duration'PT
EAPMSCHA
@@ -499,6 +508,7 @@ ErrorSchema
Español
estaba
Etag
+etags
Ethereum
evalue
evaluateautoscale
@@ -507,6 +517,7 @@ eventgrid
Eventhub
eventhubconnections
eventhubs
+eventroutes
eventtime
eventtypes
EWDG
@@ -562,6 +573,7 @@ Français
frontdoor
fsaction
Fulfilment
+fullmetadata
Fulltext
fullyqualified
functionappsettings
@@ -595,6 +607,7 @@ getprivatelinkresources
getsas
getskus
getssotoken
+gettestresultfile
getvpnclientipsecparameters
getvpnprofilepackageurl
gibibytes
@@ -630,6 +643,7 @@ Hardenings
hbase
hbasephoenix
hcatalog
+HCRP
HDFS
hdinsight
Headnode
@@ -677,6 +691,7 @@ imagesearch
IMDS
importdevices
Inbuild
+incomingrelationships
indic
inferencing
Informations
@@ -979,6 +994,7 @@ nodeconfiguration
nodecounts
Nodeploy
nodrm
+nometadata
nonadmin
NONCLUSTERED
nonincreasing
@@ -1125,6 +1141,7 @@ pricesheets
pricings
primarybytes
privatedns
+privatelinks
privatepreview
projectable
Protectable
@@ -1169,6 +1186,7 @@ randint
Rankable
ratelimit
ravbhatnagar
+rawwebsockets
rawxml
rbac
rdbms
@@ -1250,8 +1268,10 @@ resourcename
resourceregion
resourcetype
Responsys
+RESTAPI
restoreheartbeat
Restproxy
+restype
resumable
resync
resynchronization
@@ -1276,6 +1296,8 @@ rosettanetprocessconfigurations
rotatediskencryptionkey
routable
routingendpointhealth
+rpki
+RPKI
rpns
RSAES
RSASSA
@@ -1515,6 +1537,7 @@ testall
testallroutes
testnew
testnewroute
+testresultfile
textanalytics
TFIDF
Tful
@@ -1701,6 +1724,7 @@ websearch
webservices
Webspace
webtest
+webtestresult
webtests
westcentralus
westeurope
@@ -1754,7 +1778,14 @@ cloudManifestFiles
highestcriticalimpact
apiserver
kubeadmin
+AzureAD
+PrivateLink
+privateLinkForAzureAd
userprincipalname
sessionstate
sessionhosts
hostpool
+azureADMetrics
+sparkr
+ambari
+dotnetspark
diff --git a/documentation/openapi-authoring-automated-guidelines.md b/documentation/openapi-authoring-automated-guidelines.md
index 0d3581f28f39..848f8f89f120 100644
--- a/documentation/openapi-authoring-automated-guidelines.md
+++ b/documentation/openapi-authoring-automated-guidelines.md
@@ -51,9 +51,11 @@ We request OpenAPI(Swagger) spec authoring be assigned to engineers who have an
| [R3011](#r3011) | [DescriptionMustNotBeNodeName](#r3011) | ARM and Data plane OpenAPI(swagger) specs |
| [R2020](#r2020) | [RequiredPropertiesMissingInResourceModel](#r2020) | ARM OpenAPI(swagger) specs |
| [R3020](#r3020) | [PathResourceProviderNamePascalCase](#r3020) | ARM OpenAPI(swagger) specs |
-| [R3021](#r3021) | [PathResouceTypeNameCamelCase](#r3021) | ARM OpenAPI(swagger) specs |
+| [R3021](#r3021) | [PathResourceTypeNameCamelCase](#r3021) | ARM OpenAPI(swagger) specs |
| [R4004](#r4004) | [OperationIdRequired](#r4004) | ARM OpenAPI(swagger) specs |
| [R4007](#r4007) | [DefaultErrorResponseSchema](#r4007) | ARM OpenAPI(swagger) specs |
+| [R4010](#r4010) | [RequiredDefaultResponse](#r4010) | ARM OpenAPI(swagger) specs |
+| [R4011](#r4011) | [DeleteOperationResponses](#r4011) | ARM OpenAPI(swagger) specs |
#### ARM Warnings
@@ -64,6 +66,7 @@ We request OpenAPI(Swagger) spec authoring be assigned to engineers who have an
| [R2057](#r2057) | [InvalidSkuModel](#r2057) | ARM OpenAPI(swagger) specs |
| [R3010](#r3010) | [TrackedResourceListByImmediateParent](#r3010) | ARM OpenAPI(swagger) specs |
| [R2004](#r2004) | [NonApplicationJsonType](#r2004) | ARM OpenAPI(swagger) specs |
+| [R4009](#r4009) | [RequiredSystemDataInNewApiVersions](#r4009) | ARM OpenAPI(swagger) specs |
### SDK Violations
@@ -99,6 +102,8 @@ We request OpenAPI(Swagger) spec authoring be assigned to engineers who have an
| [R3029](#r3029) | [EnumMustNotHaveEmptyValue](#r3024) | ARM and Data plan OpenAPI(swagger) specs |
| [R4005](#r4005) | [UniqueXmsEnumName](#r4005) | ARM and Data plane OpenAPI(swagger) specs |
| [R4008](#r4008) | [AvoidEmptyResponseSchema](#r4008) | ARM OpenAPI(swagger) specs |
+| [R4012](#r4012) | [XmsPageableMustHaveCorrespondingResponse](#r4012) | ARM OpenAPI(swagger) specs |
+| [R4013](#r4013) | [IntegerTypeMustHaveFormat](#r4013) | ARM OpenAPI(swagger) specs |
#### SDK Warnings
@@ -2394,3 +2399,187 @@ The following would be invalid:
}
...
```
+Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rules](#automated-rules) | [ARM](#arm-violations): [Errors](#arm-errors) or [Warnings](#arm-warnings) | [SDK](#sdk-violations): [Errors](#sdk-errors) or [Warnings](#sdk-warnings)
+
+### R4009 RequiredSystemDataInNewApiVersion
+
+**Category** : ARM Warning
+
+**Applies to** : ARM OpenAPI(swagger) specs
+
+**Output Message** : The response of operation '{operation name }' is defined without 'systemData'. Consider adding the systemData to the response.
+
+**Description** : The responses of GET, PUT and PATCH in new API versions should contain the `systemData` object.The version after 2020-05-01 consider as a new API version.
+For more information, see: [AzureRPCSystemData-RP_Copy.docx](https://microsoft.sharepoint.com/:w:/t/Operations_Management_Suite/EZP2GBYnvsRKnSmJ_FXV4jkBUz6xG_glzG3KVnmHN9Q0qA?e=99dfOo).
+
+**CreatedAt**: May 21, 2020
+
+**LastModifiedAt**: May 21, 2020
+
+**How to fix the violation**: For each response in the GET/PUT/PATCH opearation add the systemData object:
+``` json
+ "systemData": {
+ "$ref": "#/definitions/SystemData"
+ }
+```
+
+Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rules](#automated-rules) | [ARM](#arm-violations): [Errors](#arm-errors) or [Warnings](#arm-warnings) | [SDK](#sdk-violations): [Errors](#sdk-errors) or [Warnings](#sdk-warnings)
+
+### R4010 RequiredDefaultResponse
+
+**Category** : ARM Error
+
+**Applies to** : ARM OpenAPI(swagger) specs
+
+**Output Message** : The response is defined without a default error response implementation,please add it.
+
+**Description** : Per ARM Specs, every operation must have a default error response implementation.
+
+**CreatedAt**: May 21, 2020
+
+**LastModifiedAt**: May 21, 2020
+
+**How to fix the violation**: For each operation response, please add a default error response implementation:
+The following would be valid:
+
+```json
+...
+ "responses":{
+ "default": {
+ "schema":{
+ "$ref":#/definiton/Error
+ }
+ }
+ }
+...
+```
+
+Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rules](#automated-rules) | [ARM](#arm-violations): [Errors](#arm-errors) or [Warnings](#arm-warnings) | [SDK](#sdk-violations): [Errors](#sdk-errors) or [Warnings](#sdk-warnings)
+
+
+### R4011 DeleteOperationResponses
+
+**Category** : ARM Error
+
+**Applies to** : ARM OpenAPI(swagger) specs
+
+**Output Message** : The delete operation is defined without a 200 or 204 error response implementation,please add it.
+
+**Description** : Per ARM Specs, all DELETE methods must have responses code implementation: 200, 204.
+
+**CreatedAt**: May 21, 2020
+
+**LastModifiedAt**: May 21, 2020
+
+**How to fix the violation**: For each operation response, please add the missing code response implementation:
+
+The following would be valid:
+
+```json
+...
+"path1":{
+ "delete": {
+ "parameters": [
+ .....
+ .....
+ ]
+ "responese":{
+ "default": {
+ "schema":{
+ "$ref":#/definiton/Error
+ }
+ },
+ "200": {
+ "schema":{
+ "$ref":#/definiton/response
+ }
+ },
+ "204": {
+ "schema":{
+ "$ref":#/definiton/resonse
+ }
+ }
+ }
+ }
+}
+...
+```
+Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rules](#automated-rules) | [ARM](#arm-violations): [Errors](#arm-errors) or [Warnings](#arm-warnings) | [SDK](#sdk-violations): [Errors](#sdk-errors) or [Warnings](#sdk-warnings)
+
+### R4012 XmsPageableMustHaveCorrespondingResponse
+
+**Category** : SDK Error
+
+**Applies to** : ARM OpenAPI(swagger) specs
+
+**Output Message** : The operation: '{operation name}' is defined with x-ms-pageable enabled,but can not find the corresponding nextLink property in the response, please add it.
+
+**Description** : Per [extensions](https://github.com/Azure/autorest/blob/master/docs/extensions/readme.md#x-ms-pageable) ,when specifying a x-ms-pagable/nextLinkName, the corresponding nextlink property must be defined in the response schema.
+
+**CreatedAt**: May 21, 2020
+
+**LastModifiedAt**: May 21, 2020
+
+**How to fix the violation**: Add the missing corresponding property like nextLink in response:
+
+The following would be valid:
+
+```json
+...
+"get":{
+ ....
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ ....
+ "responese":{
+ "200": {
+ "schema":{
+ "description": "The list of metric items.",
+ "type": "object",
+ "properties": {
+ "nextLink": {
+ "description": "The link used to get the next page of operations.",
+ "type": "string"
+ }
+ ....
+ }
+ }
+ }
+ ....
+ }
+}
+...
+```
+Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rules](#automated-rules) | [ARM](#arm-violations): [Errors](#arm-errors) or [Warnings](#arm-warnings) | [SDK](#sdk-violations): [Errors](#sdk-errors) or [Warnings](#sdk-warnings)
+
+### R4013 IntegerTypeMustHaveFormat
+
+**Category** : SDK Error
+
+**Applies to** : ARM OpenAPI(swagger) specs
+
+**Output Message** : The integer type does not have a format, please add it.
+
+**Description** : The type:integer must have a required format. Possible value for format are int32 and int64.
+
+**CreatedAt**: May 21, 2020
+
+**LastModifiedAt**: May 21, 2020
+
+**Why this rule is important**: Right now it's possible to type a field as integer, but not specifying format. It actually creates problems for generate when the number of bits matter, like C#.
+
+**How to fix the violation**: Add the correct format for integer type:
+
+The following would be valid:
+
+```json
+...
+ "incomingChanges": {
+ "type": "integer",
+ "format": "int64",
+ ....
+ }
+...
+```
+Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rules](#automated-rules) | [ARM](#arm-violations): [Errors](#arm-errors) or [Warnings](#arm-warnings) | [SDK](#sdk-violations): [Errors](#sdk-errors) or [Warnings](#sdk-warnings)
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 210ac693bff4..85b829ee2129 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -24,14 +24,18 @@
}
},
"@azure/oad": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/@azure/oad/-/oad-0.7.0.tgz",
- "integrity": "sha512-voz6Q71GmJpRAThFG5aDWqHiQCc6eL1ajAR0JqbqCsqStQdBauGkGZhOeawkNJIgHnFY3GG9GO/fWhfp36uBWg==",
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/@azure/oad/-/oad-0.8.1.tgz",
+ "integrity": "sha512-Xl5vTMkfPkv0wVUgbvfITpaV07o6RIPOWpyPcCiZgQpkpfc0vsSh4SK3K4JSJ44z4BXTOhCSmkYgv/Zvtq/vSQ==",
"dev": true,
"requires": {
"@ts-common/fs": "^0.2.0",
- "@ts-common/json-parser": "^0.7.0",
- "autorest": "^2.0.0",
+ "@ts-common/iterator": "^0.3.6",
+ "@ts-common/json": "^0.3.1",
+ "@ts-common/json-parser": "^0.9.0",
+ "@ts-common/source-map": "^0.5.0",
+ "@ts-common/string-map": "^0.3.0",
+ "autorest": "^2.0.4407",
"glob": "^7.1.3",
"js-yaml": "^3.13.1",
"json-pointer": "^0.6.0",
@@ -44,12 +48,13 @@
},
"dependencies": {
"@ts-common/json-parser": {
- "version": "0.7.2",
- "resolved": "https://registry.npmjs.org/@ts-common/json-parser/-/json-parser-0.7.2.tgz",
- "integrity": "sha512-Rb0bA/maGzfjA7ZegDvfDABF+vz2norftJX80aTOLb88gLd2+SnD6gYVg3nZH9FpA5/34JXFDvMs4Fb5GuPoew==",
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/@ts-common/json-parser/-/json-parser-0.9.0.tgz",
+ "integrity": "sha512-how0z/Ak7Bay+feIYfJFVV8UMw8Ky2Czoo5XwN7QigCOlN4HyW6wSNup4zrZ7t6NUB0002tW/+IOKCH2lAVJOg==",
"dev": true,
"requires": {
- "@ts-common/iterator": "^0.3.4",
+ "@ts-common/add-position": "0.0.2",
+ "@ts-common/iterator": "^0.3.5",
"@ts-common/json": "^0.3.1",
"@ts-common/source-map": "^0.5.0",
"@ts-common/string-map": "^0.3.0",
@@ -88,20 +93,21 @@
}
},
"@azure/rest-api-specs-scripts": {
- "version": "0.7.3",
- "resolved": "https://registry.npmjs.org/@azure/rest-api-specs-scripts/-/rest-api-specs-scripts-0.7.3.tgz",
- "integrity": "sha512-MULXD2VulATyfslUDJq8q6yY5sNXv7n5Esqn9fd84qmFMtsbKNHef5gQ1p450mefpqrWMgB5XX4H5YGmOMBDmw==",
+ "version": "0.10.2",
+ "resolved": "https://registry.npmjs.org/@azure/rest-api-specs-scripts/-/rest-api-specs-scripts-0.10.2.tgz",
+ "integrity": "sha512-g7W4eSvbn2q5wOF0FCj2lZ2yXuASfmIsZoib8ms4LXfixnA8CL2uW4XiVUvx2KzdW1RCCdjgh5n+LfCywLe4jw==",
"dev": true,
"requires": {
"@azure/avocado": "^0.4.1",
- "@azure/oad": "^0.7.0",
+ "@azure/oad": "^0.8.1",
+ "@azure/swagger-validation-common": "^0.0.2",
"@octokit/rest": "^16.42.0",
"@ts-common/string-map": "^0.3.0",
"commonmark": "0.27.0",
"fs-extra": "^7.0.1",
"glob": "^7.1.3",
"js-yaml": "^3.13.1",
- "oav": "0.21.5",
+ "oav": "^0.21.6",
"request": "^2.88.0"
},
"dependencies": {
@@ -152,6 +158,12 @@
}
}
},
+ "@azure/swagger-validation-common": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/@azure/swagger-validation-common/-/swagger-validation-common-0.0.2.tgz",
+ "integrity": "sha512-/OTgP3USqq2Cko6vzDgmODpqGjk9eTANYMBMXtgsTgh9RtR6b3HZdQTPe5dqkqes/YoIBW8IarJ0B0HucAv1+A==",
+ "dev": true
+ },
"@microsoft.azure/autorest-extension-base": {
"version": "1.0.13",
"resolved": "https://registry.npmjs.org/@microsoft.azure/autorest-extension-base/-/autorest-extension-base-1.0.13.tgz",
@@ -178,21 +190,21 @@
"dev": true
},
"@octokit/auth-token": {
- "version": "2.4.0",
- "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.0.tgz",
- "integrity": "sha512-eoOVMjILna7FVQf96iWc3+ZtE/ZT6y8ob8ZzcqKY1ibSQCnu4O/B7pJvzMx5cyZ/RjAff6DAdEb0O0Cjcxidkg==",
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.1.tgz",
+ "integrity": "sha512-NB81O5h39KfHYGtgfWr2booRxp2bWOJoqbWwbyUg2hw6h35ArWYlAST5B3XwAkbdcx13yt84hFXyFP5X0QToWA==",
"dev": true,
"requires": {
- "@octokit/types": "^2.0.0"
+ "@octokit/types": "^4.0.1"
}
},
"@octokit/endpoint": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.1.tgz",
- "integrity": "sha512-pOPHaSz57SFT/m3R5P8MUu4wLPszokn5pXcB/pzavLTQf2jbU+6iayTvzaY6/BiotuRS0qyEUkx3QglT4U958A==",
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.2.tgz",
+ "integrity": "sha512-xs1mmCEZ2y4shXCpFjNq3UbmNR+bLzxtZim2L0zfEtj9R6O6kc4qLDvYw66hvO6lUsYzPTM5hMkltbuNAbRAcQ==",
"dev": true,
"requires": {
- "@octokit/types": "^2.11.1",
+ "@octokit/types": "^4.0.1",
"is-plain-object": "^3.0.0",
"universal-user-agent": "^5.0.0"
},
@@ -215,6 +227,17 @@
"dev": true,
"requires": {
"@octokit/types": "^2.0.1"
+ },
+ "dependencies": {
+ "@octokit/types": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz",
+ "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==",
+ "dev": true,
+ "requires": {
+ "@types/node": ">= 8"
+ }
+ }
}
},
"@octokit/plugin-request-log": {
@@ -231,17 +254,28 @@
"requires": {
"@octokit/types": "^2.0.1",
"deprecation": "^2.3.1"
+ },
+ "dependencies": {
+ "@octokit/types": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz",
+ "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==",
+ "dev": true,
+ "requires": {
+ "@types/node": ">= 8"
+ }
+ }
}
},
"@octokit/request": {
- "version": "5.4.2",
- "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.2.tgz",
- "integrity": "sha512-zKdnGuQ2TQ2vFk9VU8awFT4+EYf92Z/v3OlzRaSh4RIP0H6cvW1BFPXq4XYvNez+TPQjqN+0uSkCYnMFFhcFrw==",
+ "version": "5.4.4",
+ "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.4.tgz",
+ "integrity": "sha512-vqv1lz41c6VTxUvF9nM+a6U+vvP3vGk7drDpr0DVQg4zyqlOiKVrY17DLD6de5okj+YLHKcoqaUZTBtlNZ1BtQ==",
"dev": true,
"requires": {
"@octokit/endpoint": "^6.0.1",
"@octokit/request-error": "^2.0.0",
- "@octokit/types": "^2.11.1",
+ "@octokit/types": "^4.0.1",
"deprecation": "^2.0.0",
"is-plain-object": "^3.0.0",
"node-fetch": "^2.3.0",
@@ -250,12 +284,12 @@
},
"dependencies": {
"@octokit/request-error": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.0.tgz",
- "integrity": "sha512-rtYicB4Absc60rUv74Rjpzek84UbVHGHJRu4fNVlZ1mCcyUPPuzFfG9Rn6sjHrd95DEsmjSt1Axlc699ZlbDkw==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.1.tgz",
+ "integrity": "sha512-5lqBDJ9/TOehK82VvomQ6zFiZjPeSom8fLkFVLuYL3sKiIb5RB8iN/lenLkY7oBmyQcGP7FBMGiIZTO8jufaRQ==",
"dev": true,
"requires": {
- "@octokit/types": "^2.0.0",
+ "@octokit/types": "^4.0.1",
"deprecation": "^2.0.0",
"once": "^1.4.0"
}
@@ -280,6 +314,17 @@
"@octokit/types": "^2.0.0",
"deprecation": "^2.0.0",
"once": "^1.4.0"
+ },
+ "dependencies": {
+ "@octokit/types": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.16.2.tgz",
+ "integrity": "sha512-O75k56TYvJ8WpAakWwYRN8Bgu60KrmX0z1KqFp1kNiFNkgW+JW+9EBKZ+S33PU6SLvbihqd+3drvPxKK68Ee8Q==",
+ "dev": true,
+ "requires": {
+ "@types/node": ">= 8"
+ }
+ }
}
},
"@octokit/rest": {
@@ -307,9 +352,9 @@
}
},
"@octokit/types": {
- "version": "2.11.1",
- "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.11.1.tgz",
- "integrity": "sha512-QaLoLkmFdfoNbk3eOzPv7vKrUY0nRJIYmZDoz/pTer4ICpqu80aSQTVHnnUxEFuURCiidig76CcxUOYC/bY3RQ==",
+ "version": "4.1.4",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-4.1.4.tgz",
+ "integrity": "sha512-W+aHUBA6pEZ8OC1fgfFW1/jrgtkaMVBhNr7jhhBErvbWQY4Ii9Hlf3LAurwcy5XXjz8EYluiCZjHhnQO4GSfNg==",
"dev": true,
"requires": {
"@types/node": ">= 8"
@@ -740,9 +785,9 @@
"dev": true
},
"aws4": {
- "version": "1.9.1",
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz",
- "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==",
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz",
+ "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==",
"dev": true
},
"balanced-match": {
@@ -3300,18 +3345,18 @@
"dev": true
},
"mime-db": {
- "version": "1.43.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz",
- "integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==",
+ "version": "1.44.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
+ "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==",
"dev": true
},
"mime-types": {
- "version": "2.1.26",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.26.tgz",
- "integrity": "sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ==",
+ "version": "2.1.27",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz",
+ "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",
"dev": true,
"requires": {
- "mime-db": "1.43.0"
+ "mime-db": "1.44.0"
}
},
"mimic-fn": {
@@ -3597,9 +3642,9 @@
}
},
"moment": {
- "version": "2.24.0",
- "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz",
- "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==",
+ "version": "2.26.0",
+ "resolved": "https://registry.npmjs.org/moment/-/moment-2.26.0.tgz",
+ "integrity": "sha512-oIixUO+OamkUkwjhAVE18rAMfRJNsNe/Stid/gwHSOfHrOtw9EhAY2AHvdKZ/k/MggcYELFCJz/Sn2pL8b8JMw==",
"dev": true
},
"ms": {
@@ -3732,9 +3777,9 @@
"dev": true
},
"oav": {
- "version": "0.21.5",
- "resolved": "https://registry.npmjs.org/oav/-/oav-0.21.5.tgz",
- "integrity": "sha512-UgF51hAZArAI9r4tSUCgJE8IYeh5Q3SLcCukwZ6jrWyG3Y8vXKl12Cs2ycGrbQg16Ygf2v2+Dkhx4RHh7uOyfw==",
+ "version": "0.21.6",
+ "resolved": "https://registry.npmjs.org/oav/-/oav-0.21.6.tgz",
+ "integrity": "sha512-zPLaeYuQh1aJND/e2BBLMXAy1qKvHVPido6byoC4K2wsM3MdIFrK0QePBMUXA9gZjNb6HO5oaRuM5uCEeFaxjg==",
"dev": true,
"requires": {
"@azure/openapi-markdown": "^0.9.2",
@@ -3830,9 +3875,9 @@
}
},
"@types/node-fetch": {
- "version": "2.5.6",
- "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.6.tgz",
- "integrity": "sha512-2w0NTwMWF1d3NJMK0Uiq2UNN8htVCyOWOD0jIPjPgC5Ph/YP4dVhs9YxxcMcuLuwAslz0dVEcZQUaqkLs3IzOQ==",
+ "version": "2.5.7",
+ "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.7.tgz",
+ "integrity": "sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw==",
"dev": true,
"requires": {
"@types/node": "*",
@@ -4417,9 +4462,9 @@
"dev": true
},
"qs": {
- "version": "6.9.3",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.3.tgz",
- "integrity": "sha512-EbZYNarm6138UKKq46tdx08Yo/q9ZhFoAXAI1meAFd2GtbRDhbZY2WQSICskT0c5q99aFzLG1D4nvTk9tqfXIw==",
+ "version": "6.9.4",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz",
+ "integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ==",
"dev": true
},
"randexp": {
@@ -4618,9 +4663,9 @@
"dev": true
},
"resolve": {
- "version": "1.16.1",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.16.1.tgz",
- "integrity": "sha512-rmAglCSqWWMrrBv/XM6sW0NuRFiKViw/W4d9EbC4pt+49H8JwHy+mcGmALTEg504AUDcLTvb1T2q3E9AnmY+ig==",
+ "version": "1.17.0",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz",
+ "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==",
"dev": true,
"requires": {
"path-parse": "^1.0.6"
@@ -4944,9 +4989,9 @@
"dev": true
},
"spdx-correct": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz",
- "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==",
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz",
+ "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",
"dev": true,
"requires": {
"spdx-expression-parse": "^3.0.0",
@@ -4960,9 +5005,9 @@
"dev": true
},
"spdx-expression-parse": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
- "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==",
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
+ "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
"dev": true,
"requires": {
"spdx-exceptions": "^2.1.0",
@@ -5339,9 +5384,9 @@
"dev": true
},
"uglify-js": {
- "version": "3.9.1",
- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.9.1.tgz",
- "integrity": "sha512-JUPoL1jHsc9fOjVFHdQIhqEEJsQvfKDjlubcCilu8U26uZ73qOg8VsN8O1jbuei44ZPlwL7kmbAdM4tzaUvqnA==",
+ "version": "3.9.4",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.9.4.tgz",
+ "integrity": "sha512-8RZBJq5smLOa7KslsNsVcSH+KOXf1uDU8yqLeNuVKwmT0T3FA0ZoXlinQfRad7SDcbZZRZE4ov+2v71EnxNyCA==",
"dev": true,
"optional": true,
"requires": {
@@ -5961,15 +6006,15 @@
}
},
"z-schema": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-4.2.2.tgz",
- "integrity": "sha512-7bGR7LohxSdlK1EOdvA/OHksvKGE4jTLSjd8dBj9YKT0S43N9pdMZ0Z7GZt9mHrBFhbNTRh3Ky6Eu2MHsPJe8g==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-4.2.3.tgz",
+ "integrity": "sha512-zkvK/9TC6p38IwcrbnT3ul9in1UX4cm1y/VZSs4GHKIiDCrlafc+YQBgQBUdDXLAoZHf2qvQ7gJJOo6yT1LH6A==",
"dev": true,
"requires": {
"commander": "^2.7.1",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
- "validator": "^11.0.0"
+ "validator": "^12.0.0"
},
"dependencies": {
"commander": {
@@ -5980,9 +6025,9 @@
"optional": true
},
"validator": {
- "version": "11.1.0",
- "resolved": "https://registry.npmjs.org/validator/-/validator-11.1.0.tgz",
- "integrity": "sha512-qiQ5ktdO7CD6C/5/mYV4jku/7qnqzjrxb3C/Q5wR3vGGinHTgJZN/TdFT3ZX4vXhX2R1PXx42fB1cn5W+uJ4lg==",
+ "version": "12.2.0",
+ "resolved": "https://registry.npmjs.org/validator/-/validator-12.2.0.tgz",
+ "integrity": "sha512-jJfE/DW6tIK1Ek8nCfNFqt8Wb3nzMoAbocBF6/Icgg1ZFSBpObdnwVY2jQj6qUqzhx5jc71fpvBWyLGO7Xl+nQ==",
"dev": true
}
}
diff --git a/package.json b/package.json
index 78b8882ef5f1..1a58a6b4c14d 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"license": "MIT",
"devDependencies": {
"@azure/avocado": "^0.6.3",
- "@azure/rest-api-specs-scripts": "^0.7.3",
+ "@azure/rest-api-specs-scripts": "^0.10.2",
"@ts-common/commonmark-to-markdown": "^1.2.0",
"@ts-common/fs": "0.2.0",
"@ts-common/iterator": "^0.3.6",
diff --git a/preproduction-azure-pipelines.yml b/preproduction-azure-pipelines.yml
index 0b307b098e70..56c9816bf51f 100644
--- a/preproduction-azure-pipelines.yml
+++ b/preproduction-azure-pipelines.yml
@@ -19,3 +19,4 @@ jobs:
- template: .azure-pipelines/BreakingChange.yml
- template: .azure-pipelines/ModelValidation.yml
- template: .azure-pipelines/LintDiff.yml
+ - template: .azure-pipelines/Avocado.yml
diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json
index 11df28bec57b..750d45a37d73 100644
--- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json
+++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json
@@ -1689,7 +1689,13 @@
"enum": [
"AlertCreated",
"StateChange",
- "MonitorConditionChange"
+ "MonitorConditionChange",
+ "SeverityChange",
+ "ActionRuleTriggered",
+ "ActionRuleSuppressed",
+ "ActionsTriggered",
+ "ActionsSuppressed",
+ "ActionsFailed"
],
"x-ms-enum": {
"name": "AlertModificationEvent"
@@ -2023,7 +2029,8 @@
"description": "type of target scope",
"enum": [
"ResourceGroup",
- "Resource"
+ "Resource",
+ "Subscription"
],
"x-ms-enum": {
"name": "ScopeType",
diff --git a/specification/alertsmanagement/resource-manager/readme.trenton.md b/specification/alertsmanagement/resource-manager/readme.trenton.md
new file mode 100644
index 000000000000..06e42501cc61
--- /dev/null
+++ b/specification/alertsmanagement/resource-manager/readme.trenton.md
@@ -0,0 +1,47 @@
+## overrides
+
+These settings apply only when `--trenton` is specified on the command line.
+``` yaml $(trenton)
+overrides:
+ - where:
+ resource: "*"
+ set:
+ - NeedSeparated: false
+ - where:
+ resource: "ActionRules"
+ property: "properties"
+ set:
+ - GoFieldName: "Properties"
+ - where:
+ resource: "ActionRules"
+ method: "Update"
+ property: "properties"
+ set:
+ - GoFieldName: "PatchProperties"
+ - where:
+ property: "type"
+ set:
+ - Hidden: true
+ - where:
+ resource: "ActionRules"
+ property: "/actionRule/properties/type"
+ set:
+ - Hidden: false
+ - where:
+ resource: "ActionRules"
+ property: "scopeType"
+ set:
+ - EnumValues/0/GoEnumMemberName: "ScopeTypeResourceGroup"
+ - EnumValues/1/GoEnumMemberName: "ScopeTypeResource"
+```
+## trenton
+
+These settings apply only when `--trenton` is specified on the command line.
+
+``` yaml $(trenton)
+trenton:
+ cli-name: alertsManagement
+ package-name: alertsmanagement
+clear-output-folder: true
+output-folder: $(trenton-output-folder)/alertsmanagement
+```
diff --git a/specification/appconfiguration/resource-manager/readme.md b/specification/appconfiguration/resource-manager/readme.md
index de29d229eefa..feac2e4b88ce 100644
--- a/specification/appconfiguration/resource-manager/readme.md
+++ b/specification/appconfiguration/resource-manager/readme.md
@@ -68,6 +68,7 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-python
+ - repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-net
- repo: azure-sdk-for-js
diff --git a/specification/applicationinsights/data-plane/Microsoft.Insights/preview/2018-04-20/swagger.json b/specification/applicationinsights/data-plane/Microsoft.Insights/preview/2018-04-20/swagger.json
index b85d005c3d56..1c49f1b2f3ec 100644
--- a/specification/applicationinsights/data-plane/Microsoft.Insights/preview/2018-04-20/swagger.json
+++ b/specification/applicationinsights/data-plane/Microsoft.Insights/preview/2018-04-20/swagger.json
@@ -133,7 +133,7 @@
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/components/{applicationName}/metadata": {
"post": {
- "operationId": "Post_Metadata",
+ "operationId": "Metadata_Post",
"summary": "Gets metadata information",
"description": "Retrieve the metadata information for the app, including its schema, etc.",
"x-ms-examples": {
@@ -171,7 +171,7 @@
}
},
"get": {
- "operationId": "Get_Metadata",
+ "operationId": "Metadata_Get",
"summary": "Gets metadata information",
"description": "Retrieve the metadata information for the app, including its schema, etc.",
"x-ms-examples": {
diff --git a/specification/applicationinsights/data-plane/Microsoft.Insights/preview/v1/AppInsights.json b/specification/applicationinsights/data-plane/Microsoft.Insights/preview/v1/AppInsights.json
index d4023de90522..506c07d7005c 100644
--- a/specification/applicationinsights/data-plane/Microsoft.Insights/preview/v1/AppInsights.json
+++ b/specification/applicationinsights/data-plane/Microsoft.Insights/preview/v1/AppInsights.json
@@ -380,7 +380,7 @@
},
"/apps/{appId}/metadata": {
"post": {
- "operationId": "Post_Metadata",
+ "operationId": "Metadata_Post",
"summary": "Gets metadata information",
"description": "Retrieve the metadata information for the app, including its schema, etc.",
"x-ms-examples": {
@@ -409,7 +409,7 @@
}
},
"get": {
- "operationId": "Get_Metadata",
+ "operationId": "Metadata_Get",
"summary": "Gets metadata information",
"description": "Retrieve the metadata information for the app, including its schema, etc.",
"x-ms-examples": {
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/componentProactiveDetection_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/componentProactiveDetection_API.json
similarity index 100%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/componentProactiveDetection_API.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/componentProactiveDetection_API.json
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/components_API.json
similarity index 98%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/components_API.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/components_API.json
index fc10d313cfce..8ba066afb183 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/components_API.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/components_API.json
@@ -532,6 +532,20 @@
"publicNetworkAccessForQuery": {
"description": "The network access type for accessing Application Insights query.",
"$ref": "#/definitions/PublicNetworkAccessType"
+ },
+ "IngestionMode": {
+ "type": "string",
+ "description": "Indicates the flow of the ingestion.",
+ "default": "ApplicationInsights",
+ "enum": [
+ "ApplicationInsights",
+ "ApplicationInsightsWithDiagnosticSettings",
+ "LogAnalytics"
+ ],
+ "x-ms-enum": {
+ "name": "IngestionMode",
+ "modelAsString": true
+ }
}
},
"required": [
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsCreate.json
similarity index 92%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsCreate.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsCreate.json
index 17a28fdee20e..70a74516f4e0 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsCreate.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsCreate.json
@@ -41,7 +41,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
}
},
@@ -71,7 +72,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsDelete.json
similarity index 100%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsDelete.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsDelete.json
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsGet.json
similarity index 92%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsGet.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsGet.json
index 3ace22b9672d..68d5f62719a7 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsGet.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsGet.json
@@ -32,7 +32,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsList.json
similarity index 92%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsList.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsList.json
index 281a057d8188..d9790161b4a4 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsList.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsList.json
@@ -32,7 +32,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
},
{
@@ -60,7 +61,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
}
],
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsListByResourceGroup.json
similarity index 92%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsListByResourceGroup.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsListByResourceGroup.json
index cee24e3764c9..8a34e64eb8a2 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsListByResourceGroup.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsListByResourceGroup.json
@@ -33,7 +33,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
},
{
@@ -61,7 +62,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
}
],
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsPurge.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurge.json
similarity index 100%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsPurge.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurge.json
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsPurgeStatus.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurgeStatus.json
similarity index 100%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsPurgeStatus.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurgeStatus.json
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdate.json
similarity index 93%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsUpdate.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdate.json
index b9df659a3d3f..30c8ce16a5e9 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsUpdate.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdate.json
@@ -43,7 +43,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
}
},
@@ -76,7 +77,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdateTagsOnly.json
similarity index 94%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsUpdateTagsOnly.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdateTagsOnly.json
index 9d8d07877055..911c023ab0a9 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ComponentsUpdateTagsOnly.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdateTagsOnly.json
@@ -47,7 +47,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
}
},
@@ -83,7 +84,8 @@
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "ApplicationInsights"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ProactiveDetectionConfigurationGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ProactiveDetectionConfigurationGet.json
similarity index 100%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ProactiveDetectionConfigurationGet.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ProactiveDetectionConfigurationGet.json
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ProactiveDetectionConfigurationUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ProactiveDetectionConfigurationUpdate.json
similarity index 100%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ProactiveDetectionConfigurationUpdate.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ProactiveDetectionConfigurationUpdate.json
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ProactiveDetectionConfigurationsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ProactiveDetectionConfigurationsList.json
similarity index 100%
rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01/examples/ProactiveDetectionConfigurationsList.json
rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ProactiveDetectionConfigurationsList.json
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/components_API.json
index 71cb6350a36c..c8606af89280 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/components_API.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/components_API.json
@@ -524,6 +524,20 @@
"publicNetworkAccessForQuery": {
"description": "The network access type for accessing Application Insights query.",
"$ref": "#/definitions/PublicNetworkAccessType"
+ },
+ "IngestionMode": {
+ "type": "string",
+ "description": "Indicates the flow of the ingestion.",
+ "default": "LogAnalytics",
+ "enum": [
+ "ApplicationInsights",
+ "ApplicationInsightsWithDiagnosticSettings",
+ "LogAnalytics"
+ ],
+ "x-ms-enum": {
+ "name": "IngestionMode",
+ "modelAsString": true
+ }
}
},
"required": [
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsCreate.json
index b60e0da5861a..fbc47f63d6ab 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsCreate.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsCreate.json
@@ -41,7 +41,8 @@
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "LogAnalytics"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsGet.json
index 8dc5e137725f..bbb10c0b9ceb 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsGet.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsGet.json
@@ -31,7 +31,8 @@
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "LogAnalytics"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsList.json
index 1a0e3d80e2eb..e1b8fef73125 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsList.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsList.json
@@ -31,7 +31,8 @@
"ConnectionString": "InstrumentationKey=dc5931c7-a7ad-4ad0-89d6-123456789abc",
"DisableIpMasking": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "LogAnalytics"
}
},
{
@@ -58,7 +59,8 @@
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "LogAnalytics"
}
}
],
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsListByResourceGroup.json
index 93423a2b9955..26738b90bc39 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsListByResourceGroup.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsListByResourceGroup.json
@@ -32,7 +32,8 @@
"ConnectionString": "InstrumentationKey=dc5931c7-a7ad-4ad0-89d6-123456789abc",
"DisableIpMasking": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "LogAnalytics"
}
},
{
@@ -59,7 +60,8 @@
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "LogAnalytics"
}
}
],
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsUpdate.json
index e02186407ca7..bb68a86b7bfb 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsUpdate.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsUpdate.json
@@ -42,7 +42,8 @@
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "LogAnalytics"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsUpdateTagsOnly.json
index 806476c3cf96..7ca0781617d0 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsUpdateTagsOnly.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-02-preview/examples/ComponentsUpdateTagsOnly.json
@@ -46,7 +46,8 @@
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
"publicNetworkAccessForQuery": "Enabled",
- "publicNetworkAccessForIngestion": "Enabled"
+ "publicNetworkAccessForIngestion": "Enabled",
+ "IngestionMode": "LogAnalytics"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json
new file mode 100644
index 000000000000..7bcea7f72ba3
--- /dev/null
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json
@@ -0,0 +1,294 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "ApplicationInsightsManagementClient",
+ "description": "Azure Application Insights client for web test results.",
+ "version": "2020-02-10-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.insights/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "summary": "List available operations.",
+ "description": "List the available operations supported by the Microsoft.EventGrid resource provider.",
+ "operationId": "Operations_List",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/OperationsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Operations_List": {
+ "$ref": "./examples/Operations_List.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}/getTestResultFile": {
+ "post": {
+ "tags": [
+ "WebTests_GetTestResultFile"
+ ],
+ "operationId": "getTestResultFile",
+ "description": "Returns a file test result for the matching test",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/WebTestNameParameter"
+ },
+ {
+ "$ref": "#/parameters/GeolocationIdParameter"
+ },
+ {
+ "$ref": "#/parameters/TimeStampParameter"
+ },
+ {
+ "$ref": "#/parameters/DownloadAsParameter"
+ },
+ {
+ "$ref": "#/parameters/TestSuccessfulCriteriaParameter"
+ },
+ {
+ "$ref": "#/parameters/ContinuationTokenParameter"
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ },
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TestResultFileResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Example Get call:": {
+ "$ref": "./examples/WebTestResultsTestResultFile.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ErrorResponse": {
+ "description": "Describes the format of Error response.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Error code",
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message indicating why the operation failed.",
+ "type": "string"
+ }
+ }
+ },
+ "TestResultFileResponse": {
+ "description": "Test result.",
+ "type": "object",
+ "properties": {
+ "data": {
+ "description": "File contents.",
+ "type": "string"
+ },
+ "nextLink": {
+ "description": "The URI that can be used to request the next section of the result file in the event the file is too large for a single request.",
+ "type": "string"
+ }
+ }
+ },
+ "OperationsListResult": {
+ "description": "Result of the List Operations operation",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of operations",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ }
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of operation list results if there are any."
+ }
+ }
+ },
+ "Operation": {
+ "description": "Represents an operation returned by the GetOperations request",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the operation",
+ "type": "string"
+ },
+ "display": {
+ "$ref": "#/definitions/OperationInfo",
+ "description": "Display name of the operation"
+ },
+ "origin": {
+ "description": "Origin of the operation",
+ "type": "string"
+ },
+ "properties": {
+ "description": "Properties of the operation",
+ "type": "object",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "OperationInfo": {
+ "description": "Information about an operation",
+ "type": "object",
+ "properties": {
+ "provider": {
+ "description": "Name of the provider",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Name of the resource type",
+ "type": "string"
+ },
+ "operation": {
+ "description": "Name of the operation",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description of the operation",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "WebTestNameParameter": {
+ "name": "webTestName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Application Insights webtest resource.",
+ "x-ms-parameter-location": "method"
+ },
+ "GeolocationIdParameter": {
+ "name": "geoLocationId",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The location ID where the webtest was physically run.",
+ "x-ms-parameter-location": "method"
+ },
+ "TimeStampParameter": {
+ "name": "timeStamp",
+ "in": "query",
+ "required": true,
+ "type": "integer",
+ "format": "int64",
+ "description": "The posix (epoch) time stamp for the webtest result.",
+ "x-ms-parameter-location": "method"
+ },
+ "DownloadAsParameter": {
+ "name": "downloadAs",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "WebTestResult",
+ "Json"
+ ],
+ "x-ms-enum": {
+ "name": "downloadAs",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "WebTestResult",
+ "description": "Returned file will be in visual studio webtestresult file format."
+ },
+ {
+ "value": "Json",
+ "description": "Returned file will be in json file format."
+ }
+ ]
+ },
+ "description": "The format to use when returning the webtest result.",
+ "x-ms-parameter-location": "method"
+ },
+ "TestSuccessfulCriteriaParameter": {
+ "name": "testSuccessfulCriteria",
+ "in": "query",
+ "required": false,
+ "type": "boolean",
+ "description": "The success state criteria for the webtest result.",
+ "x-ms-parameter-location": "method"
+ },
+ "ContinuationTokenParameter": {
+ "name": "continuationToken",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The continuation token.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/Operations_List.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/Operations_List.json
new file mode 100644
index 000000000000..583aa46d8850
--- /dev/null
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/Operations_List.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "api-version": "2020-02-10-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "microsoft.insights/webtests/gettestresultfile",
+ "display": {
+ "provider": "Microsoft Container Instance",
+ "resource": "webtests",
+ "operation": "Get test results file",
+ "description": "Get the requested webtest result"
+ },
+ "origin": "User"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WebTestResultsTestResultFile.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WebTestResultsTestResultFile.json
new file mode 100644
index 000000000000..31dc3c9e7a99
--- /dev/null
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WebTestResultsTestResultFile.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2020-02-10-preview",
+ "subscriptionId": "123subid",
+ "resourceGroupName": "myresourcegroup",
+ "webTestName": "my-test-name",
+ "geoLocationId": "brs",
+ "timeStamp": 1566819054,
+ "downloadAs": "WebTestResult",
+ "testSuccessfulCriteria": true,
+ "continuationToken": "0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "data": "xxxxxxxxxx",
+ "nextLink": "https://management.azure.com/subscriptions/123subid/resourcegroups/myresourcegroup/providers/microsoft.insights/webtests/my-test-name/testresultfile?geoLocationId=brs×tamp=1566823240&downloadAs=webtestresult&testSuccessfulCriteria=true&continuationToken=10&api-version=2020-10-01-preview"
+ }
+ }
+ }
+}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json
index 507d3910d1b1..73eb9e993907 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json
@@ -512,6 +512,20 @@
"$ref": "#/definitions/PrivateLinkScopedResource"
},
"description": "List of linked private link scope resources."
+ },
+ "IngestionMode": {
+ "type": "string",
+ "description": "Indicates the flow of the ingestion.",
+ "default": "ApplicationInsights",
+ "enum": [
+ "ApplicationInsights",
+ "ApplicationInsightsWithDiagnosticSettings",
+ "LogAnalytics"
+ ],
+ "x-ms-enum": {
+ "name": "IngestionMode",
+ "modelAsString": true
+ }
}
},
"required": [
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json
index a2603e240382..88bcfebb39ce 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json
@@ -39,7 +39,8 @@
"RetentionInDays": 90,
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
- "ImmediatePurgeDataOn30Days": false
+ "ImmediatePurgeDataOn30Days": false,
+ "IngestionMode": "ApplicationInsights"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json
index ea7eb18ea7d0..c00693fd1988 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json
@@ -30,7 +30,8 @@
"RetentionInDays": 90,
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
- "ImmediatePurgeDataOn30Days": false
+ "ImmediatePurgeDataOn30Days": false,
+ "IngestionMode": "ApplicationInsights"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json
index ccb105e6cac0..3b8fbf90a8ee 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json
@@ -30,7 +30,8 @@
"RetentionInDays": 90,
"ConnectionString": "InstrumentationKey=dc5931c7-a7ad-4ad0-89d6-123456789abc",
"DisableIpMasking": false,
- "ImmediatePurgeDataOn30Days": false
+ "ImmediatePurgeDataOn30Days": false,
+ "IngestionMode": "ApplicationInsights"
}
},
{
@@ -56,7 +57,8 @@
"RetentionInDays": 90,
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
- "ImmediatePurgeDataOn30Days": false
+ "ImmediatePurgeDataOn30Days": false,
+ "IngestionMode": "ApplicationInsights"
}
}
],
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json
index dc9c2b395132..92bc4f1c5498 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json
@@ -31,7 +31,8 @@
"RetentionInDays": 90,
"ConnectionString": "InstrumentationKey=dc5931c7-a7ad-4ad0-89d6-123456789abc",
"DisableIpMasking": false,
- "ImmediatePurgeDataOn30Days": false
+ "ImmediatePurgeDataOn30Days": false,
+ "IngestionMode": "ApplicationInsights"
}
},
{
@@ -57,7 +58,8 @@
"RetentionInDays": 90,
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
- "ImmediatePurgeDataOn30Days": false
+ "ImmediatePurgeDataOn30Days": false,
+ "IngestionMode": "ApplicationInsights"
}
}
],
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json
index ac92ef81e926..9ab62afd13e7 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json
@@ -41,7 +41,8 @@
"RetentionInDays": 90,
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
- "ImmediatePurgeDataOn30Days": false
+ "ImmediatePurgeDataOn30Days": false,
+ "IngestionMode": "ApplicationInsights"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json
index 3487365d9a29..8bbbfec88eb7 100644
--- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json
+++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json
@@ -45,7 +45,8 @@
"RetentionInDays": 90,
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
- "ImmediatePurgeDataOn30Days": false
+ "ImmediatePurgeDataOn30Days": false,
+ "IngestionMode": "ApplicationInsights"
}
}
}
diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md
index edd696d4bbc1..b01e064aecde 100644
--- a/specification/applicationinsights/resource-manager/readme.md
+++ b/specification/applicationinsights/resource-manager/readme.md
@@ -4,10 +4,10 @@
This is the AutoRest configuration file for ApplicationInsights.
-
-
---
+
## Getting Started
+
To build the SDK for ApplicationInsights, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
> `autorest`
@@ -15,6 +15,7 @@ To build the SDK for ApplicationInsights, simply [Install AutoRest](https://aka.
To see additional help and options, run:
> `autorest --help`
+
---
## Configuration
@@ -27,7 +28,7 @@ These are the global settings for the ApplicationInsights API.
title: ApplicationInsightsManagementClient
description: Composite Swagger for Application Insights Management Client
openapi-type: arm
-tag: package-2015-05
+tag: package-preview-2020-02
```
## Suppression
@@ -237,6 +238,15 @@ directive:
reason: There are a bug in this rule. "ExportConfigurations_Create" is a valid operation id.
```
+
+### Tag: package-preview-2020-02
+
+These settings apply only when `--tag=package-preview-2020-02` is specified on the command line.
+
+```yaml $(tag) == 'package-preview-2020-02'
+input-file:
+ - Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json
+```
### Tag: package-2015-05
These settings apply only when `--tag=package-2015-05` is specified on the command line.
@@ -281,7 +291,7 @@ input-file:
These settings apply only when `--tag=package-2019-10-17-preview` is specified on the command line.
-```yaml $(tag) == 'package-2019-10-17-preview'
+``` yaml $(tag) == 'package-2019-10-17-preview'
input-file:
- Microsoft.Insights/preview/2019-10-17-preview/workbookTemplates_API.json
```
@@ -292,8 +302,8 @@ These settings apply only when `--tag=package-2018-05-01-preview` is specified o
``` yaml $(tag) == 'package-2018-05-01-preview'
input-file:
-- Microsoft.Insights/preview/2018-05-01/componentProactiveDetection_API.json
-- Microsoft.Insights/preview/2018-05-01/components_API.json
+- Microsoft.Insights/preview/2018-05-01-preview/componentProactiveDetection_API.json
+- Microsoft.Insights/preview/2018-05-01-preview/components_API.json
```
### Tag: package-2019-09-01-preview
@@ -342,7 +352,7 @@ input-file:
- Microsoft.Insights/stable/2015-05-01/webTests_API.json
- Microsoft.Insights/stable/2015-05-01/analyticsItems_API.json
- Microsoft.Insights/stable/2015-05-01/workbooks_API.json
-- Microsoft.Insights/preview/2018-05-01/components_API.json
+- Microsoft.Insights/preview/2018-05-01-preview/components_API.json
- Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json
```
@@ -445,6 +455,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json
- $(this-folder)/Microsoft.Insights/stable/2015-05-01/aiOperations_API.json
- $(this-folder)/Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json
- $(this-folder)/Microsoft.Insights/stable/2015-05-01/componentApiKeys_API.json
@@ -462,8 +473,8 @@ input-file:
- $(this-folder)/Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json
- $(this-folder)/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json
- $(this-folder)/Microsoft.Insights/preview/2019-10-17-preview/workbookTemplates_API.json
- - $(this-folder)/Microsoft.Insights/preview/2018-05-01/componentProactiveDetection_API.json
- - $(this-folder)/Microsoft.Insights/preview/2018-05-01/components_API.json
+ - $(this-folder)/Microsoft.Insights/preview/2018-05-01-preview/componentProactiveDetection_API.json
+ - $(this-folder)/Microsoft.Insights/preview/2018-05-01-preview/components_API.json
- $(this-folder)/Microsoft.Insights/preview/2019-09-01-preview/QueryPackQueries_API.json
- $(this-folder)/Microsoft.Insights/preview/2019-09-01-preview/QueryPacks_API.json
- $(this-folder)/Microsoft.Insights/preview/2020-02-02-preview/components_API.json
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.json
index 5f51a46af56f..773e65c8d69f 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.json
@@ -2159,6 +2159,44 @@
}
}
}
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus": {
+ "get": {
+ "tags": [
+ "AppPlatform"
+ ],
+ "operationId": "Sku_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/ResourceSkuCollection"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Sku_List": {
+ "$ref": "./examples/Sku_List.json"
+ }
+ }
+ }
}
},
"definitions": {
@@ -2175,6 +2213,10 @@
"$ref": "#/definitions/ClusterResourceProperties",
"description": "Properties of the Service resource",
"x-ms-client-flatten": false
+ },
+ "sku": {
+ "$ref": "#/definitions/Sku",
+ "description": "Sku of the Service resource"
}
}
},
@@ -2267,6 +2309,50 @@
}
}
},
+ "ManagedIdentityProperties": {
+ "description": "Managed identity properties retrieved from ARM request headers.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "enum": [
+ "None",
+ "SystemAssigned",
+ "UserAssigned",
+ "SystemAssigned,UserAssigned"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ManagedIdentityType",
+ "modelAsString": true
+ }
+ },
+ "principalId": {
+ "type": "string"
+ },
+ "tenantId": {
+ "type": "string"
+ }
+ }
+ },
+ "Sku": {
+ "description": "Sku of Azure Spring Cloud",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the Sku",
+ "type": "string"
+ },
+ "tier": {
+ "description": "Tier of the Sku",
+ "type": "string"
+ },
+ "capacity": {
+ "format": "int32",
+ "description": "Current capacity of the target resource",
+ "type": "integer"
+ }
+ }
+ },
"ConfigServerProperties": {
"description": "Config server git properties payload",
"type": "object",
@@ -2534,6 +2620,10 @@
"description": "Properties of the App resource",
"x-ms-client-flatten": false
},
+ "identity": {
+ "$ref": "#/definitions/ManagedIdentityProperties",
+ "description": "The Managed Identity type of the app resource"
+ },
"location": {
"description": "The GEO location of the application, always the same with its parent resource",
"type": "string"
@@ -3093,18 +3183,14 @@
"properties": {
"cpu": {
"format": "int32",
- "description": "Required CPU",
+ "description": "Required CPU, basic tier should be 1, standard tier should be in range (1, 4)",
"default": 1,
- "maximum": 4.0,
- "minimum": 1.0,
"type": "integer"
},
"memoryInGB": {
"format": "int32",
- "description": "Required Memory size in GB",
+ "description": "Required Memory size in GB, basic tier should be in range (1, 2), standard tier should be in range (1, 8)",
"default": 1,
- "maximum": 8.0,
- "minimum": 1.0,
"type": "integer"
},
"jvmOptions": {
@@ -3113,10 +3199,8 @@
},
"instanceCount": {
"format": "int32",
- "description": "Instance count",
+ "description": "Instance count, basic tier should be in range (1, 25), standard tier should be in range (1, 500)",
"default": 1,
- "maximum": 20.0,
- "minimum": 1.0,
"type": "integer"
},
"environmentVariables": {
@@ -3403,6 +3487,227 @@
}
}
},
+ "ResourceSkuCollection": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of resource SKU",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceSku"
+ }
+ },
+ "nextLink": {
+ "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.",
+ "type": "string"
+ }
+ }
+ },
+ "ResourceSku": {
+ "description": "Describes an available Azure Spring Cloud SKU.",
+ "type": "object",
+ "properties": {
+ "resourceType": {
+ "description": "Gets the type of resource the SKU applies to.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Gets the name of SKU.",
+ "type": "string"
+ },
+ "tier": {
+ "description": "Gets the tier of SKU.",
+ "type": "string"
+ },
+ "capacity": {
+ "$ref": "#/definitions/SkuCapacity",
+ "description": "Gets the capacity of SKU."
+ },
+ "locations": {
+ "description": "Gets the set of locations that the SKU is available.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "locationInfo": {
+ "description": "Gets a list of locations and availability zones in those locations where the SKU is available.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceSkuLocationInfo"
+ }
+ },
+ "restrictions": {
+ "description": "Gets the restrictions because of which SKU cannot be used. This is\r\nempty if there are no restrictions.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceSkuRestrictions"
+ }
+ }
+ }
+ },
+ "SkuCapacity": {
+ "description": "The SKU capacity",
+ "required": [
+ "minimum"
+ ],
+ "type": "object",
+ "properties": {
+ "minimum": {
+ "format": "int32",
+ "description": "Gets or sets the minimum.",
+ "type": "integer"
+ },
+ "maximum": {
+ "format": "int32",
+ "description": "Gets or sets the maximum.",
+ "type": "integer"
+ },
+ "default": {
+ "format": "int32",
+ "description": "Gets or sets the default.",
+ "type": "integer"
+ },
+ "scaleType": {
+ "description": "Gets or sets the type of the scale.",
+ "enum": [
+ "None",
+ "Manual",
+ "Automatic"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SkuScaleType",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "ResourceSkuLocationInfo": {
+ "type": "object",
+ "properties": {
+ "location": {
+ "description": "Gets location of the SKU",
+ "type": "string"
+ },
+ "zones": {
+ "description": "Gets list of availability zones where the SKU is supported.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "zoneDetails": {
+ "description": "Gets details of capabilities available to a SKU in specific zones.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceSkuZoneDetails"
+ }
+ }
+ }
+ },
+ "ResourceSkuRestrictions": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "description": "Gets the type of restrictions. Possible values include: 'Location', 'Zone'",
+ "enum": [
+ "Location",
+ "Zone"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ResourceSkuRestrictionsType",
+ "modelAsString": true
+ }
+ },
+ "values": {
+ "description": "Gets the value of restrictions. If the restriction type is set to\r\nlocation. This would be different locations where the SKU is restricted.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "restrictionInfo": {
+ "$ref": "#/definitions/ResourceSkuRestrictionInfo",
+ "description": "Gets the information about the restriction where the SKU cannot be used."
+ },
+ "reasonCode": {
+ "description": "Gets the reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription'",
+ "enum": [
+ "QuotaId",
+ "NotAvailableForSubscription"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ResourceSkuRestrictionsReasonCode",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "ResourceSkuZoneDetails": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Gets the set of zones that the SKU is available in with the\r\nspecified capabilities.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "capabilities": {
+ "description": "Gets a list of capabilities that are available for the SKU in the\r\nspecified list of zones.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceSkuCapabilities"
+ }
+ }
+ }
+ },
+ "ResourceSkuRestrictionInfo": {
+ "type": "object",
+ "properties": {
+ "locations": {
+ "description": "Gets locations where the SKU is restricted",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "zones": {
+ "description": "Gets list of availability zones where the SKU is restricted.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "ResourceSkuCapabilities": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Gets an invariant to describe the feature.",
+ "type": "string"
+ },
+ "value": {
+ "description": "Gets an invariant if the feature is measured by quantity.",
+ "type": "string"
+ }
+ }
+ },
"CloudError": {
"description": "An error response from the service.",
"properties": {
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_CreateOrUpdate.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_CreateOrUpdate.json
index 8145e8e44747..be7ae73efb86 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_CreateOrUpdate.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_CreateOrUpdate.json
@@ -15,6 +15,7 @@
"mountPath": "mypersistentdisk"
}
},
+ "identity": null,
"location": "eastus"
},
"api-version": "2019-05-01-preview",
@@ -44,6 +45,11 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
+ "identity": {
+ "type": "SystemAssigned",
+ "principalId": "principalid",
+ "tenantId": "tenantid"
+ },
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
@@ -69,6 +75,11 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
+ "identity": {
+ "type": "SystemAssigned",
+ "principalId": "principalid",
+ "tenantId": "tenantid"
+ },
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_Get.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_Get.json
index abdcd6fbd998..d939253e293a 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_Get.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_Get.json
@@ -27,6 +27,11 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
+ "identity": {
+ "type": "SystemAssigned",
+ "principalId": "principalid",
+ "tenantId": "tenantid"
+ },
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_List.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_List.json
index 0e9002ad0c77..2d5263ba9412 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_List.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_List.json
@@ -28,6 +28,11 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
+ "identity": {
+ "type": "SystemAssigned",
+ "principalId": "principalid",
+ "tenantId": "tenantid"
+ },
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_Update.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_Update.json
index 2ad43819f26f..d54122ac471b 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_Update.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Apps_Update.json
@@ -15,6 +15,11 @@
"mountPath": "mypersistentdisk"
}
},
+ "identity": {
+ "type": "SystemAssigned",
+ "principalId": null,
+ "tenantId": null
+ },
"location": "eastus"
},
"api-version": "2019-05-01-preview",
@@ -44,6 +49,11 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
+ "identity": {
+ "type": "SystemAssigned",
+ "principalId": "principalid",
+ "tenantId": "tenantid"
+ },
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
@@ -69,6 +79,11 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
+ "identity": {
+ "type": "SystemAssigned",
+ "principalId": "principalid",
+ "tenantId": "tenantid"
+ },
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_CreateOrUpdate.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_CreateOrUpdate.json
index f21f1f432b7d..0b9eb4797dc1 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_CreateOrUpdate.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_CreateOrUpdate.json
@@ -18,6 +18,10 @@
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
}
},
+ "sku": {
+ "name": "P0",
+ "tier": "Premium"
+ },
"location": "eastus",
"tags": {
"key1": "value1"
@@ -53,6 +57,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
+ "sku": {
+ "name": "P0",
+ "tier": "Premium"
+ },
"location": "eastus",
"tags": {
"key1": "value1"
@@ -85,6 +93,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
+ "sku": {
+ "name": "P0",
+ "tier": "Premium"
+ },
"location": "eastus",
"tags": {
"key1": "value1"
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Get.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Get.json
index ebe1db60e6d2..0fd464fbf73c 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Get.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Get.json
@@ -30,6 +30,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
+ "sku": {
+ "name": "P0",
+ "tier": "Premium"
+ },
"location": "eastus",
"tags": {
"key1": "value1"
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_List.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_List.json
index ce13e8f49f54..60bff7e0b137 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_List.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_List.json
@@ -31,6 +31,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
+ "sku": {
+ "name": "P0",
+ "tier": "Premium"
+ },
"location": "eastus",
"tags": {
"key1": "value1"
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_ListBySubscription.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_ListBySubscription.json
index 818367d797a5..1e7ffa74d93f 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_ListBySubscription.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_ListBySubscription.json
@@ -30,6 +30,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
+ "sku": {
+ "name": "P0",
+ "tier": "Premium"
+ },
"location": "eastus",
"tags": {
"key1": "value1"
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Update.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Update.json
index 6f71ce79b699..6ff77da01f9b 100644
--- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Update.json
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Services_Update.json
@@ -18,6 +18,10 @@
"appInsightInstrumentationKey": "00000000-0000-0000-0000-000000000000"
}
},
+ "sku": {
+ "name": "P0",
+ "tier": "Premium"
+ },
"location": "eastus",
"tags": {
"key1": "value1"
@@ -53,6 +57,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
+ "sku": {
+ "name": "P0",
+ "tier": "Premium"
+ },
"location": "eastus",
"tags": {
"key1": "value1"
@@ -85,6 +93,10 @@
"serviceId": "12345678abcd1234abcd12345678abcd"
},
"type": "Microsoft.AppPlatform/Spring",
+ "sku": {
+ "name": "P0",
+ "tier": "Premium"
+ },
"location": "eastus",
"tags": {
"key1": "value1"
diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Sku_List.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Sku_List.json
new file mode 100644
index 000000000000..99c4c8efe8e7
--- /dev/null
+++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Sku_List.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "api-version": "2019-05-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "resourceType": "Spring",
+ "name": "B0",
+ "tier": "Basic",
+ "capacity": {
+ "minimum": 1,
+ "maximum": 20,
+ "default": 1,
+ "scaleType": "Automatic"
+ },
+ "locations": [
+ "eastus"
+ ],
+ "locationInfo": [
+ {
+ "location": "eastus",
+ "zones": [],
+ "zoneDetails": []
+ }
+ ],
+ "restrictions": []
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/attestation/resource-manager/readme.cli.md b/specification/attestation/resource-manager/readme.cli.md
index c1990d90a9d8..539d9cf67e00 100644
--- a/specification/attestation/resource-manager/readme.cli.md
+++ b/specification/attestation/resource-manager/readme.cli.md
@@ -7,11 +7,12 @@ cli:
cli-name: attestation
package-name: azure-mgmt-attestation
namespace: azure.mgmt.attestation
- test-setup:
- - name: Operations_List
- - name: AttestationProviders_Create
- - name: AttestationProviders_Get
- - name: AttestationProviders_List
- - name: AttestationProviders_ListByResourceGroup
- - name: AttestationProviders_Delete
+ test-scenario:
+ - name: /AttestationProviders/put/AttestationProviders_Create
+ - name: /AttestationProviders/get/AttestationProviders_Get
+ - name: /AttestationProviders/get/AttestationProviders_ListByResourceGroup
+ - name: /AttestationProviders/get/AttestationProviders_List
+ - name: /Operations/get/Operations_List
+ - name: /AttestationProviders/patch/AttestationProviders_Update
+ - name: /AttestationProviders/delete/AttestationProviders_Delete
```
diff --git a/specification/azsadmin/resource-manager/commerce/Microsoft.Commerce.Admin/preview/2015-06-01-preview/Commerce.json b/specification/azsadmin/resource-manager/commerce/Microsoft.Commerce.Admin/preview/2015-06-01-preview/Commerce.json
index c34915e2be14..890c3b5b8fda 100644
--- a/specification/azsadmin/resource-manager/commerce/Microsoft.Commerce.Admin/preview/2015-06-01-preview/Commerce.json
+++ b/specification/azsadmin/resource-manager/commerce/Microsoft.Commerce.Admin/preview/2015-06-01-preview/Commerce.json
@@ -198,7 +198,8 @@
},
"quantity": {
"description": "The amount of the resource consumption that occurred in this time frame.",
- "type": "string"
+ "type": "number",
+ "format": "double"
},
"meterId": {
"description": "Unique ID for the resource that was consumed, for example, the Resource ID.",
diff --git a/specification/azsadmin/resource-manager/commerce/readme.azsautogen.md b/specification/azsadmin/resource-manager/commerce/readme.azsautogen.md
new file mode 100644
index 000000000000..77f54f1348bb
--- /dev/null
+++ b/specification/azsadmin/resource-manager/commerce/readme.azsautogen.md
@@ -0,0 +1,8 @@
+# AutoRest v3 generators
+
+> see https://aka.ms/autorest
+
+``` yaml
+input-file:
+ - Microsoft.Commerce.Admin/preview/2015-06-01-preview/Commerce.json
+```
diff --git a/specification/azsadmin/resource-manager/commerce/readme.md b/specification/azsadmin/resource-manager/commerce/readme.md
index 1676a911714f..7e36302807ea 100644
--- a/specification/azsadmin/resource-manager/commerce/readme.md
+++ b/specification/azsadmin/resource-manager/commerce/readme.md
@@ -84,4 +84,3 @@ uncomment the `exclude-file` section below and add the file paths.
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
-
diff --git a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/examples/StorageAccounts/Undelete.json b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/examples/StorageAccounts/Undelete.json
index c4a30491f691..51713d045a6f 100644
--- a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/examples/StorageAccounts/Undelete.json
+++ b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/examples/StorageAccounts/Undelete.json
@@ -7,11 +7,7 @@
"summary": "false"
},
"responses": {
- "200": {
- "body": {
- "accountId": "80d458ce4ecd47888b54aaa277800748"
- }
- },
+ "200": {},
"202": {}
}
}
diff --git a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/settings.json b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/settings.json
index 9f8a9e4bc325..626252ba8783 100644
--- a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/settings.json
+++ b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/settings.json
@@ -121,8 +121,7 @@
"properties": {
"description": "Properties of the storage account.",
"x-ms-client-flatten": true,
- "$ref": "#/definitions/SettingProperties",
- "readOnly": true
+ "$ref": "#/definitions/SettingProperties"
}
},
"allOf": [
diff --git a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storage.json b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storage.json
index 7f09a86f4239..bd30cc8babdf 100644
--- a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storage.json
+++ b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storage.json
@@ -91,7 +91,7 @@
}
}
},
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroup}/providers/Microsoft.Storage.Admin/storageServices": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage.Admin/storageServices": {
"get": {
"x-ms-examples": {
"Returns the storage services list under the specified resource group and subscription.": {
@@ -166,7 +166,7 @@
}
}
},
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroup}/providers/Microsoft.Storage.Admin/storageServices/{serviceName}": {
+ "/subscriptions/{subscriptionId}resourceGroups/{resourceGroup}/providers/Microsoft.Storage.Admin/storageServices/{serviceName}": {
"get": {
"x-ms-examples": {
"Returns the specified storage service.": {
diff --git a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json
index ec8df91cef15..93288e309e6d 100644
--- a/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json
+++ b/specification/azsadmin/resource-manager/storage/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json
@@ -137,10 +137,7 @@
],
"responses": {
"200": {
- "description": "OK -- Undelete either has been performed or account was not deleted.",
- "schema": {
- "$ref": "#/definitions/UndeleteStorageAccount"
- }
+ "description": "OK -- Undelete either has been performed or account was not deleted."
},
"202": {
"description": "Accepted -- undelete operation trigged; operation will complete asynchronously."
@@ -195,7 +192,10 @@
}
}
},
- "x-ms-long-running-operation": true
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
}
}
},
@@ -377,6 +377,7 @@
},
"primaryEndpoints": {
"description": "The URLs that are used to perform a retrieval of a public BLOB, queue, or table object.",
+ "type": "object",
"additionalProperties": {
"type": "string"
},
@@ -543,7 +544,8 @@
"in": "query",
"required": false,
"type": "boolean",
- "x-ms-parameter-location": "method"
+ "x-ms-parameter-location": "method",
+ "default": false
},
"FilterParameter": {
"description": "Filter string",
diff --git a/specification/azsadmin/resource-manager/storage/readme.azsautogen.md b/specification/azsadmin/resource-manager/storage/readme.azsautogen.md
new file mode 100644
index 000000000000..d6a523515d44
--- /dev/null
+++ b/specification/azsadmin/resource-manager/storage/readme.azsautogen.md
@@ -0,0 +1,55 @@
+# Storage Admin
+
+> see https://aka.ms/autorest
+
+This is the AutoRest configuration file for Storage Admin.
+
+---
+## Getting Started
+To build the SDK for Storage Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
+
+> `autorest`
+
+To see additional help and options, run:
+
+> `autorest --help`
+---
+
+## Configuration
+
+### Basic Information
+These are the global settings for the Storage API.
+
+``` yaml
+title: StorageAdminClient
+description: Storage Admin Client
+openapi-type: arm
+tag: package-2019-08-08
+```
+
+``` yaml
+input-file:
+ - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/storageaccounts.json
+ - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/quotas.json
+ - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/settings.json
+ - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/storage.json
+ - $(this-folder)/Microsoft.Storage.Admin/preview/2019-08-08/acquisitions.json
+```
+
+---
+# Code Generation
+
+## C#
+
+These settings apply only when `--csharp` is specified on the command line.
+Please also specify `--csharp-sdks-folder=`.
+
+``` yaml $(csharp)
+csharp:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ namespace: Microsoft.AzureStack.Management.Storage.Admin
+ payload-flattening-threshold: 1
+ output-folder: $(csharp-sdks-folder)/Generated
+ clear-output-folder: true
+```
diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2020-02-15/kusto.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2020-02-15/kusto.json
index 9f6452aaae4a..de503c5dc6ef 100644
--- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2020-02-15/kusto.json
+++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2020-02-15/kusto.json
@@ -2877,7 +2877,7 @@
"description": "The statistics of the database."
},
"isFollowed": {
- "type": "string",
+ "type": "boolean",
"readOnly": true,
"description": "Indicates whether the database is followed."
}
diff --git a/specification/azure-kusto/resource-manager/readme.java.md b/specification/azure-kusto/resource-manager/readme.java.md
index d8a5cd934f22..aa1b6240aba8 100644
--- a/specification/azure-kusto/resource-manager/readme.java.md
+++ b/specification/azure-kusto/resource-manager/readme.java.md
@@ -17,6 +17,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-kusto
``` yaml $(java) && $(multiapi)
batch:
- tag: package-2019-11-09
+ - tag: package-2020-02-15
```
### Tag: package-2018-09-07-preview and java
@@ -82,4 +83,17 @@ java:
output-folder: $(azure-libraries-for-java-folder)/sdk/kusto/mgmt-v2019_11_09
regenerate-manager: true
generate-interface: true
+```
+
+### Tag: package-2020-02-15 and java
+
+These settings apply only when `--tag=package-2020-02-15 --java` is specified on the command line.
+Please also specify `--azure-libraries-for-java=`.
+
+``` yaml $(tag) == 'package-2020-02-15' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.kusto.v2020_02_15
+ output-folder: $(azure-libraries-for-java-folder)/sdk/kusto/mgmt-v2020_02_15
+regenerate-manager: true
+generate-interface: true
```
\ No newline at end of file
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyCreate.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyCreate.json
new file mode 100644
index 000000000000..57e47eddbf87
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyCreate.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "policyName": "ddb1",
+ "api-version": "2020-03-01-preview",
+ "privateLinkPolicy": {
+ "name": "myOrgPrivateLinkPolicy",
+ "allTenants": false,
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "allTenants": false,
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ },
+ "201": {
+ "body": {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "allTenants": false,
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyDelete.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyDelete.json
new file mode 100644
index 000000000000..a67dbec84476
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyDelete.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "policyName": "ddb1",
+ "api-version": "2020-03-01-preview",
+ "privateLinkPolicy": {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "allTenants": false,
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyGet.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyGet.json
new file mode 100644
index 000000000000..8dbe8dcf0e61
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyGet.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "policyName": "ddb1",
+ "api-version": "2020-03-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "allTenants": false,
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyList.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyList.json
new file mode 100644
index 000000000000..da9771decce0
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyList.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-03-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ ],
+ "nextLink": "null"
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyListBySubscription.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyListBySubscription.json
new file mode 100644
index 000000000000..4fb0b868ed83
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyListBySubscription.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "api-version": "2020-03-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "allTenants": false,
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ ],
+ "nextLink": "null"
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyMinCreate.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyMinCreate.json
new file mode 100644
index 000000000000..75a8b97c04e2
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyMinCreate.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "policyName": "ddb1",
+ "api-version": "2020-03-01-preview",
+ "privateLinkPolicy": {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "allTenants": false,
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "allTenants": false,
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ },
+ "201": {
+ "body": {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "allTenants": false,
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG"
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyUpdate.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyUpdate.json
new file mode 100644
index 000000000000..5902885602af
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkPolicyUpdate.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "policyName": "ddb1",
+ "api-version": "2020-03-01-preview",
+ "privateLinkPolicy": {
+ "tags": {}
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "myOrgPrivateLinkPolicy",
+ "ownerTenantId": "950f8bca-bf4d-4a41-ad10-034e792a243d",
+ "allTenants": false,
+ "tenants": [
+ "3616657d-1c80-41ae-9d83-2a2776f2c9be",
+ "727b6ef1-18ab-4627-ac95-3f9cd945ed87"
+ ],
+ "resourceName": "myOrgVnetPrivateLink",
+ "subscriptionId": "57849194-ea1f-470b-abda-d195b25634c1",
+ "resourceGroup": "myOrgVnetRG",
+ "tags": {}
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkResourceGet.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkResourceGet.json
new file mode 100644
index 000000000000..31fbcdc073ef
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkResourceGet.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "policyName": "ddb1",
+ "groupName": "azureactivedirectory",
+ "api-version": "2020-03-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/microsoft.aadiam/privateLinkForAzureAD/ddb1/privateLinkResources/azureactivedirectory",
+ "name": "azureactivedirectory",
+ "type": "microsoft.aadiam/privateLinkforAzureAD/privateLinkResources",
+ "properties": {
+ "groupId": "azureactivedirectory",
+ "requiredMembers": [
+ "authentication",
+ "nonauthentication"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkResourceListGet.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkResourceListGet.json
new file mode 100644
index 000000000000..60fe21893e83
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/examples/AzureADPrivateLinkResourceListGet.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "policyName": "ddb1",
+ "api-version": "2020-03-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/microsoft.aadiam/privateLinkForAzureAD/ddb1/privateLinkResources/azureactivedirectory",
+ "name": "azureactivedirectory",
+ "type": "microsoft.aadiam/privateLinkforAzureAD/privateLinkResources",
+ "properties": {
+ "groupId": "azureactivedirectory",
+ "requiredMembers": [
+ "authentication",
+ "nonauthentication"
+ ]
+ }
+ }
+ ],
+ "nextLink": "null"
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkForAzureAD.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkForAzureAD.json
new file mode 100644
index 000000000000..28cedade989e
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkForAzureAD.json
@@ -0,0 +1,480 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-03-01-preview",
+ "title": "azureactivedirectory",
+ "description": "Private link Policy for Azure Active Directory."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.aadiam/privateLinkForAzureAd/{policyName}": {
+ "put": {
+ "tags": [
+ "privateLinkForAzureAd"
+ ],
+ "operationId": "privateLinkForAzureAd_Create",
+ "x-ms-long-running-operation": true,
+ "description": "Creates a private link policy.",
+ "x-ms-examples": {
+ "privateLinkPolicyCreate": {
+ "$ref": "./examples/AzureADPrivateLinkPolicyCreate.json"
+ },
+ "privateLinkPolicyMinCreate": {
+ "$ref": "./examples/AzureADPrivateLinkPolicyMinCreate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/policyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "privateLinkPolicy",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/privateLinkPolicy"
+ },
+ "description": "private link Policy supplied to the operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Created -- Private Link Policy created.",
+ "schema": {
+ "$ref": "#/definitions/privateLinkPolicy"
+ }
+ },
+ "201": {
+ "description": "OK -- Private Link Policy is updated.",
+ "schema": {
+ "$ref": "#/definitions/privateLinkPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "privateLinkForAzureAd"
+ ],
+ "operationId": "privateLinkForAzureAd_Update",
+ "description": "Updates private link policy tags with specified values.",
+ "x-ms-examples": {
+ "privateLinkPolicyUpdate": {
+ "$ref": "./examples/AzureADPrivateLinkPolicyUpdate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/policyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "privateLinkPolicy",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/privateLinkPolicyUpdateParameter"
+ },
+ "description": "Private Link Policy resource with the tags to be updated."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Private Link Policy tags are updated.",
+ "schema": {
+ "$ref": "#/definitions/privateLinkPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "privateLinkForAzureAd"
+ ],
+ "operationId": "privateLinkForAzureAd_Get",
+ "description": "Gets a private link policy with a given name.",
+ "x-ms-examples": {
+ "privateLinkPolicyGet": {
+ "$ref": "./examples/AzureADPrivateLinkPolicyGet.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/policyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Returns information about the private link policy.",
+ "schema": {
+ "$ref": "#/definitions/privateLinkPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "privateLinkForAzureAd"
+ ],
+ "operationId": "privateLinkForAzureAd_Delete",
+ "description": "Deletes a private link policy. When operation completes, status code 200 returned without content.",
+ "x-ms-examples": {
+ "privateLinkPolicyDelete": {
+ "$ref": "./examples/AzureADPrivateLinkPolicyDelete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/policyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- private link policy deleted."
+ },
+ "204": {
+ "description": "private link policy does not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/microsoft.aadiam/privateLinkForAzureAd": {
+ "get": {
+ "tags": [
+ "privateLinkForAzureAd"
+ ],
+ "operationId": "privateLinkForAzureAd_ListBySubscription",
+ "description": "Lists all Private Link Policies For AzureAD in the given subscription.",
+ "x-ms-examples": {
+ "privateLinkPolicyListBySubscription": {
+ "$ref": "./examples/AzureADPrivateLinkPolicyListBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Returns a list of private link policies.",
+ "schema": {
+ "$ref": "#/definitions/privateLinkPolicyListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.aadiam/privateLinkForAzureAd": {
+ "get": {
+ "tags": [
+ "privateLinkForAzureAd"
+ ],
+ "operationId": "privateLinkForAzureAd_List",
+ "x-ms-examples": {
+ "privateLinkPolicyGetList": {
+ "$ref": "./examples/AzureADPrivateLinkPolicyList.json"
+ }
+ },
+ "description": "Operation to return the list of Private Link Policies For AzureAD scoped to the resourceGroup.",
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful request to get list of Private Links configuration objects For AzureAD.",
+ "schema": {
+ "$ref": "#/definitions/privateLinkPolicyListResult"
+ }
+ },
+ "default": {
+ "description": "Error, failed to get list of Private Links For AzureAD.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "privateLinkPolicyListResult": {
+ "description": "A list of private link policies",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of private link policies",
+ "items": {
+ "$ref": "#/definitions/privateLinkPolicy"
+ }
+ },
+ "nextLink": {
+ "description": "The link used to get the next page of operations.",
+ "type": "string"
+ }
+ }
+ },
+ "privateLinkPolicy": {
+ "description": "PrivateLink Policy configuration object.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the Private Link Azure AD Policy.",
+ "type": "string"
+ },
+ "ownerTenantId": {
+ "description": "Guid of the owner tenant",
+ "type": "string"
+ },
+ "allTenants": {
+ "description": "Flag indicating whether all tenants are allowed",
+ "type": "boolean"
+ },
+ "tenants": {
+ "description": "The list of tenantIds.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "resourceName": {
+ "description": "Name of the private link policy resource",
+ "type": "string"
+ },
+ "subscriptionId": {
+ "description": "Subscription Identifier",
+ "type": "string"
+ },
+ "resourceGroup": {
+ "description": "Name of the resource group",
+ "type": "string"
+ },
+ "tags": {
+ "type": "object",
+ "description": "Resource tags.",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AzureResourceBase"
+ }
+ ]
+ },
+ "AzureResourceBase": {
+ "x-ms-azure-resource": true,
+ "type": "object",
+ "description": "Common properties for all Azure resources.",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "String Id used to locate any resource on Azure."
+ },
+ "name": {
+ "readOnly": false,
+ "type": "string",
+ "description": "Name of this resource."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Type of this resource."
+ }
+ }
+ },
+ "privateLinkPolicyUpdateParameter": {
+ "type": "object",
+ "description": "private Link policy parameters to be updated. ",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "description": "Resource tags to be updated.",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "ErrorResponse": {
+ "description": "Error response.",
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/ErrorDefinition",
+ "description": "The error details."
+ }
+ }
+ },
+ "ErrorDefinition": {
+ "description": "Error definition.",
+ "properties": {
+ "code": {
+ "description": "Service specific error code which serves as the substatus for the HTTP error code.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "Description of the error.",
+ "type": "string",
+ "readOnly": true
+ },
+ "details": {
+ "description": "Internal error details.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorDefinition"
+ },
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "subscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "Azure subscription ID.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client"
+ },
+ "apiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client",
+ "description": "Version of the API to be used with the client request."
+ },
+ "resourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of an Azure resource group."
+ },
+ "policyNameParameter": {
+ "name": "policyName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "The name of the private link policy in Azure AD."
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkResources.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkResources.json
new file mode 100644
index 000000000000..dcd0d05e2ce0
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkResources.json
@@ -0,0 +1,268 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-03-01-preview",
+ "title": "azureactivedirectory",
+ "description": "Azure Active Directory Client."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.aadiam/privateLinkForAzureAd/{policyName}/privateLinkResources": {
+ "get": {
+ "tags": [
+ "PrivateLinkResources"
+ ],
+ "description": "Gets the private link resources that need to be created for a policy of AzureAD.",
+ "operationId": "PrivateLinkResources_ListByPrivateLinkPolicy",
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/policyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved private link resources.",
+ "schema": {
+ "$ref": "#/definitions/PrivateLinkResourceListResult"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Gets private endpoint connection.": {
+ "$ref": "./examples/AzureADPrivateLinkResourceListGet.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.aadiam/privateLinkForAzureAd/{policyName}/privateLinkResources/{groupName}": {
+ "get": {
+ "tags": [
+ "PrivateLinkResources"
+ ],
+ "description": "Gets the private link resources that need to be created for a policy of AzureAD.",
+ "operationId": "PrivateLinkResources_Get",
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/policyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/groupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved a specified private link resource.",
+ "schema": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Gets private endpoint connection.": {
+ "$ref": "./examples/AzureADPrivateLinkResourceGet.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ErrorResponse": {
+ "description": "Error response.",
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/ErrorDefinition",
+ "description": "The error details."
+ }
+ }
+ },
+ "ErrorDefinition": {
+ "description": "Error definition.",
+ "properties": {
+ "code": {
+ "description": "Service specific error code which serves as the substatus for the HTTP error code.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "Description of the error.",
+ "type": "string",
+ "readOnly": true
+ },
+ "details": {
+ "description": "Internal error details.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorDefinition"
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "PrivateLinkResourceListResult": {
+ "description": "A list of private link resources",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of private link resources",
+ "items": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ }
+ },
+ "nextLink": {
+ "description": "The link used to get the next page of operations.",
+ "type": "string"
+ }
+ }
+ },
+ "PrivateLinkResource": {
+ "description": "A private link resource",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateLinkResourceProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMProxyResource"
+ }
+ ]
+ },
+ "PrivateLinkResourceProperties": {
+ "description": "Properties of a private link resource.",
+ "type": "object",
+ "properties": {
+ "groupId": {
+ "description": "The private link resource group id.",
+ "type": "string",
+ "readOnly": true
+ },
+ "requiredMembers": {
+ "description": "The private link resource required member names.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "ARMProxyResource": {
+ "type": "object",
+ "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The unique resource identifier of the Azure AD PrivateLink Policy."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the Azure AD PrivateLink Policy."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of Azure resource."
+ }
+ },
+ "x-ms-azure-resource": true
+ }
+ },
+ "parameters": {
+ "subscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "Azure subscription ID.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client"
+ },
+ "apiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "Version of the API to be used with the client request."
+ },
+ "resourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of an Azure resource group."
+ },
+ "groupNameParameter": {
+ "name": "groupName",
+ "in": "path",
+ "description": "The name of the private link resource.",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "type": "string"
+ },
+ "policyNameParameter": {
+ "name": "policyName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the private link policy in Azure AD.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/azureADMetrics.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/azureADMetrics.json
new file mode 100644
index 000000000000..1111208831f3
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/azureADMetrics.json
@@ -0,0 +1,432 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-07-01-preview",
+ "title": "azureactivedirectory",
+ "description": "Metrics and Alerts for Azure Active Directory."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.aadiam/azureADMetrics/{azureADMetricsName}": {
+ "put": {
+ "tags": [
+ "azureADMetrics"
+ ],
+ "operationId": "azureADMetrics_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "description": "Creates a azureADMetrics instance.",
+ "x-ms-examples": {
+ "azureADMetricsCreate": {
+ "$ref": "./examples/AzureADMetricsCreateOrUpdate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../2020-03-01-preview/privateLinkForAzureAD.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/azureADMetricsNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "azureADMetricsConfig",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/azureADMetricsConfig"
+ },
+ "description": "AzureADMetrics definition supplied to the operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- AzureADMetrics instance is updated.",
+ "schema": {
+ "$ref": "#/definitions/azureADMetricsConfig"
+ }
+ },
+ "201": {
+ "description": "Created -- AzureADMetrics instance created.",
+ "schema": {
+ "$ref": "#/definitions/azureADMetricsConfig"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "azureADMetrics"
+ ],
+ "operationId": "azureADMetrics_Update",
+ "description": "Updates azureADMetrics tags with specified values.",
+ "x-ms-examples": {
+ "azureADMetricsUpdate": {
+ "$ref": "./examples/AzureADMetricsUpdate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../2020-03-01-preview/privateLinkForAzureAD.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/azureADMetricsNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "azureADMetricsConfig",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/azureADMetricsUpdateParameter"
+ },
+ "description": "AzureADMetrics resource with the tags to be updated."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- AzureADMetrics tags are updated.",
+ "schema": {
+ "$ref": "#/definitions/azureADMetricsConfig"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "azureADMetrics"
+ ],
+ "operationId": "azureADMetrics_Get",
+ "description": "Gets a azureADMetrics instance with a given name.",
+ "x-ms-examples": {
+ "azureADMetricsGet": {
+ "$ref": "./examples/AzureADMetricsGet.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../2020-03-01-preview/privateLinkForAzureAD.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/azureADMetricsNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Returns information about the azureADMetrics resource.",
+ "schema": {
+ "$ref": "#/definitions/azureADMetricsConfig"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "azureADMetrics"
+ ],
+ "operationId": "azureADMetrics_Delete",
+ "description": "Deletes a AzureADMetrics resource. When operation completes, status code 200 returned without content.",
+ "x-ms-examples": {
+ "azureADMetricsDelete": {
+ "$ref": "./examples/AzureADMetricsDelete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../2020-03-01-preview/privateLinkForAzureAD.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/azureADMetricsNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- azureADMetrics resource deleted."
+ },
+ "204": {
+ "description": "azureADMetrics does not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/microsoft.aadiam/azureADMetrics": {
+ "get": {
+ "tags": [
+ "azureADMetrics"
+ ],
+ "operationId": "azureADMetrics_ListBySubscription",
+ "description": "Lists all AzureADMetrics resources in the given subscription.",
+ "x-ms-examples": {
+ "azureADMetricsListBySubscription": {
+ "$ref": "./examples/AzureADMetricsListBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../2020-03-01-preview/privateLinkForAzureAD.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Returns a list azureADMetrics resources.",
+ "schema": {
+ "$ref": "#/definitions/azureADMetricsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.aadiam/azureADMetrics": {
+ "get": {
+ "tags": [
+ "azureADMetrics"
+ ],
+ "operationId": "azureADMetrics_List",
+ "x-ms-examples": {
+ "azureADMetricsGetList": {
+ "$ref": "./examples/AzureADMetricsList.json"
+ }
+ },
+ "description": "Operation to return the list of AzureADMetrics resources scoped to the resourceGroup.",
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "parameters": [
+ {
+ "$ref": "../2020-03-01-preview/privateLinkForAzureAD.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful request to get list of AzureADMetrics resources For AzureAD.",
+ "schema": {
+ "$ref": "#/definitions/azureADMetricsListResult"
+ }
+ },
+ "default": {
+ "description": "Error, failed to get list of AzureADMetrics resources.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "azureADMetricsListResult": {
+ "description": "A list of AzureADMetrics resources",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of AzureADMetrics resources.",
+ "items": {
+ "$ref": "#/definitions/azureADMetricsConfig"
+ },
+ "readOnly": true
+ },
+ "nextLink": {
+ "description": "The link used to get the next page of operations.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "azureADMetricsConfig": {
+ "description": "AzureADMetrics resource.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/AzureADMetricsPropertiesFormat"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
+ }
+ ]
+ },
+ "AzureADMetricsPropertiesFormat": {
+ "properties": {
+ "provisioningState": {
+ "type": "string",
+ "description": "The provisioning state of the resource.",
+ "enum": [
+ "Succeeded",
+ "Created",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "azureADMetricsUpdateParameter": {
+ "type": "object",
+ "description": "AzureADMetrics parameters to be updated. ",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "description": "Resource tags to be updated.",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "ErrorResponse": {
+ "description": "Error response.",
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/ErrorDefinition",
+ "description": "The error details."
+ }
+ }
+ },
+ "ErrorDefinition": {
+ "description": "Error definition.",
+ "properties": {
+ "code": {
+ "description": "Service specific error code which serves as the substatus for the HTTP error code.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "Description of the error.",
+ "type": "string",
+ "readOnly": true
+ },
+ "details": {
+ "description": "Internal error details.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorDefinition"
+ },
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "apiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client",
+ "description": "Version of the API to be used with the client request."
+ },
+ "resourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of an Azure resource group."
+ },
+ "azureADMetricsNameParameter": {
+ "name": "azureADMetricsName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Name of the azureADMetrics instance."
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsCreateOrUpdate.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsCreateOrUpdate.json
new file mode 100644
index 000000000000..5c9e06214b75
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsCreateOrUpdate.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "azureADMetricsName": "ddb1",
+ "api-version": "2020-07-01-preview",
+ "azureADMetricsConfig": {
+ "location": "West US",
+ "tags": {}
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.Aadiam/azureADMetrics/ddb1",
+ "location": "West US",
+ "name": "ddb1",
+ "properties": {
+ "provisioningState": "Succeeded"
+ },
+ "tags": {},
+ "type": "Microsoft.Aadiam/azureADMetrics"
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.Aadiam/azureADMetrics/ddb1",
+ "location": "West US",
+ "name": "ddb1",
+ "properties": {
+ "provisioningState": "Created"
+ },
+ "tags": {},
+ "type": "Microsoft.Aadiam/azureADMetrics"
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsDelete.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsDelete.json
new file mode 100644
index 000000000000..87571e561014
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsDelete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "azureADMetricsName": "ddb1",
+ "api-version": "2020-07-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsGet.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsGet.json
new file mode 100644
index 000000000000..8dbfdc69b9d7
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsGet.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "azureADMetricsName": "ddb1",
+ "api-version": "2020-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.Aadiam/azureADMetrics/ddb1",
+ "name": "ddb1",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Succeeded"
+ },
+ "tags": {},
+ "type": "Microsoft.Aadiam/azureADMetrics"
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsList.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsList.json
new file mode 100644
index 000000000000..519c5cc740f1
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsList.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.Aadiam/azureADMetrics/ddb1",
+ "name": "ddb1",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Aadiam/azureADMetrics"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsListBySubscription.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsListBySubscription.json
new file mode 100644
index 000000000000..f8bf57a8f2be
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsListBySubscription.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "api-version": "2020-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.Aadiam/azureADMetrics/ddb1",
+ "name": "ddb1",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Aadiam/azureADMetrics"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsUpdate.json b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsUpdate.json
new file mode 100644
index 000000000000..bc7f75389954
--- /dev/null
+++ b/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/preview/2020-07-01-preview/examples/AzureADMetricsUpdate.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg1",
+ "azureADMetricsName": "ddb1",
+ "api-version": "2020-07-01-preview",
+ "location": "West US",
+ "azureADMetricsConfig": {
+ "tags": {}
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.Aadiam/azureADMetrics/ddb1",
+ "location": "West US",
+ "name": "ddb1",
+ "properties": {
+ "provisioningState": "Succeeded"
+ },
+ "tags": {},
+ "type": "Microsoft.Aadiam/azureADMetrics"
+ }
+ }
+ }
+}
diff --git a/specification/azureactivedirectory/resource-manager/readme.md b/specification/azureactivedirectory/resource-manager/readme.md
index b1d96fb51aa0..46fe420e432e 100644
--- a/specification/azureactivedirectory/resource-manager/readme.md
+++ b/specification/azureactivedirectory/resource-manager/readme.md
@@ -24,20 +24,58 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor
These are the global settings for the azureactivedirectory.
-```yaml
+``` yaml
openapi-type: arm
-tag: package-2017-04-01
+tag: package-preview-2020-07
+```
+
+### Tag: package-preview-2020-07
+
+These settings apply only when `--tag=package-preview-2020-07` is specified on the command line.
+
+```yaml $(tag) == 'package-preview-2020-07'
+input-file:
+ - Microsoft.Aadiam/preview/2020-07-01-preview/azureADMetrics.json
+```
+
+### Tag: package-preview-2020-03
+
+These settings apply only when `--tag=package-preview-2020-03` is specified on the command line.
+
+```yaml $(tag) == 'package-preview-2020-07'
+input-file:
+ - Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkForAzureAD.json
+ - Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkResources.json
```
### Tag: package-2017-04-01
These settings apply only when `--tag=package-2017-04-01` is specified on the command line.
-```yaml $(tag) == 'package-2017-04-01'
+``` yaml $(tag) == 'package-2017-04-01'
input-file:
- Microsoft.Aadiam/stable/2017-04-01/azureactivedirectory.json
```
+## Suppression
+``` yaml
+directive:
+ - suppress: BodyTopLevelProperties
+ from: azureADMetrics.json
+ where: $.definitions.azureADMetricsConfig.properties
+ - suppress: BodyTopLevelProperties
+ from: privateLinkForAzureAD.json
+ where: $.definitions.privateLinkPolicy.properties
+ - suppress: RequiredPropertiesMissingInResourceModel
+ from: azureADMetrics.json
+ where: $.definitions.azureADMetricsConfig
+ - suppress: RequiredPropertiesMissingInResourceModel
+ from: privateLinkForAzureAD.json
+ where: $.definitions.privateLinkPolicy
+ - suppress: R3020
+ - suppress: R3023
+```
+
---
# Code Generation
@@ -47,7 +85,7 @@ input-file:
This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself.
-```yaml $(swagger-to-sdk)
+``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
@@ -79,7 +117,7 @@ See configuration in [readme.typescript.md](./readme.typescript.md)
See configuration in [readme.csharp.md](./readme.csharp.md)
-## Multi-API/Profile support for AutoRest v3 generators
+## Multi-API/Profile support for AutoRest v3 generators
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
@@ -92,14 +130,17 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.Aadiam/stable/2017-04-01/azureactivedirectory.json
+ - $(this-folder)/Microsoft.Aadiam/preview/2020-07-01-preview/azureADMetrics.json
+ - $(this-folder)/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkForAzureAD.json
+ - $(this-folder)/Microsoft.Aadiam/preview/2020-03-01-preview/privateLinkResources.json
+
```
-If there are files that should not be in the `all-api-versions` set,
+If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.
``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
-
diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/azuredata.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/azuredata.json
index 85331f97bdb1..86241df72903 100644
--- a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/azuredata.json
+++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/azuredata.json
@@ -856,6 +856,294 @@
}
}
},
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureData/sqlServerInstances": {
+ "get": {
+ "tags": [
+ "SqlServerInstances"
+ ],
+ "operationId": "SqlServerInstances_List",
+ "summary": "List sqlServerInstance resources in the subscription",
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/apiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SqlServerInstanceListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 404 ResourceNotFound - The requested resource was not found.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Gets all SQL Server Instance in a subscription.": {
+ "$ref": "./examples/ListSubscriptionSqlServerInstance.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerInstances": {
+ "get": {
+ "tags": [
+ "SqlServerInstances"
+ ],
+ "operationId": "SqlServerInstances_ListByResourceGroup",
+ "description": "Gets all sqlServerInstances in a resource group.",
+ "summary": "List sqlServerInstance resources in the resource group",
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/apiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SqlServerInstanceListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Gets all SQL Server Instance in a resource group.": {
+ "$ref": "./examples/ListByResourceGroupSqlServerInstance.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerInstances/{sqlServerInstanceName}": {
+ "get": {
+ "tags": [
+ "SqlServerInstances"
+ ],
+ "operationId": "SqlServerInstances_Get",
+ "description": "Retrieves a SQL Server Instance resource",
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "name": "sqlServerInstanceName",
+ "description": "Name of SQL Server Instance",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ {
+ "$ref": "#/parameters/apiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SqlServerInstance"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Updates a SQL Server Instance tags.": {
+ "$ref": "./examples/GetSqlServerInstance.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "SqlServerInstances"
+ ],
+ "operationId": "SqlServerInstances_Create",
+ "description": "Creates or replaces a SQL Server Instance resource",
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "name": "sqlServerInstanceName",
+ "description": "The name of SQL Server Instance",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The SQL Server Instance to be created or updated.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SqlServerInstance"
+ }
+ },
+ {
+ "$ref": "#/parameters/apiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SqlServerInstance"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/SqlServerInstance"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Updates a SQL Server Instance tags.": {
+ "$ref": "./examples/CreateOrUpdateSqlServerInstance.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "SqlServerInstances"
+ ],
+ "operationId": "SqlServerInstances_Delete",
+ "description": "Deletes a SQL Server Instance resource",
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "name": "sqlServerInstanceName",
+ "description": "The name of SQL Server Instance",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ {
+ "$ref": "#/parameters/apiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully deleted the SQL Server Instance."
+ },
+ "default": {
+ "description": "*** Error Responses: ***",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ },
+ "204": {
+ "description": "The specified SQL Server Instance does not exist."
+ }
+ },
+ "x-ms-examples": {
+ "Delete a SQL Server Instance.": {
+ "$ref": "./examples/DeleteSqlServerInstance.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "SqlServerInstances"
+ ],
+ "operationId": "SqlServerInstances_Update",
+ "description": "Updates a SQL Server Instance resource",
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "name": "sqlServerInstanceName",
+ "description": "Name of sqlServerInstance",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The SQL Server Instance.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SqlServerInstanceUpdate"
+ }
+ },
+ {
+ "$ref": "#/parameters/apiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SqlServerInstance"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Updates a SQL Server Instance tags.": {
+ "$ref": "./examples/UpdateSqlServerInstance.json"
+ }
+ }
+ }
+ },
"/subscriptions/{subscriptionId}/providers/Microsoft.AzureData/postgresInstances": {
"get": {
"tags": [
@@ -1984,6 +2272,97 @@
}
}
},
+ "SqlServerInstanceProperties": {
+ "description": "Properties of SqlServerInstance.",
+ "type": "object",
+ "properties": {
+ "version": {
+ "type": "string",
+ "description": "SQL Server version."
+ },
+ "edition": {
+ "type": "string",
+ "description": "SQL Server edition."
+ },
+ "containerResourceId": {
+ "type": "string",
+ "description": "ARM Resource id of the container resource (Azure Arc for Servers)"
+ },
+ "createTime": {
+ "type": "string",
+ "description": "The time when the resource was created.",
+ "readOnly": true
+ },
+ "updateTime": {
+ "type": "string",
+ "description": "The time when the resource was last updated.",
+ "readOnly": true
+ },
+ "vCore": {
+ "type": "string",
+ "description": "The number of logical processors used by the SQL Server instance."
+ },
+ "status": {
+ "type": "string",
+ "description": "The cloud connectivity status."
+ }
+ },
+ "required": [
+ "version",
+ "edition",
+ "containerResourceId",
+ "vCore",
+ "status"
+ ]
+ },
+ "SqlServerInstance": {
+ "description": "A SqlServerInstance.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/SqlServerInstanceProperties",
+ "description": "null",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "SqlServerInstanceUpdate": {
+ "description": "An update to a SQL Server Instance.",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "description": "Resource tags.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "SqlServerInstanceListResult": {
+ "description": "A list of SqlServerInstance.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Array of results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SqlServerInstance"
+ },
+ "readOnly": true
+ },
+ "nextLink": {
+ "description": "Link to retrieve next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
"HybridDataManagerProperties": {
"description": "Hybrid data manager properties",
"type": "object"
@@ -2184,6 +2563,14 @@
"type": "string",
"x-ms-parameter-location": "method"
},
+ "SqlServerInstanceNameParameter": {
+ "in": "path",
+ "name": "sqlServerInstanceName",
+ "description": "The name of the resource.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
"HybridDataManagerNameParameter": {
"in": "path",
"name": "hybridDataManagerName",
diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdateSqlServerInstance.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdateSqlServerInstance.json
new file mode 100644
index 000000000000..fff63fffd1b8
--- /dev/null
+++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/CreateOrUpdateSqlServerInstance.json
@@ -0,0 +1,63 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "testrg",
+ "sqlServerInstanceName": "testsqlServerInstance",
+ "api-version": "2017-07-24",
+ "parameters": {
+ "location": "northeurope",
+ "tags": {
+ "mytag": "myval"
+ },
+ "properties": {
+ "version": "SQL Server 2017",
+ "edition": "Developer",
+ "containerResourceId": "Arc Machine Name",
+ "vCore": "4",
+ "status": "Connected"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "version": "SQL Server 2017",
+ "edition": "Developer",
+ "containerResourceId": "Arc Machine Name",
+ "createTime": "01/01/2020 01:01:01",
+ "updateTime": "01/01/2020 01:01:01",
+ "vCore": "4",
+ "status": "Connected"
+ },
+ "location": "northeurope",
+ "tags": {
+ "mytag": "myval"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerInstances/testsqlServerInstance",
+ "name": "testsqlServerInstance",
+ "type": "Microsoft.AzureData/SqlServerInstances"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "version": "SQL Server 2017",
+ "edition": "Developer",
+ "containerResourceId": "Arc Machine Name",
+ "createTime": "01/01/2020 01:01:01",
+ "updateTime": "01/01/2020 01:01:01",
+ "vCore": "4",
+ "status": "Connected"
+ },
+ "location": "northeurope",
+ "tags": {
+ "mytag": "myval"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerInstances/testsqlServerInstance",
+ "name": "testsqlServerInstance",
+ "type": "Microsoft.AzureData/SqlServerInstances"
+ }
+ }
+ }
+}
diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/DeleteSqlServerInstance.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/DeleteSqlServerInstance.json
new file mode 100644
index 000000000000..25be3d7479ed
--- /dev/null
+++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/DeleteSqlServerInstance.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "testrg",
+ "sqlServerInstanceName": "testsqlServerInstance",
+ "api-version": "2017-07-24"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetSqlServerInstance.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetSqlServerInstance.json
new file mode 100644
index 000000000000..b45f1e0e3995
--- /dev/null
+++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/GetSqlServerInstance.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "testrg",
+ "sqlServerInstanceName": "testsqlServerInstance",
+ "api-version": "2017-07-24"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "version": "SQL Server 2017",
+ "edition": "Developer",
+ "containerResourceId": "Arc Machine Name",
+ "createTime": "01/01/2020 01:01:01",
+ "updateTime": "01/01/2020 01:01:01",
+ "vCore": "4",
+ "status": "Connected"
+ },
+ "location": "northeurope",
+ "tags": {
+ "mytag": "myval"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerInstances/testsqlServerInstance",
+ "name": "testsqlServerInstance",
+ "type": "Microsoft.AzureData/SqlServerInstances"
+ }
+ }
+ }
+}
diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListByResourceGroupSqlServerInstance.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListByResourceGroupSqlServerInstance.json
new file mode 100644
index 000000000000..67ea60097317
--- /dev/null
+++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListByResourceGroupSqlServerInstance.json
@@ -0,0 +1,51 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "testrg",
+ "api-version": "2017-07-24"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "version": "SQL Server 2017",
+ "edition": "Developer",
+ "containerResourceId": "Arc Machine Name",
+ "createTime": "01/01/2020 01:01:01",
+ "updateTime": "01/01/2020 01:01:01",
+ "vCore": "4",
+ "status": "Connected"
+ },
+ "location": "northeurope",
+ "tags": {
+ "mytag": "myval"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerInstances/sqlServerInstance1",
+ "name": "sqlServerInstance1",
+ "type": "Microsoft.AzureData/SqlServerInstances"
+ },
+ {
+ "properties": {
+ "version": "SQL Server 2017",
+ "edition": "Developer",
+ "containerResourceId": "Arc Machine Name",
+ "createTime": "01/01/2020 01:01:01",
+ "updateTime": "01/01/2020 01:01:01",
+ "vCore": "4",
+ "status": "Connected"
+ },
+ "location": "northeurope",
+ "tags": {
+ "mytag": "myval"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerInstances/sqlServerInstance2",
+ "name": "sqlServerInstance2",
+ "type": "Microsoft.AzureData/SqlServerInstances"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListSubscriptionSqlServerInstance.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListSubscriptionSqlServerInstance.json
new file mode 100644
index 000000000000..9b8da63326af
--- /dev/null
+++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/ListSubscriptionSqlServerInstance.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "api-version": "2017-07-24"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "version": "SQL Server 2017",
+ "edition": "Developer",
+ "containerResourceId": "Arc Machine Name",
+ "createTime": "01/01/2020 01:01:01",
+ "updateTime": "01/01/2020 01:01:01",
+ "vCore": "4",
+ "status": "Connected"
+ },
+ "location": "northeurope",
+ "tags": {
+ "mytag": "myval"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerInstances/sqlServerInstance1",
+ "name": "sqlServerInstance1",
+ "type": "Microsoft.AzureData/SqlServerInstances"
+ },
+ {
+ "properties": {
+ "version": "SQL Server 2017",
+ "edition": "Developer",
+ "containerResourceId": "Arc Machine Name",
+ "createTime": "01/01/2020 01:01:01",
+ "updateTime": "01/01/2020 01:01:01",
+ "vCore": "4",
+ "status": "Connected"
+ },
+ "location": "northeurope",
+ "tags": {
+ "mytag": "myval"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerInstances/sqlServerInstance2",
+ "name": "sqlServerInstance2",
+ "type": "Microsoft.AzureData/SqlServerInstances"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/UpdateSqlServerInstance.json b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/UpdateSqlServerInstance.json
new file mode 100644
index 000000000000..54206a23fdda
--- /dev/null
+++ b/specification/azuredata/resource-manager/Microsoft.AzureData/preview/2019-07-24-preview/examples/UpdateSqlServerInstance.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "testrg",
+ "sqlServerInstanceName": "testsqlServerInstance",
+ "api-version": "2017-07-24",
+ "parameters": {
+ "tags": {
+ "mytag": "myval"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "version": "SQL Server 2017",
+ "edition": "Developer",
+ "containerResourceId": "Arc Machine Name",
+ "createTime": "01/01/2020 01:01:01",
+ "updateTime": "01/01/2020 01:01:01",
+ "vCore": "4",
+ "status": "Connected"
+ },
+ "location": "northeurope",
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerInstances/testsqlServerInstance",
+ "name": "testsqlServerInstance",
+ "type": "Microsoft.AzureData/SqlServerInstances"
+ }
+ }
+ }
+}
diff --git a/specification/azuredata/resource-manager/readme.go.md b/specification/azuredata/resource-manager/readme.go.md
index dc83264ea194..154eac206330 100644
--- a/specification/azuredata/resource-manager/readme.go.md
+++ b/specification/azuredata/resource-manager/readme.go.md
@@ -6,14 +6,21 @@ These settings apply only when `--go` is specified on the command line.
go:
license-header: MICROSOFT_APACHE_NO_VERSION
clear-output-folder: true
+ namespace: azuredata
```
-### Tag: package-2019-07-24 and go
+### Go multi-api
-These settings apply only when `--tag=package-2019-07-24 --go` is specified on the command line.
-Please also specify `--go-sdks-folder=`.
+``` yaml $(go) && $(multiapi)
+batch:
+ - tag: package-preview-2019-07
+```
+
+### Tag: package-preview-2019-07 and go
+
+These settings apply only when `--tag=package-preview-2019-07 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
-```yaml $(tag) == 'package-2019-07-24' && $(go)
-namespace: Microsoft.AzureData
-output-folder: $(go-sdks-folder)/services/preview/$(namespace)/mgmt/2019-07-24-preview/$(namespace)
+```yaml $(tag) == 'package-preview-2019-07' && $(go)
+output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-07-24-preview/$(namespace)
```
\ No newline at end of file
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/BatchManagement.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/BatchManagement.json
new file mode 100644
index 000000000000..1dfb09e8472b
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/BatchManagement.json
@@ -0,0 +1,5147 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "BatchManagement",
+ "version": "2020-05-01",
+ "x-ms-code-generation-settings": {
+ "name": "BatchManagementClient"
+ }
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}": {
+ "put": {
+ "tags": [
+ "BatchAccount"
+ ],
+ "operationId": "BatchAccount_Create",
+ "x-ms-examples": {
+ "BatchAccountCreate_Default": {
+ "$ref": "./examples/BatchAccountCreate_Default.json"
+ },
+ "BatchAccountCreate_BYOS": {
+ "$ref": "./examples/BatchAccountCreate_BYOS.json"
+ },
+ "PrivateBatchAccountCreate": {
+ "$ref": "./examples/PrivateBatchAccountCreate.json"
+ },
+ "BatchAccountCreate_SystemAssignedIdentity": {
+ "$ref": "./examples/BatchAccountCreate_SystemAssignedIdentity.json"
+ }
+ },
+ "description": "Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "accountName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-z0-9]+$",
+ "minLength": 3,
+ "maxLength": 24,
+ "description": "A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/BatchAccountCreateParameters"
+ },
+ "description": "Additional parameters for account creation."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the Batch account entity.",
+ "schema": {
+ "$ref": "#/definitions/BatchAccount"
+ }
+ },
+ "202": {
+ "description": "The operation will be completed asynchronously.",
+ "headers": {
+ "Location": {
+ "description": "The URL of the resource used to check the status of the asynchronous operation.",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that specifies the delay in seconds.",
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "BatchAccount"
+ ],
+ "operationId": "BatchAccount_Update",
+ "x-ms-examples": {
+ "BatchAccountUpdate": {
+ "$ref": "./examples/BatchAccountUpdate.json"
+ }
+ },
+ "description": "Updates the properties of an existing Batch account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/BatchAccountUpdateParameters"
+ },
+ "description": "Additional parameters for account update."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the Batch account entity.",
+ "schema": {
+ "$ref": "#/definitions/BatchAccount"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "BatchAccount"
+ ],
+ "operationId": "BatchAccount_Delete",
+ "x-ms-examples": {
+ "BatchAccountDelete": {
+ "$ref": "./examples/BatchAccountDelete.json"
+ }
+ },
+ "description": "Deletes the specified Batch account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful."
+ },
+ "202": {
+ "description": "The operation will be completed asynchronously.",
+ "headers": {
+ "Location": {
+ "description": "The URL of the resource used to check the status of the asynchronous operation.",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that specifies the delay in seconds.",
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "204": {
+ "description": "NoContent -- account does not exist in the subscription."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "BatchAccount"
+ ],
+ "operationId": "BatchAccount_Get",
+ "x-ms-examples": {
+ "BatchAccountGet": {
+ "$ref": "./examples/BatchAccountGet.json"
+ },
+ "PrivateBatchAccountGet": {
+ "$ref": "./examples/PrivateBatchAccountGet.json"
+ }
+ },
+ "description": "Gets information about the specified Batch account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the Batch account entity.",
+ "schema": {
+ "$ref": "#/definitions/BatchAccount"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts": {
+ "get": {
+ "tags": [
+ "BatchAccount"
+ ],
+ "operationId": "BatchAccount_List",
+ "x-ms-examples": {
+ "BatchAccountList": {
+ "$ref": "./examples/BatchAccountList.json"
+ }
+ },
+ "description": "Gets information about the Batch accounts associated with the subscription.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains a list of Batch account entities associated with the subscription.",
+ "schema": {
+ "$ref": "#/definitions/BatchAccountListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts": {
+ "get": {
+ "tags": [
+ "BatchAccount"
+ ],
+ "operationId": "BatchAccount_ListByResourceGroup",
+ "x-ms-examples": {
+ "BatchAccountListByResourceGroup": {
+ "$ref": "./examples/BatchAccountListByResourceGroup.json"
+ }
+ },
+ "description": "Gets information about the Batch accounts associated with the specified resource group.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains a list of Batch account entities associated with the resource group.",
+ "schema": {
+ "$ref": "#/definitions/BatchAccountListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys": {
+ "post": {
+ "tags": [
+ "BatchAccount"
+ ],
+ "operationId": "BatchAccount_SynchronizeAutoStorageKeys",
+ "x-ms-examples": {
+ "BatchAccountSynchronizeAutoStorageKeys": {
+ "$ref": "./examples/BatchAccountSynchronizeAutoStorageKeys.json"
+ }
+ },
+ "description": "Synchronizes access keys for the auto-storage account configured for the specified Batch account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "The operation was successful."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys": {
+ "post": {
+ "tags": [
+ "BatchAccount"
+ ],
+ "operationId": "BatchAccount_RegenerateKey",
+ "x-ms-examples": {
+ "BatchAccountRegenerateKey": {
+ "$ref": "./examples/BatchAccountRegenerateKey.json"
+ }
+ },
+ "description": "Regenerates the specified account key for the Batch account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/BatchAccountRegenerateKeyParameters"
+ },
+ "description": "The type of key to regenerate."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the Batch account keys.",
+ "schema": {
+ "$ref": "#/definitions/BatchAccountKeys"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys": {
+ "post": {
+ "tags": [
+ "BatchAccount"
+ ],
+ "operationId": "BatchAccount_GetKeys",
+ "x-ms-examples": {
+ "BatchAccountGetKeys": {
+ "$ref": "./examples/BatchAccountGetKeys.json"
+ }
+ },
+ "summary": "Gets the account keys for the specified Batch account.",
+ "description": "This operation applies only to Batch accounts created with a poolAllocationMode of 'BatchService'. If the Batch account was created with a poolAllocationMode of 'UserSubscription', clients cannot use access to keys to authenticate, and must use Azure Active Directory instead. In this case, getting the keys will fail.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the keys of the Batch account.",
+ "schema": {
+ "$ref": "#/definitions/BatchAccountKeys"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate": {
+ "post": {
+ "tags": [
+ "ApplicationPackage"
+ ],
+ "operationId": "ApplicationPackage_Activate",
+ "x-ms-examples": {
+ "ApplicationPackageActivate": {
+ "$ref": "./examples/ApplicationPackageActivate.json"
+ }
+ },
+ "description": "Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApplicationNameParameter"
+ },
+ {
+ "$ref": "#/parameters/VersionNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ActivateApplicationPackageParameters"
+ },
+ "description": "The parameters for the request."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the application package entity.",
+ "schema": {
+ "$ref": "#/definitions/ApplicationPackage"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}": {
+ "put": {
+ "tags": [
+ "Application"
+ ],
+ "operationId": "Application_Create",
+ "x-ms-examples": {
+ "ApplicationCreate": {
+ "$ref": "./examples/ApplicationCreate.json"
+ }
+ },
+ "description": "Adds an application to the specified Batch account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApplicationNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": false,
+ "schema": {
+ "$ref": "#/definitions/Application"
+ },
+ "description": "The parameters for the request."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the application entity.",
+ "schema": {
+ "$ref": "#/definitions/Application"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Application"
+ ],
+ "operationId": "Application_Delete",
+ "x-ms-examples": {
+ "ApplicationDelete": {
+ "$ref": "./examples/ApplicationDelete.json"
+ }
+ },
+ "description": "Deletes an application.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApplicationNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful."
+ },
+ "204": {
+ "description": "The operation was successful."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "Application"
+ ],
+ "operationId": "Application_Get",
+ "x-ms-examples": {
+ "ApplicationGet": {
+ "$ref": "./examples/ApplicationGet.json"
+ }
+ },
+ "description": "Gets information about the specified application.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApplicationNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the application entity.",
+ "schema": {
+ "$ref": "#/definitions/Application"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Application"
+ ],
+ "operationId": "Application_Update",
+ "x-ms-examples": {
+ "ApplicationUpdate": {
+ "$ref": "./examples/ApplicationUpdate.json"
+ }
+ },
+ "description": "Updates settings for the specified application.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApplicationNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Application"
+ },
+ "description": "The parameters for the request."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the application entity.",
+ "schema": {
+ "$ref": "#/definitions/Application"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}": {
+ "put": {
+ "tags": [
+ "ApplicationPackage"
+ ],
+ "operationId": "ApplicationPackage_Create",
+ "x-ms-examples": {
+ "ApplicationPackageCreate": {
+ "$ref": "./examples/ApplicationPackageCreate.json"
+ }
+ },
+ "description": "Creates an application package record. The record contains the SAS where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApplicationNameParameter"
+ },
+ {
+ "$ref": "#/parameters/VersionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": false,
+ "schema": {
+ "$ref": "#/definitions/ApplicationPackage"
+ },
+ "description": "The parameters for the request."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the application package entity.",
+ "schema": {
+ "$ref": "#/definitions/ApplicationPackage"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ApplicationPackage"
+ ],
+ "operationId": "ApplicationPackage_Delete",
+ "x-ms-examples": {
+ "ApplicationPackageDelete": {
+ "$ref": "./examples/ApplicationPackageDelete.json"
+ }
+ },
+ "description": "Deletes an application package record and its associated binary file.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApplicationNameParameter"
+ },
+ {
+ "$ref": "#/parameters/VersionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful."
+ },
+ "204": {
+ "description": "The operation was successful."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "ApplicationPackage"
+ ],
+ "operationId": "ApplicationPackage_Get",
+ "x-ms-examples": {
+ "ApplicationPackageGet": {
+ "$ref": "./examples/ApplicationPackageGet.json"
+ }
+ },
+ "description": "Gets information about the specified application package.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApplicationNameParameter"
+ },
+ {
+ "$ref": "#/parameters/VersionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the application package entity.",
+ "schema": {
+ "$ref": "#/definitions/ApplicationPackage"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications": {
+ "get": {
+ "tags": [
+ "Application"
+ ],
+ "operationId": "Application_List",
+ "x-ms-examples": {
+ "ApplicationList": {
+ "$ref": "./examples/ApplicationList.json"
+ }
+ },
+ "description": "Lists all of the applications in the specified account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "name": "maxresults",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum number of items to return in the response."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains a list of the application entities associated with the specified account.",
+ "schema": {
+ "$ref": "#/definitions/ListApplicationsResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions": {
+ "get": {
+ "tags": [
+ "ApplicationPackage"
+ ],
+ "operationId": "ApplicationPackage_List",
+ "x-ms-examples": {
+ "ApplicationList": {
+ "$ref": "./examples/ApplicationPackageList.json"
+ }
+ },
+ "description": "Lists all of the application packages in the specified application.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApplicationNameParameter"
+ },
+ {
+ "name": "maxresults",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum number of items to return in the response."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains a list of the application package entities associated with the specified application.",
+ "schema": {
+ "$ref": "#/definitions/ListApplicationPackagesResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas": {
+ "get": {
+ "tags": [
+ "Location"
+ ],
+ "operationId": "Location_GetQuotas",
+ "x-ms-examples": {
+ "LocationGetQuotas": {
+ "$ref": "./examples/LocationGetQuotas.json"
+ }
+ },
+ "description": "Gets the Batch service quotas for the specified subscription at the given location.",
+ "parameters": [
+ {
+ "name": "locationName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The region for which to retrieve Batch service quotas."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the Batch service quotas for the subscription in the specified location.",
+ "schema": {
+ "$ref": "#/definitions/BatchLocationQuota"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Batch/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "operationId": "Operations_List",
+ "description": "Lists available operations for the Microsoft.Batch provider",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the list of available operations.",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability": {
+ "post": {
+ "operationId": "Location_CheckNameAvailability",
+ "description": "Checks whether the Batch account name is available in the specified region.",
+ "x-ms-examples": {
+ "LocationCheckNameAvailability_Available": {
+ "$ref": "./examples/LocationCheckNameAvailability_Available.json"
+ },
+ "LocationCheckNameAvailability_AlreadyExists": {
+ "$ref": "./examples/LocationCheckNameAvailability_AlreadyExists.json"
+ }
+ },
+ "parameters": [
+ {
+ "name": "locationName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The desired region for the name check."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityParameters"
+ },
+ "description": "Properties needed to check the availability of a name."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. Returns details about whether a Batch account name is available.",
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates": {
+ "get": {
+ "tags": [
+ "Certificate"
+ ],
+ "operationId": "Certificate_ListByBatchAccount",
+ "description": "Lists all of the certificates in the specified account.",
+ "x-ms-examples": {
+ "ListCertificates": {
+ "$ref": "./examples/CertificateList.json"
+ },
+ "ListCertificates - Filter and Select": {
+ "$ref": "./examples/CertificateListWithFilter.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "name": "maxresults",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum number of items to return in the response."
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Comma separated list of properties that should be returned. e.g. \"properties/provisioningState\". Only top level properties under properties/ are valid for selection."
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "OData filter expression. Valid properties for filtering are \"properties/provisioningState\", \"properties/provisioningStateTransitionTime\", \"name\"."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains a list of certificates associated with the account.",
+ "schema": {
+ "$ref": "#/definitions/ListCertificatesResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}": {
+ "put": {
+ "tags": [
+ "Certificate"
+ ],
+ "operationId": "Certificate_Create",
+ "description": "Creates a new certificate inside the specified account.",
+ "x-ms-examples": {
+ "CreateCertificate - Minimal Pfx": {
+ "$ref": "./examples/CertificateCreate_Minimal.json"
+ },
+ "CreateCertificate - Minimal Cer": {
+ "$ref": "./examples/CertificateCreate_MinimalCer.json"
+ },
+ "CreateCertificate - Full": {
+ "$ref": "./examples/CertificateCreate_Full.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/CertificateNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CertificateCreateOrUpdateParameters"
+ },
+ "description": "Additional parameters for certificate creation."
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "The entity state (ETag) version of the certificate to update. A value of \"*\" can be used to apply the operation only if the certificate already exists. If omitted, this operation will always be applied."
+ },
+ {
+ "name": "If-None-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "Set to '*' to allow a new certificate to be created, but to prevent updating an existing certificate. Other values will be ignored."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the certificate entity.",
+ "schema": {
+ "$ref": "#/definitions/Certificate"
+ },
+ "headers": {
+ "ETag": {
+ "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "Certificate"
+ ],
+ "operationId": "Certificate_Update",
+ "description": "Updates the properties of an existing certificate.",
+ "x-ms-examples": {
+ "UpdateCertificate": {
+ "$ref": "./examples/CertificateUpdate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/CertificateNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CertificateCreateOrUpdateParameters"
+ },
+ "description": "Certificate entity to update."
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "The entity state (ETag) version of the certificate to update. This value can be omitted or set to \"*\" to apply the operation unconditionally."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the certificate entity.",
+ "schema": {
+ "$ref": "#/definitions/Certificate"
+ },
+ "headers": {
+ "ETag": {
+ "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Certificate"
+ ],
+ "operationId": "Certificate_Delete",
+ "description": "Deletes the specified certificate.",
+ "x-ms-examples": {
+ "CertificateDelete": {
+ "$ref": "./examples/CertificateDelete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/CertificateNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful."
+ },
+ "204": {
+ "description": "The operation was successful."
+ },
+ "202": {
+ "description": "The operation will be completed asynchronously.",
+ "headers": {
+ "Location": {
+ "description": "The URL of the resource used to check the status of the asynchronous operation.",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.",
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "Certificate"
+ ],
+ "operationId": "Certificate_Get",
+ "description": "Gets information about the specified certificate.",
+ "x-ms-examples": {
+ "Get Certificate": {
+ "$ref": "./examples/CertificateGet.json"
+ },
+ "Get Certificate with Deletion Error": {
+ "$ref": "./examples/CertificateGetWithDeletionError.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/CertificateNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the certificate entity.",
+ "schema": {
+ "$ref": "#/definitions/Certificate"
+ },
+ "headers": {
+ "ETag": {
+ "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete": {
+ "post": {
+ "tags": [
+ "Certificate"
+ ],
+ "operationId": "Certificate_CancelDeletion",
+ "summary": "Cancels a failed deletion of a certificate from the specified account.",
+ "description": "If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.",
+ "x-ms-examples": {
+ "CertificateCancelDeletion": {
+ "$ref": "./examples/CertificateCancelDeletion.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/CertificateNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the certificate entity.",
+ "schema": {
+ "$ref": "#/definitions/Certificate"
+ },
+ "headers": {
+ "ETag": {
+ "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources": {
+ "get": {
+ "tags": [
+ "PrivateLinkResource"
+ ],
+ "operationId": "PrivateLinkResource_ListByBatchAccount",
+ "description": "Lists all of the private link resources in the specified account.",
+ "x-ms-examples": {
+ "ListPrivateLinkResource": {
+ "$ref": "./examples/PrivateLinkResourcesList.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "maxresults",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum number of items to return in the response."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains a list of private link resources associated with the account.",
+ "schema": {
+ "$ref": "#/definitions/ListPrivateLinkResourcesResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}": {
+ "get": {
+ "tags": [
+ "PrivateLinkResource"
+ ],
+ "operationId": "PrivateLinkResource_Get",
+ "description": "Gets information about the specified private link resource.",
+ "x-ms-examples": {
+ "GetPrivateLinkResource": {
+ "$ref": "./examples/PrivateLinkResourceGet.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PrivateLinkResourceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the private link resource.",
+ "schema": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections": {
+ "get": {
+ "tags": [
+ "PrivateEndpointConnection"
+ ],
+ "operationId": "PrivateEndpointConnection_ListByBatchAccount",
+ "description": "Lists all of the private endpoint connections in the specified account.",
+ "x-ms-examples": {
+ "ListPrivateEndpointConnections": {
+ "$ref": "./examples/PrivateEndpointConnectionsList.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "maxresults",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum number of items to return in the response."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains a list of private link resources associated with the account.",
+ "schema": {
+ "$ref": "#/definitions/ListPrivateEndpointConnectionsResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}": {
+ "get": {
+ "tags": [
+ "PrivateEndpointConnection"
+ ],
+ "operationId": "PrivateEndpointConnection_Get",
+ "description": "Gets information about the specified private endpoint connection.",
+ "x-ms-examples": {
+ "GetPrivateEndpointConnection": {
+ "$ref": "./examples/PrivateEndpointConnectionGet.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PrivateEndpointConnectionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the private endpoint connection.",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "PrivateEndpointConnection"
+ ],
+ "operationId": "PrivateEndpointConnection_Update",
+ "description": "Updates the properties of an existing private endpoint connection.",
+ "x-ms-examples": {
+ "UpdatePrivateEndpointConnection": {
+ "$ref": "./examples/PrivateEndpointConnectionUpdate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PrivateEndpointConnectionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ },
+ "description": "PrivateEndpointConnection properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged."
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "The state (ETag) version of the private endpoint connection to update. This value can be omitted or set to \"*\" to apply the operation unconditionally."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the PrivateEndpointConnection.",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "204": {
+ "description": "The operation was successful."
+ },
+ "202": {
+ "description": "The operation will be completed asynchronously.",
+ "headers": {
+ "Location": {
+ "description": "The URL of the resource used to check the status of the asynchronous operation.",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.",
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools": {
+ "get": {
+ "tags": [
+ "Pool"
+ ],
+ "operationId": "Pool_ListByBatchAccount",
+ "description": "Lists all of the pools in the specified account.",
+ "x-ms-examples": {
+ "ListPool": {
+ "$ref": "./examples/PoolList.json"
+ },
+ "ListPoolWithFilter": {
+ "$ref": "./examples/PoolListWithFilter.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "name": "maxresults",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum number of items to return in the response."
+ },
+ {
+ "name": "$select",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Comma separated list of properties that should be returned. e.g. \"properties/provisioningState\". Only top level properties under properties/ are valid for selection."
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "OData filter expression. Valid properties for filtering are:\n\n name\n properties/allocationState\n properties/allocationStateTransitionTime\n properties/creationTime\n properties/provisioningState\n properties/provisioningStateTransitionTime\n properties/lastModified\n properties/vmSize\n properties/interNodeCommunication\n properties/scaleSettings/autoScale\n properties/scaleSettings/fixedScale"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains a list of certificates associated with the account.",
+ "schema": {
+ "$ref": "#/definitions/ListPoolsResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}": {
+ "put": {
+ "tags": [
+ "Pool"
+ ],
+ "operationId": "Pool_Create",
+ "description": "Creates a new pool inside the specified account.",
+ "x-ms-examples": {
+ "CreatePool - Minimal CloudServiceConfiguration": {
+ "$ref": "./examples/PoolCreate_MinimalCloudServiceConfiguration.json"
+ },
+ "CreatePool - Minimal VirtualMachineConfiguration": {
+ "$ref": "./examples/PoolCreate_MinimalVirtualMachineConfiguration.json"
+ },
+ "CreatePool - Full Example": {
+ "$ref": "./examples/PoolCreate_FullExample.json"
+ },
+ "CreatePool - Custom Image": {
+ "$ref": "./examples/PoolCreate_CustomImage.json"
+ },
+ "CreatePool - Public IPs": {
+ "$ref": "./examples/PoolCreate_PublicIPs.json"
+ },
+ "CreatePool - Full VirtualMachineConfiguration": {
+ "$ref": "./examples/PoolCreate_VirtualMachineConfiguration.json"
+ },
+ "CreatePool - No public IP": {
+ "$ref": "./examples/PoolCreate_NoPublicIPAddresses.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PoolNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Pool"
+ },
+ "description": "Additional parameters for pool creation."
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "The entity state (ETag) version of the pool to update. A value of \"*\" can be used to apply the operation only if the pool already exists. If omitted, this operation will always be applied."
+ },
+ {
+ "name": "If-None-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "Set to '*' to allow a new pool to be created, but to prevent updating an existing pool. Other values will be ignored."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the pool entity.",
+ "schema": {
+ "$ref": "#/definitions/Pool"
+ },
+ "headers": {
+ "ETag": {
+ "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "Pool"
+ ],
+ "operationId": "Pool_Update",
+ "description": "Updates the properties of an existing pool.",
+ "x-ms-examples": {
+ "UpdatePool - Resize Pool": {
+ "$ref": "./examples/PoolUpdate_ResizePool.json"
+ },
+ "UpdatePool - Enable Autoscale": {
+ "$ref": "./examples/PoolUpdate_EnableAutoScale.json"
+ },
+ "UpdatePool - Remove Start Task": {
+ "$ref": "./examples/PoolUpdate_RemoveStartTask.json"
+ },
+ "UpdatePool - Other Properties": {
+ "$ref": "./examples/PoolUpdate_OtherProperties.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PoolNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Pool"
+ },
+ "description": "Pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged."
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "The entity state (ETag) version of the pool to update. This value can be omitted or set to \"*\" to apply the operation unconditionally."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the pool entity.",
+ "schema": {
+ "$ref": "#/definitions/Pool"
+ },
+ "headers": {
+ "ETag": {
+ "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Pool"
+ ],
+ "operationId": "Pool_Delete",
+ "description": "Deletes the specified pool.",
+ "x-ms-examples": {
+ "DeletePool": {
+ "$ref": "./examples/PoolDelete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PoolNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful."
+ },
+ "204": {
+ "description": "The operation was successful."
+ },
+ "202": {
+ "description": "The operation will be completed asynchronously.",
+ "headers": {
+ "Location": {
+ "description": "The URL of the resource used to check the status of the asynchronous operation.",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds.",
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "Pool"
+ ],
+ "operationId": "Pool_Get",
+ "description": "Gets information about the specified pool.",
+ "x-ms-examples": {
+ "GetPool": {
+ "$ref": "./examples/PoolGet.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PoolNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the pool entity.",
+ "schema": {
+ "$ref": "#/definitions/Pool"
+ },
+ "headers": {
+ "ETag": {
+ "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale": {
+ "post": {
+ "tags": [
+ "Pool"
+ ],
+ "operationId": "Pool_DisableAutoScale",
+ "description": "Disables automatic scaling for a pool.",
+ "x-ms-examples": {
+ "Disable AutoScale": {
+ "$ref": "./examples/PoolDisableAutoScale.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PoolNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the pool entity.",
+ "schema": {
+ "$ref": "#/definitions/Pool"
+ },
+ "headers": {
+ "ETag": {
+ "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize": {
+ "post": {
+ "tags": [
+ "Pool"
+ ],
+ "operationId": "Pool_StopResize",
+ "summary": "Stops an ongoing resize operation on the pool.",
+ "description": "This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.",
+ "x-ms-examples": {
+ "StopPoolResize": {
+ "$ref": "./examples/PoolStopResize.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/AccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PoolNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the pool entity.",
+ "schema": {
+ "$ref": "#/definitions/Pool"
+ },
+ "headers": {
+ "ETag": {
+ "description": "The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "AutoStorageBaseProperties": {
+ "properties": {
+ "storageAccountId": {
+ "type": "string",
+ "description": "The resource ID of the storage account to be used for auto-storage account."
+ }
+ },
+ "required": [
+ "storageAccountId"
+ ],
+ "description": "The properties related to the auto-storage account."
+ },
+ "BatchAccountUpdateProperties": {
+ "properties": {
+ "autoStorage": {
+ "$ref": "#/definitions/AutoStorageBaseProperties",
+ "description": "The properties related to the auto-storage account."
+ },
+ "encryption": {
+ "title": "The encryption configuration for the Batch account.",
+ "description": "Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead.",
+ "$ref": "#/definitions/EncryptionProperties"
+ }
+ },
+ "description": "The properties of a Batch account."
+ },
+ "BatchAccountCreateProperties": {
+ "properties": {
+ "autoStorage": {
+ "$ref": "#/definitions/AutoStorageBaseProperties",
+ "description": "The properties related to the auto-storage account."
+ },
+ "poolAllocationMode": {
+ "title": "The allocation mode to use for creating pools in the Batch account.",
+ "description": "The pool allocation mode also affects how clients may authenticate to the Batch Service API. If the mode is BatchService, clients may authenticate using access keys or Azure Active Directory. If the mode is UserSubscription, clients must use Azure Active Directory. The default is BatchService.",
+ "$ref": "#/definitions/PoolAllocationMode"
+ },
+ "keyVaultReference": {
+ "$ref": "#/definitions/KeyVaultReference",
+ "description": "A reference to the Azure key vault associated with the Batch account."
+ },
+ "publicNetworkAccess": {
+ "title": "The network access type for accessing Azure Batch account.",
+ "description": "If not specified, the default value is 'enabled'.",
+ "$ref": "#/definitions/PublicNetworkAccessType"
+ },
+ "encryption": {
+ "title": "The encryption configuration for the Batch account.",
+ "description": "Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead.",
+ "$ref": "#/definitions/EncryptionProperties"
+ }
+ },
+ "description": "The properties of a Batch account."
+ },
+ "BatchAccountCreateParameters": {
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "The region in which to create the account."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The user-specified tags associated with the account."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BatchAccountCreateProperties",
+ "description": "The properties of the Batch account."
+ },
+ "identity": {
+ "$ref": "#/definitions/BatchAccountIdentity",
+ "description": "The identity of the Batch account."
+ }
+ },
+ "required": [
+ "location"
+ ],
+ "description": "Parameters supplied to the Create operation."
+ },
+ "KeyVaultReference": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The resource ID of the Azure key vault associated with the Batch account."
+ },
+ "url": {
+ "type": "string",
+ "description": "The URL of the Azure key vault associated with the Batch account."
+ }
+ },
+ "required": [
+ "id",
+ "url"
+ ],
+ "description": "Identifies the Azure key vault associated with a Batch account."
+ },
+ "AutoStorageProperties": {
+ "properties": {
+ "lastKeySync": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The UTC time at which storage keys were last synchronized with the Batch account."
+ }
+ },
+ "required": [
+ "lastKeySync"
+ ],
+ "allOf": [
+ {
+ "$ref": "#/definitions/AutoStorageBaseProperties"
+ }
+ ],
+ "description": "Contains information about the auto-storage account associated with a Batch account."
+ },
+ "VirtualMachineFamilyCoreQuota": {
+ "properties": {
+ "name": {
+ "readOnly": true,
+ "x-nullable": false,
+ "type": "string",
+ "description": "The Virtual Machine family name."
+ },
+ "coreQuota": {
+ "readOnly": true,
+ "x-nullable": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The core quota for the VM family for the Batch account."
+ }
+ },
+ "description": "A VM Family and its associated core quota for the Batch account."
+ },
+ "BatchAccountIdentity": {
+ "properties": {
+ "principalId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The principal id of the Batch account. This property will only be provided for a system assigned identity."
+ },
+ "tenantId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The tenant id associated with the Batch account. This property will only be provided for a system assigned identity."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of identity used for the Batch account.",
+ "enum": [
+ "SystemAssigned",
+ "None"
+ ],
+ "x-ms-enum": {
+ "name": "ResourceIdentityType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "SystemAssigned",
+ "description": "Batch account has a system assigned identity with it."
+ },
+ {
+ "value": "None",
+ "description": "Batch account has no identity associated with it. Setting `None` in update account will remove existing identities."
+ }
+ ]
+ }
+ }
+ },
+ "description": "The identity of the Batch account, if configured. This is only used when the user specifies 'Azure.KeyVault' as their Batch account encryption configuration.",
+ "required": [
+ "type"
+ ]
+ },
+ "BatchAccountProperties": {
+ "properties": {
+ "accountEndpoint": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The account endpoint used to interact with the Batch service."
+ },
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false,
+ "description": "The provisioned state of the resource",
+ "enum": [
+ "Invalid",
+ "Creating",
+ "Deleting",
+ "Succeeded",
+ "Failed",
+ "Cancelled"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Invalid",
+ "description": "The account is in an invalid state."
+ },
+ {
+ "value": "Creating",
+ "description": "The account is being created."
+ },
+ {
+ "value": "Deleting",
+ "description": "The account is being deleted."
+ },
+ {
+ "value": "Succeeded",
+ "description": "The account has been created and is ready for use."
+ },
+ {
+ "value": "Failed",
+ "description": "The last operation for the account is failed."
+ },
+ {
+ "value": "Cancelled",
+ "description": "The last operation for the account is cancelled."
+ }
+ ]
+ }
+ },
+ "poolAllocationMode": {
+ "readOnly": true,
+ "x-nullable": false,
+ "title": "The allocation mode to use for creating pools in the Batch account.",
+ "$ref": "#/definitions/PoolAllocationMode"
+ },
+ "keyVaultReference": {
+ "title": "A reference to the Azure key vault associated with the Batch account.",
+ "readOnly": true,
+ "$ref": "#/definitions/KeyVaultReference"
+ },
+ "publicNetworkAccess": {
+ "readOnly": true,
+ "x-nullable": true,
+ "title": "The network interface type for accessing Azure Batch service and Batch account operations.",
+ "description": "If not specified, the default value is 'enabled'.",
+ "$ref": "#/definitions/PublicNetworkAccessType"
+ },
+ "privateEndpointConnections": {
+ "readOnly": true,
+ "x-nullable": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ },
+ "description": "List of private endpoint connections associated with the Batch account"
+ },
+ "autoStorage": {
+ "title": "The properties and status of any auto-storage account associated with the Batch account.",
+ "readOnly": true,
+ "$ref": "#/definitions/AutoStorageProperties"
+ },
+ "encryption": {
+ "title": "The encryption configuration for the Batch account.",
+ "description": "Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead.",
+ "readOnly": true,
+ "$ref": "#/definitions/EncryptionProperties"
+ },
+ "dedicatedCoreQuota": {
+ "readOnly": true,
+ "x-nullable": true,
+ "type": "integer",
+ "format": "int32",
+ "title": "The dedicated core quota for the Batch account.",
+ "description": "For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned."
+ },
+ "lowPriorityCoreQuota": {
+ "readOnly": true,
+ "x-nullable": true,
+ "type": "integer",
+ "format": "int32",
+ "title": "The low-priority core quota for the Batch account.",
+ "description": "For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned."
+ },
+ "dedicatedCoreQuotaPerVMFamily": {
+ "readOnly": true,
+ "x-nullable": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VirtualMachineFamilyCoreQuota"
+ },
+ "description": "A list of the dedicated core quota per Virtual Machine family for the Batch account. For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned."
+ },
+ "dedicatedCoreQuotaPerVMFamilyEnforced": {
+ "readOnly": true,
+ "x-nullable": false,
+ "type": "boolean",
+ "title": "A value indicating whether the core quota for the Batch Account is enforced per Virtual Machine family or not.",
+ "description": "Batch is transitioning its core quota system for dedicated cores to be enforced per Virtual Machine family. During this transitional phase, the dedicated core quota per Virtual Machine family may not yet be enforced. If this flag is false, dedicated core quota is enforced via the old dedicatedCoreQuota property on the account and does not consider Virtual Machine family. If this flag is true, dedicated core quota is enforced via the dedicatedCoreQuotaPerVMFamily property on the account, and the old dedicatedCoreQuota does not apply."
+ },
+ "poolQuota": {
+ "readOnly": true,
+ "x-nullable": false,
+ "type": "integer",
+ "format": "int32",
+ "title": "The pool quota for the Batch account."
+ },
+ "activeJobAndJobScheduleQuota": {
+ "readOnly": true,
+ "x-nullable": false,
+ "type": "integer",
+ "format": "int32",
+ "title": "The active job and job schedule quota for the Batch account."
+ }
+ },
+ "description": "Account specific properties."
+ },
+ "BatchAccount": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BatchAccountProperties",
+ "description": "The properties associated with the account."
+ },
+ "identity": {
+ "$ref": "#/definitions/BatchAccountIdentity",
+ "description": "The identity of the Batch account."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "description": "Contains information about an Azure Batch account."
+ },
+ "BatchAccountUpdateParameters": {
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The user-specified tags associated with the account."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BatchAccountUpdateProperties",
+ "description": "The properties of the account."
+ },
+ "identity": {
+ "$ref": "#/definitions/BatchAccountIdentity",
+ "description": "The identity of the Batch account."
+ }
+ },
+ "description": "Parameters for updating an Azure Batch account."
+ },
+ "BatchAccountListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/BatchAccount"
+ },
+ "description": "The collection of Batch accounts returned by the listing operation."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The continuation token."
+ }
+ },
+ "description": "Values returned by the List operation."
+ },
+ "EncryptionProperties": {
+ "properties": {
+ "keySource": {
+ "type": "string",
+ "description": "Type of the key source.",
+ "enum": [
+ "Microsoft.Batch",
+ "Microsoft.KeyVault"
+ ],
+ "x-ms-enum": {
+ "name": "KeySource",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Microsoft.Batch",
+ "description": "Batch creates and manages the encryption keys used to protect the account data."
+ },
+ {
+ "value": "Microsoft.KeyVault",
+ "description": "The encryption keys used to protect the account data are stored in an external key vault. If this is set then the Batch Account identity must be set to `SystemAssigned` and a valid Key Identifier must also be supplied under the keyVaultProperties."
+ }
+ ]
+ }
+ },
+ "keyVaultProperties": {
+ "$ref": "#/definitions/KeyVaultProperties",
+ "description": "Additional details when using Microsoft.KeyVault"
+ }
+ },
+ "description": "Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead."
+ },
+ "KeyVaultProperties": {
+ "properties": {
+ "keyIdentifier": {
+ "type": "string",
+ "description": "Full path to the versioned secret. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. To be usable the following prerequisites must be met:\n\n The Batch Account has a System Assigned identity\n The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap permissions\n The KeyVault has soft-delete and purge protection enabled"
+ }
+ },
+ "description": "KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault."
+ },
+ "BatchAccountRegenerateKeyParameters": {
+ "properties": {
+ "keyName": {
+ "type": "string",
+ "description": "The type of account key to regenerate.",
+ "enum": [
+ "Primary",
+ "Secondary"
+ ],
+ "x-ms-enum": {
+ "name": "AccountKeyType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Primary",
+ "description": "The primary account key."
+ },
+ {
+ "value": "Secondary",
+ "description": "The secondary account key."
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "keyName"
+ ],
+ "description": "Parameters supplied to the RegenerateKey operation."
+ },
+ "BatchAccountKeys": {
+ "properties": {
+ "accountName": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The Batch account name."
+ },
+ "primary": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The primary key associated with the account."
+ },
+ "secondary": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The secondary key associated with the account."
+ }
+ },
+ "description": "A set of Azure Batch account keys."
+ },
+ "ActivateApplicationPackageParameters": {
+ "properties": {
+ "format": {
+ "type": "string",
+ "description": "The format of the application package binary file."
+ }
+ },
+ "required": [
+ "format"
+ ],
+ "description": "Parameters for an activating an application package."
+ },
+ "Application": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ApplicationProperties",
+ "description": "The properties associated with the Application."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "description": "Contains information about an application in a Batch account."
+ },
+ "ApplicationProperties": {
+ "properties": {
+ "displayName": {
+ "type": "string",
+ "description": "The display name for the application."
+ },
+ "allowUpdates": {
+ "type": "boolean",
+ "description": "A value indicating whether packages within the application may be overwritten using the same version string."
+ },
+ "defaultVersion": {
+ "type": "string",
+ "description": "The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package."
+ }
+ },
+ "description": "The properties associated with the Application."
+ },
+ "ApplicationPackage": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ApplicationPackageProperties",
+ "description": "The properties associated with the Application Package."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "description": "An application package which represents a particular version of an application."
+ },
+ "ApplicationPackageProperties": {
+ "properties": {
+ "state": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The current state of the application package.",
+ "enum": [
+ "Pending",
+ "Active"
+ ],
+ "x-ms-enum": {
+ "name": "PackageState",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Pending",
+ "description": "The application package has been created but has not yet been activated."
+ },
+ {
+ "value": "Active",
+ "description": "The application package is ready for use."
+ }
+ ]
+ }
+ },
+ "format": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The format of the application package, if the package is active."
+ },
+ "storageUrl": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The URL for the application package in Azure Storage."
+ },
+ "storageUrlExpiry": {
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true,
+ "description": "The UTC time at which the Azure Storage URL will expire."
+ },
+ "lastActivationTime": {
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true,
+ "description": "The time at which the package was last activated, if the package is active."
+ }
+ },
+ "description": "Properties of an application package"
+ },
+ "ListApplicationsResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Application"
+ },
+ "description": "The list of applications."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The URL to get the next set of results."
+ }
+ },
+ "description": "The result of performing list applications."
+ },
+ "ListApplicationPackagesResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ApplicationPackage"
+ },
+ "description": "The list of application packages."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The URL to get the next set of results."
+ }
+ },
+ "description": "The result of performing list application packages."
+ },
+ "BatchLocationQuota": {
+ "properties": {
+ "accountQuota": {
+ "type": "integer",
+ "format": "int32",
+ "readOnly": true,
+ "description": "The number of Batch accounts that may be created under the subscription in the specified region."
+ }
+ },
+ "description": "Quotas associated with a Batch region for a particular subscription."
+ },
+ "Resource": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ID of the resource."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the resource."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of the resource."
+ },
+ "location": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The location of the resource."
+ },
+ "tags": {
+ "readOnly": true,
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The tags of the resource."
+ }
+ },
+ "description": "A definition of an Azure resource.",
+ "x-ms-azure-resource": true
+ },
+ "ProxyResource": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ID of the resource."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the resource."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of the resource."
+ },
+ "etag": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ETag of the resource, used for concurrency statements."
+ }
+ },
+ "description": "A definition of an Azure resource.",
+ "x-ms-azure-resource": true
+ },
+ "PublicNetworkAccessType": {
+ "type": "string",
+ "description": "The network access type for operating on the resources in the Batch account.",
+ "default": "Enabled",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "x-ms-enum": {
+ "name": "PublicNetworkAccessType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Enabled",
+ "description": "Enables connectivity to Azure Batch through public DNS."
+ },
+ {
+ "value": "Disabled",
+ "description": "Disables public connectivity and enables private connectivity to Azure Batch Service through private endpoint resource."
+ }
+ ]
+ }
+ },
+ "PoolAllocationMode": {
+ "type": "string",
+ "description": "The allocation mode for creating pools in the Batch account.",
+ "enum": [
+ "BatchService",
+ "UserSubscription"
+ ],
+ "x-ms-enum": {
+ "name": "PoolAllocationMode",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "BatchService",
+ "description": "Pools will be allocated in subscriptions owned by the Batch service."
+ },
+ {
+ "value": "UserSubscription",
+ "description": "Pools will be allocated in a subscription owned by the user."
+ }
+ ]
+ }
+ },
+ "CertificateBaseProperties": {
+ "properties": {
+ "thumbprintAlgorithm": {
+ "type": "string",
+ "title": "The algorithm of the certificate thumbprint.",
+ "description": "This must match the first portion of the certificate name. Currently required to be 'SHA1'."
+ },
+ "thumbprint": {
+ "type": "string",
+ "title": "The thumbprint of the certificate.",
+ "description": "This must match the thumbprint from the name."
+ },
+ "format": {
+ "type": "string",
+ "x-nullable": false,
+ "description": "The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.",
+ "enum": [
+ "Pfx",
+ "Cer"
+ ],
+ "x-ms-enum": {
+ "name": "CertificateFormat",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Pfx",
+ "description": "The certificate is a PFX (PKCS#12) formatted certificate or certificate chain."
+ },
+ {
+ "value": "Cer",
+ "description": "The certificate is a base64-encoded X.509 certificate."
+ }
+ ]
+ }
+ }
+ }
+ },
+ "CertificateProperties": {
+ "properties": {
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false,
+ "title": "The provisioned state of the resource",
+ "enum": [
+ "Succeeded",
+ "Deleting",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "CertificateProvisioningState",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Succeeded",
+ "description": "The certificate is available for use in pools."
+ },
+ {
+ "value": "Deleting",
+ "description": "The user has requested that the certificate be deleted, but the delete operation has not yet completed. You may not reference the certificate when creating or updating pools."
+ },
+ {
+ "value": "Failed",
+ "description": "The user requested that the certificate be deleted, but there are pools that still have references to the certificate, or it is still installed on one or more compute nodes. (The latter can occur if the certificate has been removed from the pool, but the node has not yet restarted. Nodes refresh their certificates only when they restart.) You may use the cancel certificate delete operation to cancel the delete, or the delete certificate operation to retry the delete."
+ }
+ ]
+ }
+ },
+ "provisioningStateTransitionTime": {
+ "type": "string",
+ "format": "date-time",
+ "title": "The time at which the certificate entered its current state.",
+ "readOnly": true
+ },
+ "previousProvisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false,
+ "description": "The previous provisioned state of the resource",
+ "enum": [
+ "Succeeded",
+ "Deleting",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "CertificateProvisioningState",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Succeeded",
+ "description": "The certificate is available for use in pools."
+ },
+ {
+ "value": "Deleting",
+ "description": "The user has requested that the certificate be deleted, but the delete operation has not yet completed. You may not reference the certificate when creating or updating pools."
+ },
+ {
+ "value": "Failed",
+ "description": "The user requested that the certificate be deleted, but there are pools that still have references to the certificate, or it is still installed on one or more compute nodes. (The latter can occur if the certificate has been removed from the pool, but the node has not yet restarted. Nodes refresh their certificates only when they restart.) You may use the cancel certificate delete operation to cancel the delete, or the delete certificate operation to retry the delete."
+ }
+ ]
+ }
+ },
+ "previousProvisioningStateTransitionTime": {
+ "type": "string",
+ "format": "date-time",
+ "title": "The time at which the certificate entered its previous state.",
+ "readOnly": true
+ },
+ "publicData": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The public key of the certificate."
+ },
+ "deleteCertificateError": {
+ "readOnly": true,
+ "$ref": "#/definitions/DeleteCertificateError",
+ "title": "The error which occurred while deleting the certificate",
+ "description": "This is only returned when the certificate provisioningState is 'Failed'."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/CertificateBaseProperties"
+ }
+ ],
+ "description": "Certificate properties."
+ },
+ "CertificateCreateOrUpdateProperties": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/CertificateBaseProperties"
+ }
+ ],
+ "properties": {
+ "data": {
+ "type": "string",
+ "title": "The base64-encoded contents of the certificate.",
+ "description": "The maximum size is 10KB."
+ },
+ "password": {
+ "type": "string",
+ "title": "The password to access the certificate's private key.",
+ "description": "This must not be specified if the certificate format is Cer."
+ }
+ },
+ "description": "Certificate properties for create operations",
+ "required": [
+ "data"
+ ]
+ },
+ "Certificate": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/CertificateProperties",
+ "description": "The properties associated with the certificate."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "description": "Contains information about a certificate."
+ },
+ "CertificateCreateOrUpdateParameters": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/CertificateCreateOrUpdateProperties",
+ "description": "The properties associated with the certificate."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "description": "Contains information about a certificate."
+ },
+ "ListCertificatesResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Certificate"
+ },
+ "description": "The collection of returned certificates."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The continuation token."
+ }
+ },
+ "description": "Values returned by the List operation."
+ },
+ "DeleteCertificateError": {
+ "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/DeleteCertificateError"
+ },
+ "description": "A list of additional details about the error."
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "description": "An error response from the Batch service."
+ },
+ "PrivateLinkResource": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/PrivateLinkResourceProperties",
+ "description": "The properties associated with the private link resource."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "description": "Contains information about a private link resource."
+ },
+ "PrivateLinkResourceProperties": {
+ "properties": {
+ "groupId": {
+ "type": "string",
+ "title": "The group id of the private link resource.",
+ "description": "The group id is used to establish the private link connection.",
+ "readOnly": true
+ },
+ "requiredMembers": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The list of required members that are used to establish the private link connection.",
+ "readOnly": true
+ },
+ "requiredZoneNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The list of required zone names for the private DNS resource name",
+ "readOnly": true
+ }
+ },
+ "description": "Private link resource properties."
+ },
+ "PrivateEndpointConnection": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/PrivateEndpointConnectionProperties",
+ "description": "The properties associated with the private endpoint connection."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "description": "Contains information about a private link resource."
+ },
+ "PrivateEndpointConnectionProperties": {
+ "properties": {
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false,
+ "title": "The provisioning state of the private endpoint connection.",
+ "enum": [
+ "Succeeded",
+ "Updating",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateEndpointConnectionProvisioningState",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Succeeded",
+ "description": "The connection status is final and is ready for use if Status is Approved."
+ },
+ {
+ "value": "Updating",
+ "description": "The user has requested that the connection status be updated, but the update operation has not yet completed. You may not reference the connection when connecting the Batch account."
+ },
+ {
+ "value": "Failed",
+ "description": "The user requested that the connection be updated and it failed. You may retry the update operation."
+ }
+ ]
+ }
+ },
+ "privateEndpoint": {
+ "$ref": "#/definitions/PrivateEndpoint",
+ "title": "The ARM resource identifier of the private endpoint."
+ },
+ "privateLinkServiceConnectionState": {
+ "$ref": "#/definitions/PrivateLinkServiceConnectionState",
+ "title": "The private link service connection state of the private endpoint connection."
+ }
+ },
+ "description": "Private endpoint connection properties."
+ },
+ "PrivateEndpoint": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "title": "The ARM resource identifier of the private endpoint. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/privateEndpoints/{privateEndpoint}.",
+ "readOnly": true
+ }
+ },
+ "description": "The private endpoint of the private endpoint connection."
+ },
+ "PrivateLinkServiceConnectionState": {
+ "properties": {
+ "status": {
+ "$ref": "#/definitions/PrivateLinkServiceConnectionStatus",
+ "title": "The status for the private endpoint connection of Batch account"
+ },
+ "description": {
+ "type": "string",
+ "title": "Description of the private Connection state"
+ },
+ "actionRequired": {
+ "type": "string",
+ "title": "Action required on the private connection state",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "status"
+ ],
+ "description": "The private link service connection state of the private endpoint connection"
+ },
+ "PrivateLinkServiceConnectionStatus": {
+ "type": "string",
+ "title": "The status of the Batch private endpoint connection",
+ "enum": [
+ "Approved",
+ "Pending",
+ "Rejected",
+ "Disconnected"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateLinkServiceConnectionStatus",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Approved",
+ "description": "The private endpoint connection is approved and can be used to access Batch account"
+ },
+ {
+ "value": "Pending",
+ "description": "The private endpoint connection is pending and cannot be used to access Batch account"
+ },
+ {
+ "value": "Rejected",
+ "description": "The private endpoint connection is rejected and cannot be used to access Batch account"
+ },
+ {
+ "value": "Disconnected",
+ "description": "The private endpoint connection is disconnected and cannot be used to access Batch account"
+ }
+ ]
+ }
+ },
+ "Pool": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/PoolProperties",
+ "description": "The properties associated with the pool."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "description": "Contains information about a pool."
+ },
+ "PoolProperties": {
+ "properties": {
+ "displayName": {
+ "type": "string",
+ "title": "The display name for the pool.",
+ "description": "The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024."
+ },
+ "lastModified": {
+ "type": "string",
+ "format": "date-time",
+ "title": "The last modified time of the pool.",
+ "description": "This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute node changing state.",
+ "readOnly": true
+ },
+ "creationTime": {
+ "type": "string",
+ "format": "date-time",
+ "title": "The creation time of the pool.",
+ "readOnly": true
+ },
+ "provisioningState": {
+ "type": "string",
+ "title": "The current state of the pool.",
+ "enum": [
+ "Succeeded",
+ "Deleting"
+ ],
+ "x-ms-enum": {
+ "name": "PoolProvisioningState",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Succeeded",
+ "description": "The pool is available to run tasks subject to the availability of compute nodes."
+ },
+ {
+ "value": "Deleting",
+ "description": "The user has requested that the pool be deleted, but the delete operation has not yet completed."
+ }
+ ]
+ },
+ "readOnly": true
+ },
+ "provisioningStateTransitionTime": {
+ "type": "string",
+ "format": "date-time",
+ "title": "The time at which the pool entered its current state.",
+ "readOnly": true
+ },
+ "allocationState": {
+ "type": "string",
+ "title": "Whether the pool is resizing.",
+ "enum": [
+ "Steady",
+ "Resizing",
+ "Stopping"
+ ],
+ "x-ms-enum": {
+ "name": "AllocationState",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Steady",
+ "description": "The pool is not resizing. There are no changes to the number of nodes in the pool in progress. A pool enters this state when it is created and when no operations are being performed on the pool to change the number of nodes."
+ },
+ {
+ "value": "Resizing",
+ "description": "The pool is resizing; that is, compute nodes are being added to or removed from the pool."
+ },
+ {
+ "value": "Stopping",
+ "description": "The pool was resizing, but the user has requested that the resize be stopped, but the stop request has not yet been completed."
+ }
+ ]
+ },
+ "readOnly": true
+ },
+ "allocationStateTransitionTime": {
+ "type": "string",
+ "format": "date-time",
+ "title": "The time at which the pool entered its current allocation state.",
+ "readOnly": true
+ },
+ "vmSize": {
+ "type": "string",
+ "title": "The size of virtual machines in the pool. All VMs in a pool are the same size.",
+ "description": "For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series)."
+ },
+ "deploymentConfiguration": {
+ "$ref": "#/definitions/DeploymentConfiguration",
+ "title": "This property describes how the pool nodes will be deployed - using Cloud Services or Virtual Machines.",
+ "description": "Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS)."
+ },
+ "currentDedicatedNodes": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The number of compute nodes currently in the pool.",
+ "readOnly": true
+ },
+ "currentLowPriorityNodes": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The number of low priority compute nodes currently in the pool.",
+ "readOnly": true
+ },
+ "scaleSettings": {
+ "$ref": "#/definitions/ScaleSettings",
+ "title": "Settings which configure the number of nodes in the pool."
+ },
+ "autoScaleRun": {
+ "$ref": "#/definitions/AutoScaleRun",
+ "title": "The results and errors from the last execution of the autoscale formula.",
+ "description": "This property is set only if the pool automatically scales, i.e. autoScaleSettings are used.",
+ "readOnly": true
+ },
+ "interNodeCommunication": {
+ "type": "string",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "x-ms-enum": {
+ "name": "InterNodeCommunicationState",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Enabled",
+ "description": "Enable network communication between virtual machines."
+ },
+ {
+ "value": "Disabled",
+ "description": "Disable network communication between virtual machines."
+ }
+ ]
+ },
+ "title": "Whether the pool permits direct communication between nodes.",
+ "description": "This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to 'Disabled'."
+ },
+ "networkConfiguration": {
+ "$ref": "#/definitions/NetworkConfiguration",
+ "title": "The network configuration for the pool."
+ },
+ "maxTasksPerNode": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The maximum number of tasks that can run concurrently on a single compute node in the pool.",
+ "description": "The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256."
+ },
+ "taskSchedulingPolicy": {
+ "$ref": "#/definitions/TaskSchedulingPolicy",
+ "title": "How tasks are distributed across compute nodes in a pool.",
+ "description": "If not specified, the default is spread."
+ },
+ "userAccounts": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/UserAccount"
+ },
+ "title": "The list of user accounts to be created on each node in the pool."
+ },
+ "metadata": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MetadataItem"
+ },
+ "title": "A list of name-value pairs associated with the pool as metadata.",
+ "description": "The Batch service does not assign any meaning to metadata; it is solely for the use of user code."
+ },
+ "startTask": {
+ "$ref": "#/definitions/StartTask",
+ "title": "A task specified to run on each compute node as it joins the pool.",
+ "description": "In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool."
+ },
+ "certificates": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CertificateReference"
+ },
+ "title": "The list of certificates to be installed on each compute node in the pool.",
+ "description": "For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory."
+ },
+ "applicationPackages": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ApplicationPackageReference"
+ },
+ "title": "The list of application packages to be installed on each compute node in the pool.",
+ "description": "Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10 application package references on any given pool."
+ },
+ "applicationLicenses": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The list of application licenses the Batch service will make available on each compute node in the pool.",
+ "description": "The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail."
+ },
+ "resizeOperationStatus": {
+ "$ref": "#/definitions/ResizeOperationStatus",
+ "title": "Contains details about the current or last completed resize operation.",
+ "readOnly": true
+ },
+ "mountConfiguration": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MountConfiguration"
+ },
+ "title": "A list of file systems to mount on each node in the pool.",
+ "description": "This supports Azure Files, NFS, CIFS/SMB, and Blobfuse."
+ }
+ },
+ "description": "Pool properties."
+ },
+ "DeploymentConfiguration": {
+ "properties": {
+ "cloudServiceConfiguration": {
+ "$ref": "#/definitions/CloudServiceConfiguration",
+ "title": "The cloud service configuration for the pool.",
+ "description": "This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch account was created with its poolAllocationMode property set to 'UserSubscription'."
+ },
+ "virtualMachineConfiguration": {
+ "$ref": "#/definitions/VirtualMachineConfiguration",
+ "title": "The virtual machine configuration for the pool.",
+ "description": "This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified."
+ }
+ },
+ "title": "Deployment configuration properties."
+ },
+ "ScaleSettings": {
+ "properties": {
+ "fixedScale": {
+ "$ref": "#/definitions/FixedScaleSettings",
+ "title": "Fixed scale settings for the pool.",
+ "description": "This property and autoScale are mutually exclusive and one of the properties must be specified."
+ },
+ "autoScale": {
+ "$ref": "#/definitions/AutoScaleSettings",
+ "title": "AutoScale settings for the pool.",
+ "description": "This property and fixedScale are mutually exclusive and one of the properties must be specified."
+ }
+ },
+ "title": "Scale settings for the pool",
+ "description": "Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes."
+ },
+ "AutoScaleSettings": {
+ "properties": {
+ "formula": {
+ "type": "string",
+ "title": "A formula for the desired number of compute nodes in the pool.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/azure/batch/batch-automatic-scaling",
+ "description": "Create an automatic scaling formula for scaling compute nodes in a Batch pool"
+ }
+ },
+ "evaluationInterval": {
+ "type": "string",
+ "format": "duration",
+ "title": "The time interval at which to automatically adjust the pool size according to the autoscale formula.",
+ "description": "If omitted, the default value is 15 minutes (PT15M)."
+ }
+ },
+ "required": [
+ "formula"
+ ],
+ "title": "AutoScale settings for the pool."
+ },
+ "FixedScaleSettings": {
+ "properties": {
+ "resizeTimeout": {
+ "type": "string",
+ "format": "duration",
+ "title": "The timeout for allocation of compute nodes to the pool.",
+ "description": "The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)."
+ },
+ "targetDedicatedNodes": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The desired number of dedicated compute nodes in the pool.",
+ "description": "At least one of targetDedicatedNodes, targetLowPriorityNodes must be set."
+ },
+ "targetLowPriorityNodes": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The desired number of low-priority compute nodes in the pool.",
+ "description": "At least one of targetDedicatedNodes, targetLowPriorityNodes must be set."
+ },
+ "nodeDeallocationOption": {
+ "title": "Determines what to do with a node and its running task(s) if the pool size is decreasing.",
+ "description": "If omitted, the default value is Requeue.",
+ "$ref": "#/definitions/ComputeNodeDeallocationOption"
+ }
+ },
+ "title": "Fixed scale settings for the pool."
+ },
+ "ComputeNodeDeallocationOption": {
+ "type": "string",
+ "title": "Determines what to do with a node and its running task(s) after it has been selected for deallocation.",
+ "enum": [
+ "Requeue",
+ "Terminate",
+ "TaskCompletion",
+ "RetainedData"
+ ],
+ "x-ms-enum": {
+ "name": "ComputeNodeDeallocationOption",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Requeue",
+ "description": "Terminate running task processes and requeue the tasks. The tasks will run again when a node is available. Remove nodes as soon as tasks have been terminated."
+ },
+ {
+ "value": "Terminate",
+ "description": "Terminate running tasks. The tasks will be completed with failureInfo indicating that they were terminated, and will not run again. Remove nodes as soon as tasks have been terminated."
+ },
+ {
+ "value": "TaskCompletion",
+ "description": "Allow currently running tasks to complete. Schedule no new tasks while waiting. Remove nodes when all tasks have completed."
+ },
+ {
+ "value": "RetainedData",
+ "description": "Allow currently running tasks to complete, then wait for all task data retention periods to expire. Schedule no new tasks while waiting. Remove nodes when all task retention periods have expired."
+ }
+ ]
+ }
+ },
+ "CertificateReference": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "title": "The fully qualified ID of the certificate to install on the pool. This must be inside the same batch account as the pool."
+ },
+ "storeLocation": {
+ "type": "string",
+ "title": "The location of the certificate store on the compute node into which to install the certificate.",
+ "description": "The default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.",
+ "enum": [
+ "CurrentUser",
+ "LocalMachine"
+ ],
+ "x-ms-enum": {
+ "name": "CertificateStoreLocation",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "CurrentUser",
+ "description": "Certificates should be installed to the CurrentUser certificate store."
+ },
+ {
+ "value": "LocalMachine",
+ "description": "Certificates should be installed to the LocalMachine certificate store."
+ }
+ ]
+ }
+ },
+ "storeName": {
+ "type": "string",
+ "title": "The name of the certificate store on the compute node into which to install the certificate.",
+ "description": "This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My."
+ },
+ "visibility": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "x-nullable": false,
+ "enum": [
+ "StartTask",
+ "Task",
+ "RemoteUser"
+ ],
+ "x-ms-enum": {
+ "name": "CertificateVisibility",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "StartTask",
+ "description": "The certificate should be visible to the user account under which the start task is run. Note that if AutoUser Scope is Pool for both the StartTask and a Task, this certificate will be visible to the Task as well."
+ },
+ {
+ "value": "Task",
+ "description": "The certificate should be visible to the user accounts under which job tasks are run."
+ },
+ {
+ "value": "RemoteUser",
+ "description": "The certificate should be visible to the user accounts under which users remotely access the node."
+ }
+ ]
+ }
+ },
+ "title": "Which user accounts on the compute node should have access to the private data of the certificate."
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "title": "A reference to a certificate to be installed on compute nodes in a pool. This must exist inside the same account as the pool."
+ },
+ "ApplicationPackageReference": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "title": "The ID of the application package to install. This must be inside the same batch account as the pool. This can either be a reference to a specific version or the default version if one exists."
+ },
+ "version": {
+ "type": "string",
+ "title": "The version of the application to deploy. If omitted, the default version is deployed.",
+ "description": "If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409."
+ }
+ },
+ "title": "Link to an application package inside the batch account",
+ "required": [
+ "id"
+ ]
+ },
+ "ResizeError": {
+ "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."
+ },
+ "details": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResizeError"
+ },
+ "title": "Additional details about the error."
+ }
+ },
+ "title": "An error that occurred when resizing a pool.",
+ "required": [
+ "code",
+ "message"
+ ]
+ },
+ "AutoScaleRunError": {
+ "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."
+ },
+ "details": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AutoScaleRunError"
+ },
+ "title": "Additional details about the error."
+ }
+ },
+ "title": "An error that occurred when autoscaling a pool.",
+ "required": [
+ "code",
+ "message"
+ ]
+ },
+ "AutoScaleRun": {
+ "properties": {
+ "evaluationTime": {
+ "type": "string",
+ "format": "date-time",
+ "title": "The time at which the autoscale formula was last evaluated."
+ },
+ "results": {
+ "type": "string",
+ "title": "The final values of all variables used in the evaluation of the autoscale formula.",
+ "description": "Each variable value is returned in the form $variable=value, and variables are separated by semicolons."
+ },
+ "error": {
+ "$ref": "#/definitions/AutoScaleRunError",
+ "title": "Details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was unsuccessful."
+ }
+ },
+ "required": [
+ "evaluationTime"
+ ],
+ "title": "The results and errors from an execution of a pool autoscale formula."
+ },
+ "VirtualMachineConfiguration": {
+ "properties": {
+ "imageReference": {
+ "$ref": "#/definitions/ImageReference",
+ "title": "A reference to the Azure Virtual Machines Marketplace Image or the custom Virtual Machine Image to use."
+ },
+ "nodeAgentSkuId": {
+ "type": "string",
+ "title": "The SKU of the Batch node agent to be provisioned on compute nodes in the pool.",
+ "description": "The Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation."
+ },
+ "windowsConfiguration": {
+ "$ref": "#/definitions/WindowsConfiguration",
+ "title": "Windows operating system settings on the virtual machine.",
+ "description": "This property must not be specified if the imageReference specifies a Linux OS image."
+ },
+ "dataDisks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DataDisk"
+ },
+ "title": "The configuration for data disks attached to the compute nodes in the pool.",
+ "description": "This property must be specified if the compute nodes in the pool need to have empty data disks attached to them."
+ },
+ "licenseType": {
+ "type": "string",
+ "title": "The type of on-premises license to be used when deploying the operating system.",
+ "description": "This only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are:\n\n Windows_Server - The on-premises license is for Windows Server.\n Windows_Client - The on-premises license is for Windows Client.\n"
+ },
+ "containerConfiguration": {
+ "$ref": "#/definitions/ContainerConfiguration",
+ "title": "The container configuration for the pool.",
+ "description": "If specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it."
+ },
+ "diskEncryptionConfiguration": {
+ "$ref": "#/definitions/DiskEncryptionConfiguration",
+ "title": "The disk encryption configuration for the pool.",
+ "description": "If specified, encryption is performed on each node in the pool during node provisioning."
+ }
+ },
+ "required": [
+ "imageReference",
+ "nodeAgentSkuId"
+ ],
+ "title": "The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure."
+ },
+ "ContainerRegistry": {
+ "properties": {
+ "registryServer": {
+ "type": "string",
+ "title": "The registry URL.",
+ "description": "If omitted, the default is \"docker.io\"."
+ },
+ "username": {
+ "type": "string",
+ "x-ms-client-name": "userName",
+ "title": "The user name to log into the registry server."
+ },
+ "password": {
+ "type": "string",
+ "title": "The password to log into the registry server."
+ }
+ },
+ "required": [
+ "username",
+ "password"
+ ],
+ "title": "A private container registry."
+ },
+ "DiskEncryptionConfiguration": {
+ "properties": {
+ "targets": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "x-nullable": false,
+ "title": "The disks to encrypt on each compute node.",
+ "description": "If omitted, no disks on the compute nodes in the pool will be encrypted.",
+ "enum": [
+ "OsDisk",
+ "TemporaryDisk"
+ ],
+ "x-ms-enum": {
+ "name": "DiskEncryptionTarget",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "OsDisk",
+ "description": "The OS Disk on the compute node is encrypted.",
+ "name": "OsDisk"
+ },
+ {
+ "value": "TemporaryDisk",
+ "description": "The temporary disk on the compute node is encrypted. On Linux this encryption applies to other partitions (such as those on mounted data disks) when encryption occurs at boot time.",
+ "name": "TemporaryDisk"
+ }
+ ]
+ }
+ },
+ "title": "The list of disk targets Batch Service will encrypt on the compute node",
+ "description": "On Linux pool, only \"TemporaryDisk\" is supported; on Windows pool, \"OsDisk\" and \"TemporaryDisk\" must be specified."
+ }
+ },
+ "description": "The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not supported on Linux pool created with Virtual Machine Image or Shared Image Gallery Image."
+ },
+ "ContainerConfiguration": {
+ "properties": {
+ "type": {
+ "type": "string",
+ "title": "The container technology to be used.",
+ "enum": [
+ "DockerCompatible"
+ ],
+ "x-ms-enum": {
+ "name": "ContainerType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "DockerCompatible",
+ "description": "A Docker compatible container technology will be used to launch the containers."
+ }
+ ]
+ }
+ },
+ "containerImageNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The collection of container image names.",
+ "description": "This is the full image reference, as would be specified to \"docker pull\". An image will be sourced from the default Docker registry unless the image is fully qualified with an alternative registry."
+ },
+ "containerRegistries": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ContainerRegistry"
+ },
+ "title": "Additional private registries from which containers can be pulled.",
+ "description": "If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here."
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "title": "The configuration for container-enabled pools."
+ },
+ "WindowsConfiguration": {
+ "properties": {
+ "enableAutomaticUpdates": {
+ "type": "boolean",
+ "title": "Whether automatic updates are enabled on the virtual machine.",
+ "description": "If omitted, the default value is true."
+ }
+ },
+ "title": "Windows operating system settings to apply to the virtual machine."
+ },
+ "ImageReference": {
+ "properties": {
+ "publisher": {
+ "type": "string",
+ "title": "The publisher of the Azure Virtual Machines Marketplace image.",
+ "description": "For example, Canonical or MicrosoftWindowsServer."
+ },
+ "offer": {
+ "type": "string",
+ "title": "The offer type of the Azure Virtual Machines Marketplace image.",
+ "description": "For example, UbuntuServer or WindowsServer."
+ },
+ "sku": {
+ "type": "string",
+ "title": "The SKU of the Azure Virtual Machines Marketplace image.",
+ "description": "For example, 18.04-LTS or 2019-Datacenter."
+ },
+ "version": {
+ "type": "string",
+ "title": "The version of the Azure Virtual Machines Marketplace image.",
+ "description": "A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'."
+ },
+ "id": {
+ "type": "string",
+ "title": "The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes in the Pool will be created using this Image Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.",
+ "description": "This property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration."
+ }
+ },
+ "title": "A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual Machine. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation."
+ },
+ "DataDisk": {
+ "properties": {
+ "lun": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The logical unit number.",
+ "description": "The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun."
+ },
+ "caching": {
+ "$ref": "#/definitions/CachingType",
+ "title": "The type of caching to be enabled for the data disks.",
+ "description": "Values are:\n\n none - The caching mode for the disk is not enabled.\n readOnly - The caching mode for the disk is read only.\n readWrite - The caching mode for the disk is read and write.\n\n The default value for caching is none. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/."
+ },
+ "diskSizeGB": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The initial disk size in GB when creating new data disk."
+ },
+ "storageAccountType": {
+ "title": "The storage account type to be used for the data disk.",
+ "description": "If omitted, the default is \"Standard_LRS\". Values are:\n\n Standard_LRS - The data disk should use standard locally redundant storage.\n Premium_LRS - The data disk should use premium locally redundant storage.",
+ "$ref": "#/definitions/StorageAccountType"
+ }
+ },
+ "required": [
+ "lun",
+ "diskSizeGB"
+ ],
+ "description": "Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data disks, you need to mount and format the disks from within a VM to use them."
+ },
+ "TaskSchedulingPolicy": {
+ "properties": {
+ "nodeFillType": {
+ "type": "string",
+ "title": "How tasks should be distributed across compute nodes.",
+ "enum": [
+ "Spread",
+ "Pack"
+ ],
+ "x-ms-enum": {
+ "name": "ComputeNodeFillType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Spread",
+ "description": "Tasks should be assigned evenly across all nodes in the pool."
+ },
+ {
+ "value": "Pack",
+ "description": "As many tasks as possible (maxTasksPerNode) should be assigned to each node in the pool before any tasks are assigned to the next node in the pool."
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "nodeFillType"
+ ],
+ "title": "Specifies how tasks should be distributed across compute nodes."
+ },
+ "LinuxUserConfiguration": {
+ "properties": {
+ "uid": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The user ID of the user account.",
+ "description": "The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid."
+ },
+ "gid": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The group ID for the user account.",
+ "description": "The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid."
+ },
+ "sshPrivateKey": {
+ "type": "string",
+ "title": "The SSH private key for the user account.",
+ "description": "The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between nodes in a Linux pool when the pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between nodes (no modification of the user's .ssh directory is done)."
+ }
+ },
+ "title": "Properties used to create a user account on a Linux node."
+ },
+ "WindowsUserConfiguration": {
+ "properties": {
+ "loginMode": {
+ "type": "string",
+ "title": "Login mode for user",
+ "description": "Specifies login mode for the user. The default value for VirtualMachineConfiguration pools is interactive mode and for CloudServiceConfiguration pools is batch mode.",
+ "enum": [
+ "Batch",
+ "Interactive"
+ ],
+ "x-ms-enum": {
+ "name": "LoginMode",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Batch",
+ "description": "The LOGON32_LOGON_BATCH Win32 login mode. The batch login mode is recommended for long running parallel processes."
+ },
+ {
+ "value": "Interactive",
+ "description": "The LOGON32_LOGON_INTERACTIVE Win32 login mode. Some applications require having permissions associated with the interactive login mode. If this is the case for an application used in your task, then this option is recommended."
+ }
+ ]
+ }
+ }
+ },
+ "title": "Properties used to create a user account on a Windows node."
+ },
+ "UserAccount": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "The name of the user account."
+ },
+ "password": {
+ "type": "string",
+ "title": "The password for the user account."
+ },
+ "elevationLevel": {
+ "title": "The elevation level of the user account.",
+ "description": "nonAdmin - The auto user is a standard user without elevated access. admin - The auto user is a user with elevated access and operates with full Administrator permissions. The default value is nonAdmin.",
+ "$ref": "#/definitions/ElevationLevel"
+ },
+ "linuxUserConfiguration": {
+ "title": "The Linux-specific user configuration for the user account.",
+ "description": "This property is ignored if specified on a Windows pool. If not specified, the user is created with the default options.",
+ "$ref": "#/definitions/LinuxUserConfiguration"
+ },
+ "windowsUserConfiguration": {
+ "title": "The Windows-specific user configuration for the user account.",
+ "description": "This property can only be specified if the user is on a Windows pool. If not specified and on a Windows pool, the user is created with the default options.",
+ "$ref": "#/definitions/WindowsUserConfiguration"
+ }
+ },
+ "required": [
+ "name",
+ "password"
+ ],
+ "title": "Properties used to create a user on an Azure Batch node."
+ },
+ "StartTask": {
+ "properties": {
+ "commandLine": {
+ "type": "string",
+ "title": "The command line of the start task.",
+ "description": "The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. Required if any other properties of the startTask are specified."
+ },
+ "resourceFiles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceFile"
+ },
+ "title": "A list of files that the Batch service will download to the compute node before running the command line."
+ },
+ "environmentSettings": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EnvironmentSetting"
+ },
+ "title": "A list of environment variable settings for the start task."
+ },
+ "userIdentity": {
+ "$ref": "#/definitions/UserIdentity",
+ "title": "The user identity under which the start task runs.",
+ "description": "If omitted, the task runs as a non-administrative user unique to the task."
+ },
+ "maxTaskRetryCount": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The maximum number of times the task may be retried.",
+ "description": "The Batch service retries a task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try the task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the task. If the maximum retry count is -1, the Batch service retries the task without limit."
+ },
+ "waitForSuccess": {
+ "type": "boolean",
+ "title": "Whether the Batch service should wait for the start task to complete successfully (that is, to exit with exit code 0) before scheduling any tasks on the compute node.",
+ "description": "If true and the start task fails on a compute node, the Batch service retries the start task up to its maximum retry count (maxTaskRetryCount). If the task has still not completed successfully after all retries, then the Batch service marks the compute node unusable, and will not schedule tasks to it. This condition can be detected via the node state and scheduling error detail. If false, the Batch service will not wait for the start task to complete. In this case, other tasks can start executing on the compute node while the start task is still running; and even if the start task fails, new tasks will continue to be scheduled on the node. The default is true."
+ },
+ "containerSettings": {
+ "$ref": "#/definitions/TaskContainerSettings",
+ "title": "The settings for the container under which the start task runs.",
+ "description": "When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all task environment variables are mapped into the container, and the task command line is executed in the container."
+ }
+ },
+ "title": "A task which is run when a compute node joins a pool in the Azure Batch service, or when the compute node is rebooted or reimaged.",
+ "description": "In some cases the start task may be re-run even though the node was not rebooted. Due to this, start tasks should be idempotent and exit gracefully if the setup they're performing has already been done. Special care should be taken to avoid start tasks which create breakaway process or install/launch services from the start task working directory, as this will block Batch from being able to re-run the start task."
+ },
+ "TaskContainerSettings": {
+ "properties": {
+ "containerRunOptions": {
+ "type": "string",
+ "title": "Additional options to the container create command.",
+ "description": "These additional options are supplied as arguments to the \"docker create\" command, in addition to those controlled by the Batch Service."
+ },
+ "imageName": {
+ "type": "string",
+ "title": "The image to use to create the container in which the task will run.",
+ "description": "This is the full image reference, as would be specified to \"docker pull\". If no tag is provided as part of the image name, the tag \":latest\" is used as a default."
+ },
+ "registry": {
+ "$ref": "#/definitions/ContainerRegistry",
+ "title": "The private registry which contains the container image.",
+ "description": "This setting can be omitted if was already provided at pool creation."
+ },
+ "workingDirectory": {
+ "type": "string",
+ "title": "A flag to indicate where the container task working directory is. The default is 'taskWorkingDirectory'.",
+ "enum": [
+ "TaskWorkingDirectory",
+ "ContainerImageDefault"
+ ],
+ "x-ms-enum": {
+ "name": "ContainerWorkingDirectory",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "TaskWorkingDirectory",
+ "description": "Use the standard Batch service task working directory, which will contain the Task resource files populated by Batch."
+ },
+ {
+ "value": "ContainerImageDefault",
+ "description": "Using container image defined working directory. Beware that this directory will not contain the resource files downloaded by Batch."
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "imageName"
+ ],
+ "title": "The container settings for a task."
+ },
+ "ResourceFile": {
+ "properties": {
+ "autoStorageContainerName": {
+ "type": "string",
+ "title": "The storage container name in the auto storage account.",
+ "description": "The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified."
+ },
+ "storageContainerUrl": {
+ "type": "string",
+ "title": "The URL of the blob container within Azure Blob Storage.",
+ "description": "The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the blob, or set the ACL for the blob or its container to allow public access."
+ },
+ "httpUrl": {
+ "type": "string",
+ "title": "The URL of the file to download.",
+ "description": "The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL is Azure Blob Storage, it must be readable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL for the blob or its container to allow public access."
+ },
+ "blobPrefix": {
+ "type": "string",
+ "title": "The blob prefix to use when downloading blobs from an Azure Storage container. Only the blobs whose names begin with the specified prefix will be downloaded.",
+ "description": "The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded."
+ },
+ "filePath": {
+ "type": "string",
+ "title": "The location on the compute node to which to download the file, relative to the task's working directory.",
+ "description": "If the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the task's working directory (for example by using '..')."
+ },
+ "fileMode": {
+ "type": "string",
+ "title": "The file permission mode attribute in octal format.",
+ "description": "This property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file."
+ }
+ },
+ "title": "A single file or multiple files to be downloaded to a compute node."
+ },
+ "EnvironmentSetting": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "The name of the environment variable."
+ },
+ "value": {
+ "type": "string",
+ "title": "The value of the environment variable."
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "An environment variable to be set on a task process."
+ },
+ "UserIdentity": {
+ "properties": {
+ "userName": {
+ "type": "string",
+ "title": "The name of the user identity under which the task is run.",
+ "description": "The userName and autoUser properties are mutually exclusive; you must specify one but not both."
+ },
+ "autoUser": {
+ "$ref": "#/definitions/AutoUserSpecification",
+ "title": "The auto user under which the task is run.",
+ "description": "The userName and autoUser properties are mutually exclusive; you must specify one but not both."
+ }
+ },
+ "title": "The definition of the user identity under which the task is run.",
+ "description": "Specify either the userName or autoUser property, but not both."
+ },
+ "AutoUserSpecification": {
+ "properties": {
+ "scope": {
+ "type": "string",
+ "title": "The scope for the auto user",
+ "description": "The default value is Pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by start tasks.",
+ "enum": [
+ "Task",
+ "Pool"
+ ],
+ "x-ms-enum": {
+ "name": "AutoUserScope",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Task",
+ "description": "Specifies that the service should create a new user for the task."
+ },
+ {
+ "value": "Pool",
+ "description": "Specifies that the task runs as the common auto user account which is created on every node in a pool."
+ }
+ ]
+ }
+ },
+ "elevationLevel": {
+ "title": "The elevation level of the auto user.",
+ "description": "The default value is nonAdmin.",
+ "$ref": "#/definitions/ElevationLevel"
+ }
+ },
+ "title": "Specifies the parameters for the auto user that runs a task on the Batch service."
+ },
+ "ElevationLevel": {
+ "type": "string",
+ "title": "The elevation level of the user.",
+ "enum": [
+ "NonAdmin",
+ "Admin"
+ ],
+ "x-ms-enum": {
+ "name": "ElevationLevel",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "NonAdmin",
+ "description": "The user is a standard user without elevated access."
+ },
+ {
+ "value": "Admin",
+ "description": "The user is a user with elevated access and operates with full Administrator permissions."
+ }
+ ]
+ }
+ },
+ "StorageAccountType": {
+ "type": "string",
+ "title": "The storage account type for use in creating data disks.",
+ "enum": [
+ "Standard_LRS",
+ "Premium_LRS"
+ ],
+ "x-ms-enum": {
+ "name": "StorageAccountType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Standard_LRS",
+ "description": "The data disk should use standard locally redundant storage."
+ },
+ {
+ "value": "Premium_LRS",
+ "description": "The data disk should use premium locally redundant storage."
+ }
+ ]
+ }
+ },
+ "CachingType": {
+ "type": "string",
+ "title": "The type of caching to enable for the disk.",
+ "enum": [
+ "None",
+ "ReadOnly",
+ "ReadWrite"
+ ],
+ "x-ms-enum": {
+ "name": "CachingType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "None",
+ "description": "The caching mode for the disk is not enabled."
+ },
+ {
+ "value": "ReadOnly",
+ "description": "The caching mode for the disk is read only."
+ },
+ {
+ "value": "ReadWrite",
+ "description": "The caching mode for the disk is read and write."
+ }
+ ]
+ }
+ },
+ "IPAddressProvisioningType": {
+ "type": "string",
+ "title": "The provisioning type for Public IP Addresses for the Batch Pool.",
+ "enum": [
+ "BatchManaged",
+ "UserManaged",
+ "NoPublicIPAddresses"
+ ],
+ "x-ms-enum": {
+ "name": "IPAddressProvisioningType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "BatchManaged",
+ "description": "A public IP will be created and managed by Batch. There may be multiple public IPs depending on the size of the Pool."
+ },
+ {
+ "value": "UserManaged",
+ "description": "Public IPs are provided by the user and will be used to provision the Compute Nodes."
+ },
+ {
+ "value": "NoPublicIPAddresses",
+ "description": "No public IP Address will be created for the Compute Nodes in the Pool."
+ }
+ ]
+ }
+ },
+ "PublicIPAddressConfiguration": {
+ "properties": {
+ "provision": {
+ "$ref": "#/definitions/IPAddressProvisioningType",
+ "title": "The provisioning type for Public IP Addresses for the pool",
+ "description": "The default value is BatchManaged"
+ },
+ "ipAddressIds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The list of public IPs which the Batch service will use when provisioning Compute Nodes.",
+ "description": "The number of IPs specified here limits the maximum size of the Pool - 50 dedicated nodes or 20 low-priority nodes can be allocated for each public IP. For example, a pool needing 150 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}."
+ }
+ },
+ "description": "The public IP Address configuration of the networking configuration of a Pool."
+ },
+ "NetworkConfiguration": {
+ "properties": {
+ "subnetId": {
+ "type": "string",
+ "title": "The ARM resource identifier of the virtual network subnet which the compute nodes of the pool will join. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}.",
+ "description": "The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration",
+ "externalDocs": {
+ "url": "https://azure.microsoft.com/en-us/documentation/articles/role-based-access-built-in-roles/#classic-virtual-machine-contributor",
+ "description": "Setting up RBAC for Azure Batch VNets"
+ }
+ },
+ "endpointConfiguration": {
+ "$ref": "#/definitions/PoolEndpointConfiguration",
+ "title": "The configuration for endpoints on compute nodes in the Batch pool.",
+ "description": "Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property."
+ },
+ "publicIPAddressConfiguration": {
+ "$ref": "#/definitions/PublicIPAddressConfiguration",
+ "title": "The Public IPAddress configuration for Compute Nodes in the Batch Pool.",
+ "description": "This property is only supported on Pools with the virtualMachineConfiguration property."
+ }
+ },
+ "description": "The network configuration for a pool."
+ },
+ "CloudServiceConfiguration": {
+ "properties": {
+ "osFamily": {
+ "type": "string",
+ "title": "The Azure Guest OS family to be installed on the virtual machines in the pool.",
+ "description": "Possible values are: 2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 R2. 5 - OS Family 5, equivalent to Windows Server 2016. 6 - OS Family 6, equivalent to Windows Server 2019. For more information, see Azure Guest OS Releases (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases)."
+ },
+ "osVersion": {
+ "type": "string",
+ "title": "The Azure Guest OS version to be installed on the virtual machines in the pool.",
+ "description": "The default value is * which specifies the latest operating system version for the specified OS family."
+ }
+ },
+ "required": [
+ "osFamily"
+ ],
+ "title": "The configuration for nodes in a pool based on the Azure Cloud Services platform."
+ },
+ "MetadataItem": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "The name of the metadata item."
+ },
+ "value": {
+ "type": "string",
+ "title": "The value of the metadata item."
+ }
+ },
+ "required": [
+ "name",
+ "value"
+ ],
+ "title": "A name-value pair associated with a Batch service resource.",
+ "description": "The Batch service does not assign any meaning to this metadata; it is solely for the use of user code."
+ },
+ "ResizeOperationStatus": {
+ "properties": {
+ "targetDedicatedNodes": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The desired number of dedicated compute nodes in the pool."
+ },
+ "targetLowPriorityNodes": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The desired number of low-priority compute nodes in the pool."
+ },
+ "resizeTimeout": {
+ "type": "string",
+ "format": "duration",
+ "title": "The timeout for allocation of compute nodes to the pool or removal of compute nodes from the pool.",
+ "description": "The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)."
+ },
+ "nodeDeallocationOption": {
+ "title": "Determines what to do with a node and its running task(s) if the pool size is decreasing.",
+ "description": "The default value is requeue.",
+ "$ref": "#/definitions/ComputeNodeDeallocationOption"
+ },
+ "startTime": {
+ "type": "string",
+ "format": "date-time",
+ "title": "The time when this resize operation was started."
+ },
+ "errors": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResizeError"
+ },
+ "title": "Details of any errors encountered while performing the last resize on the pool.",
+ "description": "This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady."
+ }
+ },
+ "title": "Details about the current or last completed resize operation.",
+ "description": "Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady)."
+ },
+ "PoolEndpointConfiguration": {
+ "properties": {
+ "inboundNatPools": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/InboundNatPool"
+ },
+ "title": "A list of inbound NAT pools that can be used to address specific ports on an individual compute node externally.",
+ "description": "The maximum number of inbound NAT pools per Batch pool is 5. If the maximum number of inbound NAT pools is exceeded the request fails with HTTP status code 400."
+ }
+ },
+ "required": [
+ "inboundNatPools"
+ ],
+ "title": "The endpoint configuration for a pool."
+ },
+ "InboundNatPool": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "The name of the endpoint.",
+ "description": "The name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400."
+ },
+ "protocol": {
+ "type": "string",
+ "title": "The protocol of the endpoint.",
+ "enum": [
+ "TCP",
+ "UDP"
+ ],
+ "x-ms-enum": {
+ "name": "InboundEndpointProtocol",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "TCP",
+ "description": "Use TCP for the endpoint."
+ },
+ {
+ "value": "UDP",
+ "description": "Use UDP for the endpoint."
+ }
+ ]
+ }
+ },
+ "backendPort": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The port number on the compute node.",
+ "description": "This must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400."
+ },
+ "frontendPortRangeStart": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The first port number in the range of external ports that will be used to provide inbound access to the backendPort on individual compute nodes.",
+ "description": "Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400."
+ },
+ "frontendPortRangeEnd": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The last port number in the range of external ports that will be used to provide inbound access to the backendPort on individual compute nodes.",
+ "description": "Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400."
+ },
+ "networkSecurityGroupRules": {
+ "type": "array",
+ "title": "A list of network security group rules that will be applied to the endpoint.",
+ "description": "The maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400.",
+ "items": {
+ "$ref": "#/definitions/NetworkSecurityGroupRule"
+ }
+ }
+ },
+ "required": [
+ "name",
+ "protocol",
+ "backendPort",
+ "frontendPortRangeStart",
+ "frontendPortRangeEnd"
+ ],
+ "title": "A inbound NAT pool that can be used to address specific ports on compute nodes in a Batch pool externally."
+ },
+ "NetworkSecurityGroupRule": {
+ "properties": {
+ "priority": {
+ "type": "integer",
+ "format": "int32",
+ "title": "The priority for this rule.",
+ "description": "Priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or duplicate values are provided the request fails with HTTP status code 400."
+ },
+ "access": {
+ "type": "string",
+ "title": "The action that should be taken for a specified IP address, subnet range or tag.",
+ "enum": [
+ "Allow",
+ "Deny"
+ ],
+ "x-ms-enum": {
+ "name": "NetworkSecurityGroupRuleAccess",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Allow",
+ "description": "Allow access."
+ },
+ {
+ "value": "Deny",
+ "description": "Deny access."
+ }
+ ]
+ }
+ },
+ "sourceAddressPrefix": {
+ "type": "string",
+ "title": "The source address prefix or tag to match for the rule.",
+ "description": "Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400."
+ },
+ "sourcePortRanges": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "The source port ranges to match for the rule.",
+ "description": "Valid values are '*' (for all ports 0 - 65535) or arrays of ports or port ranges (i.e. 100-200). The ports should in the range of 0 to 65535 and the port ranges or ports can't overlap. If any other values are provided the request fails with HTTP status code 400. Default value will be *."
+ }
+ },
+ "required": [
+ "priority",
+ "access",
+ "sourceAddressPrefix"
+ ],
+ "title": "A network security group rule to apply to an inbound endpoint."
+ },
+ "ListPrivateLinkResourcesResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ },
+ "description": "The collection of returned private link resources."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The continuation token."
+ }
+ },
+ "description": "Values returned by the List operation."
+ },
+ "ListPrivateEndpointConnectionsResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ },
+ "description": "The collection of returned private endpoint connection."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The continuation token."
+ }
+ },
+ "description": "Values returned by the List operation."
+ },
+ "ListPoolsResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Pool"
+ },
+ "description": "The collection of returned pools."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The continuation token."
+ }
+ },
+ "description": "Values returned by the List operation."
+ },
+ "CloudError": {
+ "x-ms-external": true,
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/CloudErrorBody"
+ }
+ },
+ "description": "An error response from the Batch service."
+ },
+ "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 Batch service."
+ },
+ "Operation": {
+ "title": "A REST API operation",
+ "type": "object",
+ "properties": {
+ "name": {
+ "title": "The operation name.",
+ "description": "This is of the format {provider}/{resource}/{operation}",
+ "type": "string"
+ },
+ "display": {
+ "title": "The object that describes the operation.",
+ "properties": {
+ "provider": {
+ "title": "Friendly name of the resource provider.",
+ "type": "string"
+ },
+ "operation": {
+ "title": "The operation type.",
+ "description": "For example: read, write, delete, or listKeys/action",
+ "type": "string"
+ },
+ "resource": {
+ "title": "The resource type on which the operation is performed.",
+ "type": "string"
+ },
+ "description": {
+ "title": "The friendly name of the operation",
+ "type": "string"
+ }
+ }
+ },
+ "origin": {
+ "title": "The intended executor of the operation.",
+ "type": "string"
+ },
+ "properties": {
+ "title": "Properties of the operation.",
+ "type": "object"
+ }
+ }
+ },
+ "OperationListResult": {
+ "title": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "title": "The list of operations supported by the resource provider."
+ },
+ "nextLink": {
+ "type": "string",
+ "title": "The URL to get the next set of operation list results if there are any."
+ }
+ }
+ },
+ "CheckNameAvailabilityParameters": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name to check for availability"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "Microsoft.Batch/batchAccounts"
+ ],
+ "x-ms-enum": {
+ "name": "ResourceType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Microsoft.Batch/batchAccounts",
+ "description": "The Batch account resource type.",
+ "name": "BatchAccounts"
+ }
+ ]
+ },
+ "description": "The resource type."
+ }
+ },
+ "required": [
+ "name",
+ "type"
+ ],
+ "description": "Parameters for a check name availability request."
+ },
+ "CheckNameAvailabilityResult": {
+ "properties": {
+ "nameAvailable": {
+ "readOnly": true,
+ "type": "boolean",
+ "description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used."
+ },
+ "reason": {
+ "readOnly": true,
+ "type": "string",
+ "enum": [
+ "Invalid",
+ "AlreadyExists"
+ ],
+ "x-ms-enum": {
+ "name": "NameAvailabilityReason",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Invalid",
+ "description": "The requested name is invalid."
+ },
+ {
+ "value": "AlreadyExists",
+ "description": "The requested name is already in use."
+ }
+ ]
+ },
+ "description": "Gets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false."
+ },
+ "message": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Gets an error message explaining the Reason value in more detail."
+ }
+ },
+ "description": "The CheckNameAvailability operation response."
+ },
+ "MountConfiguration": {
+ "properties": {
+ "azureBlobFileSystemConfiguration": {
+ "$ref": "#/definitions/AzureBlobFileSystemConfiguration",
+ "title": "The Azure Storage Container to mount using blob FUSE on each node.",
+ "description": "This property is mutually exclusive with all other properties."
+ },
+ "nfsMountConfiguration": {
+ "$ref": "#/definitions/NFSMountConfiguration",
+ "title": "The NFS file system to mount on each node.",
+ "description": "This property is mutually exclusive with all other properties."
+ },
+ "cifsMountConfiguration": {
+ "$ref": "#/definitions/CIFSMountConfiguration",
+ "title": "The CIFS/SMB file system to mount on each node.",
+ "description": "This property is mutually exclusive with all other properties."
+ },
+ "azureFileShareConfiguration": {
+ "$ref": "#/definitions/AzureFileShareConfiguration",
+ "title": "The Azure File Share to mount on each node.",
+ "description": "This property is mutually exclusive with all other properties."
+ }
+ },
+ "title": "The file system to mount on each node."
+ },
+ "AzureBlobFileSystemConfiguration": {
+ "properties": {
+ "accountName": {
+ "type": "string",
+ "title": "The Azure Storage Account name."
+ },
+ "containerName": {
+ "type": "string",
+ "title": "The Azure Blob Storage Container name."
+ },
+ "accountKey": {
+ "type": "string",
+ "title": "The Azure Storage Account key.",
+ "description": "This property is mutually exclusive with sasKey and one must be specified."
+ },
+ "sasKey": {
+ "type": "string",
+ "title": "The Azure Storage SAS token.",
+ "description": "This property is mutually exclusive with accountKey and one must be specified."
+ },
+ "blobfuseOptions": {
+ "type": "string",
+ "title": "Additional command line options to pass to the mount command.",
+ "description": "These are 'net use' options in Windows and 'mount' options in Linux."
+ },
+ "relativeMountPath": {
+ "type": "string",
+ "title": "The relative path on the compute node where the file system will be mounted",
+ "description": "All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable."
+ }
+ },
+ "required": [
+ "accountName",
+ "containerName",
+ "relativeMountPath"
+ ],
+ "title": "Information used to connect to an Azure Storage Container using Blobfuse."
+ },
+ "NFSMountConfiguration": {
+ "properties": {
+ "source": {
+ "type": "string",
+ "title": "The URI of the file system to mount."
+ },
+ "relativeMountPath": {
+ "type": "string",
+ "title": "The relative path on the compute node where the file system will be mounted",
+ "description": "All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable."
+ },
+ "mountOptions": {
+ "type": "string",
+ "title": "Additional command line options to pass to the mount command.",
+ "description": "These are 'net use' options in Windows and 'mount' options in Linux."
+ }
+ },
+ "required": [
+ "source",
+ "relativeMountPath"
+ ],
+ "title": "Information used to connect to an NFS file system."
+ },
+ "CIFSMountConfiguration": {
+ "properties": {
+ "username": {
+ "type": "string",
+ "title": "The user to use for authentication against the CIFS file system."
+ },
+ "source": {
+ "type": "string",
+ "title": "The URI of the file system to mount."
+ },
+ "relativeMountPath": {
+ "type": "string",
+ "title": "The relative path on the compute node where the file system will be mounted",
+ "description": "All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable."
+ },
+ "mountOptions": {
+ "type": "string",
+ "title": "Additional command line options to pass to the mount command.",
+ "description": "These are 'net use' options in Windows and 'mount' options in Linux."
+ },
+ "password": {
+ "type": "string",
+ "title": "The password to use for authentication against the CIFS file system."
+ }
+ },
+ "required": [
+ "username",
+ "source",
+ "password",
+ "relativeMountPath"
+ ],
+ "title": "Information used to connect to a CIFS file system."
+ },
+ "AzureFileShareConfiguration": {
+ "properties": {
+ "accountName": {
+ "type": "string",
+ "title": "The Azure Storage account name."
+ },
+ "azureFileUrl": {
+ "type": "string",
+ "title": "The Azure Files URL.",
+ "description": "This is of the form 'https://{account}.file.core.windows.net/'."
+ },
+ "accountKey": {
+ "type": "string",
+ "title": "The Azure Storage account key."
+ },
+ "relativeMountPath": {
+ "type": "string",
+ "title": "The relative path on the compute node where the file system will be mounted",
+ "description": "All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable."
+ },
+ "mountOptions": {
+ "type": "string",
+ "title": "Additional command line options to pass to the mount command.",
+ "description": "These are 'net use' options in Windows and 'mount' options in Linux."
+ }
+ },
+ "required": [
+ "accountName",
+ "azureFileUrl",
+ "accountKey",
+ "relativeMountPath"
+ ],
+ "title": "Information used to connect to an Azure Fileshare."
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to be used with the HTTP request."
+ },
+ "ResourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group that contains the Batch account.",
+ "x-ms-parameter-location": "method"
+ },
+ "AccountNameParameter": {
+ "name": "accountName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9]+$",
+ "minLength": 3,
+ "maxLength": 24,
+ "description": "The name of the Batch account.",
+ "x-ms-parameter-location": "method"
+ },
+ "CertificateNameParameter": {
+ "name": "certificateName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[\\w]+-[\\w]+$",
+ "minLength": 5,
+ "maxLength": 45,
+ "description": "The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.",
+ "x-ms-parameter-location": "method"
+ },
+ "PoolNameParameter": {
+ "name": "poolName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9_-]+$",
+ "minLength": 1,
+ "maxLength": 64,
+ "description": "The pool name. This must be unique within the account.",
+ "x-ms-parameter-location": "method"
+ },
+ "PrivateLinkResourceNameParameter": {
+ "name": "privateLinkResourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9_-]+\\.?[a-fA-F0-9-]*$",
+ "minLength": 1,
+ "maxLength": 101,
+ "description": "The private link resource name. This must be unique within the account.",
+ "x-ms-parameter-location": "method"
+ },
+ "PrivateEndpointConnectionNameParameter": {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9_-]+\\.?[a-fA-F0-9-]*$",
+ "minLength": 1,
+ "maxLength": 101,
+ "description": "The private endpoint connection name. This must be unique within the account.",
+ "x-ms-parameter-location": "method"
+ },
+ "ApplicationNameParameter": {
+ "name": "applicationName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9_-]+$",
+ "minLength": 1,
+ "maxLength": 64,
+ "description": "The name of the application. This must be unique within the account.",
+ "x-ms-parameter-location": "method"
+ },
+ "VersionNameParameter": {
+ "name": "versionName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9_-][a-zA-Z0-9_.-]*$",
+ "minLength": 1,
+ "maxLength": 64,
+ "description": "The version of the application.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationCreate.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationCreate.json
new file mode 100644
index 000000000000..16009a56c7bb
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationCreate.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "applicationName": "app1",
+ "parameters": {
+ "properties": {
+ "allowUpdates": false,
+ "displayName": "myAppName"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D64F8EBB3DC411\""
+ },
+ "body": {
+ "type": "Microsoft.Batch/batchAccounts/applications",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1",
+ "name": "app1",
+ "etag": "W/\"0x8D64F8EBB3DC411\"",
+ "properties": {
+ "allowUpdates": false,
+ "displayName": "myAppName"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationDelete.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationDelete.json
new file mode 100644
index 000000000000..e8f03a6df4f0
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "applicationName": "app1"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationGet.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationGet.json
new file mode 100644
index 000000000000..dd5c284ca55f
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationGet.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "applicationName": "app1"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D64F915BDF7F00\""
+ },
+ "body": {
+ "type": "Microsoft.Batch/batchAccounts/applications",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1",
+ "name": "app1",
+ "etag": "W/\"0x8D64F915BDF7F00\"",
+ "properties": {
+ "allowUpdates": true,
+ "displayName": "Sample Application"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationList.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationList.json
new file mode 100644
index 000000000000..651478cdd313
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationList.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "type": "Microsoft.Batch/batchAccounts/applications",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1",
+ "name": "app1",
+ "etag": "W/\"0x8D64F91A9089879\"",
+ "properties": {
+ "allowUpdates": false,
+ "defaultVersion": "1"
+ }
+ },
+ {
+ "type": "Microsoft.Batch/batchAccounts/applications",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app2",
+ "name": "app1",
+ "etag": "W/\"0x8D64F91A9089879\"",
+ "properties": {
+ "allowUpdates": false,
+ "defaultVersion": "2.0",
+ "displayName": "myAppName"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageActivate.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageActivate.json
new file mode 100644
index 000000000000..c1c09f9b22e3
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageActivate.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "applicationName": "app1",
+ "versionName": "1",
+ "parameters": {
+ "format": "zip"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D64FEC83A3B436\""
+ },
+ "body": {
+ "type": "Microsoft.Batch/batchAccounts/applications/versions",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1",
+ "name": "1",
+ "etag": "W/\"0x8D64FEC83A3B436\"",
+ "properties": {
+ "state": "Active",
+ "format": "zip",
+ "lastActivationTime": "2017-06-27T18:48:09.9330991Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageCreate.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageCreate.json
new file mode 100644
index 000000000000..e0fd8532640a
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageCreate.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "applicationName": "app1",
+ "versionName": "1"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D64FEC83A3B436\""
+ },
+ "body": {
+ "type": "Microsoft.Batch/batchAccounts/applications/versions",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1",
+ "name": "1",
+ "etag": "W/\"0x8D64FEC83A3B436\"",
+ "properties": {
+ "storageUrl": "http://mystorage1.blob.core.windows.net/myapp?mysas",
+ "storageUrlExpiry": "2017-06-27T18:48:09.9330991Z",
+ "state": "Pending"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageDelete.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageDelete.json
new file mode 100644
index 000000000000..ebe52d66c821
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageDelete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "applicationName": "app1",
+ "versionName": "1"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageGet.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageGet.json
new file mode 100644
index 000000000000..28709cf90aec
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageGet.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "applicationName": "app1",
+ "versionName": "1"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D64FEC83A3B436\""
+ },
+ "body": {
+ "type": "Microsoft.Batch/batchAccounts/applications/versions",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1",
+ "name": "1",
+ "etag": "W/\"0x8D64FEC83A3B436\"",
+ "properties": {
+ "state": "Active",
+ "format": "zip",
+ "lastActivationTime": "2017-06-27T18:48:09.9330991Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageList.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageList.json
new file mode 100644
index 000000000000..6fe30818df6b
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationPackageList.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "applicationName": "app1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "type": "Microsoft.Batch/batchAccounts/applications/versions",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1.0",
+ "name": "1.0",
+ "etag": "W/\"0x8D64FF0B9F47F67\"",
+ "properties": {
+ "state": "Pending"
+ }
+ },
+ {
+ "type": "Microsoft.Batch/batchAccounts/applications/versions",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/2.0",
+ "name": "2.0",
+ "etag": "W/\"0x8D64FF0B9F47F67\"",
+ "properties": {
+ "state": "Active",
+ "format": "zip",
+ "lastActivationTime": "2017-06-27T18:48:09.9330991Z"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationUpdate.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationUpdate.json
new file mode 100644
index 000000000000..f081a5a7caef
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/ApplicationUpdate.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "applicationName": "app1",
+ "parameters": {
+ "properties": {
+ "allowUpdates": true,
+ "displayName": "myAppName",
+ "defaultVersion": "2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D64F915BDF7F00\""
+ },
+ "body": {
+ "type": "Microsoft.Batch/batchAccounts/applications",
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1",
+ "name": "app1",
+ "etag": "W/\"0x8D64F915BDF7F00\"",
+ "properties": {
+ "allowUpdates": true,
+ "displayName": "myAppName",
+ "defaultVersion": "2"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_BYOS.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_BYOS.json
new file mode 100644
index 000000000000..ad1deeb87891
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_BYOS.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "parameters": {
+ "location": "japaneast",
+ "properties": {
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
+ },
+ "poolAllocationMode": "UserSubscription",
+ "keyVaultReference": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
+ "url": "http://sample.vault.azure.net/"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {},
+ "200": {
+ "body": {
+ "name": "sampleacct",
+ "location": "japaneast",
+ "properties": {
+ "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
+ "provisioningState": "Succeeded",
+ "poolAllocationMode": "UserSubscription",
+ "dedicatedCoreQuota": 20,
+ "lowPriorityCoreQuota": 20,
+ "poolQuota": 20,
+ "activeJobAndJobScheduleQuota": 20,
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
+ "lastKeySync": "2016-03-10T23:48:38.9878479Z"
+ },
+ "keyVaultReference": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
+ "url": "http://sample.vault.azure.net/"
+ },
+ "publicNetworkAccess": "Enabled"
+ },
+ "identity": {
+ "type": "None"
+ },
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_Default.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_Default.json
new file mode 100644
index 000000000000..37ae0bdcc728
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_Default.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "parameters": {
+ "location": "japaneast",
+ "properties": {
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {},
+ "200": {
+ "body": {
+ "name": "sampleacct",
+ "location": "japaneast",
+ "properties": {
+ "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
+ "provisioningState": "Succeeded",
+ "poolAllocationMode": "BatchService",
+ "dedicatedCoreQuota": 20,
+ "lowPriorityCoreQuota": 20,
+ "poolQuota": 20,
+ "activeJobAndJobScheduleQuota": 20,
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
+ "lastKeySync": "2016-03-10T23:48:38.9878479Z"
+ },
+ "publicNetworkAccess": "Enabled"
+ },
+ "identity": {
+ "type": "None"
+ },
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_SystemAssignedIdentity.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
new file mode 100644
index 000000000000..bf48db1bffb9
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "parameters": {
+ "location": "japaneast",
+ "properties": {
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
+ }
+ },
+ "identity": {
+ "type": "SystemAssigned"
+ }
+ }
+ },
+ "responses": {
+ "202": {},
+ "200": {
+ "body": {
+ "name": "sampleacct",
+ "location": "japaneast",
+ "properties": {
+ "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
+ "provisioningState": "Succeeded",
+ "poolAllocationMode": "BatchService",
+ "dedicatedCoreQuota": 20,
+ "lowPriorityCoreQuota": 20,
+ "poolQuota": 20,
+ "activeJobAndJobScheduleQuota": 20,
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
+ "lastKeySync": "2016-03-10T23:48:38.9878479Z"
+ },
+ "publicNetworkAccess": "Enabled"
+ },
+ "identity": {
+ "principalId": "1a2e532b-9900-414c-8600-cfc6126628d7",
+ "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
+ "type": "SystemAssigned"
+ },
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountDelete.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountDelete.json
new file mode 100644
index 000000000000..9103547c7136
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {},
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountGet.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountGet.json
new file mode 100644
index 000000000000..401016113385
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountGet.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "sampleacct",
+ "location": "japaneast",
+ "properties": {
+ "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
+ "provisioningState": "Succeeded",
+ "poolAllocationMode": "BatchService",
+ "dedicatedCoreQuota": 20,
+ "lowPriorityCoreQuota": 20,
+ "poolQuota": 20,
+ "activeJobAndJobScheduleQuota": 20,
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
+ "lastKeySync": "2016-03-10T23:48:38.9878479Z"
+ },
+ "publicNetworkAccess": "Enabled"
+ },
+ "identity": {
+ "type": "None"
+ },
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountGetKeys.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountGetKeys.json
new file mode 100644
index 000000000000..11bca180606c
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountGetKeys.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "accountName": "sampleacct",
+ "primary": "AAAA==",
+ "secondary": "BBBB=="
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountList.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountList.json
new file mode 100644
index 000000000000..4d4d1292d486
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountList.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "sampleacct",
+ "location": "japaneast",
+ "properties": {
+ "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
+ "provisioningState": "Succeeded",
+ "poolAllocationMode": "BatchService",
+ "dedicatedCoreQuota": 20,
+ "lowPriorityCoreQuota": 20,
+ "poolQuota": 20,
+ "activeJobAndJobScheduleQuota": 20,
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
+ "lastKeySync": "2016-03-10T23:48:38.9878479Z"
+ },
+ "publicNetworkAccess": "Enabled"
+ },
+ "identity": {
+ "type": "None"
+ },
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountListByResourceGroup.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountListByResourceGroup.json
new file mode 100644
index 000000000000..6a9dc23225aa
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountListByResourceGroup.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "sampleacct",
+ "location": "japaneast",
+ "properties": {
+ "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
+ "provisioningState": "Succeeded",
+ "poolAllocationMode": "BatchService",
+ "dedicatedCoreQuota": 20,
+ "lowPriorityCoreQuota": 20,
+ "poolQuota": 20,
+ "activeJobAndJobScheduleQuota": 20,
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
+ "lastKeySync": "2016-03-10T23:48:38.9878479Z"
+ },
+ "publicNetworkAccess": "Enabled"
+ },
+ "identity": {
+ "type": "None"
+ },
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountRegenerateKey.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountRegenerateKey.json
new file mode 100644
index 000000000000..ffb559ceebf5
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountRegenerateKey.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "parameters": {
+ "keyName": "Primary"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "accountName": "sampleacct",
+ "primary": "AAAA==",
+ "secondary": "BBBB=="
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountSynchronizeAutoStorageKeys.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
new file mode 100644
index 000000000000..224e8b5e867a
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountUpdate.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountUpdate.json
new file mode 100644
index 000000000000..aab50023dd67
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/BatchAccountUpdate.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "parameters": {
+ "properties": {
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "sampleacct",
+ "location": "japaneast",
+ "properties": {
+ "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
+ "provisioningState": "Succeeded",
+ "poolAllocationMode": "BatchService",
+ "dedicatedCoreQuota": 20,
+ "lowPriorityCoreQuota": 20,
+ "poolQuota": 20,
+ "activeJobAndJobScheduleQuota": 20,
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
+ "lastKeySync": "2016-03-10T23:48:38.9878479Z"
+ },
+ "publicNetworkAccess": "Enabled"
+ },
+ "identity": {
+ "type": "None"
+ },
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCancelDeletion.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCancelDeletion.json
new file mode 100644
index 000000000000..457a543600be
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCancelDeletion.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "certificateName": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDD513C3EDBB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "name": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD513C3EDBB\"",
+ "properties": {
+ "thumbprintAlgorithm": "sha1",
+ "thumbprint": "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-07-21T01:47:38.4420202Z",
+ "previousProvisioningState": "Failed",
+ "previousProvisioningStateTransitionTime": "2017-07-21T00:22:54.3299195Z",
+ "format": "Pfx",
+ "publicData": "MIICrjCCAZagAwI..."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_Full.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_Full.json
new file mode 100644
index 000000000000..6c6b1f27ef7c
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_Full.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "certificateName": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "parameters": {
+ "properties": {
+ "thumbprintAlgorithm": "sha1",
+ "thumbprint": "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "data": "MIIJsgIBAzCCCW4GCSqGSIb3DQE...",
+ "password": "KG0UY40e...",
+ "format": "Pfx"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDD5118668F7\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "name": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD5118668F7\"",
+ "properties": {
+ "thumbprintAlgorithm": "sha1",
+ "thumbprint": "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-07-21T01:47:38.4420202Z",
+ "format": "Pfx",
+ "publicData": "MIICrjCCAZagAwI..."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_Minimal.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_Minimal.json
new file mode 100644
index 000000000000..f7ad8232a213
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_Minimal.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "certificateName": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "parameters": {
+ "properties": {
+ "data": "MIIJsgIBAzCCCW4GCSqGSIb3DQE...",
+ "password": "KG0UY40e..."
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDD5118668F7\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "name": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD5118668F7\"",
+ "properties": {
+ "thumbprintAlgorithm": "sha1",
+ "thumbprint": "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-07-21T01:47:38.4420202Z",
+ "format": "Pfx",
+ "publicData": "MIICrjCCAZagAwI..."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_MinimalCer.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_MinimalCer.json
new file mode 100644
index 000000000000..b3311c1ff0bd
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateCreate_MinimalCer.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "certificateName": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "parameters": {
+ "properties": {
+ "data": "MIICrjCCAZagAwI...",
+ "format": "Cer"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDD5118668F7\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "name": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD5118668F7\"",
+ "properties": {
+ "thumbprintAlgorithm": "sha1",
+ "thumbprint": "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-07-21T01:47:38.4420202Z",
+ "format": "Cer",
+ "publicData": "MIICrjCCAZagAwI..."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateDelete.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateDelete.json
new file mode 100644
index 000000000000..21fda8af211f
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateDelete.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "certificateName": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "Retry-After": "15",
+ "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/certificateOperationResults/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e-8D4EDFF164A11C9?api-version=2020-05-01"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateGet.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateGet.json
new file mode 100644
index 000000000000..c6b66963910f
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateGet.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "certificateName": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDD5118668F7\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "name": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD5118668F7\"",
+ "properties": {
+ "thumbprintAlgorithm": "sha1",
+ "thumbprint": "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-07-21T01:47:38.4420202Z",
+ "format": "Pfx",
+ "publicData": "MIICrjCCAZagAwI..."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateGetWithDeletionError.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateGetWithDeletionError.json
new file mode 100644
index 000000000000..4eaf42316298
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateGetWithDeletionError.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "certificateName": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDD5118668F7\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "name": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD5118668F7\"",
+ "properties": {
+ "thumbprintAlgorithm": "sha1",
+ "thumbprint": "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "provisioningState": "Failed",
+ "provisioningStateTransitionTime": "2017-07-21T01:47:38.4420202Z",
+ "previousProvisioningState": "Deleting",
+ "previousProvisioningStateTransitionTime": "2017-07-21T00:15:25.5625498Z",
+ "format": "Pfx",
+ "publicData": "MIICrjCCAZagAwI...",
+ "deleteCertificateError": {
+ "code": "NodesReferencingCertificate",
+ "message": "The specified certificate is being used by the below mentioned node(s)\nRequestId:2dc78afc-b15b-42d2-8c85-39cb61a0799e\nTime:2017-08-28T10:22:52.8633406Z",
+ "target": "BatchAccount",
+ "details": [
+ {
+ "code": "Nodes",
+ "message": "node1, node3"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateList.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateList.json
new file mode 100644
index 000000000000..c0c870527f3a
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateList.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "api-version": "2020-05-01",
+ "maxResults": "1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "name": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD5118668F7\"",
+ "properties": {
+ "thumbprintAlgorithm": "sha1",
+ "thumbprint": "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-07-21T01:47:38.4420202Z",
+ "format": "Pfx",
+ "publicData": "MIICrjCCAZagAwI..."
+ }
+ }
+ ],
+ "nextLink": "https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates?api-version=2020-05-01&$skiptoken=NPK%3D28%3A2857p428pug%2022F53A7734C947B8NRK%3D45%3Asha1-c23dc7f22edc793856a7506fe66397ccb4a33b46SM%3D5%3AFalse"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateListWithFilter.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateListWithFilter.json
new file mode 100644
index 000000000000..f68c7c5600bb
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateListWithFilter.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "api-version": "2020-05-01",
+ "$filter": "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'",
+ "$select": "properties/format,properties/provisioningState"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "name": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD5118668F7\"",
+ "properties": {
+ "provisioningState": "Failed",
+ "format": "Pfx"
+ }
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-aeb228ffb0bf67a793d61dce263ebd16949f15a1",
+ "name": "sha1-aeb228ffb0bf67a793d61dce263ebd16949f15a1",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD5118572E0\"",
+ "properties": {
+ "provisioningState": "Failed",
+ "format": "Cer"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateUpdate.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateUpdate.json
new file mode 100644
index 000000000000..f7ad8232a213
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/CertificateUpdate.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "certificateName": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "parameters": {
+ "properties": {
+ "data": "MIIJsgIBAzCCCW4GCSqGSIb3DQE...",
+ "password": "KG0UY40e..."
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDD5118668F7\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/samplecct/certificates/sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "name": "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "type": "Microsoft.Batch/batchAccounts/certificates",
+ "etag": "W/\"0x8D4EDD5118668F7\"",
+ "properties": {
+ "thumbprintAlgorithm": "sha1",
+ "thumbprint": "0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-07-21T01:47:38.4420202Z",
+ "format": "Pfx",
+ "publicData": "MIICrjCCAZagAwI..."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationCheckNameAvailability_AlreadyExists.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationCheckNameAvailability_AlreadyExists.json
new file mode 100644
index 000000000000..8cb7e5ff744c
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationCheckNameAvailability_AlreadyExists.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "locationName": "japaneast",
+ "parameters": {
+ "name": "existingaccountname",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": false,
+ "reason": "AlreadyExists",
+ "message": "An account named 'existingaccountname' is already in use."
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationCheckNameAvailability_Available.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationCheckNameAvailability_Available.json
new file mode 100644
index 000000000000..98f87826d783
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationCheckNameAvailability_Available.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "locationName": "japaneast",
+ "parameters": {
+ "name": "newaccountname",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": true
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationGetQuotas.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationGetQuotas.json
new file mode 100644
index 000000000000..48c9db6087b8
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/LocationGetQuotas.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "locationName": "japaneast"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "accountQuota": 1
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_CustomImage.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_CustomImage.json
new file mode 100644
index 000000000000..1e7cf603c18a
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_CustomImage.json
@@ -0,0 +1,65 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "vmSize": "STANDARD_D4",
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "id": "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/images/image-123"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Steady",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "id": "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/images/image-123"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 0,
+ "targetLowPriorityNodes": 0
+ }
+ },
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_FullExample.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_FullExample.json
new file mode 100644
index 000000000000..d529980ee55a
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_FullExample.json
@@ -0,0 +1,285 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "displayName": "my-pool-name",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Enabled",
+ "maxTasksPerNode": 13,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Pack"
+ },
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "4",
+ "osVersion": "WA-GUEST-OS-4.45_201708-01"
+ }
+ },
+ "networkConfiguration": {
+ "subnetId": "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
+ "publicIPAddressConfiguration": {
+ "provision": "UserManaged",
+ "ipAddressIds": [
+ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135",
+ "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268"
+ ]
+ },
+ "endpointConfiguration": {
+ "inboundNatPools": [
+ {
+ "name": "testnat",
+ "protocol": "TCP",
+ "backendPort": 12001,
+ "frontendPortRangeStart": 15000,
+ "frontendPortRangeEnd": 15100,
+ "networkSecurityGroupRules": [
+ {
+ "access": "Allow",
+ "sourceAddressPrefix": "192.100.12.45",
+ "priority": 150,
+ "sourcePortRanges": [
+ "*"
+ ]
+ },
+ {
+ "access": "Deny",
+ "sourceAddressPrefix": "*",
+ "priority": 3500,
+ "sourcePortRanges": [
+ "*"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 6,
+ "targetLowPriorityNodes": 28,
+ "resizeTimeout": "PT8M",
+ "nodeDeallocationOption": "TaskCompletion"
+ }
+ },
+ "metadata": [
+ {
+ "name": "metadata-1",
+ "value": "value-1"
+ },
+ {
+ "name": "metadata-2",
+ "value": "value-2"
+ }
+ ],
+ "startTask": {
+ "commandLine": "cmd /c SET",
+ "resourceFiles": [
+ {
+ "httpUrl": "https://testaccount.blob.core.windows.net/example-blob-file",
+ "filePath": "c:\\temp\\gohere",
+ "fileMode": "777"
+ }
+ ],
+ "environmentSettings": [
+ {
+ "name": "MYSET",
+ "value": "1234"
+ }
+ ],
+ "userIdentity": {
+ "autoUser": {
+ "scope": "Pool",
+ "elevationLevel": "Admin"
+ }
+ },
+ "maxTaskRetryCount": 6,
+ "waitForSuccess": true
+ },
+ "userAccounts": [
+ {
+ "name": "username1",
+ "password": "examplepassword",
+ "elevationLevel": "Admin",
+ "linuxUserConfiguration": {
+ "sshPrivateKey": "sshprivatekeyvalue",
+ "uid": 1234,
+ "gid": 4567
+ }
+ }
+ ],
+ "applicationPackages": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234",
+ "version": "asdf"
+ }
+ ],
+ "certificates": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567",
+ "storeLocation": "LocalMachine",
+ "storeName": "MY",
+ "visibility": [
+ "RemoteUser"
+ ]
+ }
+ ],
+ "applicationLicenses": [
+ "app-license0",
+ "app-license1"
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Enabled",
+ "maxTasksPerNode": 13,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Pack"
+ },
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "4",
+ "osVersion": "WA-GUEST-OS-4.45_201708-01"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 6,
+ "targetLowPriorityNodes": 28,
+ "resizeTimeout": "PT8M",
+ "nodeDeallocationOption": "TaskCompletion"
+ }
+ },
+ "networkConfiguration": {
+ "subnetId": "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
+ "publicIPAddressConfiguration": {
+ "provision": "UserManaged",
+ "ipAddressIds": [
+ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135",
+ "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268"
+ ]
+ },
+ "endpointConfiguration": {
+ "inboundNatPools": [
+ {
+ "name": "testnat",
+ "protocol": "TCP",
+ "backendPort": 12001,
+ "frontendPortRangeStart": 15000,
+ "frontendPortRangeEnd": 15100,
+ "networkSecurityGroupRules": [
+ {
+ "access": "Allow",
+ "sourceAddressPrefix": "192.100.12.45",
+ "priority": 150,
+ "sourcePortRanges": [
+ "*"
+ ]
+ },
+ {
+ "access": "Deny",
+ "sourceAddressPrefix": "*",
+ "priority": 3500,
+ "sourcePortRanges": [
+ "*"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "metadata": [
+ {
+ "name": "metadata-1",
+ "value": "value-1"
+ },
+ {
+ "name": "metadata-2",
+ "value": "value-2"
+ }
+ ],
+ "startTask": {
+ "commandLine": "cmd /c SET",
+ "resourceFiles": [
+ {
+ "httpUrl": "https://testaccount.blob.core.windows.net/example-blob-file",
+ "filePath": "c:\\temp\\gohere",
+ "fileMode": "777"
+ }
+ ],
+ "environmentSettings": [
+ {
+ "name": "MYSET",
+ "value": "1234"
+ }
+ ],
+ "userIdentity": {
+ "autoUser": {
+ "scope": "Pool",
+ "elevationLevel": "Admin"
+ }
+ },
+ "maxTaskRetryCount": 6,
+ "waitForSuccess": true
+ },
+ "userAccounts": [
+ {
+ "name": "username1",
+ "elevationLevel": "Admin",
+ "linuxUserConfiguration": {
+ "uid": 1234,
+ "gid": 4567
+ }
+ }
+ ],
+ "applicationPackages": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234",
+ "version": "asdf"
+ }
+ ],
+ "certificates": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567",
+ "storeLocation": "LocalMachine",
+ "storeName": "MY",
+ "visibility": [
+ "RemoteUser"
+ ]
+ }
+ ],
+ "applicationLicenses": [
+ "app-license0",
+ "app-license1"
+ ],
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
new file mode 100644
index 000000000000..a55033e53e12
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
@@ -0,0 +1,72 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "vmSize": "STANDARD_D4",
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "5"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 3
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "5",
+ "osVersion": "*"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 3,
+ "targetLowPriorityNodes": 0,
+ "resizeTimeout": "PT15M"
+ }
+ },
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0,
+ "resizeOperationStatus": {
+ "startTime": "2017-08-28T10:22:55.9407275Z",
+ "targetDedicatedNodes": 3,
+ "nodeDeallocationOption": "Requeue",
+ "resizeTimeout": "PT15M"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
new file mode 100644
index 000000000000..67d22ba673a5
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
@@ -0,0 +1,77 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "vmSize": "STANDARD_D4",
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "publisher": "Canonical",
+ "offer": "UbuntuServer",
+ "sku": "18.04-LTS",
+ "version": "latest"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ },
+ "scaleSettings": {
+ "autoScale": {
+ "formula": "$TargetDedicatedNodes=1",
+ "evaluationInterval": "PT5M"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "publisher": "Canonical",
+ "offer": "UbuntuServer",
+ "sku": "18.04-LTS",
+ "version": "latest"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ },
+ "scaleSettings": {
+ "autoScale": {
+ "formula": "$TargetDedicatedNodes=1",
+ "evaluationInterval": "PT5M"
+ }
+ },
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_NoPublicIPAddresses.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_NoPublicIPAddresses.json
new file mode 100644
index 000000000000..7473b7c2593d
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_NoPublicIPAddresses.json
@@ -0,0 +1,77 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "vmSize": "STANDARD_D4",
+ "networkConfiguration": {
+ "subnetId": "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
+ "publicIPAddressConfiguration": {
+ "provision": "NoPublicIPAddresses"
+ }
+ },
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "id": "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/images/image-123"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Steady",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "networkConfiguration": {
+ "subnetId": "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
+ "publicIPAddressConfiguration": {
+ "provision": "NoPublicIPAddresses"
+ }
+ },
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "id": "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/images/image-123"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 0,
+ "targetLowPriorityNodes": 0
+ }
+ },
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_PublicIPs.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_PublicIPs.json
new file mode 100644
index 000000000000..7d0d5e4626ee
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_PublicIPs.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "vmSize": "STANDARD_D4",
+ "networkConfiguration": {
+ "subnetId": "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
+ "publicIPAddressConfiguration": {
+ "provision": "UserManaged",
+ "ipAddressIds": [
+ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135"
+ ]
+ }
+ },
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "id": "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/images/image-123"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Steady",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "networkConfiguration": {
+ "subnetId": "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
+ "publicIPAddressConfiguration": {
+ "provision": "UserManaged",
+ "ipAddressIds": [
+ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135"
+ ]
+ }
+ },
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "id": "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/images/image-123"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 0,
+ "targetLowPriorityNodes": 0
+ }
+ },
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_VirtualMachineConfiguration.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_VirtualMachineConfiguration.json
new file mode 100644
index 000000000000..f83091ed4d2f
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolCreate_VirtualMachineConfiguration.json
@@ -0,0 +1,189 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "vmSize": "STANDARD_D4",
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "publisher": "MicrosoftWindowsServer",
+ "offer": "WindowsServer",
+ "sku": "2016-Datacenter-SmallDisk",
+ "version": "latest"
+ },
+ "nodeAgentSkuId": "batch.node.windows amd64",
+ "windowsConfiguration": {
+ "enableAutomaticUpdates": false
+ },
+ "licenseType": "Windows_Server",
+ "dataDisks": [
+ {
+ "lun": 0,
+ "caching": "ReadWrite",
+ "diskSizeGB": 30,
+ "storageAccountType": "Premium_LRS"
+ },
+ {
+ "lun": 1,
+ "caching": "None",
+ "diskSizeGB": 200,
+ "storageAccountType": "Standard_LRS"
+ }
+ ],
+ "diskEncryptionConfiguration": {
+ "targets": [
+ "OsDisk",
+ "TemporaryDisk"
+ ]
+ }
+ }
+ },
+ "networkConfiguration": {
+ "endpointConfiguration": {
+ "inboundNatPools": [
+ {
+ "name": "testnat",
+ "protocol": "TCP",
+ "backendPort": 12001,
+ "frontendPortRangeStart": 15000,
+ "frontendPortRangeEnd": 15100,
+ "networkSecurityGroupRules": [
+ {
+ "access": "Allow",
+ "sourceAddressPrefix": "192.100.12.45",
+ "priority": 150,
+ "sourcePortRanges": [
+ "1",
+ "2"
+ ]
+ },
+ {
+ "access": "Deny",
+ "sourceAddressPrefix": "*",
+ "priority": 3500,
+ "sourcePortRanges": [
+ "*"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "scaleSettings": {
+ "autoScale": {
+ "formula": "$TargetDedicatedNodes=1",
+ "evaluationInterval": "PT5M"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "publisher": "MicrosoftWindowsServer",
+ "offer": "WindowsServer",
+ "sku": "2016-Datacenter-SmallDisk",
+ "version": "latest"
+ },
+ "nodeAgentSkuId": "batch.node.windows amd64",
+ "windowsConfiguration": {
+ "enableAutomaticUpdates": false
+ },
+ "licenseType": "Windows_Server",
+ "dataDisks": [
+ {
+ "lun": 0,
+ "caching": "ReadWrite",
+ "diskSizeGB": 30,
+ "storageAccountType": "Premium_LRS"
+ },
+ {
+ "lun": 1,
+ "caching": "None",
+ "diskSizeGB": 200,
+ "storageAccountType": "Standard_LRS"
+ }
+ ],
+ "diskEncryptionConfiguration": {
+ "targets": [
+ "OsDisk",
+ "TemporaryDisk"
+ ]
+ }
+ }
+ },
+ "networkConfiguration": {
+ "endpointConfiguration": {
+ "inboundNatPools": [
+ {
+ "name": "testnat",
+ "protocol": "TCP",
+ "backendPort": 12001,
+ "frontendPortRangeStart": 15000,
+ "frontendPortRangeEnd": 15100,
+ "networkSecurityGroupRules": [
+ {
+ "access": "Allow",
+ "sourceAddressPrefix": "192.100.12.45",
+ "priority": 150,
+ "sourcePortRanges": [
+ "1",
+ "2"
+ ]
+ },
+ {
+ "access": "Deny",
+ "sourceAddressPrefix": "*",
+ "priority": 3500,
+ "sourcePortRanges": [
+ "*"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "scaleSettings": {
+ "autoScale": {
+ "formula": "$TargetDedicatedNodes=1",
+ "evaluationInterval": "PT5M"
+ }
+ },
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolDelete.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolDelete.json
new file mode 100644
index 000000000000..381176d019ca
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolDelete.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {},
+ "204": {},
+ "202": {
+ "headers": {
+ "Retry-After": "15",
+ "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/poolOperationResults/delete-testpool-8D4EDFF164A11C9?api-version=2020-05-01"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolDisableAutoScale.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolDisableAutoScale.json
new file mode 100644
index 000000000000..e0b8fec34a92
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolDisableAutoScale.json
@@ -0,0 +1,56 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "publisher": "Canonical",
+ "offer": "UbuntuServer",
+ "sku": "18.04-LTS",
+ "version": "latest"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 3,
+ "targetLowPriorityNodes": 0,
+ "resizeTimeout": "PT15M"
+ }
+ },
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolGet.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolGet.json
new file mode 100644
index 000000000000..1255c7f77df4
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolGet.json
@@ -0,0 +1,155 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Enabled",
+ "maxTasksPerNode": 13,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Pack"
+ },
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "4",
+ "osVersion": "WA-GUEST-OS-4.45_201708-01"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 6,
+ "targetLowPriorityNodes": 28,
+ "resizeTimeout": "PT8M"
+ }
+ },
+ "networkConfiguration": {
+ "subnetId": "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
+ "endpointConfiguration": {
+ "inboundNatPools": [
+ {
+ "name": "testnat",
+ "protocol": "TCP",
+ "backendPort": 12001,
+ "frontendPortRangeStart": 15000,
+ "frontendPortRangeEnd": 15100,
+ "networkSecurityGroupRules": [
+ {
+ "access": "Allow",
+ "sourceAddressPrefix": "192.100.12.45",
+ "priority": 150,
+ "sourcePortRanges": [
+ "123",
+ "22"
+ ]
+ },
+ {
+ "access": "Deny",
+ "sourceAddressPrefix": "*",
+ "priority": 3500,
+ "sourcePortRanges": [
+ "*"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "metadata": [
+ {
+ "name": "metadata-1",
+ "value": "value-1"
+ },
+ {
+ "name": "metadata-2",
+ "value": "value-2"
+ }
+ ],
+ "startTask": {
+ "commandLine": "cmd /c SET",
+ "resourceFiles": [
+ {
+ "httpUrl": "https://testaccount.blob.core.windows.net/example-blob-file",
+ "filePath": "c:\\temp\\gohere",
+ "fileMode": "777"
+ }
+ ],
+ "environmentSettings": [
+ {
+ "name": "MYSET",
+ "value": "1234"
+ }
+ ],
+ "userIdentity": {
+ "autoUser": {
+ "scope": "Pool",
+ "elevationLevel": "Admin"
+ }
+ },
+ "maxTaskRetryCount": 6,
+ "waitForSuccess": true
+ },
+ "userAccounts": [
+ {
+ "name": "username1",
+ "elevationLevel": "Admin",
+ "linuxUserConfiguration": {
+ "uid": 1234,
+ "gid": 4567
+ }
+ }
+ ],
+ "applicationPackages": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234",
+ "version": "asdf"
+ }
+ ],
+ "certificates": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567",
+ "storeLocation": "LocalMachine",
+ "storeName": "MY",
+ "visibility": [
+ "RemoteUser"
+ ]
+ }
+ ],
+ "applicationLicenses": [
+ "app-license0",
+ "app-license1"
+ ],
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0,
+ "resizeOperationStatus": {
+ "startTime": "2017-08-28T10:22:55.9407275Z",
+ "targetDedicatedNodes": 6,
+ "targetLowPriorityNodes": 28,
+ "nodeDeallocationOption": "TaskCompletion",
+ "resizeTimeout": "PT8M"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolList.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolList.json
new file mode 100644
index 000000000000..39d49bb8a38a
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolList.json
@@ -0,0 +1,161 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Steady",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Enabled",
+ "maxTasksPerNode": 13,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Pack"
+ },
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "4",
+ "osVersion": "WA-GUEST-OS-4.45_201708-01"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 6,
+ "targetLowPriorityNodes": 28,
+ "resizeTimeout": "PT8M"
+ }
+ },
+ "networkConfiguration": {
+ "subnetId": "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
+ "endpointConfiguration": {
+ "inboundNatPools": [
+ {
+ "name": "testnat",
+ "protocol": "TCP",
+ "backendPort": 12001,
+ "frontendPortRangeStart": 15000,
+ "frontendPortRangeEnd": 15100,
+ "networkSecurityGroupRules": [
+ {
+ "access": "Allow",
+ "sourceAddressPrefix": "192.100.12.45",
+ "priority": 150,
+ "sourcePortRanges": [
+ "*"
+ ]
+ },
+ {
+ "access": "Deny",
+ "sourceAddressPrefix": "*",
+ "priority": 3500,
+ "sourcePortRanges": [
+ "*"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "metadata": [
+ {
+ "name": "metadata-1",
+ "value": "value-1"
+ },
+ {
+ "name": "metadata-2",
+ "value": "value-2"
+ }
+ ],
+ "startTask": {
+ "commandLine": "cmd /c SET",
+ "resourceFiles": [
+ {
+ "httpUrl": "https://testaccount.blob.core.windows.net/example-blob-file",
+ "filePath": "c:\\temp\\gohere",
+ "fileMode": "777"
+ }
+ ],
+ "environmentSettings": [
+ {
+ "name": "MYSET",
+ "value": "1234"
+ }
+ ],
+ "userIdentity": {
+ "autoUser": {
+ "scope": "Pool",
+ "elevationLevel": "Admin"
+ }
+ },
+ "maxTaskRetryCount": 6,
+ "waitForSuccess": true
+ },
+ "userAccounts": [
+ {
+ "name": "username1",
+ "elevationLevel": "Admin",
+ "linuxUserConfiguration": {
+ "uid": 1234,
+ "gid": 4567
+ }
+ }
+ ],
+ "applicationPackages": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234",
+ "version": "asdf"
+ }
+ ],
+ "certificates": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567",
+ "storeLocation": "LocalMachine",
+ "storeName": "MY",
+ "visibility": [
+ "RemoteUser"
+ ]
+ }
+ ],
+ "applicationLicenses": [
+ "app-license0",
+ "app-license1"
+ ],
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0,
+ "resizeOperationStatus": {
+ "startTime": "2017-08-28T10:22:55.9407275Z",
+ "targetDedicatedNodes": 6,
+ "targetLowPriorityNodes": 28,
+ "nodeDeallocationOption": "TaskCompletion",
+ "resizeTimeout": "PT8M",
+ "errors": [
+ {
+ "code": "AllocationTimedout",
+ "message": "Desired number of dedicated nodes could not be allocated as the resize timeout was reached"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolListWithFilter.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolListWithFilter.json
new file mode 100644
index 000000000000..af59f8dfbc23
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolListWithFilter.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "$filter": "startswith(name, 'po') or (properties/allocationState eq 'Steady' and properties/provisioningStateTransitionTime lt datetime'2017-02-02')",
+ "$select": "properties/allocationState,properties/provisioningStateTransitionTime,properties/currentDedicatedNodes,properties/currentLowPriorityNodes",
+ "maxResults": "50"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Steady",
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 2
+ }
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/pooltest",
+ "name": "pooltest",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "provisioningStateTransitionTime": "2017-08-26T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "currentDedicatedNodes": 4,
+ "currentLowPriorityNodes": 0
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolStopResize.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolStopResize.json
new file mode 100644
index 000000000000..1fa19c7bb841
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolStopResize.json
@@ -0,0 +1,62 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-28T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Steady",
+ "allocationStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "virtualMachineConfiguration": {
+ "imageReference": {
+ "publisher": "Canonical",
+ "offer": "UbuntuServer",
+ "sku": "18.04-LTS",
+ "version": "latest"
+ },
+ "nodeAgentSkuId": "batch.node.ubuntu 18.04"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 3,
+ "targetLowPriorityNodes": 0,
+ "resizeTimeout": "PT15M"
+ }
+ },
+ "resizeOperationStatus": {
+ "startTime": "2017-08-28T10:22:55.9407275Z",
+ "targetDedicatedNodes": 1,
+ "nodeDeallocationOption": "Requeue",
+ "resizeTimeout": "PT10M"
+ },
+ "currentDedicatedNodes": 0,
+ "currentLowPriorityNodes": 0
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_EnableAutoScale.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_EnableAutoScale.json
new file mode 100644
index 000000000000..c88633fb713f
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_EnableAutoScale.json
@@ -0,0 +1,69 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "scaleSettings": {
+ "autoScale": {
+ "formula": "$TargetDedicatedNodes=34"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-29T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-29T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "5",
+ "osVersion": "*"
+ }
+ },
+ "scaleSettings": {
+ "autoScale": {
+ "formula": "$TargetDedicated=34",
+ "evaluationInterval": "PT15M"
+ }
+ },
+ "autoScaleRun": {
+ "evaluationTime": "2017-08-29T10:22:55.9407275Z",
+ "results": "$TargetDedicatedNodes=34;NodeDeallocationOption=requeue"
+ },
+ "currentDedicatedNodes": 12,
+ "currentLowPriorityNodes": 0,
+ "resizeOperationStatus": {
+ "startTime": "2017-08-29T10:22:55.9407275Z",
+ "targetDedicatedNodes": 34,
+ "nodeDeallocationOption": "Requeue",
+ "resizeTimeout": "PT15M"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_OtherProperties.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_OtherProperties.json
new file mode 100644
index 000000000000..5570f4dc09de
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_OtherProperties.json
@@ -0,0 +1,115 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "metadata": [
+ {
+ "name": "key1",
+ "value": "value1"
+ }
+ ],
+ "applicationPackages": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678",
+ "version": "1.0"
+ }
+ ],
+ "certificates": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567",
+ "storeLocation": "LocalMachine",
+ "storeName": "MY"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-29T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-29T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "5",
+ "osVersion": "*"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 1,
+ "targetLowPriorityNodes": 0,
+ "resizeTimeout": "PT8M",
+ "nodeDeallocationOption": "TaskCompletion"
+ }
+ },
+ "autoScaleRun": {
+ "evaluationTime": "2017-08-29T10:22:55.9407275Z",
+ "results": "$TargetDedicatedNodes=34;NodeDeallocationOption=requeue"
+ },
+ "currentDedicatedNodes": 12,
+ "currentLowPriorityNodes": 0,
+ "resizeOperationStatus": {
+ "startTime": "2017-08-29T10:22:55.9407275Z",
+ "targetDedicatedNodes": 8,
+ "nodeDeallocationOption": "TaskCompletion",
+ "resizeTimeout": "PT8M"
+ },
+ "metadata": [
+ {
+ "name": "key1",
+ "value": "value1"
+ }
+ ],
+ "applicationPackages": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678",
+ "version": "1.0"
+ }
+ ],
+ "certificates": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567",
+ "storeLocation": "LocalMachine",
+ "storeName": "MY",
+ "visibility": [
+ "StartTask",
+ "Task",
+ "RemoteUser"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_RemoveStartTask.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_RemoveStartTask.json
new file mode 100644
index 000000000000..a39339130ac0
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_RemoveStartTask.json
@@ -0,0 +1,65 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "startTask": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-29T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-29T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "5",
+ "osVersion": "*"
+ }
+ },
+ "scaleSettings": {
+ "autoScale": {
+ "formula": "$TargetDedicated=34",
+ "evaluationInterval": "PT15M"
+ }
+ },
+ "autoScaleRun": {
+ "evaluationTime": "2017-08-29T10:22:55.9407275Z",
+ "results": "$TargetDedicatedNodes=34;NodeDeallocationOption=requeue"
+ },
+ "currentDedicatedNodes": 12,
+ "currentLowPriorityNodes": 0,
+ "resizeOperationStatus": {
+ "startTime": "2017-08-29T10:22:55.9407275Z",
+ "targetDedicatedNodes": 34,
+ "nodeDeallocationOption": "Requeue",
+ "resizeTimeout": "PT15M"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_ResizePool.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_ResizePool.json
new file mode 100644
index 000000000000..4c5a4a3d5b34
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PoolUpdate_ResizePool.json
@@ -0,0 +1,74 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "poolName": "testpool",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 5,
+ "targetLowPriorityNodes": 0,
+ "resizeTimeout": "PT8M",
+ "nodeDeallocationOption": "TaskCompletion"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool",
+ "name": "testpool",
+ "type": "Microsoft.Batch/batchAccounts/pools",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "lastModified": "2017-08-29T10:22:55.9407275Z",
+ "creationTime": "2017-08-28T10:22:55.9407275Z",
+ "provisioningState": "Succeeded",
+ "provisioningStateTransitionTime": "2017-08-28T10:22:55.9407275Z",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-08-29T10:22:55.9407275Z",
+ "vmSize": "STANDARD_D4",
+ "interNodeCommunication": "Disabled",
+ "maxTasksPerNode": 1,
+ "taskSchedulingPolicy": {
+ "nodeFillType": "Spread"
+ },
+ "deploymentConfiguration": {
+ "cloudServiceConfiguration": {
+ "osFamily": "5",
+ "osVersion": "*"
+ }
+ },
+ "scaleSettings": {
+ "fixedScale": {
+ "targetDedicatedNodes": 1,
+ "targetLowPriorityNodes": 0,
+ "resizeTimeout": "PT8M",
+ "nodeDeallocationOption": "TaskCompletion"
+ }
+ },
+ "autoScaleRun": {
+ "evaluationTime": "2017-08-29T10:22:55.9407275Z",
+ "results": "$TargetDedicatedNodes=34;NodeDeallocationOption=requeue"
+ },
+ "currentDedicatedNodes": 12,
+ "currentLowPriorityNodes": 0,
+ "resizeOperationStatus": {
+ "startTime": "2017-08-29T10:22:55.9407275Z",
+ "targetDedicatedNodes": 8,
+ "nodeDeallocationOption": "TaskCompletion",
+ "resizeTimeout": "PT8M"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateBatchAccountCreate.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateBatchAccountCreate.json
new file mode 100644
index 000000000000..2d72f33bbecd
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateBatchAccountCreate.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "parameters": {
+ "location": "japaneast",
+ "properties": {
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"
+ },
+ "keyVaultReference": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
+ "url": "http://sample.vault.azure.net/"
+ },
+ "publicNetworkAccess": "Disabled"
+ }
+ }
+ },
+ "responses": {
+ "202": {},
+ "200": {
+ "body": {
+ "name": "sampleacct",
+ "location": "japaneast",
+ "properties": {
+ "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
+ "provisioningState": "Succeeded",
+ "poolAllocationMode": "UserSubscription",
+ "dedicatedCoreQuota": 20,
+ "lowPriorityCoreQuota": 20,
+ "poolQuota": 20,
+ "activeJobAndJobScheduleQuota": 20,
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
+ "lastKeySync": "2016-03-10T23:48:38.9878479Z"
+ },
+ "keyVaultReference": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample",
+ "url": "http://sample.vault.azure.net/"
+ },
+ "publicNetworkAccess": "Disabled"
+ },
+ "identity": {
+ "type": "None"
+ },
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateBatchAccountGet.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateBatchAccountGet.json
new file mode 100644
index 000000000000..6fffebe21a02
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateBatchAccountGet.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "accountName": "sampleacct",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "sampleacct",
+ "location": "japaneast",
+ "properties": {
+ "accountEndpoint": "sampleacct.japaneast.batch.azure.com",
+ "provisioningState": "Succeeded",
+ "poolAllocationMode": "BatchService",
+ "dedicatedCoreQuota": 20,
+ "lowPriorityCoreQuota": 20,
+ "poolQuota": 20,
+ "activeJobAndJobScheduleQuota": 20,
+ "autoStorage": {
+ "storageAccountId": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage",
+ "lastKeySync": "2016-03-10T23:48:38.9878479Z"
+ },
+ "publicNetworkAccess": "Disabled",
+ "privateEndpointConnections": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/privateEndpointConnections/testprivateEndpointConnection.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ "name": "testprivateEndpointConnection.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Network/privateEndpoints/testprivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Approved by xyz.abc@company.com"
+ }
+ }
+ }
+ ]
+ },
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct",
+ "type": "Microsoft.Batch/batchAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionGet.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionGet.json
new file mode 100644
index 000000000000..dcf7e38ee64c
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionGet.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "privateEndpointConnectionName": "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/privateEndpointConnections/testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ "name": "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Network/privateEndpoints/testprivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Approved by xyz.abc@company.com"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionUpdate.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionUpdate.json
new file mode 100644
index 000000000000..3ab6694f43f6
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionUpdate.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "privateEndpointConnectionName": "testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ "api-version": "2020-05-01",
+ "parameters": {
+ "properties": {
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Approved by xyz.abc@company.com"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "ETag": "W/\"0x8D4EDFEBFADF4AB\""
+ },
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/privateEndpointConnections/testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ "name": "testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections",
+ "etag": "W/\"0x8D4EDFEBFADF4AB\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Network/privateEndpoints/testprivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Approved by xyz.abc@company.com"
+ }
+ }
+ }
+ },
+ "204": {},
+ "202": {
+ "headers": {
+ "Retry-After": "15",
+ "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/privateEndpointConnectionProxyResults/Updating$testprivateEndpointConnection5.24d6b4b5$e65c-4330-bbe9-3a290d62f8e0-8D4EDFF164A11C9?api-version=2020-05-01"
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionsList.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionsList.json
new file mode 100644
index 000000000000..50787f91b384
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateEndpointConnectionsList.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "privateEndpointConnectionName": "testprivateEndpointConnection",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/privateEndpointConnections/testprivateEndpointConnection",
+ "name": "testprivateEndpointConnection",
+ "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Network/privateEndpoints/testprivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Approved by xyz.abc@company.com"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateLinkResourceGet.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateLinkResourceGet.json
new file mode 100644
index 000000000000..6028faf0890a
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateLinkResourceGet.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "privateLinkResourceName": "sampleacct",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/privateLinkResources/sampleacct",
+ "name": "sampleacct",
+ "type": "Microsoft.Batch/batchAccounts/privateLinkResources",
+ "properties": {
+ "groupId": "batchAccount",
+ "requiredMembers": [
+ "batchAccount"
+ ],
+ "requiredZoneNames": [
+ "privatelink.japaneast.batch.azure.com"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateLinkResourcesList.json b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateLinkResourcesList.json
new file mode 100644
index 000000000000..942d4346cd6b
--- /dev/null
+++ b/specification/batch/resource-manager/Microsoft.Batch/stable/2020-05-01/examples/PrivateLinkResourcesList.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "default-azurebatch-japaneast",
+ "accountName": "sampleacct",
+ "privateLinkResourceName": "testprivateLinkResource",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/privateLinkResources/testprivateLinkResource",
+ "name": "testprivateLinkResource",
+ "type": "Microsoft.Batch/batchAccounts/privateLinkResources",
+ "properties": {
+ "groupId": "batchAccount",
+ "requiredMembers": [
+ "batchAccount"
+ ],
+ "requiredZoneNames": [
+ "privatelink.japaneast.batch.azure.com"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/batch/resource-manager/readme.md b/specification/batch/resource-manager/readme.md
index ffa9383df33d..90df5aff354d 100644
--- a/specification/batch/resource-manager/readme.md
+++ b/specification/batch/resource-manager/readme.md
@@ -26,14 +26,23 @@ These are the global settings for the Batch API.
``` yaml
openapi-type: arm
-tag: package-2020-03
+tag: package-2020-05
```
+
+### Tag: package-2020-05
+
+These settings apply only when `--tag=package-2020-05` is specified on the command line.
+
+```yaml $(tag) == 'package-2020-05'
+input-file:
+ - Microsoft.Batch/stable/2020-05-01/BatchManagement.json
+```
### Tag: package-2020-03
These settings apply only when `--tag=package-2020-03` is specified on the command line.
-```yaml $(tag) == 'package-2020-03'
+``` yaml $(tag) == 'package-2020-03'
input-file:
- Microsoft.Batch/stable/2020-03-01/BatchManagement.json
```
@@ -42,7 +51,7 @@ input-file:
These settings apply only when `--tag=package-2019-08` is specified on the command line.
-```yaml $(tag) == 'package-2019-08'
+``` yaml $(tag) == 'package-2019-08'
input-file:
- Microsoft.Batch/stable/2019-08-01/BatchManagement.json
```
@@ -51,7 +60,7 @@ input-file:
These settings apply only when `--tag=package-2019-04` is specified on the command line.
-```yaml $(tag) == 'package-2019-04'
+``` yaml $(tag) == 'package-2019-04'
input-file:
- Microsoft.Batch/stable/2019-04-01/BatchManagement.json
```
@@ -180,7 +189,6 @@ csharp:
See configuration in [readme.go.md](./readme.go.md)
-
## Java
These settings apply only when `--java` is specified on the command line.
@@ -259,7 +267,7 @@ generate-interface: true
`
-## Multi-API/Profile support for AutoRest v3 generators
+## Multi-API/Profile support for AutoRest v3 generators
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
@@ -271,6 +279,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.Batch/stable/2020-05-01/BatchManagement.json
- $(this-folder)/Microsoft.Batch/stable/2020-03-01/BatchManagement.json
- $(this-folder)/Microsoft.Batch/stable/2019-08-01/BatchManagement.json
- $(this-folder)/Microsoft.Batch/stable/2019-04-01/BatchManagement.json
@@ -282,11 +291,10 @@ input-file:
```
-If there are files that should not be in the `all-api-versions` set,
+If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.
``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
-
diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json
index 474087d42ac9..9ef0b0294a0d 100644
--- a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json
+++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json
@@ -1604,7 +1604,7 @@
}
},
"operationId": "Invoices_ListByBillingAccount",
- "description": "Lists the invoices for a billing account for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "description": "Lists the invoices for a billing account for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.",
"parameters": [
{
"$ref": "#/parameters/apiVersionParameter"
@@ -1643,6 +1643,45 @@
}
}
},
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}": {
+ "get": {
+ "tags": [
+ "Invoices"
+ ],
+ "x-ms-examples": {
+ "EnterpriseAgreementInvoice": {
+ "$ref": "./examples/BillingAccountInvoice.json"
+ }
+ },
+ "operationId": "Invoices_GetBillingAccountInvoice",
+ "description": "Gets an invoice by billing account name and ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Invoice"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/pricesheet/default/download": {
"post": {
"tags": [
@@ -6245,7 +6284,8 @@
"enum": [
"Due",
"OverDue",
- "Paid"
+ "Paid",
+ "Void"
],
"readOnly": true,
"x-ms-enum": {
@@ -6359,6 +6399,11 @@
"description": "The ID of the subscription for which the invoice is generated.",
"type": "string",
"readOnly": true
+ },
+ "rebillDetails": {
+ "description": "Rebill details of an Enterprise Agreement invoice.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/InvoiceRebillDetails"
}
}
},
@@ -6402,6 +6447,34 @@
}
}
},
+ "InvoiceRebillDetails": {
+ "description": "The rebill details of an invoice.",
+ "properties": {
+ "rebillDocumentType": {
+ "description": "The type of the document generated when an Enterprise Agreement invoice is rebilled.",
+ "type": "string",
+ "enum": [
+ "Credit",
+ "Rebill",
+ "Original"
+ ],
+ "x-ms-enum": {
+ "name": "rebillDocumentType",
+ "modelAsString": true
+ }
+ },
+ "rebilledInvoiceId": {
+ "description": "The ID of the invoice generated when an Enterprise Agreement invoice is rebilled.",
+ "type": "string",
+ "readOnly": true
+ },
+ "latestInvoiceId": {
+ "description": "The ID of the latest invoice generated when an Enterprise Agreement invoice is rebilled.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
"Document": {
"description": "The properties of a document.",
"properties": {
@@ -6424,6 +6497,14 @@
"description": "Document URL.",
"type": "string",
"readOnly": true
+ },
+ "documentNumbers": {
+ "description": "Document numbers for an Enterprise Agreement invoice.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "type": "string"
+ }
}
}
},
diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoice.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoice.json
new file mode 100644
index 000000000000..f79c4ce4b71e
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/examples/BillingAccountInvoice.json
@@ -0,0 +1,81 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "invoiceName": "{invoiceName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}",
+ "name": "{invoiceName}",
+ "type": "Microsoft.Billing/billingAccounts/invoices",
+ "properties": {
+ "dueDate": "2018-01-16T17:32:28Z",
+ "invoiceDate": "2018-01-01T17:32:28Z",
+ "status": "Due",
+ "amountDue": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "billedAmount": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "azurePrepaymentApplied": {
+ "currency": "USD",
+ "value": 15.46
+ },
+ "creditAmount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "freeAzureCreditApplied": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "subTotal": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "taxAmount": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "totalAmount": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "invoicePeriodStartDate": "2018-01-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-01-15T17:32:28Z",
+ "isMonthlyInvoice": false,
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "purchaseOrderNumber": "123456",
+ "documents": [
+ {
+ "kind": "Invoice",
+ "url": "https://microsoft.com/invoice.pdf"
+ },
+ {
+ "kind": "TaxReceipt",
+ "url": "https://microsoft.com/taxDoc.pdf"
+ }
+ ],
+ "payments": [
+ {
+ "date": "2018-01-14T17:32:28Z",
+ "paymentType": "credited",
+ "amount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "paymentMethodFamily": "CreditCard",
+ "paymentMethodType": "visa"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json
new file mode 100644
index 000000000000..873581679036
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/billing.json
@@ -0,0 +1,6092 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-05-01",
+ "title": "BillingManagementClient",
+ "description": "Billing client provides access to billing resources for Azure subscriptions."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/providers/Microsoft.Billing/billingAccounts": {
+ "get": {
+ "tags": [
+ "BillingAccounts"
+ ],
+ "x-ms-examples": {
+ "BillingAccountsList": {
+ "$ref": "./examples/BillingAccountsList.json"
+ },
+ "BillingAccountsListWithExpand": {
+ "$ref": "./examples/BillingAccountsListWithExpand.json"
+ },
+ "BillingAccountsListWithExpandForEnrollmentDetails": {
+ "$ref": "./examples/BillingAccountsListWithExpandForEnrollmentDetails.json"
+ }
+ },
+ "operationId": "BillingAccounts_List",
+ "description": "Lists the billing accounts that a user has access to.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "$expand",
+ "description": "May be used to expand the soldTo, invoice sections and billing profiles.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingAccountListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}": {
+ "get": {
+ "tags": [
+ "BillingAccounts"
+ ],
+ "x-ms-examples": {
+ "BillingAccounts": {
+ "$ref": "./examples/BillingAccount.json"
+ },
+ "BillingAccountWithExpand": {
+ "$ref": "./examples/BillingAccountWithExpand.json"
+ }
+ },
+ "operationId": "BillingAccounts_Get",
+ "description": "Gets a billing account by its ID.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "name": "$expand",
+ "description": "May be used to expand the soldTo, invoice sections and billing profiles.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingAccount"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "BillingAccounts"
+ ],
+ "operationId": "BillingAccounts_Update",
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "description": "Updates the properties of a billing account. Currently, displayName and address can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "x-ms-examples": {
+ "UpdateBillingAccount": {
+ "$ref": "./examples/UpdateBillingAccount.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/BillingAccountUpdateRequest"
+ },
+ "description": "Request parameters that are provided to the update billing account operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingAccount"
+ }
+ },
+ "202": {
+ "description": "Accepted. Billing account update is in progress."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission": {
+ "post": {
+ "tags": [
+ "BillingAccounts"
+ ],
+ "x-ms-examples": {
+ "InvoiceSectionsListWithCreateSubPermission": {
+ "$ref": "./examples/InvoiceSectionsListWithCreateSubPermission.json"
+ }
+ },
+ "operationId": "BillingAccounts_ListInvoiceSectionsByCreateSubscriptionPermission",
+ "description": "Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/InvoiceSectionListWithCreateSubPermissionResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/validateAddress": {
+ "post": {
+ "tags": [
+ "Address"
+ ],
+ "x-ms-examples": {
+ "AddressValid": {
+ "$ref": "./examples/AddressValid.json"
+ },
+ "AddressInvalid": {
+ "$ref": "./examples/AddressInvalid.json"
+ }
+ },
+ "operationId": "Address_Validate",
+ "description": "Validates an address. Use the operation to validate an address before using it as soldTo or a billTo address.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "address",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/AddressDetails"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ValidateAddressResponse"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/availableBalance/default": {
+ "get": {
+ "tags": [
+ "AvailableBalances"
+ ],
+ "operationId": "AvailableBalances_Get",
+ "description": "The available credit balance for a billing profile. This is the balance that can be used for pay now to settle due or past due invoices. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "AvailableBalanceByBillingProfile": {
+ "$ref": "./examples/AvailableBalanceByBillingProfile.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/AvailableBalance"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/instructions": {
+ "get": {
+ "tags": [
+ "Instructions"
+ ],
+ "operationId": "Instructions_ListByBillingProfile",
+ "description": "Lists the instructions by billing profile id.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "InstructionsListByBillingProfile": {
+ "$ref": "./examples/InstructionsListByBillingProfile.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/InstructionListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/instructions/{instructionName}": {
+ "get": {
+ "tags": [
+ "Instructions"
+ ],
+ "x-ms-examples": {
+ "Instruction": {
+ "$ref": "./examples/Instruction.json"
+ }
+ },
+ "operationId": "Instructions_Get",
+ "description": "Get the instruction by name. These are custom billing instructions and are only applicable for certain customers.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/instructionNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Instruction"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Instructions"
+ ],
+ "operationId": "Instructions_Put",
+ "description": "Creates or updates an instruction. These are custom billing instructions and are only applicable for certain customers.",
+ "x-ms-examples": {
+ "PutInstruction": {
+ "$ref": "./examples/PutInstruction.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/instructionNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Instruction"
+ },
+ "description": "The new instruction."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Instruction"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles": {
+ "get": {
+ "tags": [
+ "BillingProfiles"
+ ],
+ "x-ms-examples": {
+ "BillingProfilesListByBillingAccount": {
+ "$ref": "./examples/BillingProfilesListByBillingAccount.json"
+ },
+ "BillingProfilesListWithExpand": {
+ "$ref": "./examples/BillingProfilesListWithExpand.json"
+ }
+ },
+ "operationId": "BillingProfiles_ListByBillingAccount",
+ "description": "Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "name": "$expand",
+ "description": "May be used to expand the invoice sections.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingProfileListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}": {
+ "get": {
+ "tags": [
+ "BillingProfiles"
+ ],
+ "x-ms-examples": {
+ "BillingProfile": {
+ "$ref": "./examples/BillingProfile.json"
+ },
+ "BillingProfileWithExpand": {
+ "$ref": "./examples/BillingProfileWithExpand.json"
+ }
+ },
+ "operationId": "BillingProfiles_Get",
+ "description": "Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "name": "$expand",
+ "description": "May be used to expand the invoice sections.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingProfile"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "BillingProfiles"
+ ],
+ "operationId": "BillingProfiles_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "description": "Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.",
+ "x-ms-examples": {
+ "CreateBillingProfile": {
+ "$ref": "./examples/PutBillingProfile.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/BillingProfile"
+ },
+ "description": "The new or updated billing profile."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingProfile"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "headers": {
+ "Location": {
+ "description": "Location URI to poll for result",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
+ "type": "integer"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers": {
+ "get": {
+ "tags": [
+ "Customers"
+ ],
+ "x-ms-examples": {
+ "CustomersListByBillingAccount": {
+ "$ref": "./examples/CustomersListByBillingProfile.json"
+ }
+ },
+ "operationId": "Customers_ListByBillingProfile",
+ "description": "Lists the customers that are billed to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "name": "$search",
+ "description": "Used for searching customers by their name. Any customer with name containing the search text will be included in the response",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "$filter",
+ "description": "May be used to filter the list of customers.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CustomerListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections": {
+ "get": {
+ "tags": [
+ "InvoiceSections"
+ ],
+ "x-ms-examples": {
+ "InvoiceSectionsListByBillingProfile": {
+ "$ref": "./examples/InvoiceSectionsListByBillingProfile.json"
+ }
+ },
+ "operationId": "InvoiceSections_ListByBillingProfile",
+ "description": "Lists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/InvoiceSectionListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}": {
+ "get": {
+ "tags": [
+ "InvoiceSections"
+ ],
+ "x-ms-examples": {
+ "InvoiceSection": {
+ "$ref": "./examples/InvoiceSection.json"
+ }
+ },
+ "operationId": "InvoiceSections_Get",
+ "description": "Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/InvoiceSection"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "InvoiceSections"
+ ],
+ "operationId": "InvoiceSections_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "description": "Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "x-ms-examples": {
+ "PutInvoiceSection": {
+ "$ref": "./examples/PutInvoiceSection.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/InvoiceSection"
+ },
+ "description": "The new or updated invoice section."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/InvoiceSection"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "headers": {
+ "Location": {
+ "description": "Location URI to poll for result",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
+ "type": "integer"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers": {
+ "get": {
+ "tags": [
+ "Customers"
+ ],
+ "x-ms-examples": {
+ "CustomersListByBillingAccount": {
+ "$ref": "./examples/CustomersListByBillingAccount.json"
+ }
+ },
+ "operationId": "Customers_ListByBillingAccount",
+ "description": "Lists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "name": "$search",
+ "description": "Used for searching customers by their name. Any customer with name containing the search text will be included in the response",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "$filter",
+ "description": "May be used to filter the list of customers.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CustomerListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}": {
+ "get": {
+ "tags": [
+ "Customers"
+ ],
+ "x-ms-examples": {
+ "Customer": {
+ "$ref": "./examples/Customer.json"
+ },
+ "CustomerWithExpand": {
+ "$ref": "./examples/CustomerWithExpand.json"
+ }
+ },
+ "operationId": "Customers_Get",
+ "description": "Gets a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/customerNameParameter"
+ },
+ {
+ "name": "$expand",
+ "description": "May be used to expand enabledAzurePlans and resellers",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Customer"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingPermissions": {
+ "get": {
+ "tags": [
+ "BillingPermissions"
+ ],
+ "x-ms-examples": {
+ "BillingProfilePermissionsList": {
+ "$ref": "./examples/CustomerPermissionsList.json"
+ }
+ },
+ "operationId": "BillingPermissions_ListByCustomer",
+ "description": "Lists the billing permissions the caller has for a customer.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/customerNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingPermissionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions": {
+ "get": {
+ "tags": [
+ "BillingSubscriptions"
+ ],
+ "operationId": "BillingSubscriptions_ListByCustomer",
+ "description": "Lists the subscriptions for a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "BillingSubscriptionsListByCustomer": {
+ "$ref": "./examples/BillingSubscriptionsListByCustomer.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/customerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/products": {
+ "get": {
+ "tags": [
+ "Products"
+ ],
+ "operationId": "Products_ListByCustomer",
+ "description": "Lists the products for a customer. These don't include products billed based on usage.The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "ProductsListByInvoiceSection": {
+ "$ref": "./examples/ProductsListByCustomer.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/customerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ProductsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices": {
+ "get": {
+ "tags": [
+ "Invoices"
+ ],
+ "x-ms-examples": {
+ "BillingAccountInvoicesList": {
+ "$ref": "./examples/BillingAccountInvoicesList.json"
+ }
+ },
+ "operationId": "Invoices_ListByBillingAccount",
+ "description": "Lists the invoices for a billing account for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "name": "periodStartDate",
+ "description": "The start date to fetch the invoices. The date should be specified in MM-DD-YYYY format.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "periodEndDate",
+ "description": "The end date to fetch the invoices. The date should be specified in MM-DD-YYYY format.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/InvoiceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices": {
+ "get": {
+ "tags": [
+ "Invoices"
+ ],
+ "x-ms-examples": {
+ "InvoicesListByBillingProfile": {
+ "$ref": "./examples/InvoicesListByBillingProfile.json"
+ }
+ },
+ "operationId": "Invoices_ListByBillingProfile",
+ "description": "Lists the invoices for a billing profile for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "name": "periodStartDate",
+ "description": "The start date to fetch the invoices. The date should be specified in MM-DD-YYYY format.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "periodEndDate",
+ "description": "The end date to fetch the invoices. The date should be specified in MM-DD-YYYY format.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/InvoiceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}": {
+ "get": {
+ "tags": [
+ "Invoices"
+ ],
+ "x-ms-examples": {
+ "Invoice": {
+ "$ref": "./examples/Invoice.json"
+ }
+ },
+ "operationId": "Invoices_Get",
+ "description": "Gets an invoice by billing account name and ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Invoice"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/default/invoices/{invoiceName}": {
+ "get": {
+ "tags": [
+ "Invoices"
+ ],
+ "x-ms-examples": {
+ "Invoice": {
+ "$ref": "./examples/InvoiceById.json"
+ }
+ },
+ "operationId": "Invoices_GetById",
+ "description": "Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Invoice"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/download": {
+ "post": {
+ "tags": [
+ "Invoices"
+ ],
+ "x-ms-examples": {
+ "InvoiceDownload": {
+ "$ref": "./examples/InvoiceDownload.json"
+ }
+ },
+ "operationId": "Invoices_DownloadInvoice",
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "description": "Gets a URL to download an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceNameParameter"
+ },
+ {
+ "name": "downloadToken",
+ "description": "Download token with document source and document ID.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted.",
+ "headers": {
+ "Location": {
+ "description": "GET this URL to retrieve the status of the asynchronous operation.",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.",
+ "type": "string"
+ }
+ }
+ },
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/DownloadUrl"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions": {
+ "get": {
+ "tags": [
+ "BillingSubscriptions"
+ ],
+ "operationId": "BillingSubscriptions_ListByBillingAccount",
+ "description": "Lists the subscriptions for a billing account. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "BillingSubscriptionsListByBillingAccount": {
+ "$ref": "./examples/BillingSubscriptionsListByBillingAccount.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices": {
+ "get": {
+ "tags": [
+ "Invoices"
+ ],
+ "operationId": "Invoices_ListByBillingSubscription",
+ "description": "Lists the invoices for a subscription.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "BillingSubscriptionsListByBillingAccount": {
+ "$ref": "./examples/BillingSubscriptionInvoicesList.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "name": "periodStartDate",
+ "description": "Invoice period start date.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "periodEndDate",
+ "description": "Invoice period end date.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/InvoiceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}": {
+ "get": {
+ "tags": [
+ "Invoices"
+ ],
+ "operationId": "Invoices_GetBySubscriptionAndInvoiceId",
+ "description": "Gets an invoice by subscription ID and invoice ID.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "BillingSubscriptionsListByBillingAccount": {
+ "$ref": "./examples/BillingSubscriptionInvoice.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Invoice"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download": {
+ "post": {
+ "tags": [
+ "Invoices"
+ ],
+ "x-ms-examples": {
+ "BillingSubscriptionInvoiceDownload": {
+ "$ref": "./examples/BillingSubscriptionInvoiceDownload.json"
+ }
+ },
+ "operationId": "Invoices_DownloadBillingSubscriptionInvoice",
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "description": "Gets a URL to download an invoice.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceNameParameter"
+ },
+ {
+ "name": "downloadToken",
+ "description": "Download token with document source and document ID.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted.",
+ "headers": {
+ "Location": {
+ "description": "GET this URL to retrieve the status of the asynchronous operation.",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.",
+ "type": "string"
+ }
+ }
+ },
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/DownloadUrl"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions": {
+ "get": {
+ "tags": [
+ "BillingSubscriptions"
+ ],
+ "operationId": "BillingSubscriptions_ListByBillingProfile",
+ "description": "Lists the subscriptions that are billed to a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "BillingSubscriptionsListByBillingProfile": {
+ "$ref": "./examples/BillingSubscriptionsListByBillingProfile.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingSubscriptions": {
+ "get": {
+ "tags": [
+ "BillingSubscriptions"
+ ],
+ "operationId": "BillingSubscriptions_ListByInvoiceSection",
+ "description": "Lists the subscriptions that are billed to an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "BillingSubscriptionsListByInvoiceSection": {
+ "$ref": "./examples/BillingSubscriptionsListByInvoiceSection.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{subscriptionId}": {
+ "get": {
+ "tags": [
+ "BillingSubscriptions"
+ ],
+ "operationId": "BillingSubscriptions_Get",
+ "description": "Gets a subscription by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "BillingSubscription": {
+ "$ref": "./examples/BillingSubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingSubscription"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "BillingSubscriptions"
+ ],
+ "operationId": "BillingSubscriptions_Update",
+ "description": "Updates the properties of a billing subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "x-ms-examples": {
+ "UpdateBillingProperty": {
+ "$ref": "./examples/UpdateBillingSubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/BillingSubscription"
+ },
+ "description": "Request parameters that are provided to the update billing subscription operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingSubscription"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{subscriptionId}/move": {
+ "post": {
+ "description": "Moves a subscription's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "operationId": "BillingSubscriptions_Move",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "MoveBillingSubscription": {
+ "$ref": "./examples/MoveBillingSubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TransferBillingSubscriptionRequestProperties"
+ },
+ "description": "Request parameters that are provided to the move subscription operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingSubscription"
+ }
+ },
+ "202": {
+ "description": "Accepted. Billing Subscription transfer is in progress.",
+ "headers": {
+ "Location": {
+ "description": "Location URI to poll for result.",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
+ "type": "integer"
+ }
+ }
+ },
+ "default": {
+ "description": "Unexpected error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{subscriptionId}/validateMoveEligibility": {
+ "post": {
+ "x-ms-examples": {
+ "SubscriptionMoveValidateSuccess": {
+ "$ref": "./examples/ValidateSubscriptionMoveSuccess.json"
+ },
+ "SubscriptionMoveValidateFailure": {
+ "$ref": "./examples/ValidateSubscriptionMoveFailure.json"
+ }
+ },
+ "operationId": "BillingSubscriptions_ValidateMove",
+ "description": "Validates if a subscription's charges can be moved to a new invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TransferBillingSubscriptionRequestProperties"
+ },
+ "description": "Request parameters that are provided to the validate move eligibility operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ValidateSubscriptionTransferEligibilityResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products": {
+ "get": {
+ "tags": [
+ "Products"
+ ],
+ "operationId": "Products_ListByBillingAccount",
+ "description": "Lists the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "ProductsListByBillingAccount": {
+ "$ref": "./examples/ProductsListByBillingAccount.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "$filter",
+ "description": "May be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value are separated by a colon (:).",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ProductsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/products": {
+ "get": {
+ "tags": [
+ "Products"
+ ],
+ "operationId": "Products_ListByBillingProfile",
+ "description": "Lists the products for a billing profile. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "ProductsListByBillingProfile": {
+ "$ref": "./examples/ProductsListByBillingProfile.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "$filter",
+ "description": "May be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value are separated by a colon (:).",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ProductsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/products": {
+ "get": {
+ "tags": [
+ "Products"
+ ],
+ "operationId": "Products_ListByInvoiceSection",
+ "description": "Lists the products for an invoice section. These don't include products billed based on usage. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "ProductsListByInvoiceSection": {
+ "$ref": "./examples/ProductsListByInvoiceSection.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "$filter",
+ "description": "May be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value are separated by a colon (:).",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ProductsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products/{productName}": {
+ "get": {
+ "tags": [
+ "Products"
+ ],
+ "operationId": "Products_Get",
+ "description": "Gets a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "Product": {
+ "$ref": "./examples/Product.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/productNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Product"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Products"
+ ],
+ "operationId": "Products_Update",
+ "description": "Updates the properties of a Product. Currently, auto renew can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "x-ms-examples": {
+ "UpdateBillingProperty": {
+ "$ref": "./examples/UpdateProduct.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/productNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Product"
+ },
+ "description": "Request parameters that are provided to the update product operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Product"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products/{productName}/move": {
+ "post": {
+ "tags": [
+ "Products"
+ ],
+ "operationId": "Products_Move",
+ "description": "Moves a product's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "MoveProduct": {
+ "$ref": "./examples/MoveProduct.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/productNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TransferProductRequestProperties"
+ },
+ "description": "Request parameters that are provided to the move product operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Product"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "headers": {
+ "Location": {
+ "description": "Location URI to poll for result",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
+ "type": "integer"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products/{productName}/validateMoveEligibility": {
+ "post": {
+ "x-ms-examples": {
+ "SubscriptionMoveValidateSuccess": {
+ "$ref": "./examples/ValidateProductMoveSuccess.json"
+ },
+ "SubscriptionMoveValidateFailure": {
+ "$ref": "./examples/ValidateProductMoveFailure.json"
+ }
+ },
+ "operationId": "Products_ValidateMove",
+ "description": "Validates if a product's charges can be moved to a new invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/productNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TransferProductRequestProperties"
+ },
+ "description": "Request parameters that are provided to the validate move eligibility operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ValidateProductTransferEligibilityResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactions": {
+ "get": {
+ "tags": [
+ "Transactions"
+ ],
+ "operationId": "Transactions_ListByInvoice",
+ "description": "Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage charges.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "TransactionsListByInvoice": {
+ "$ref": "./examples/TransactionsListByInvoice.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/TransactionListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default": {
+ "get": {
+ "tags": [
+ "Policies"
+ ],
+ "operationId": "Policies_GetByBillingProfile",
+ "description": "Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "PolicyByBillingProfile": {
+ "$ref": "./examples/Policy.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Policy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Policies"
+ ],
+ "operationId": "Policies_Update",
+ "description": "Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "x-ms-examples": {
+ "UpdatePolicy": {
+ "$ref": "./examples/UpdatePolicy.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Policy"
+ },
+ "description": "Request parameters that are provided to the update policies operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Policy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default": {
+ "get": {
+ "tags": [
+ "Policies"
+ ],
+ "operationId": "Policies_GetByCustomer",
+ "description": "Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "PolicyByCustomer": {
+ "$ref": "./examples/CustomerPolicy.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/customerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CustomerPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Policies"
+ ],
+ "operationId": "Policies_UpdateCustomer",
+ "description": "Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.",
+ "x-ms-examples": {
+ "UpdateCustomer": {
+ "$ref": "./examples/UpdateCustomerPolicy.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/customerNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CustomerPolicy"
+ },
+ "description": "Request parameters that are provided to the update policies operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CustomerPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty/default": {
+ "get": {
+ "tags": [
+ "BillingProperties"
+ ],
+ "operationId": "BillingProperty_Get",
+ "description": "Get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "x-ms-examples": {
+ "BillingProperty": {
+ "$ref": "./examples/BillingProperty.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingProperty"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "BillingProperties"
+ ],
+ "operationId": "BillingProperty_Update",
+ "description": "Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "x-ms-examples": {
+ "UpdateBillingProperty": {
+ "$ref": "./examples/UpdateBillingProperty.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/BillingProperty"
+ },
+ "description": "Request parameters that are provided to the update billing property operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingProperty"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "operationId": "Operations_List",
+ "description": "Lists the available billing REST API operations.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingPermissions": {
+ "get": {
+ "tags": [
+ "BillingPermissions"
+ ],
+ "x-ms-examples": {
+ "BillingAccountPermissionsList": {
+ "$ref": "./examples/BillingAccountPermissionsList.json"
+ }
+ },
+ "operationId": "BillingPermissions_ListByBillingAccount",
+ "description": "Lists the billing permissions the caller has on a billing account.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingPermissionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingPermissions": {
+ "get": {
+ "tags": [
+ "BillingPermissions"
+ ],
+ "x-ms-examples": {
+ "InvoiceSectionPermissionsList": {
+ "$ref": "./examples/InvoiceSectionPermissionsList.json"
+ }
+ },
+ "operationId": "BillingPermissions_ListByInvoiceSections",
+ "description": "Lists the billing permissions the caller has on an invoice section.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingPermissionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingPermissions": {
+ "get": {
+ "tags": [
+ "BillingPermissions"
+ ],
+ "x-ms-examples": {
+ "BillingProfilePermissionsList": {
+ "$ref": "./examples/BillingProfilePermissionsList.json"
+ }
+ },
+ "operationId": "BillingPermissions_ListByBillingProfile",
+ "description": "Lists the billing permissions the caller has on a billing profile.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingPermissionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/{billingRoleDefinitionName}": {
+ "get": {
+ "tags": [
+ "BillingRoleDefinitions"
+ ],
+ "x-ms-examples": {
+ "BillingAccountRoleDefinition": {
+ "$ref": "./examples/BillingAccountRoleDefinition.json"
+ }
+ },
+ "operationId": "BillingRoleDefinitions_GetByBillingAccount",
+ "description": "Gets the definition for a role on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingRoleDefinitionNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleDefinition"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions/{billingRoleDefinitionName}": {
+ "get": {
+ "tags": [
+ "BillingRoleDefinitions"
+ ],
+ "x-ms-examples": {
+ "InvoiceSectionRoleDefinition": {
+ "$ref": "./examples/InvoiceSectionRoleDefinition.json"
+ }
+ },
+ "operationId": "BillingRoleDefinitions_GetByInvoiceSection",
+ "description": "Gets the definition for a role on an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingRoleDefinitionNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleDefinition"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions/{billingRoleDefinitionName}": {
+ "get": {
+ "tags": [
+ "BillingRoleDefinitions"
+ ],
+ "x-ms-examples": {
+ "BillingProfileRoleDefinition": {
+ "$ref": "./examples/BillingProfileRoleDefinition.json"
+ }
+ },
+ "operationId": "BillingRoleDefinitions_GetByBillingProfile",
+ "description": "Gets the definition for a role on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingRoleDefinitionNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleDefinition"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions": {
+ "get": {
+ "tags": [
+ "BillingRoleDefinitions"
+ ],
+ "x-ms-examples": {
+ "BillingAccountRoleDefinitionsList": {
+ "$ref": "./examples/BillingAccountRoleDefinitionsList.json"
+ }
+ },
+ "operationId": "BillingRoleDefinitions_ListByBillingAccount",
+ "description": "Lists the role definitions for a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleDefinitionListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions": {
+ "get": {
+ "tags": [
+ "BillingRoleDefinitions"
+ ],
+ "x-ms-examples": {
+ "InvoiceSectionRoleDefinitionsList": {
+ "$ref": "./examples/InvoiceSectionRoleDefinitionsList.json"
+ }
+ },
+ "operationId": "BillingRoleDefinitions_ListByInvoiceSection",
+ "description": "Lists the role definitions for an invoice section. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleDefinitionListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions": {
+ "get": {
+ "tags": [
+ "BillingRoleDefinitions"
+ ],
+ "x-ms-examples": {
+ "BillingProfileRoleDefinitionsList": {
+ "$ref": "./examples/BillingProfileRoleDefinitionsList.json"
+ }
+ },
+ "operationId": "BillingRoleDefinitions_ListByBillingProfile",
+ "description": "Lists the role definitions for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleDefinitionListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/{billingRoleAssignmentName}": {
+ "get": {
+ "tags": [
+ "BillingRoleAssignments"
+ ],
+ "x-ms-examples": {
+ "BillingAccountRoleAssignment": {
+ "$ref": "./examples/BillingAccountRoleAssignment.json"
+ }
+ },
+ "operationId": "BillingRoleAssignments_GetByBillingAccount",
+ "description": "Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingRoleAssignmentNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "BillingRoleAssignments"
+ ],
+ "x-ms-examples": {
+ "BillingAccountRoleAssignmentDelete": {
+ "$ref": "./examples/BillingAccountRoleAssignmentDelete.json"
+ }
+ },
+ "operationId": "BillingRoleAssignments_DeleteByBillingAccount",
+ "description": "Deletes a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingRoleAssignmentNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments/{billingRoleAssignmentName}": {
+ "get": {
+ "tags": [
+ "BillingRoleAssignments"
+ ],
+ "x-ms-examples": {
+ "InvoiceSectionRoleAssignment": {
+ "$ref": "./examples/InvoiceSectionRoleAssignment.json"
+ }
+ },
+ "operationId": "BillingRoleAssignments_GetByInvoiceSection",
+ "description": "Gets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingRoleAssignmentNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "BillingRoleAssignments"
+ ],
+ "x-ms-examples": {
+ "InvoiceSectionRoleAssignmentDelete": {
+ "$ref": "./examples/InvoiceSectionRoleAssignmentDelete.json"
+ }
+ },
+ "operationId": "BillingRoleAssignments_DeleteByInvoiceSection",
+ "description": "Deletes a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingRoleAssignmentNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments/{billingRoleAssignmentName}": {
+ "get": {
+ "tags": [
+ "BillingRoleAssignments"
+ ],
+ "x-ms-examples": {
+ "BillingProfileRoleAssignment": {
+ "$ref": "./examples/BillingProfileRoleAssignment.json"
+ }
+ },
+ "operationId": "BillingRoleAssignments_GetByBillingProfile",
+ "description": "Gets a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingRoleAssignmentNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "BillingRoleAssignments"
+ ],
+ "x-ms-examples": {
+ "BillingProfileRoleAssignmentDelete": {
+ "$ref": "./examples/BillingProfileRoleAssignmentDelete.json"
+ }
+ },
+ "operationId": "BillingRoleAssignments_DeleteByBillingProfile",
+ "description": "Deletes a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingRoleAssignmentNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments": {
+ "get": {
+ "tags": [
+ "BillingRoleAssignments"
+ ],
+ "x-ms-examples": {
+ "BillingAccountRoleAssignmentList": {
+ "$ref": "./examples/BillingAccountRoleAssignmentList.json"
+ }
+ },
+ "operationId": "BillingRoleAssignments_ListByBillingAccount",
+ "description": "Lists the role assignments for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleAssignmentListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleAssignments": {
+ "get": {
+ "tags": [
+ "BillingRoleAssignments"
+ ],
+ "x-ms-examples": {
+ "InvoiceSectionRoleAssignmentList": {
+ "$ref": "./examples/InvoiceSectionRoleAssignmentList.json"
+ }
+ },
+ "operationId": "BillingRoleAssignments_ListByInvoiceSection",
+ "description": "Lists the role assignments for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/invoiceSectionNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleAssignmentListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments": {
+ "get": {
+ "tags": [
+ "BillingRoleAssignments"
+ ],
+ "x-ms-examples": {
+ "BillingProfileRoleAssignmentList": {
+ "$ref": "./examples/BillingProfileRoleAssignmentList.json"
+ }
+ },
+ "operationId": "BillingRoleAssignments_ListByBillingProfile",
+ "description": "Lists the role assignments for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/billingProfileNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/BillingRoleAssignmentListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements": {
+ "get": {
+ "tags": [
+ "Agreements"
+ ],
+ "x-ms-examples": {
+ "AgreementsListByBillingAccount": {
+ "$ref": "./examples/AgreementsListByBillingAccount.json"
+ }
+ },
+ "operationId": "Agreements_ListByBillingAccount",
+ "description": "Lists the agreements for a billing account.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "name": "$expand",
+ "description": "May be used to expand the participants.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/AgreementListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/{agreementName}": {
+ "get": {
+ "tags": [
+ "Agreements"
+ ],
+ "x-ms-examples": {
+ "AgreementByName": {
+ "$ref": "./examples/AgreementByName.json"
+ }
+ },
+ "operationId": "Agreements_Get",
+ "description": "Gets an agreement by ID.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/billing/"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/billingAccountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/agreementNameParameter"
+ },
+ {
+ "name": "$expand",
+ "description": "May be used to expand the participants.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Agreement"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "CustomerListResult": {
+ "description": "The list of customers.",
+ "properties": {
+ "value": {
+ "description": "The list of customers.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Customer"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Customer": {
+ "description": "A partner's customer.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "The customer.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/CustomerProperties"
+ }
+ }
+ },
+ "CustomerProperties": {
+ "description": "The properties of a customer.",
+ "properties": {
+ "billingProfileId": {
+ "description": "The ID of the billing profile for the invoice section.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileDisplayName": {
+ "description": "The name of the billing profile for the invoice section.",
+ "type": "string",
+ "readOnly": true
+ },
+ "displayName": {
+ "description": "The name of the customer.",
+ "type": "string"
+ },
+ "enabledAzurePlans": {
+ "description": "Azure plans enabled for the customer.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AzurePlan"
+ }
+ },
+ "resellers": {
+ "description": "The list of resellers for which an Azure plan is enabled for the customer.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Reseller"
+ }
+ }
+ }
+ },
+ "ValidateAddressResponse": {
+ "type": "object",
+ "description": "Result of the address validation",
+ "properties": {
+ "status": {
+ "description": "status of the address validation.",
+ "$ref": "#/definitions/AddressValidationStatus"
+ },
+ "suggestedAddresses": {
+ "description": "The list of suggested addresses.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AddressDetails"
+ }
+ },
+ "validationMessage": {
+ "description": "Validation error message.",
+ "type": "string"
+ }
+ }
+ },
+ "AddressValidationStatus": {
+ "type": "string",
+ "description": "Status of the address validation.",
+ "enum": [
+ "Valid",
+ "Invalid"
+ ],
+ "x-ms-enum": {
+ "name": "addressValidationStatus",
+ "modelAsString": true
+ }
+ },
+ "TransferProductRequestProperties": {
+ "description": "The properties of the product to initiate a transfer.",
+ "properties": {
+ "destinationInvoiceSectionId": {
+ "type": "string",
+ "description": "The destination invoice section id."
+ }
+ }
+ },
+ "TransferBillingSubscriptionRequestProperties": {
+ "type": "object",
+ "description": "Request parameters to transfer billing subscription.",
+ "required": [
+ "destinationInvoiceSectionId"
+ ],
+ "properties": {
+ "destinationInvoiceSectionId": {
+ "type": "string",
+ "description": "The destination invoice section id."
+ }
+ }
+ },
+ "ValidateSubscriptionTransferEligibilityResult": {
+ "type": "object",
+ "description": "Result of the transfer eligibility validation.",
+ "properties": {
+ "isMoveEligible": {
+ "description": "Specifies whether the subscription is eligible to be transferred.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "errorDetails": {
+ "description": "Validation error details.",
+ "$ref": "#/definitions/ValidateSubscriptionTransferEligibilityError"
+ }
+ }
+ },
+ "ValidateSubscriptionTransferEligibilityError": {
+ "type": "object",
+ "description": "Error details of the transfer eligibility validation",
+ "properties": {
+ "code": {
+ "description": "Error code for the product transfer validation.",
+ "$ref": "#/definitions/SubscriptionTransferValidationErrorCode"
+ },
+ "message": {
+ "description": "The error message.",
+ "type": "string"
+ },
+ "details": {
+ "description": "Detailed error message explaining the error.",
+ "type": "string"
+ }
+ }
+ },
+ "SubscriptionTransferValidationErrorCode": {
+ "type": "string",
+ "description": "Error code of the transfer validation response.",
+ "enum": [
+ "InvalidSource",
+ "SubscriptionNotActive",
+ "InsufficientPermissionOnSource",
+ "InsufficientPermissionOnDestination",
+ "DestinationBillingProfilePastDue",
+ "SubscriptionTypeNotSupported",
+ "CrossBillingAccountNotAllowed",
+ "NotAvailableForDestinationMarket"
+ ],
+ "x-ms-enum": {
+ "name": "subscriptionTransferValidationErrorCode",
+ "modelAsString": true
+ }
+ },
+ "BillingAccountListResult": {
+ "description": "The list of billing accounts.",
+ "properties": {
+ "value": {
+ "description": "The list of billing accounts.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/BillingAccount"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingAccount": {
+ "description": "A billing account.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "The properties of the billing account.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BillingAccountProperties"
+ }
+ }
+ },
+ "BillingAccountProperties": {
+ "description": "The properties of the billing account.",
+ "properties": {
+ "displayName": {
+ "description": "The billing account name.",
+ "type": "string"
+ },
+ "soldTo": {
+ "description": "The address of the individual or organization that is responsible for the billing account.",
+ "$ref": "#/definitions/AddressDetails"
+ },
+ "agreementType": {
+ "description": "The type of agreement.",
+ "type": "string",
+ "enum": [
+ "MicrosoftCustomerAgreement",
+ "EnterpriseAgreement",
+ "MicrosoftOnlineServicesProgram",
+ "MicrosoftPartnerAgreement"
+ ],
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "AgreementType",
+ "modelAsString": true
+ }
+ },
+ "accountType": {
+ "description": "The type of customer.",
+ "type": "string",
+ "enum": [
+ "Enterprise",
+ "Individual",
+ "Partner"
+ ],
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "AccountType",
+ "modelAsString": true
+ }
+ },
+ "accountStatus": {
+ "description": "The current status of the billing account.",
+ "type": "string",
+ "enum": [
+ "Active",
+ "Deleted",
+ "Disabled",
+ "Expired",
+ "Transferred",
+ "Extended",
+ "Terminated"
+ ],
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "AccountStatus",
+ "modelAsString": true
+ }
+ },
+ "billingProfiles": {
+ "description": "The billing profiles associated with the billing account. By default this is not populated, unless it's specified in $expand.",
+ "$ref": "#/definitions/BillingProfilesOnExpand"
+ },
+ "enrollmentDetails": {
+ "description": "The details about the associated legacy enrollment. By default this is not populated, unless it's specified in $expand.",
+ "$ref": "#/definitions/Enrollment",
+ "readOnly": true
+ },
+ "departments": {
+ "description": "The departments associated to the enrollment.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Department"
+ }
+ },
+ "enrollmentAccounts": {
+ "description": "The accounts associated to the enrollment.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EnrollmentAccount"
+ }
+ },
+ "hasReadAccess": {
+ "description": "Indicates whether user has read access to the billing account.",
+ "type": "boolean",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingProfilesOnExpand": {
+ "description": "The billing profiles associated with the billing account. By default this is not populated, unless it's specified in $expand.",
+ "properties": {
+ "hasMoreResults": {
+ "description": "Indicates whether there are more billing profiles than the ones listed in this collection. The collection lists a maximum of 50 billing profiles. To get all billing profiles, use the list billing profiles API.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "value": {
+ "description": "The billing profiles associated with the billing account.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/BillingProfile"
+ }
+ }
+ }
+ },
+ "BillingAccountUpdateRequest": {
+ "description": "The request properties of the billing account that can be updated.",
+ "properties": {
+ "properties": {
+ "description": "A billing property.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BillingAccountProperties"
+ }
+ }
+ },
+ "BillingProperty": {
+ "description": "A billing property.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "A billing property.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BillingPropertyProperties"
+ }
+ }
+ },
+ "BillingPropertyProperties": {
+ "description": "The billing property.",
+ "properties": {
+ "accountAdminNotificationEmailAddress": {
+ "description": "The email address on which the account admin gets all Azure notifications.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingTenantId": {
+ "description": "The Azure AD tenant ID of the billing account for the subscription.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingAccountId": {
+ "description": "The ID of the billing account to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingAccountDisplayName": {
+ "description": "The name of the billing account to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileId": {
+ "description": "The ID of the billing profile to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileDisplayName": {
+ "description": "The name of the billing profile to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileStatus": {
+ "description": "The status of the billing profile.",
+ "enum": [
+ "Active",
+ "Disabled",
+ "Warned"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "BillingProfileStatus",
+ "modelAsString": true
+ }
+ },
+ "billingProfileStatusReasonCode": {
+ "description": "Reason for the specified billing profile status.",
+ "enum": [
+ "PastDue",
+ "SpendingLimitReached",
+ "SpendingLimitExpired"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "BillingProfileStatusReasonCode",
+ "modelAsString": true
+ }
+ },
+ "billingProfileSpendingLimit": {
+ "description": "The billing profile spending limit.",
+ "enum": [
+ "Off",
+ "On"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "BillingProfileSpendingLimit",
+ "modelAsString": true
+ }
+ },
+ "costCenter": {
+ "description": "The cost center applied to the subscription.",
+ "type": "string"
+ },
+ "invoiceSectionId": {
+ "description": "The ID of the invoice section to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "invoiceSectionDisplayName": {
+ "description": "The name of the invoice section to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "isAccountAdmin": {
+ "description": "Indicates whether user is the account admin.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "productId": {
+ "description": "The product ID of the Azure plan.",
+ "type": "string",
+ "readOnly": true
+ },
+ "productName": {
+ "description": "The product name of the Azure plan.",
+ "type": "string",
+ "readOnly": true
+ },
+ "skuId": {
+ "description": "The sku ID of the Azure plan for the subscription.",
+ "type": "string",
+ "readOnly": true
+ },
+ "skuDescription": {
+ "description": "The sku description of the Azure plan for the subscription.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Enrollment": {
+ "description": "The properties of an enrollment.",
+ "properties": {
+ "startDate": {
+ "description": "The start date of the enrollment.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "endDate": {
+ "description": "The end date of the enrollment.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "currency": {
+ "description": "The billing currency for the enrollment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "channel": {
+ "description": "The channel type of the enrollment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "policies": {
+ "description": "The policies for Enterprise Agreement enrollments.",
+ "$ref": "#/definitions/EnrollmentPolicies",
+ "readOnly": true
+ },
+ "language": {
+ "description": "The language for the enrollment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "countryCode": {
+ "description": "The country code of the enrollment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "status": {
+ "description": "The current status of the enrollment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingCycle": {
+ "description": "The billing cycle for the enrollment.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "EnrollmentPolicies": {
+ "description": "The policies for Enterprise Agreement enrollments.",
+ "properties": {
+ "accountOwnerViewCharges": {
+ "description": "The policy that controls whether Account Owners can view charges.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "departmentAdminViewCharges": {
+ "description": "The policy that controls whether Department Administrators can view charges.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "marketplacesEnabled": {
+ "description": "The policy that controls whether Azure marketplace purchases are allowed in the enrollment.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "reservedInstancesEnabled": {
+ "description": "The policy that controls whether Azure reservation purchases are allowed in the enrollment.",
+ "type": "boolean",
+ "readOnly": true
+ }
+ }
+ },
+ "Department": {
+ "description": "A department.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "A department.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DepartmentProperties"
+ }
+ }
+ },
+ "DepartmentProperties": {
+ "description": "The properties of a department.",
+ "properties": {
+ "departmentName": {
+ "description": "The name of the department.",
+ "type": "string"
+ },
+ "costCenter": {
+ "description": "The cost center associated with the department.",
+ "type": "string"
+ },
+ "status": {
+ "description": "The status of the department.",
+ "type": "string"
+ },
+ "enrollmentAccounts": {
+ "description": "Associated enrollment accounts. By default this is not populated, unless it's specified in $expand.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EnrollmentAccount"
+ }
+ }
+ }
+ },
+ "EnrollmentAccount": {
+ "description": "An enrollment account.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "The properties of an enrollment account.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/EnrollmentAccountProperties"
+ }
+ }
+ },
+ "EnrollmentAccountProperties": {
+ "description": "The properties of an enrollment account.",
+ "properties": {
+ "accountName": {
+ "description": "The name of the enrollment account.",
+ "type": "string"
+ },
+ "costCenter": {
+ "description": "The cost center associated with the enrollment account.",
+ "type": "string"
+ },
+ "accountOwner": {
+ "description": "The owner of the enrollment account.",
+ "type": "string"
+ },
+ "status": {
+ "description": "The status of the enrollment account.",
+ "type": "string"
+ },
+ "startDate": {
+ "description": "The start date of the enrollment account.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "endDate": {
+ "description": "The end date of the enrollment account.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "department": {
+ "description": "Associated department. By default this is not populated, unless it's specified in $expand.",
+ "$ref": "#/definitions/Department"
+ }
+ }
+ },
+ "InstructionListResult": {
+ "description": "The list of billing instructions used during invoice generation.",
+ "properties": {
+ "value": {
+ "description": "The list of billing instructions used during invoice generation.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Instruction"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingProfileListResult": {
+ "description": "The list of billing profiles.",
+ "properties": {
+ "value": {
+ "description": "The list of billing profiles.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/BillingProfile"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingProfile": {
+ "description": "A billing profile.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "The properties of the billing profile.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BillingProfileProperties"
+ }
+ }
+ },
+ "Instruction": {
+ "description": "An instruction.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "A billing instruction used during invoice generation.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/InstructionProperties"
+ }
+ }
+ },
+ "InstructionProperties": {
+ "description": "A billing instruction used during invoice generation.",
+ "required": [
+ "amount",
+ "startDate",
+ "endDate"
+ ],
+ "properties": {
+ "amount": {
+ "description": "The amount budgeted for this billing instruction.",
+ "type": "number"
+ },
+ "startDate": {
+ "description": "The date this billing instruction goes into effect.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "endDate": {
+ "description": "The date this billing instruction is no longer in effect.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "creationDate": {
+ "description": "The date this billing instruction was created.",
+ "type": "string",
+ "format": "date-time"
+ }
+ }
+ },
+ "BillingProfileCreationRequest": {
+ "description": "The request parameters for creating a new billing profile.",
+ "properties": {
+ "displayName": {
+ "description": "The name of the billing profile.",
+ "type": "string"
+ },
+ "poNumber": {
+ "description": "The purchase order name that will appear on the invoices generated for the billing profile.",
+ "type": "string"
+ },
+ "billTo": {
+ "description": "The address of the individual or organization that is responsible for the billing profile.",
+ "$ref": "#/definitions/AddressDetails"
+ },
+ "invoiceEmailOptIn": {
+ "description": "Flag controlling whether the invoices for the billing profile are sent through email.",
+ "type": "boolean"
+ },
+ "enabledAzurePlans": {
+ "description": "Enabled azure plans for the billing profile.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AzurePlan"
+ }
+ }
+ }
+ },
+ "BillingProfileProperties": {
+ "description": "The properties of the billing profile.",
+ "properties": {
+ "displayName": {
+ "description": "The name of the billing profile.",
+ "type": "string"
+ },
+ "poNumber": {
+ "description": "The purchase order name that will appear on the invoices generated for the billing profile.",
+ "type": "string"
+ },
+ "billTo": {
+ "description": "Billing address.",
+ "$ref": "#/definitions/AddressDetails"
+ },
+ "invoiceEmailOptIn": {
+ "description": "Flag controlling whether the invoices for the billing profile are sent through email.",
+ "type": "boolean"
+ },
+ "invoiceDay": {
+ "description": "The day of the month when the invoice for the billing profile is generated.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "currency": {
+ "description": "The currency in which the charges for the billing profile are billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "enabledAzurePlans": {
+ "description": "Information about the enabled azure plans.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AzurePlan"
+ }
+ },
+ "invoiceSections": {
+ "description": "The invoice sections associated to the billing profile. By default this is not populated, unless it's specified in $expand.",
+ "$ref": "#/definitions/InvoiceSectionsOnExpand"
+ },
+ "hasReadAccess": {
+ "description": "Indicates whether user has read access to the billing profile.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "systemId": {
+ "description": "The system generated unique identifier for a billing profile.",
+ "type": "string",
+ "readOnly": true
+ },
+ "status": {
+ "description": "The status of the billing profile.",
+ "enum": [
+ "Active",
+ "Disabled",
+ "Warned"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "BillingProfileStatus",
+ "modelAsString": true
+ }
+ },
+ "statusReasonCode": {
+ "description": "Reason for the specified billing profile status.",
+ "enum": [
+ "PastDue",
+ "SpendingLimitReached",
+ "SpendingLimitExpired"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "StatusReasonCode",
+ "modelAsString": true
+ }
+ },
+ "spendingLimit": {
+ "description": "The billing profile spending limit.",
+ "enum": [
+ "Off",
+ "On"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "SpendingLimit",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "InvoiceSectionsOnExpand": {
+ "description": "The invoice sections associated to the billing profile. By default this is not populated, unless it's specified in $expand.",
+ "properties": {
+ "hasMoreResults": {
+ "description": "Indicates whether there are more invoice sections than the ones listed in this collection. The collection lists a maximum of 50 invoice sections. To get all invoice sections, use the list invoice sections API.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "value": {
+ "description": "The invoice sections associated to the billing profile.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/InvoiceSection"
+ }
+ }
+ }
+ },
+ "AddressDetails": {
+ "description": "Address details.",
+ "required": [
+ "addressLine1",
+ "country"
+ ],
+ "properties": {
+ "firstName": {
+ "description": "First name.",
+ "type": "string"
+ },
+ "lastName": {
+ "description": "Last name.",
+ "type": "string"
+ },
+ "companyName": {
+ "description": "Company name.",
+ "type": "string"
+ },
+ "addressLine1": {
+ "description": "Address line 1.",
+ "type": "string"
+ },
+ "addressLine2": {
+ "description": "Address line 2.",
+ "type": "string"
+ },
+ "addressLine3": {
+ "description": "Address line 3.",
+ "type": "string"
+ },
+ "city": {
+ "description": "Address city.",
+ "type": "string"
+ },
+ "district": {
+ "description": "Address district.",
+ "type": "string"
+ },
+ "region": {
+ "description": "Address region.",
+ "type": "string"
+ },
+ "country": {
+ "description": "Country code uses ISO2, 2-digit format.",
+ "type": "string"
+ },
+ "postalCode": {
+ "description": "Postal code.",
+ "type": "string"
+ },
+ "email": {
+ "description": "Email address.",
+ "type": "string"
+ },
+ "phoneNumber": {
+ "description": "Phone number.",
+ "type": "string"
+ }
+ }
+ },
+ "InvoiceSectionCreationRequest": {
+ "description": "The properties of the invoice section.",
+ "properties": {
+ "displayName": {
+ "description": "The name of the invoice section.",
+ "type": "string"
+ }
+ }
+ },
+ "InvoiceSectionListResult": {
+ "description": "The list of invoice sections.",
+ "properties": {
+ "value": {
+ "description": "The list of invoice sections.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/InvoiceSection"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "InvoiceSection": {
+ "description": "An invoice section.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "The properties of an invoice section.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/InvoiceSectionProperties"
+ }
+ }
+ },
+ "InvoiceSectionProperties": {
+ "description": "The properties of an invoice section.",
+ "properties": {
+ "displayName": {
+ "description": "The name of the invoice section.",
+ "type": "string"
+ },
+ "labels": {
+ "type": "object",
+ "description": "Dictionary of metadata associated with the invoice section.",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "maxItems": 1000
+ },
+ "systemId": {
+ "description": "The system generated unique identifier for an invoice section.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "InvoiceSectionListWithCreateSubPermissionResult": {
+ "type": "object",
+ "description": "The list of invoice section properties with create subscription permission.",
+ "properties": {
+ "value": {
+ "description": "The list of invoice section properties with create subscription permission.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/InvoiceSectionWithCreateSubPermission"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "InvoiceSectionWithCreateSubPermission": {
+ "description": "Invoice section properties with create subscription permission.",
+ "properties": {
+ "invoiceSectionId": {
+ "description": "The ID of the invoice section.",
+ "type": "string",
+ "readOnly": true
+ },
+ "invoiceSectionDisplayName": {
+ "description": "The name of the invoice section.",
+ "type": "string",
+ "readOnly": true
+ },
+ "invoiceSectionSystemId": {
+ "description": "The system generated unique identifier for an invoice section.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileId": {
+ "description": "The ID of the billing profile for the invoice section.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileDisplayName": {
+ "description": "The name of the billing profile for the invoice section.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileStatus": {
+ "description": "The status of the billing profile.",
+ "enum": [
+ "Active",
+ "Disabled",
+ "Warned"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "BillingProfileStatus",
+ "modelAsString": true
+ }
+ },
+ "billingProfileStatusReasonCode": {
+ "description": "Reason for the specified billing profile status.",
+ "enum": [
+ "PastDue",
+ "SpendingLimitReached",
+ "SpendingLimitExpired"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "StatusReasonCodeForBillingProfile",
+ "modelAsString": true
+ }
+ },
+ "billingProfileSpendingLimit": {
+ "description": "The billing profile spending limit.",
+ "enum": [
+ "Off",
+ "On"
+ ],
+ "readOnly": true,
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SpendingLimitForBillingProfile",
+ "modelAsString": true
+ }
+ },
+ "billingProfileSystemId": {
+ "description": "The system generated unique identifier for a billing profile.",
+ "type": "string",
+ "readOnly": true
+ },
+ "enabledAzurePlans": {
+ "description": "Enabled azure plans for the associated billing profile.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AzurePlan"
+ }
+ }
+ }
+ },
+ "AzurePlan": {
+ "description": "Details of the Azure plan.",
+ "properties": {
+ "skuId": {
+ "description": "The sku id.",
+ "type": "string"
+ },
+ "skuDescription": {
+ "description": "The sku description.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "DownloadUrl": {
+ "description": "A secure URL that can be used to download a an entity until the URL expires.",
+ "properties": {
+ "expiryTime": {
+ "description": "The time in UTC when the download URL will expire.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "url": {
+ "description": "The URL to the PDF file.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "ErrorDetails": {
+ "description": "The details of the error.",
+ "properties": {
+ "code": {
+ "description": "Error code.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "Error message indicating why the operation failed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "target": {
+ "description": "The target of the particular error.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "ErrorResponse": {
+ "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.",
+ "type": "object",
+ "properties": {
+ "error": {
+ "description": "The details of the error.",
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "Reseller": {
+ "description": "Details of the reseller.",
+ "properties": {
+ "resellerId": {
+ "description": "The MPN ID of the reseller.",
+ "type": "string",
+ "readOnly": true
+ },
+ "description": {
+ "description": "The name of the reseller.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "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."
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "InvoiceListResult": {
+ "description": "The list of invoices.",
+ "properties": {
+ "value": {
+ "description": "The list of invoices.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Invoice"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Invoice": {
+ "description": "An invoice.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "An invoice.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/InvoiceProperties"
+ }
+ }
+ },
+ "InvoiceProperties": {
+ "description": "The properties of the invoice.",
+ "properties": {
+ "dueDate": {
+ "description": "The due date for the invoice.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "invoiceDate": {
+ "description": "The date when the invoice was generated.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "status": {
+ "description": "The current status of the invoice.",
+ "type": "string",
+ "enum": [
+ "Due",
+ "OverDue",
+ "Paid"
+ ],
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "InvoiceStatus",
+ "modelAsString": true
+ }
+ },
+ "amountDue": {
+ "description": "The amount due as of now.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "azurePrepaymentApplied": {
+ "description": "The amount of Azure prepayment applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "billedAmount": {
+ "description": "The total charges for the invoice billing period.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "creditAmount": {
+ "description": "The total refund for returns and cancellations during the invoice billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "freeAzureCreditApplied": {
+ "description": "The amount of free Azure credits applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "subTotal": {
+ "description": "The pre-tax amount due. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "taxAmount": {
+ "description": "The amount of tax charged for the billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "totalAmount": {
+ "description": "The amount due when the invoice was generated. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "invoicePeriodStartDate": {
+ "description": "The start date of the billing period for which the invoice is generated.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "invoicePeriodEndDate": {
+ "description": "The end date of the billing period for which the invoice is generated.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "invoiceType": {
+ "description": "Invoice type.",
+ "enum": [
+ "AzureService",
+ "AzureMarketplace",
+ "AzureSupport"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "InvoiceType",
+ "modelAsString": true
+ }
+ },
+ "isMonthlyInvoice": {
+ "description": "Specifies if the invoice is generated as part of monthly invoicing cycle or not. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "billingProfileId": {
+ "description": "The ID of the billing profile for which the invoice is generated.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileDisplayName": {
+ "description": "The name of the billing profile for which the invoice is generated.",
+ "type": "string",
+ "readOnly": true
+ },
+ "purchaseOrderNumber": {
+ "description": "An optional purchase order number for the invoice.",
+ "type": "string",
+ "readOnly": true
+ },
+ "documents": {
+ "description": "List of documents available to download such as invoice and tax receipt.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Document"
+ }
+ },
+ "payments": {
+ "description": "List of payments.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/PaymentProperties"
+ }
+ },
+ "subscriptionId": {
+ "description": "The ID of the subscription for which the invoice is generated.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "PaymentProperties": {
+ "description": "The properties of a payment.",
+ "properties": {
+ "paymentType": {
+ "description": "The type of payment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "amount": {
+ "description": "The paid amount.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "date": {
+ "description": "The date when the payment was made.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "paymentMethodFamily": {
+ "description": "The family of payment method.",
+ "type": "string",
+ "enum": [
+ "Credits",
+ "CheckWire",
+ "CreditCard",
+ "None"
+ ],
+ "x-ms-enum": {
+ "name": "PaymentMethodFamily",
+ "modelAsString": true
+ }
+ },
+ "paymentMethodType": {
+ "description": "The type of payment method.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Document": {
+ "description": "The properties of a document.",
+ "properties": {
+ "kind": {
+ "description": "The type of the document.",
+ "type": "string",
+ "enum": [
+ "Invoice",
+ "VoidNote",
+ "TaxReceipt",
+ "CreditNote"
+ ],
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "DocumentType",
+ "modelAsString": true
+ }
+ },
+ "url": {
+ "description": "Document URL.",
+ "type": "string",
+ "readOnly": true
+ },
+ "source": {
+ "description": "The source of the document. ENF for Brazil and DRS for rest of the world.",
+ "type": "string",
+ "enum": [
+ "DRS",
+ "ENF"
+ ],
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "DocumentSource",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "ProductsListResult": {
+ "description": "The list of products. It contains a list of available product summaries in reverse chronological order by purchase date.",
+ "properties": {
+ "value": {
+ "description": "The list of products.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Product"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Product": {
+ "description": "A product.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ProductProperties",
+ "title": "Product properties"
+ }
+ }
+ },
+ "ProductProperties": {
+ "description": "The properties of a product.",
+ "properties": {
+ "autoRenew": {
+ "description": "Indicates whether auto renewal is turned on or off for a product.",
+ "type": "string",
+ "enum": [
+ "Off",
+ "On"
+ ],
+ "x-ms-enum": {
+ "name": "AutoRenew",
+ "modelAsString": true
+ }
+ },
+ "displayName": {
+ "description": "The display name of the product.",
+ "type": "string",
+ "readOnly": true
+ },
+ "purchaseDate": {
+ "description": "The date when the product was purchased.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "productTypeId": {
+ "description": "The ID of the type of product.",
+ "type": "string",
+ "readOnly": true
+ },
+ "productType": {
+ "description": "The description of the type of product.",
+ "type": "string",
+ "readOnly": true
+ },
+ "status": {
+ "description": "The current status of the product.",
+ "type": "string",
+ "enum": [
+ "Active",
+ "Inactive",
+ "PastDue",
+ "Expiring",
+ "Expired",
+ "Disabled",
+ "Cancelled",
+ "AutoRenew"
+ ],
+ "x-ms-enum": {
+ "name": "ProductStatusType",
+ "modelAsString": true
+ }
+ },
+ "endDate": {
+ "description": "The date when the product will be renewed or canceled.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "billingFrequency": {
+ "description": "The frequency at which the product will be billed.",
+ "type": "string",
+ "enum": [
+ "OneTime",
+ "Monthly",
+ "UsageBased"
+ ],
+ "x-ms-enum": {
+ "name": "BillingFrequency",
+ "modelAsString": true
+ }
+ },
+ "lastCharge": {
+ "description": "The last month charges.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "lastChargeDate": {
+ "description": "The date of the last charge.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "quantity": {
+ "description": "The quantity purchased for the product.",
+ "type": "number",
+ "readOnly": true
+ },
+ "skuId": {
+ "description": "The sku ID of the product.",
+ "type": "string",
+ "readOnly": true
+ },
+ "skuDescription": {
+ "description": "The sku description of the product.",
+ "type": "string",
+ "readOnly": true
+ },
+ "tenantId": {
+ "description": "The id of the tenant in which the product is used.",
+ "type": "string",
+ "readOnly": true
+ },
+ "availabilityId": {
+ "description": "The availability of the product.",
+ "type": "string",
+ "readOnly": true
+ },
+ "invoiceSectionId": {
+ "description": "The ID of the invoice section to which the product is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "invoiceSectionDisplayName": {
+ "description": "The name of the invoice section to which the product is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileId": {
+ "description": "The ID of the billing profile to which the product is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileDisplayName": {
+ "description": "The name of the billing profile to which the product is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "customerId": {
+ "description": "The ID of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner Agreement billing account.",
+ "type": "string",
+ "readOnly": true
+ },
+ "customerDisplayName": {
+ "description": "The name of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner Agreement billing account.",
+ "type": "string",
+ "readOnly": true
+ },
+ "reseller": {
+ "description": "Reseller for this product.",
+ "readOnly": true,
+ "$ref": "#/definitions/Reseller"
+ }
+ }
+ },
+ "ValidateProductTransferEligibilityResult": {
+ "type": "object",
+ "description": "Result of the product transfer eligibility validation.",
+ "properties": {
+ "isMoveEligible": {
+ "description": "Specifies whether the transfer is eligible or not.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "errorDetails": {
+ "description": "Validation error details.",
+ "$ref": "#/definitions/ValidateProductTransferEligibilityError"
+ }
+ }
+ },
+ "ValidateProductTransferEligibilityError": {
+ "type": "object",
+ "description": "Error details of the product transfer eligibility validation.",
+ "properties": {
+ "code": {
+ "description": "Error code for the product transfer validation.",
+ "$ref": "#/definitions/ProductTransferValidationErrorCode"
+ },
+ "message": {
+ "description": "The error message.",
+ "type": "string"
+ },
+ "details": {
+ "description": "Detailed error message explaining the error.",
+ "type": "string"
+ }
+ }
+ },
+ "ProductTransferValidationErrorCode": {
+ "type": "string",
+ "description": "Error code of the transfer validation response.",
+ "enum": [
+ "InvalidSource",
+ "ProductNotActive",
+ "InsufficientPermissionOnSource",
+ "InsufficientPermissionOnDestination",
+ "DestinationBillingProfilePastDue",
+ "ProductTypeNotSupported",
+ "CrossBillingAccountNotAllowed",
+ "NotAvailableForDestinationMarket",
+ "OneTimePurchaseProductTransferNotAllowed"
+ ],
+ "x-ms-enum": {
+ "name": "ProductTransferValidationErrorCode",
+ "modelAsString": true
+ }
+ },
+ "BillingSubscriptionsListResult": {
+ "description": "The list of billing subscriptions.",
+ "properties": {
+ "value": {
+ "description": "The list of billing subscriptions.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/BillingSubscription"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingSubscription": {
+ "description": "A billing subscription.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BillingSubscriptionProperties",
+ "title": "Billing subscription properties"
+ }
+ }
+ },
+ "BillingSubscriptionProperties": {
+ "description": "The billing properties of a subscription.",
+ "properties": {
+ "displayName": {
+ "description": "The name of the subscription.",
+ "type": "string",
+ "readOnly": true
+ },
+ "subscriptionId": {
+ "description": "The ID of the subscription.",
+ "type": "string",
+ "format": "uuid",
+ "readOnly": true
+ },
+ "subscriptionBillingStatus": {
+ "description": "The current billing status of the subscription.",
+ "type": "string",
+ "enum": [
+ "Active",
+ "Inactive",
+ "Abandoned",
+ "Deleted",
+ "Warning"
+ ],
+ "x-ms-enum": {
+ "name": "BillingSubscriptionStatusType",
+ "modelAsString": true
+ }
+ },
+ "lastMonthCharges": {
+ "description": "The last month charges.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "monthToDateCharges": {
+ "description": "The current month to date charges.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "billingProfileId": {
+ "description": "The ID of the billing profile to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileDisplayName": {
+ "description": "The name of the billing profile to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "costCenter": {
+ "description": "The cost center applied to the subscription.",
+ "type": "string"
+ },
+ "customerId": {
+ "description": "The ID of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner Agreement billing account.",
+ "type": "string",
+ "readOnly": true
+ },
+ "customerDisplayName": {
+ "description": "The name of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner Agreement billing account.",
+ "type": "string",
+ "readOnly": true
+ },
+ "invoiceSectionId": {
+ "description": "The ID of the invoice section to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "invoiceSectionDisplayName": {
+ "description": "The name of the invoice section to which the subscription is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "reseller": {
+ "description": "Reseller for this subscription.",
+ "readOnly": true,
+ "$ref": "#/definitions/Reseller"
+ },
+ "skuId": {
+ "description": "The sku ID of the Azure plan for the subscription.",
+ "type": "string"
+ },
+ "skuDescription": {
+ "description": "The sku description of the Azure plan for the subscription.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "EnrollmentAccountContext": {
+ "description": "The enrollment account context",
+ "properties": {
+ "costCenter": {
+ "description": "The cost center associated with the enrollment account.",
+ "type": "string"
+ },
+ "startDate": {
+ "description": "The start date of the enrollment account.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "endDate": {
+ "description": "The end date of the enrollment account.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "enrollmentAccountName": {
+ "description": "The ID of the enrollment account.",
+ "type": "string"
+ }
+ }
+ },
+ "TransactionListResult": {
+ "description": "The list of transactions.",
+ "properties": {
+ "value": {
+ "description": "The list of transactions.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Transaction"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Transaction": {
+ "description": "A transaction.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/TransactionProperties",
+ "title": "Transaction properties"
+ }
+ }
+ },
+ "TransactionProperties": {
+ "description": "The properties of a transaction.",
+ "properties": {
+ "kind": {
+ "type": "string",
+ "description": "The kind of transaction. Options are all or reservation.",
+ "enum": [
+ "all",
+ "reservation"
+ ],
+ "x-ms-enum": {
+ "name": "TransactionTypeKind",
+ "modelAsString": true
+ }
+ },
+ "date": {
+ "description": "The date of transaction.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "invoice": {
+ "description": "Invoice on which the transaction was billed or 'pending' if the transaction is not billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "invoiceId": {
+ "description": "The ID of the invoice on which the transaction was billed. This field is only applicable for transactions which are billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "orderId": {
+ "description": "The order ID of the reservation. The field is only applicable for transaction of kind reservation.",
+ "type": "string",
+ "readOnly": true
+ },
+ "orderName": {
+ "description": "The name of the reservation order. The field is only applicable for transactions of kind reservation.",
+ "type": "string",
+ "readOnly": true
+ },
+ "productFamily": {
+ "description": "The family of the product for which the transaction took place.",
+ "type": "string",
+ "readOnly": true
+ },
+ "productTypeId": {
+ "description": "The ID of the product type for which the transaction took place.",
+ "type": "string",
+ "readOnly": true
+ },
+ "productType": {
+ "description": "The type of the product for which the transaction took place.",
+ "type": "string",
+ "readOnly": true
+ },
+ "productDescription": {
+ "description": "The description of the product for which the transaction took place.",
+ "type": "string",
+ "readOnly": true
+ },
+ "transactionType": {
+ "description": "The type of transaction.",
+ "type": "string",
+ "enum": [
+ "Purchase",
+ "Usage Charge"
+ ],
+ "x-ms-enum": {
+ "name": "ReservationType",
+ "modelAsString": true
+ }
+ },
+ "transactionAmount": {
+ "description": "The charge associated with the transaction.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "quantity": {
+ "description": "The quantity purchased in the transaction.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "invoiceSectionId": {
+ "description": "The ID of the invoice section which will be billed for the transaction.",
+ "type": "string",
+ "readOnly": true
+ },
+ "invoiceSectionDisplayName": {
+ "description": "The name of the invoice section which will be billed for the transaction.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileId": {
+ "description": "The ID of the billing profile which will be billed for the transaction.",
+ "type": "string",
+ "readOnly": true
+ },
+ "billingProfileDisplayName": {
+ "description": "The name of the billing profile which will be billed for the transaction.",
+ "type": "string",
+ "readOnly": true
+ },
+ "customerId": {
+ "description": "The ID of the customer for which the transaction took place. The field is applicable only for Microsoft Partner Agreement billing account.",
+ "type": "string",
+ "readOnly": true
+ },
+ "customerDisplayName": {
+ "description": "The name of the customer for which the transaction took place. The field is applicable only for Microsoft Partner Agreement billing account.",
+ "type": "string",
+ "readOnly": true
+ },
+ "subscriptionId": {
+ "description": "The ID of the subscription that was used for the transaction. The field is only applicable for transaction of kind reservation.",
+ "type": "string",
+ "readOnly": true
+ },
+ "subscriptionName": {
+ "description": "The name of the subscription that was used for the transaction. The field is only applicable for transaction of kind reservation.",
+ "type": "string",
+ "readOnly": true
+ },
+ "azurePlan": {
+ "description": "The type of azure plan of the subscription that was used for the transaction.",
+ "type": "string",
+ "readOnly": true
+ },
+ "azureCreditApplied": {
+ "description": "The amount of any Azure credits automatically applied to this transaction.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "billingCurrency": {
+ "description": "The ISO 4217 code for the currency in which this transaction is billed.",
+ "type": "string",
+ "readOnly": true
+ },
+ "discount": {
+ "description": "The percentage discount, if any, applied to this transaction.",
+ "type": "number",
+ "readOnly": true
+ },
+ "effectivePrice": {
+ "description": "The price of the product after applying any discounts.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "exchangeRate": {
+ "description": "The exchange rate used to convert charged amount to billing currency, if applicable.",
+ "type": "number",
+ "readOnly": true
+ },
+ "marketPrice": {
+ "description": "The retail price of the product.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "pricingCurrency": {
+ "description": "The ISO 4217 code for the currency in which the product is priced.",
+ "type": "string",
+ "readOnly": true
+ },
+ "servicePeriodStartDate": {
+ "description": "The date of the purchase of the product, or the start date of the month in which usage started.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "servicePeriodEndDate": {
+ "description": "The end date of the product term, or the end date of the month in which usage ended.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "subTotal": {
+ "description": "The pre-tax charged amount for the transaction.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "tax": {
+ "description": "The tax amount applied to the transaction.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ },
+ "unitOfMeasure": {
+ "description": "The unit of measure used to bill for the product. For example, compute services are billed per hour.",
+ "type": "string",
+ "readOnly": true
+ },
+ "units": {
+ "description": "The number of units used for a given product.",
+ "type": "number",
+ "readOnly": true
+ },
+ "unitType": {
+ "description": "The description for the unit of measure for a given product.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Policy": {
+ "description": "A policy.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/PolicyProperties",
+ "title": "Policy properties"
+ }
+ }
+ },
+ "PolicyProperties": {
+ "description": "The properties of a policy.",
+ "properties": {
+ "marketplacePurchases": {
+ "description": "The policy that controls whether Azure marketplace purchases are allowed for a billing profile.",
+ "type": "string",
+ "enum": [
+ "AllAllowed",
+ "OnlyFreeAllowed",
+ "NotAllowed"
+ ],
+ "x-ms-enum": {
+ "name": "MarketplacePurchasesPolicy",
+ "modelAsString": true
+ }
+ },
+ "reservationPurchases": {
+ "description": "The policy that controls whether Azure reservation purchases are allowed for a billing profile.",
+ "type": "string",
+ "enum": [
+ "Allowed",
+ "NotAllowed"
+ ],
+ "x-ms-enum": {
+ "name": "ReservationPurchasesPolicy",
+ "modelAsString": true
+ }
+ },
+ "viewCharges": {
+ "description": "The policy that controls whether users with Azure RBAC access to a subscription can view its charges.",
+ "type": "string",
+ "enum": [
+ "Allowed",
+ "NotAllowed"
+ ],
+ "x-ms-enum": {
+ "name": "ViewChargesPolicy",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "CustomerPolicy": {
+ "description": "The customer's Policy.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/CustomerPolicyProperties",
+ "title": "Customer Policy properties"
+ }
+ }
+ },
+ "CustomerPolicyProperties": {
+ "description": "The properties of a customer's policy.",
+ "properties": {
+ "viewCharges": {
+ "description": "The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices.",
+ "type": "string",
+ "enum": [
+ "Allowed",
+ "NotAllowed"
+ ],
+ "x-ms-enum": {
+ "name": "ViewCharges",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "AvailableBalance": {
+ "description": "The latest Azure credit balance. This is the balance available for pay now.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/AvailableBalanceProperties",
+ "title": "Available balance properties"
+ }
+ }
+ },
+ "AvailableBalanceProperties": {
+ "description": "The properties of available balance.",
+ "properties": {
+ "amount": {
+ "description": "Balance amount.",
+ "readOnly": true,
+ "$ref": "#/definitions/Amount"
+ }
+ }
+ },
+ "Amount": {
+ "description": "The amount.",
+ "properties": {
+ "currency": {
+ "description": "The currency for the amount value.",
+ "type": "string",
+ "readOnly": true
+ },
+ "value": {
+ "description": "Amount value.",
+ "type": "number"
+ }
+ }
+ },
+ "Operation": {
+ "description": "A Billing REST API operation.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}.",
+ "type": "string",
+ "readOnly": true
+ },
+ "display": {
+ "description": "The object that represents the operation.",
+ "properties": {
+ "provider": {
+ "description": "Service provider: Microsoft.Billing.",
+ "type": "string",
+ "readOnly": true
+ },
+ "resource": {
+ "description": "Resource on which the operation is performed such as invoice and billing subscription.",
+ "type": "string",
+ "readOnly": true
+ },
+ "operation": {
+ "description": "Operation type such as read, write and delete.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ }
+ },
+ "OperationListResult": {
+ "description": "The list of billing operations and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "description": "The list of billing operations supported by the Microsoft.Billing resource provider.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Operation"
+ }
+ },
+ "nextLink": {
+ "description": "URL to get the next set of operation list results if there are any.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingRoleAssignmentListResult": {
+ "description": "The list of role assignments.",
+ "properties": {
+ "value": {
+ "description": "The list of role assignments.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/BillingRoleAssignment"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingRoleAssignment": {
+ "description": "The role assignment",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "The properties of the role assignment.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BillingRoleAssignmentProperties"
+ }
+ }
+ },
+ "BillingRoleAssignmentProperties": {
+ "description": "The properties of the role assignment.",
+ "properties": {
+ "createdOn": {
+ "description": "The date the role assignment was created.",
+ "type": "string",
+ "readOnly": true
+ },
+ "createdByPrincipalTenantId": {
+ "description": "The tenant Id of the user who created the role assignment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "createdByPrincipalId": {
+ "description": "The principal Id of the user who created the role assignment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "createdByUserEmailAddress": {
+ "description": "The email address of the user who created the role assignment.",
+ "type": "string",
+ "readOnly": true
+ },
+ "principalId": {
+ "description": "The principal id of the user to whom the role was assigned.",
+ "type": "string",
+ "readOnly": true
+ },
+ "principalTenantId": {
+ "description": "The principal tenant id of the user to whom the role was assigned.",
+ "type": "string",
+ "readOnly": true
+ },
+ "roleDefinitionId": {
+ "description": "The ID of the role definition.",
+ "type": "string",
+ "readOnly": true
+ },
+ "scope": {
+ "description": "The scope at which the role was assigned.",
+ "type": "string",
+ "readOnly": true
+ },
+ "userAuthenticationType": {
+ "description": "The authentication type.",
+ "type": "string",
+ "readOnly": true
+ },
+ "userEmailAddress": {
+ "description": "The email address of the user.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingRoleDefinitionListResult": {
+ "description": "The list of role definitions.",
+ "properties": {
+ "value": {
+ "description": "The role definitions.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/BillingRoleDefinition"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingRoleDefinition": {
+ "description": "The properties of a role definition.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "The properties of the a role definition.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BillingRoleDefinitionProperties"
+ }
+ }
+ },
+ "BillingRoleDefinitionProperties": {
+ "description": "The properties of the a role definition.",
+ "properties": {
+ "description": {
+ "description": "The role description",
+ "type": "string",
+ "readOnly": true
+ },
+ "permissions": {
+ "description": "The billingPermissions the role has",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/BillingPermissionsProperties"
+ }
+ },
+ "roleName": {
+ "description": "The name of the role",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingPermissionsListResult": {
+ "description": "Result of list billingPermissions a caller has on a billing account.",
+ "properties": {
+ "value": {
+ "description": "The list of billingPermissions a caller has on a billing account.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/BillingPermissionsProperties"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BillingPermissionsProperties": {
+ "description": "The set of allowed action and not allowed actions a caller has on a billing account",
+ "type": "object",
+ "properties": {
+ "actions": {
+ "description": "The set of actions that the caller is allowed to perform.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ },
+ "notActions": {
+ "description": "The set of actions that the caller is not allowed to perform.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/NotAction"
+ }
+ }
+ }
+ },
+ "AgreementListResult": {
+ "description": "Result of listing agreements.",
+ "properties": {
+ "value": {
+ "description": "The list of agreements.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Agreement"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Agreement": {
+ "description": "An agreement.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "The properties of an agreement.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/AgreementProperties"
+ }
+ }
+ },
+ "AgreementProperties": {
+ "description": "The properties of an agreement.",
+ "properties": {
+ "agreementLink": {
+ "description": "The URL to download the agreement.",
+ "type": "string",
+ "readOnly": true
+ },
+ "category": {
+ "type": "string",
+ "description": "The category of the agreement signed by a customer.",
+ "readOnly": true,
+ "enum": [
+ "MicrosoftCustomerAgreement",
+ "AffiliatePurchaseTerms",
+ "Other"
+ ],
+ "x-ms-enum": {
+ "name": "category",
+ "modelAsString": true
+ }
+ },
+ "acceptanceMode": {
+ "type": "string",
+ "description": "The mode of acceptance for an agreement.",
+ "readOnly": true,
+ "enum": [
+ "ClickToAccept",
+ "ESignEmbedded",
+ "ESignOffline"
+ ],
+ "x-ms-enum": {
+ "name": "acceptanceMode",
+ "modelAsString": true
+ }
+ },
+ "effectiveDate": {
+ "description": "The date from which the agreement is effective.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "expirationDate": {
+ "description": "The date when the agreement expires.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "participants": {
+ "description": "The list of participants that participates in acceptance of an agreement.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Participants"
+ }
+ },
+ "status": {
+ "description": "The current status of the agreement.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Participants": {
+ "description": "The details about a participant.",
+ "properties": {
+ "status": {
+ "description": "The acceptance status of the participant.",
+ "type": "string",
+ "readOnly": true
+ },
+ "statusDate": {
+ "description": "The date when the status got changed.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "email": {
+ "description": "The email address of the participant.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Action": {
+ "description": "The action the caller is allowed to perform.",
+ "type": "string",
+ "readOnly": true
+ },
+ "NotAction": {
+ "description": "The set of actions that the caller is not allowed to perform.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "parameters": {
+ "apiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The version of the API to be used with the client request. The current version is 2020-05-01."
+ },
+ "subscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "The ID that uniquely identifies an Azure subscription.",
+ "required": true,
+ "type": "string"
+ },
+ "billingAccountNameParameter": {
+ "name": "billingAccountName",
+ "in": "path",
+ "description": "The ID that uniquely identifies a billing account.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "invoiceSectionNameParameter": {
+ "name": "invoiceSectionName",
+ "in": "path",
+ "description": "The ID that uniquely identifies an invoice section.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "enrollmentAccountNameParameter": {
+ "name": "enrollmentAccountName",
+ "in": "path",
+ "description": "The ID that uniquely identifies an enrollment account.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "departmentNameParameter": {
+ "name": "departmentName",
+ "in": "path",
+ "description": "The ID that uniquely identifies a department.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "instructionNameParameter": {
+ "name": "instructionName",
+ "in": "path",
+ "description": "Instruction Name.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "billingProfileNameParameter": {
+ "name": "billingProfileName",
+ "in": "path",
+ "description": "The ID that uniquely identifies a billing profile.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "operationIdParameter": {
+ "name": "operationId",
+ "in": "path",
+ "description": "Operation Id.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "billingRoleDefinitionNameParameter": {
+ "name": "billingRoleDefinitionName",
+ "in": "path",
+ "description": "The ID that uniquely identifies a role definition.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "billingRoleAssignmentNameParameter": {
+ "name": "billingRoleAssignmentName",
+ "in": "path",
+ "description": "The ID that uniquely identifies a role assignment.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "invoiceNameParameter": {
+ "name": "invoiceName",
+ "in": "path",
+ "description": "The ID that uniquely identifies an invoice.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "productNameParameter": {
+ "name": "productName",
+ "in": "path",
+ "description": "The ID that uniquely identifies a product.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "agreementNameParameter": {
+ "name": "agreementName",
+ "in": "path",
+ "description": "The ID that uniquely identifies an agreement.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "transactionNameParameter": {
+ "name": "transactionName",
+ "in": "path",
+ "description": "The ID that uniquely identifies a transaction.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "customerNameParameter": {
+ "name": "customerName",
+ "in": "path",
+ "description": "The ID that uniquely identifies a customer.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AddressInvalid.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AddressInvalid.json
new file mode 100644
index 000000000000..d65cc255d3f3
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AddressInvalid.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "address": {
+ "addressLine1": "1 Test",
+ "city": "bellevue",
+ "region": "wa",
+ "postalCode": "12345",
+ "country": "us"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "Invalid",
+ "suggestedAddresses": [
+ {
+ "country": "US",
+ "region": "WA",
+ "city": "Bellevue",
+ "addressLine1": "1 Test Address",
+ "postalCode": "98052"
+ },
+ {
+ "country": "US",
+ "region": "WA",
+ "city": "Bellevue",
+ "addressLine1": "1 Test Address",
+ "postalCode": "12345-0000"
+ }
+ ],
+ "validationMessage": "Invalid address"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AddressValid.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AddressValid.json
new file mode 100644
index 000000000000..8f56faee38da
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AddressValid.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "address": {
+ "addressLine1": "1 Test Address",
+ "city": "bellevue",
+ "region": "wa",
+ "postalCode": "12345",
+ "country": "us"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "Valid",
+ "suggestedAddresses": [
+ {
+ "country": "US",
+ "region": "WA",
+ "city": "Bellevue",
+ "addressLine1": "1 Test Address",
+ "postalCode": "12345-0000"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AgreementByName.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AgreementByName.json
new file mode 100644
index 000000000000..0b7f7f2c21c5
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AgreementByName.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "agreementName": "{agreementName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/{agreementName}",
+ "name": "{agreementName}",
+ "type": "Microsoft.Billing/billingAccounts/agreements",
+ "properties": {
+ "agreementLink": "https://agreementuri1.com",
+ "category": "MicrosoftCustomerAgreement",
+ "acceptanceMode": "ClickToAccept",
+ "effectiveDate": "2018-12-05T00:00:00Z",
+ "expirationDate": "2018-12-05T00:00:00Z",
+ "participants": [
+ {
+ "status": "Accepted",
+ "statusDate": "2018-11-01T00:00:00Z",
+ "email": "abc@contoso.com"
+ },
+ {
+ "status": "Declined",
+ "statusDate": "2018-11-02T00:00:00Z",
+ "email": "xyz@contoso.com"
+ }
+ ],
+ "status": "Published"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AgreementsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AgreementsListByBillingAccount.json
new file mode 100644
index 000000000000..9be6ba760cbc
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AgreementsListByBillingAccount.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/Agreement1",
+ "name": "Agreement1",
+ "type": "Microsoft.Billing/billingAccounts/agreements",
+ "properties": {
+ "agreementLink": "https://agreementuri1.com",
+ "category": "MicrosoftCustomerAgreement",
+ "acceptanceMode": "ClickToAccept",
+ "effectiveDate": "2018-12-05T00:00:00Z",
+ "expirationDate": "2018-12-05T00:00:00Z",
+ "participants": [
+ {
+ "status": "Accepted",
+ "statusDate": "2018-11-01T00:00:00Z",
+ "email": "abc@contoso.com"
+ },
+ {
+ "status": "Declined",
+ "statusDate": "2018-11-02T00:00:00Z",
+ "email": "xtz@contoso.com"
+ }
+ ],
+ "status": "Published"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/agreements/Agreement2",
+ "name": "Agreement2",
+ "type": "Microsoft.Billing/billingAccounts/agreements",
+ "properties": {
+ "agreementLink": "https://agreementuri2.com",
+ "category": "MicrosoftCustomerAgreement",
+ "acceptanceMode": "ESignEmbedded",
+ "effectiveDate": "2018-12-05T00:00:00Z",
+ "expirationDate": "2018-12-05T00:00:00Z",
+ "participants": [
+ {
+ "status": "Unknown",
+ "statusDate": "2018-11-01T00:00:00Z",
+ "email": "abc@contoso.com"
+ }
+ ],
+ "status": "PendingSignature"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AvailableBalanceByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AvailableBalanceByBillingProfile.json
new file mode 100644
index 000000000000..03063a39e8d0
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/AvailableBalanceByBillingProfile.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/availableBalance/default",
+ "name": "default",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/availableBalance",
+ "properties": {
+ "amount": {
+ "currency": "USD",
+ "value": 500.00
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccount.json
new file mode 100644
index 000000000000..30462b5d9d7e
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccount.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
+ "name": "{billingAccountName}",
+ "type": "Microsoft.Billing/billingAccounts",
+ "properties": {
+ "displayName": "Test Account",
+ "agreementType": "MicrosoftCustomerAgreement",
+ "accountStatus": "Active",
+ "accountType": "Enterprise",
+ "hasReadAccess": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountInvoicesList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountInvoicesList.json
new file mode 100644
index 000000000000..843c4e2bc85a
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountInvoicesList.json
@@ -0,0 +1,150 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "periodStartDate": "2018-01-01",
+ "periodEndDate": "2018-06-30"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/1383723",
+ "name": "1383723",
+ "type": "Microsoft.Billing/billingAccounts/invoices",
+ "properties": {
+ "dueDate": "2018-01-16T17:32:28Z",
+ "invoiceDate": "2018-01-01T17:32:28Z",
+ "status": "Due",
+ "amountDue": {
+ "currency": "USD",
+ "value": 8.53
+ },
+ "billedAmount": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "azurePrepaymentApplied": {
+ "currency": "USD",
+ "value": 25.46
+ },
+ "creditAmount": {
+ "currency": "USD",
+ "value": 1.00
+ },
+ "freeAzureCreditApplied": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "subTotal": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "taxAmount": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "totalAmount": {
+ "currency": "USD",
+ "value": 7.53
+ },
+ "invoicePeriodStartDate": "2018-01-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-01-15T17:32:28Z",
+ "isMonthlyInvoice": false,
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "purchaseOrderNumber": "123456",
+ "documents": [
+ {
+ "kind": "Invoice",
+ "url": "https://microsoft.com/invoice.pdf",
+ "source": "DRS"
+ }
+ ],
+ "payments": [
+ {
+ "date": "2018-01-14T17:32:28Z",
+ "paymentType": "credited",
+ "amount": {
+ "currency": "USD",
+ "value": 1.00
+ },
+ "paymentMethodFamily": "CreditCard",
+ "paymentMethodType": "visa"
+ }
+ ]
+ }
+ },
+ {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/1383724",
+ "name": "1383724",
+ "type": "Microsoft.Billing/billingAccounts/invoices",
+ "properties": {
+ "dueDate": "2018-03-01T17:32:28Z",
+ "invoiceDate": "2018-02-01T17:32:28Z",
+ "status": "PastDue",
+ "amountDue": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "billedAmount": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "azurePrepaymentApplied": {
+ "currency": "USD",
+ "value": 15.46
+ },
+ "creditAmount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "freeAzureCreditApplied": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "subTotal": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "taxAmount": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "totalAmount": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "invoicePeriodStartDate": "2018-02-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-02-28T17:32:28Z",
+ "isMonthlyInvoice": true,
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "purchaseOrderNumber": "123456",
+ "documents": [
+ {
+ "kind": "TaxReceipt",
+ "url": "https://microsoft.com/taxreceipt.pdf",
+ "source": "DRS"
+ }
+ ],
+ "payments": [
+ {
+ "date": "2018-01-14T17:32:28Z",
+ "paymentType": "credited",
+ "amount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "paymentMethodFamily": "CreditCard",
+ "paymentMethodType": "visa"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountPermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountPermissionsList.json
new file mode 100644
index 000000000000..27bb3da53918
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountPermissionsList.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "40000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "20000000-aaaa-bbbb-cccc-200000000000",
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000008",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "30000000-aaaa-bbbb-cccc-200000000001"
+ ],
+ "notActions": []
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignment.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignment.json
new file mode 100644
index 000000000000..17693c2027f8
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignment.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingRoleAssignmentName": "{billingRoleAssignmentId}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "properties": {
+ "createdOn": "2018-06-21T21:34:12.2363515+00:00",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingRoleAssignments"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentDelete.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentDelete.json
new file mode 100644
index 000000000000..2d1a0b6bdc87
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentDelete.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingRoleAssignmentName": "{billingRoleAssignmentName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "type": "Microsoft.Billing/billingAccounts/billingRoleAssignments",
+ "properties": {
+ "createdOn": "2018-06-21T21:34:12.2363515+00:00",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentList.json
new file mode 100644
index 000000000000..9d4e484d6671
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleAssignmentList.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "properties": {
+ "createdOn": "2018-06-21T21:34:12.2363515+00:00",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingRoleAssignments"
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleAssignments/10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "properties": {
+ "createdOn": "2018-06-21T21:58:19.9073876+00:00",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingRoleAssignments"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleDefinition.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleDefinition.json
new file mode 100644
index 000000000000..9912b5ea4a17
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleDefinition.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingRoleDefinitionName": "{billingRoleDefinitionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/{billingRoleDefinitionName}",
+ "name": "{billingRoleDefinitionName}",
+ "properties": {
+ "description": "The Owner role gives the user all permissions including access management rights to the billing account.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000000",
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "20000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "40000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Billing acount owner"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingRoleDefinitions"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleDefinitionsList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleDefinitionsList.json
new file mode 100644
index 000000000000..1ccbc73a3065
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountRoleDefinitionsList.json
@@ -0,0 +1,127 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000000",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000",
+ "properties": {
+ "description": "The Owner role gives the user all permissions including access management rights to the billing account.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000000",
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "20000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "40000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Billing account owner"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingRoleDefinitions"
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000001",
+ "name": "10000000-aaaa-bbbb-cccc-100000000001",
+ "properties": {
+ "description": "The Contributor role give the user all permissions except access management rights to the billing account.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Billing account contributor"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingRoleDefinitions"
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000002",
+ "name": "10000000-aaaa-bbbb-cccc-100000000002",
+ "properties": {
+ "description": "The Reader role gives the user read only access to the billing account.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Billing account reader"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingRoleDefinitions"
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000003",
+ "name": "10000000-aaaa-bbbb-cccc-100000000003",
+ "properties": {
+ "description": "The Signatory role can sign agreements on behalf of the customer.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Signatory"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingRoleDefinitions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountWithExpand.json
new file mode 100644
index 000000000000..fc45287d5e7a
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountWithExpand.json
@@ -0,0 +1,159 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "$expand": "soldTo,billingProfiles,billingProfiles/invoiceSections"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
+ "name": "{billingAccountName}",
+ "type": "Microsoft.Billing/billingAccounts",
+ "properties": {
+ "displayName": "Test Account 1",
+ "agreementType": "MicrosoftCustomerAgreement",
+ "accountStatus": "Active",
+ "soldTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address",
+ "addressLine2": "Test Address",
+ "addressLine3": "Test Address",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "accountType": "Enterprise",
+ "billingProfiles": {
+ "hasMoreResults": true,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "name": "11000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile1",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "1XXX-11XX-XX1-XXXX-XXX",
+ "status": "Warned",
+ "statusReasonCode": "PastDue",
+ "spendingLimit": "On",
+ "invoiceSections": {
+ "hasMoreResults": true,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1",
+ "name": "invoiceSectionId1",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName1",
+ "labels": {
+ "pcCode": "A123456",
+ "costCategory": "Support"
+ },
+ "systemId": "9XXX-11XX-XX1-XXXX-XXX"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001",
+ "name": "11000000-0000-0000-0000-000000000001",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile2",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "2XXX-22XX-XX1-XXXX-XXX",
+ "status": "Active",
+ "spendingLimit": "Off",
+ "invoiceSections": {
+ "hasMoreResults": true,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId2",
+ "name": "invoiceSectionId2",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName2",
+ "labels": {
+ "pcCode": "Z223456",
+ "costCategory": "Marketing"
+ },
+ "systemId": "9XXX-22XX-XX1-XXXX-XXX"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "hasReadAccess": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsList.json
new file mode 100644
index 000000000000..ca8792baf70d
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsList.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000",
+ "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts",
+ "properties": {
+ "displayName": "Test Account 1",
+ "agreementType": "MicrosoftCustomerAgreement",
+ "accountStatus": "Active",
+ "accountType": "Enterprise",
+ "hasReadAccess": true
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000",
+ "name": "10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts",
+ "properties": {
+ "displayName": "Test Account 2",
+ "agreementType": "MicrosoftCustomerAgreement",
+ "accountStatus": "Active",
+ "soldTo": null,
+ "accountType": "Enterprise",
+ "hasReadAccess": true
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/20000000-0000-0000-0000-000000000002_00000000-0000-0000-0000-000000000000",
+ "name": "20000000-0000-0000-0000-000000000002_00000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts",
+ "properties": {
+ "displayName": "Test Account 3",
+ "agreementType": "MicrosoftCustomerAgreement",
+ "accountStatus": "Active",
+ "accountType": "Enterprise",
+ "hasReadAccess": true
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpand.json
new file mode 100644
index 000000000000..840377864089
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpand.json
@@ -0,0 +1,337 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "$expand": "soldTo,billingProfiles,billingProfiles/invoiceSections"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000",
+ "name": "00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts",
+ "properties": {
+ "displayName": "Test Account 1",
+ "agreementType": "MicrosoftCustomerAgreement",
+ "accountStatus": "Active",
+ "soldTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address",
+ "addressLine2": "Test Address",
+ "addressLine3": "Test Address",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "accountType": "Enterprise",
+ "billingProfiles": {
+ "hasMoreResults": true,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "name": "11000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile1",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "1XXX-11XX-XX1-XXXX-XXX",
+ "status": "Warned",
+ "statusReasonCode": "PastDue",
+ "spendingLimit": "On",
+ "invoiceSections": {
+ "hasMoreResults": false,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1",
+ "name": "invoiceSectionId1",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName1",
+ "labels": {
+ "pcCode": "A123456",
+ "costCategory": "Support"
+ },
+ "systemId": "9XXX-11XX-XX1-XXXX-XXX"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId2",
+ "name": "invoiceSectionId2",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName2",
+ "labels": {
+ "pcCode": "B223456",
+ "costCategory": "Finance"
+ },
+ "systemId": "9XXX-22XX-XX1-XXXX-XXX"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000001",
+ "name": "11000000-0000-0000-0000-000000000001",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile2",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "2XXX-22XX-XX1-XXXX-XXX",
+ "status": "Active",
+ "spendingLimit": "Off",
+ "invoiceSections": {
+ "hasMoreResults": false,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId11",
+ "name": "invoiceSectionId11",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName11",
+ "labels": {
+ "pcCode": "Z223456",
+ "costCategory": "Marketing"
+ },
+ "systemId": "9XXX-33XX-XX1-XXXX-XXX"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "hasReadAccess": true
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000",
+ "name": "10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts",
+ "properties": {
+ "displayName": "Test Account 2",
+ "agreementType": "MicrosoftCustomerAgreement",
+ "accountStatus": "Active",
+ "soldTo": null,
+ "accountType": "Enterprise",
+ "billingProfiles": {
+ "hasMoreResults": true,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000004",
+ "name": "11000000-0000-0000-0000-000000000004",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile3",
+ "billTo": {
+ "companyName": "Contoso Test",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "3XXX-33XX-XX1-XXXX-XXX",
+ "status": "Warned",
+ "statusReasonCode": "PastDue",
+ "spendingLimit": "On",
+ "invoiceSections": {
+ "hasMoreResults": true,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000004/invoiceSections/invoiceSectionId3",
+ "name": "invoiceSectionId3",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName3",
+ "labels": {
+ "pcCode": "C123456",
+ "costCategory": "Support"
+ },
+ "systemId": "9XXX-44XX-XX1-XXXX-XXX"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000004/invoiceSections/invoiceSectionId4",
+ "name": "invoiceSectionId4",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName4",
+ "labels": {
+ "pcCode": "D123456",
+ "costCategory": "Marketing"
+ },
+ "systemId": "9XXX-55XX-XX1-XXXX-XXX"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000005",
+ "name": "11000000-0000-0000-0000-000000000005",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile4",
+ "billTo": {
+ "companyName": "Contoso Test",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "4XXX-44XX-XX1-XXXX-XXX",
+ "status": "Warned",
+ "statusReasonCode": "PastDue",
+ "spendingLimit": "On",
+ "invoiceSections": {
+ "hasMoreResults": true,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000005/invoiceSections/invoiceSectionId5",
+ "name": "invoiceSectionId5",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName5",
+ "labels": {
+ "pcCode": "E123456",
+ "costCategory": "Finance"
+ },
+ "systemId": "9XXX-66XX-XX1-XXXX-XXX"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000001_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000005/invoiceSections/invoiceSectionId6",
+ "name": "invoiceSectionId6",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName6",
+ "labels": {
+ "pcCode": "O123456",
+ "costCategory": "Support"
+ },
+ "systemId": "9XXX-77XX-XX1-XXXX-XXX"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "hasReadAccess": true
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpandForEnrollmentDetails.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpandForEnrollmentDetails.json
new file mode 100644
index 000000000000..a546b96ac97f
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingAccountsListWithExpandForEnrollmentDetails.json
@@ -0,0 +1,107 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "$expand": "enrollmentDetails,departments,enrollmentAccounts"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/7645820",
+ "name": "7645820",
+ "type": "Microsoft.Billing/billingAccounts",
+ "properties": {
+ "agreementType": "EnterpriseAgreement",
+ "soldTo": {
+ "addressLine1": "Test Address",
+ "addressLine2": "Test Address",
+ "addressLine3": "Test Address",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US"
+ },
+ "enrollmentDetails": {
+ "startDate": "2018-05-01T17:32:28Z",
+ "endDate": "2019-05-31T17:32:28Z",
+ "currency": "USD",
+ "channel": "EaDirect",
+ "language": "en",
+ "countryCode": "US",
+ "status": "Active",
+ "billingCycle": "Monthly",
+ "policies": {
+ "accountOwnerViewCharges": true,
+ "departmentAdminViewCharges": true,
+ "marketplacesEnabled": true,
+ "reservedInstancesEnabled": true
+ }
+ },
+ "departments": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId1",
+ "name": "departmentId1",
+ "type": "Microsoft.Billing/departments",
+ "properties": {
+ "departmentName": "departmentName1",
+ "costCenter": "C1",
+ "status": "Active"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/departmentId2",
+ "name": "departmentId2",
+ "type": "Microsoft.Billing/departments",
+ "properties": {
+ "departmentName": "departmentName2",
+ "costCenter": "C4",
+ "status": "Active"
+ }
+ }
+ ],
+ "enrollmentAccounts": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId0",
+ "name": "accountId0",
+ "type": "Microsoft.Billing/enrollmentAccounts",
+ "properties": {
+ "accountName": "AccountName0",
+ "costCenter": "C0",
+ "status": "Active",
+ "startDate": "2018-05-01T17:32:28Z",
+ "endDate": "2019-05-31T17:32:28Z"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId1",
+ "name": "accountId1",
+ "type": "Microsoft.Billing/enrollmentAccounts",
+ "properties": {
+ "accountName": "AccountName1",
+ "costCenter": "C4",
+ "status": "Active",
+ "startDate": "2018-05-01T17:32:28Z",
+ "endDate": "2019-05-31T17:32:28Z"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/accountId2",
+ "name": "accountId2",
+ "type": "Microsoft.Billing/enrollmentAccounts",
+ "properties": {
+ "accountName": "AccountName2",
+ "costCenter": "C4",
+ "status": "Active",
+ "startDate": "2018-05-01T17:32:28Z",
+ "endDate": "2019-05-31T17:32:28Z"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfile.json
new file mode 100644
index 000000000000..a8dcf52150fa
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfile.json
@@ -0,0 +1,52 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "name": "{billingProfileName}",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "Billing Profile1",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "1XXX-11XX-XX1-XXXX-XXX",
+ "status": "Warned",
+ "statusReasonCode": "PastDue",
+ "spendingLimit": "On"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilePermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilePermissionsList.json
new file mode 100644
index 000000000000..131dcb9aeff1
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilePermissionsList.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "40000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "20000000-aaaa-bbbb-cccc-200000000000",
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000008",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "30000000-aaaa-bbbb-cccc-200000000001"
+ ],
+ "notActions": []
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignment.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignment.json
new file mode 100644
index 000000000000..6de1eb19bc72
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignment.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "billingRoleAssignmentName": "{billingRoleAssignmentName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleAssignments/10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "properties": {
+ "createdOn": "2018-06-21T21:58:19.9073876+00:00",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/billingRoleAssignments"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentDelete.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentDelete.json
new file mode 100644
index 000000000000..417086394bb9
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentDelete.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "billingRoleAssignmentName": "{billingRoleAssignmentName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "properties": {
+ "createdOn": "2018-06-21T21:58:19.9073876+00:00",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/billingRoleAssignments"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentList.json
new file mode 100644
index 000000000000..d550705d7a17
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleAssignmentList.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "properties": {
+ "createdOn": "2018-06-21T21:34:12.2363515+00:00",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/billingRoleAssignments"
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_00000000-0000-0000-0000-000000000000",
+ "properties": {
+ "createdOn": "2018-06-21T21:58:19.9073876+00:00",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/billingRoleAssignments"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleDefinition.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleDefinition.json
new file mode 100644
index 000000000000..ddbac23b4fdc
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleDefinition.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "billingRoleDefinitionName": "{billingRoleDefinitionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions/{billingRoleDefinitionName}",
+ "name": "{billingRoleDefinitionName}",
+ "properties": {
+ "description": "The Owner role gives the user all permissions including access management rights to the billing profile.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000000",
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "20000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "40000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Billing profile owner"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/billingRoleDefinitions"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleDefinitionsList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleDefinitionsList.json
new file mode 100644
index 000000000000..0437df534f06
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileRoleDefinitionsList.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000000",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000",
+ "properties": {
+ "description": "The Owner role gives the user all permissions including access management rights to the billing profile.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000000",
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "20000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "40000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Billing profile owner"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/billingRoleDefinitions"
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000001",
+ "name": "10000000-aaaa-bbbb-cccc-100000000001",
+ "properties": {
+ "description": "The Contributor role give the user all permissions except access management rights to the billing profile.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Billing profile contributor"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/billingRoleDefinitions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileWithExpand.json
new file mode 100644
index 000000000000..ef48d861b956
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfileWithExpand.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "$expand": "invoiceSections"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "name": "{billingProfileName}",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "Billing Profile1",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "1XXX-11XX-XX1-XXXX-XXX",
+ "status": "Warned",
+ "statusReasonCode": "PastDue",
+ "spendingLimit": "On",
+ "invoiceSections": {
+ "hasMoreResults": false,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/invoiceSectionId1",
+ "name": "invoiceSectionId1",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName1",
+ "labels": {
+ "pcCode": "A123456",
+ "costCategory": "Support"
+ },
+ "systemId": "9XXX-11XX-XX1-XXXX-XXX"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json
new file mode 100644
index 000000000000..d3d8175d403d
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListByBillingAccount.json
@@ -0,0 +1,95 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "name": "11000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile1",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "1XXX-11XX-XX1-XXXX-XXX",
+ "status": "Warned",
+ "statusReasonCode": "PastDue",
+ "spendingLimit": "On"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001",
+ "name": "11000000-0000-0000-0000-000000000001",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile2",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "2XXX-22XX-XX1-XXXX-XXX",
+ "status": "Active",
+ "spendingLimit": "Off"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListWithExpand.json
new file mode 100644
index 000000000000..85a10f54a285
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProfilesListWithExpand.json
@@ -0,0 +1,133 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "$expand": "invoiceSections"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "name": "11000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile1",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "1XXX-11XX-XX1-XXXX-XXX",
+ "status": "Warned",
+ "statusReasonCode": "PastDue",
+ "spendingLimit": "On",
+ "invoiceSections": {
+ "hasMoreResults": false,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/invoiceSectionId1",
+ "name": "invoiceSectionId1",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName1",
+ "labels": {
+ "pcCode": "A123456",
+ "costCategory": "Support"
+ },
+ "systemId": "9XXX-11XX-XX1-XXXX-XXX"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001",
+ "name": "11000000-0000-0000-0000-000000000001",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "BillingProfile2",
+ "billTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address1",
+ "addressLine2": "Test Address2",
+ "addressLine3": "Test Address3",
+ "city": "City",
+ "postalCode": "00000",
+ "region": "WA",
+ "country": "US",
+ "email": "abc@contoso.com",
+ "phoneNumber": "000-000-0000"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "2XXX-22XX-XX1-XXXX-XXX",
+ "status": "Warned",
+ "statusReasonCode": "PastDue",
+ "spendingLimit": "On",
+ "invoiceSections": {
+ "hasMoreResults": false,
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000001/invoiceSections/invoiceSectionId2",
+ "name": "invoiceSectionId2",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSectionName2",
+ "labels": {
+ "pcCode": "Z223456",
+ "costCategory": "Marketing"
+ },
+ "systemId": "9XXX-22XX-XX1-XXXX-XXX"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProperty.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProperty.json
new file mode 100644
index 000000000000..70e263978a92
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingProperty.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "{subscriptionId}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty/default",
+ "name": "default",
+ "type": "Microsoft.Billing/billingProperty",
+ "properties": {
+ "accountAdminNotificationEmailAddress": "test@contoso.com",
+ "billingTenantId": "90000000-0000-0000-0000-000000000011",
+ "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000",
+ "billingAccountDisplayName": "My Account",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "billingProfileStatus": "Warned",
+ "billingProfileStatusReasonCode": "PastDue",
+ "billingProfileSpendingLimit": "On",
+ "costCenter": "1010",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoice section",
+ "isAccountAdmin": true,
+ "productId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000/products/44000000-0000-0000-0000-000000000000",
+ "productName": "Standard Dev",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscription.json
new file mode 100644
index 000000000000..82f9307e93a9
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscription.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "subscriptionId": "{subscriptionId}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/{subscriptionId}",
+ "name": "{subscriptionId}",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "My Subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 600
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoice.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoice.json
new file mode 100644
index 000000000000..84718dc27df1
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoice.json
@@ -0,0 +1,55 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "{subscriptionId}",
+ "invoiceName": "{invoiceName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/11000000-0000-0000-0000-000000000000/invoices/1383724",
+ "name": "1383724",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions/invoices",
+ "properties": {
+ "dueDate": "2018-03-01T17:32:28Z",
+ "invoiceDate": "2018-02-01T17:32:28Z",
+ "status": "Paid",
+ "amountDue": {
+ "currency": "USD",
+ "value": 2000.00
+ },
+ "billedAmount": {
+ "currency": "USD",
+ "value": 2000.00
+ },
+ "invoicePeriodStartDate": "2018-02-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-02-30T17:32:28Z",
+ "invoiceType": "AzureMarketplace",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "purchaseOrderNumber": "123456",
+ "documents": [
+ {
+ "kind": "Invoice",
+ "url": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/11000000-0000-0000-0000-000000000000/invoices/1383724/download",
+ "source": "DRS"
+ }
+ ],
+ "payments": [
+ {
+ "date": "2018-01-14T17:32:28Z",
+ "paymentType": "credited",
+ "amount": {
+ "currency": "USD",
+ "value": 2000.00
+ },
+ "paymentMethodFamily": "CreditCard",
+ "paymentMethodType": "visa"
+ }
+ ],
+ "subscriptionId": "55000000-0000-0000-0000-000000000011"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoiceDownload.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoiceDownload.json
new file mode 100644
index 000000000000..226bfa9ef63e
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoiceDownload.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "{subscriptionId}",
+ "invoiceName": "{invoiceName}",
+ "downloadToken": "DRS_12345"
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/11000000-0000-0000-0000-000000000000/operationResults/invoiceDownload_11000000-0000-0000-0000-000000000000?api-version=2020-05-01",
+ "Retry-After": "10"
+ }
+ },
+ "200": {
+ "body": {
+ "url": "https://myaccount.blob.core.windows.net/invoices/1383724.pdf?sv=2019-02-02&sr=b&sig=sp=r"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoicesList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoicesList.json
new file mode 100644
index 000000000000..7fabd49c628b
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionInvoicesList.json
@@ -0,0 +1,79 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "{subscriptionId}",
+ "periodStartDate": "2018-01-01",
+ "periodEndDate": "2018-06-30"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/11000000-0000-0000-0000-000000000000/invoices/1383723",
+ "name": "1383723",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions/invoices",
+ "properties": {
+ "dueDate": "2018-01-16T17:32:28Z",
+ "invoiceDate": "2018-01-01T17:32:28Z",
+ "status": "Due",
+ "amountDue": {
+ "currency": "USD",
+ "value": 2000.00
+ },
+ "invoicePeriodStartDate": "2018-01-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-01-15T17:32:28Z",
+ "invoiceType": "AzureServices",
+ "purchaseOrderNumber": "123456",
+ "subscriptionId": "55000000-0000-0000-0000-000000000011"
+ }
+ },
+ {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/11000000-0000-0000-0000-000000000000/invoices/1383724",
+ "name": "1383724",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions/invoices",
+ "properties": {
+ "dueDate": "2018-03-01T17:32:28Z",
+ "invoiceDate": "2018-02-01T17:32:28Z",
+ "status": "Paid",
+ "amountDue": {
+ "currency": "USD",
+ "value": 2000.00
+ },
+ "billedAmount": {
+ "currency": "USD",
+ "value": 2000.00
+ },
+ "invoicePeriodStartDate": "2018-02-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-02-30T17:32:28Z",
+ "invoiceType": "AzureMarketplace",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "purchaseOrderNumber": "123456",
+ "documents": [
+ {
+ "kind": "Invoice",
+ "url": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/11000000-0000-0000-0000-000000000000/invoices/1383724/download",
+ "source": "DRS"
+ }
+ ],
+ "payments": [
+ {
+ "date": "2018-01-14T17:32:28Z",
+ "paymentType": "credited",
+ "amount": {
+ "currency": "USD",
+ "value": 2000.00
+ },
+ "paymentMethodFamily": "CreditCard",
+ "paymentMethodType": "visa"
+ }
+ ],
+ "subscriptionId": "55000000-0000-0000-0000-000000000011"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingAccount.json
new file mode 100644
index 000000000000..93283f3627e2
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingAccount.json
@@ -0,0 +1,89 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/90000000-0000-0000-0000-000000000000",
+ "name": "90000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "My subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 600
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/90000000-0000-0000-0000-000000000001",
+ "name": "90000000-0000-0000-0000-000000000001",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "Test subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 1000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 400
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/90000000-0000-0000-0000-000000000002",
+ "name": "90000000-0000-0000-0000-000000000002",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "Dev Subscription",
+ "subscriptionId": "6b96d3f2-4a9d-9008-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 6000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 900
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingProfile.json
new file mode 100644
index 000000000000..ac88af9bc396
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByBillingProfile.json
@@ -0,0 +1,90 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId1",
+ "name": "billingSubscriptionId1",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "My subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 600
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId2",
+ "name": "billingSubscriptionId2",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "Test subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 1000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 400
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId3",
+ "name": "billingSubscriptionId3",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "Dev Subscription",
+ "subscriptionId": "6b96d3f2-4a9d-9008-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 6000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 900
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByCustomer.json
new file mode 100644
index 000000000000..966ab091b901
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByCustomer.json
@@ -0,0 +1,69 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "customerName": "{customerName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId1",
+ "name": "billingSubscriptionId1",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "My subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 600.00
+ },
+ "costCenter": "ABC1234",
+ "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
+ "customerDisplayName": "Customer1",
+ "reseller": {
+ "resellerId": "89e87bdf-a2a2-4687-925f-4c18b27bccfd",
+ "description": "Reseller1"
+ },
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId2",
+ "name": "billingSubscriptionId2",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "Test subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 1000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 400
+ },
+ "costCenter": "ABC1234",
+ "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
+ "customerDisplayName": "Customer1",
+ "reseller": {
+ "resellerId": "3b65b5a8-bd4f-4084-90e9-e1bd667a2b19",
+ "description": "Reseller3"
+ },
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByInvoiceSection.json
new file mode 100644
index 000000000000..b2f82cede0d2
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/BillingSubscriptionsListByInvoiceSection.json
@@ -0,0 +1,91 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId1",
+ "name": "billingSubscriptionId1",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "My subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 600
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId2",
+ "name": "billingSubscriptionId2",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "Test subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 1000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 400
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId3",
+ "name": "billingSubscriptionId3",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "Dev Subscription",
+ "subscriptionId": "6b96d3f2-4a9d-9008-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 6000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 900
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Customer.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Customer.json
new file mode 100644
index 000000000000..69251765abd1
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Customer.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "customerName": "{customerName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
+ "name": "{customerName}",
+ "type": "Microsoft.Billing/billingAccounts/customers",
+ "properties": {
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "displayName": "customer1"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPermissionsList.json
new file mode 100644
index 000000000000..9227b211a749
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPermissionsList.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "customerName": "{customerName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "actions": [
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "30000000-aaaa-bbbb-cccc-200000000001"
+ ],
+ "notActions": []
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPolicy.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPolicy.json
new file mode 100644
index 000000000000..601f3d77477e
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerPolicy.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "customerName": "{customerName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default",
+ "name": "default",
+ "type": "Microsoft.Billing/billingAccounts/customers/policies",
+ "properties": {
+ "viewCharges": "Allowed"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerWithExpand.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerWithExpand.json
new file mode 100644
index 000000000000..59bb6cd2dc4d
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomerWithExpand.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "customerName": "{customerName}",
+ "$expand": "enabledAzurePlans,resellers"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
+ "name": "{customerName}",
+ "type": "Microsoft.Billing/billingAccounts/customers",
+ "properties": {
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "displayName": "customerName1",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "resellers": [
+ {
+ "resellerId": "89e87bdf-a2a2-4687-925f-4c18b27bccfd",
+ "description": "Reseller1"
+ },
+ {
+ "resellerId": "3b65b5a8-bd4f-4084-90e9-e1bd667a2b19",
+ "description": "Reseller2"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingAccount.json
new file mode 100644
index 000000000000..5cf414465d11
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingAccount.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000000",
+ "name": "22000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/customers",
+ "properties": {
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "displayName": "customer1"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000011",
+ "name": "22000000-0000-0000-0000-000000000011",
+ "type": "Microsoft.Billing/billingAccounts/customers",
+ "properties": {
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "displayName": "customer2"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingProfile.json
new file mode 100644
index 000000000000..a7eb9a6bd73e
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/CustomersListByBillingProfile.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000000",
+ "name": "22000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/customers",
+ "properties": {
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "displayName": "customer1"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000011",
+ "name": "22000000-0000-0000-0000-000000000011",
+ "type": "Microsoft.Billing/billingAccounts/customers",
+ "properties": {
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "displayName": "customer2"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Instruction.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Instruction.json
new file mode 100644
index 000000000000..9b4093430abe
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Instruction.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "instructionName": "{instructionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/instructions/{instructionName}",
+ "name": "{instructionName}",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/instructions",
+ "properties": {
+ "amount": 5000.0,
+ "startDate": "2019-12-30T21:26:47.997Z",
+ "endDate": "2020-12-30T21:26:47.997Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InstructionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InstructionsListByBillingProfile.json
new file mode 100644
index 000000000000..ab48e69d2cb5
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InstructionsListByBillingProfile.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/instructions/TO1:CLIN001",
+ "name": "TO1:CLIN001",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/instructions",
+ "properties": {
+ "amount": 5000.0,
+ "startDate": "2019-12-30T21:26:47.997Z",
+ "endDate": "2020-12-30T21:26:47.997Z"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/instructions/TO1:CLIN002",
+ "name": "TO1:CLIN002",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/instructions",
+ "properties": {
+ "amount": 2000.0,
+ "startDate": "2019-12-30T21:26:47.997Z",
+ "endDate": "2020-12-30T21:26:47.997Z"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Invoice.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Invoice.json
new file mode 100644
index 000000000000..a956b6a06d95
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Invoice.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "invoiceName": "{invoiceName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}",
+ "name": "{invoiceName}",
+ "type": "Microsoft.Billing/billingAccounts/invoices",
+ "properties": {
+ "dueDate": "2018-01-16T17:32:28Z",
+ "invoiceDate": "2018-01-01T17:32:28Z",
+ "status": "Due",
+ "amountDue": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "billedAmount": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "azurePrepaymentApplied": {
+ "currency": "USD",
+ "value": 15.46
+ },
+ "creditAmount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "freeAzureCreditApplied": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "subTotal": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "taxAmount": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "totalAmount": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "invoicePeriodStartDate": "2018-01-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-01-15T17:32:28Z",
+ "isMonthlyInvoice": false,
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "purchaseOrderNumber": "123456",
+ "documents": [
+ {
+ "kind": "Invoice",
+ "url": "https://microsoft.com/invoice.pdf",
+ "source": "DRS"
+ },
+ {
+ "kind": "TaxReceipt",
+ "url": "https://microsoft.com/taxDoc.pdf",
+ "source": "DRS"
+ }
+ ],
+ "payments": [
+ {
+ "date": "2018-01-14T17:32:28Z",
+ "paymentType": "credited",
+ "amount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "paymentMethodFamily": "CreditCard",
+ "paymentMethodType": "visa"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceById.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceById.json
new file mode 100644
index 000000000000..54b50a2366a0
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceById.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "invoiceName": "{invoiceName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}",
+ "name": "{invoiceName}",
+ "type": "Microsoft.Billing/billingAccounts/invoices",
+ "properties": {
+ "dueDate": "2018-01-16T17:32:28Z",
+ "invoiceDate": "2018-01-01T17:32:28Z",
+ "status": "Due",
+ "amountDue": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "billedAmount": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "azurePrepaymentApplied": {
+ "currency": "USD",
+ "value": 15.46
+ },
+ "creditAmount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "freeAzureCreditApplied": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "subTotal": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "taxAmount": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "totalAmount": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "invoicePeriodStartDate": "2018-01-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-01-15T17:32:28Z",
+ "isMonthlyInvoice": false,
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "purchaseOrderNumber": "123456",
+ "documents": [
+ {
+ "kind": "Invoice",
+ "url": "https://microsoft.com/invoice.pdf",
+ "source": "DRS"
+ },
+ {
+ "kind": "TaxReceipt",
+ "url": "https://microsoft.com/taxDoc.pdf",
+ "source": "DRS"
+ }
+ ],
+ "payments": [
+ {
+ "date": "2018-01-14T17:32:28Z",
+ "paymentType": "credited",
+ "amount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "paymentMethodFamily": "CreditCard",
+ "paymentMethodType": "visa"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceDownload.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceDownload.json
new file mode 100644
index 000000000000..9bf994a947cb
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceDownload.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "invoiceName": "{invoiceName}",
+ "downloadToken": "DRS_12345"
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/operationResults/invoiceDownload_11000000-0000-0000-0000-000000000000?api-version=2020-05-01",
+ "Retry-After": "10"
+ }
+ },
+ "200": {
+ "body": {
+ "url": "https://myaccount.blob.core.windows.net/invoices/1383724.pdf?sv=2019-02-02&sr=b&sp=r"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSection.json
new file mode 100644
index 000000000000..c751111a6438
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSection.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "name": "{invoiceSectionName}",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSection1",
+ "labels": {
+ "pcCode": "A123456",
+ "costCategory": "Support"
+ },
+ "systemId": "XX1X-XXAA-XXX-ZZZ"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionPermissionsList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionPermissionsList.json
new file mode 100644
index 000000000000..d948b9bf01b4
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionPermissionsList.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "40000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "20000000-aaaa-bbbb-cccc-200000000000",
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000008",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "30000000-aaaa-bbbb-cccc-200000000001"
+ ],
+ "notActions": []
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignment.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignment.json
new file mode 100644
index 000000000000..d5788f6c9243
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignment.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}",
+ "billingRoleAssignmentName": "{billingRoleAssignmentName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "properties": {
+ "createdOn": "2018-06-21T21:34:12.2363515+00:00",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleAssignments"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignmentDelete.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignmentDelete.json
new file mode 100644
index 000000000000..d5788f6c9243
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignmentDelete.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}",
+ "billingRoleAssignmentName": "{billingRoleAssignmentName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "properties": {
+ "createdOn": "2018-06-21T21:34:12.2363515+00:00",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleAssignments"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignmentList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignmentList.json
new file mode 100644
index 000000000000..bc1c0400589f
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleAssignmentList.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "properties": {
+ "createdOn": "2018-06-21T21:34:12.2363515+00:00",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleAssignments"
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000_b1839933-b3ac-42ca-8112-d29c43f3ab47",
+ "properties": {
+ "createdOn": "2018-06-21T21:58:19.9073876+00:00",
+ "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "createdByPrincipalTenantId": "7ca289b9-c32d-4f01-8566-7ff93261d76f",
+ "createdByPrincipalId": "10000000-aaaa-bbbb-cccc-3fd5ff9d6aa1",
+ "principalId": "6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
+ "principalTenantId": "10000000-aaaa-bbbb-cccc-2d7cd011db47",
+ "roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000002"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleAssignments"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleDefinition.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleDefinition.json
new file mode 100644
index 000000000000..47ebe75b139f
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleDefinition.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}",
+ "billingRoleDefinitionName": "{billingRoleDefinitionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions/{billingRoleDefinitionName}",
+ "name": "{billingRoleDefinitionName}",
+ "properties": {
+ "description": "The Owner role gives the user all permissions including access management rights to the invoice section.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000000",
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "20000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "40000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Invoice section owner"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleDefinitions"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleDefinitionsList.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleDefinitionsList.json
new file mode 100644
index 000000000000..735412e49a6b
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionRoleDefinitionsList.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000000",
+ "name": "10000000-aaaa-bbbb-cccc-100000000000",
+ "properties": {
+ "description": "The Owner role gives the user all permissions including access management rights to the invoice section.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000000",
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "20000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000000",
+ "40000000-aaaa-bbbb-cccc-200000000000",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Invoice section owner"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleDefinitions"
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/billingRoleDefinitions/10000000-aaaa-bbbb-cccc-100000000001",
+ "name": "10000000-aaaa-bbbb-cccc-100000000001",
+ "properties": {
+ "description": "The Contributor role give the user all permissions except access management rights to the invoice section.",
+ "permissions": [
+ {
+ "actions": [
+ "10000000-aaaa-bbbb-cccc-200000000008",
+ "10000000-aaaa-bbbb-cccc-200000000001",
+ "10000000-aaaa-bbbb-cccc-200000000002",
+ "10000000-aaaa-bbbb-cccc-200000000003",
+ "10000000-aaaa-bbbb-cccc-200000000006",
+ "10000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000009",
+ "20000000-aaaa-bbbb-cccc-200000000002",
+ "30000000-aaaa-bbbb-cccc-200000000015",
+ "30000000-aaaa-bbbb-cccc-200000000004",
+ "30000000-aaaa-bbbb-cccc-200000000007",
+ "30000000-aaaa-bbbb-cccc-200000000001",
+ "30000000-aaaa-bbbb-cccc-200000000010",
+ "40000000-aaaa-bbbb-cccc-200000000007",
+ "40000000-aaaa-bbbb-cccc-200000000006",
+ "40000000-aaaa-bbbb-cccc-200000000008"
+ ],
+ "notActions": []
+ }
+ ],
+ "roleName": "Invoice section contributor"
+ },
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingRoleDefinitions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json
new file mode 100644
index 000000000000..e3bda0d87fb7
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListByBillingProfile.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "name": "22000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSection1",
+ "labels": {
+ "pcCode": "A123456",
+ "costCategory": "Support"
+ },
+ "systemId": "XX1X-XXAA-XXX-ZZZ"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000011",
+ "name": "22000000-0000-0000-0000-000000000011",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSection2",
+ "labels": {
+ "pcCode": "Z223456",
+ "costCategory": "Marketing"
+ },
+ "systemId": "YY1X-BBAA-XXX-ZZZ"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListWithCreateSubPermission.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListWithCreateSubPermission.json
new file mode 100644
index 000000000000..26aea84f6b4b
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoiceSectionsListWithCreateSubPermission.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "invoiceSection1",
+ "invoiceSectionSystemId": "9XXX-11XX-XX1-XXXX-XXX",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "billingProfileStatus": "Warned",
+ "billingProfileStatusReasonCode": "PastDue",
+ "billingProfileSpendingLimit": "On",
+ "billingProfileSystemId": "1XXX-11XX-XX1-XXXX-XXX",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoicesListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoicesListByBillingProfile.json
new file mode 100644
index 000000000000..f2dd0ffc9c42
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/InvoicesListByBillingProfile.json
@@ -0,0 +1,161 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "periodStartDate": "2018-01-01",
+ "periodEndDate": "2018-06-30"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/1383723",
+ "name": "1383723",
+ "type": "Microsoft.Billing/billingAccounts/invoices",
+ "properties": {
+ "dueDate": "2018-01-16T17:32:28Z",
+ "invoiceDate": "2018-01-01T17:32:28Z",
+ "status": "Due",
+ "amountDue": {
+ "currency": "USD",
+ "value": 8.53
+ },
+ "billedAmount": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "azurePrepaymentApplied": {
+ "currency": "USD",
+ "value": 25.46
+ },
+ "creditAmount": {
+ "currency": "USD",
+ "value": 1.00
+ },
+ "freeAzureCreditApplied": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "subTotal": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "taxAmount": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "totalAmount": {
+ "currency": "USD",
+ "value": 7.53
+ },
+ "invoicePeriodStartDate": "2018-01-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-01-15T17:32:28Z",
+ "isMonthlyInvoice": false,
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "purchaseOrderNumber": "123456",
+ "documents": [
+ {
+ "kind": "Invoice",
+ "url": "https://microsoft.com/invoice.pdf",
+ "source": "DRS"
+ },
+ {
+ "kind": "TaxReceipt",
+ "url": "https://microsoft.com/taxDoc.pdf",
+ "source": "DRS"
+ }
+ ],
+ "payments": [
+ {
+ "date": "2018-01-14T17:32:28Z",
+ "paymentType": "credited",
+ "amount": {
+ "currency": "USD",
+ "value": 1.00
+ },
+ "paymentMethodFamily": "CreditCard",
+ "paymentMethodType": "visa"
+ }
+ ]
+ }
+ },
+ {
+ "id": "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/1383724",
+ "name": "1383724",
+ "type": "Microsoft.Billing/billingAccounts/invoices",
+ "properties": {
+ "dueDate": "2018-03-01T17:32:28Z",
+ "invoiceDate": "2018-01-01T17:32:28Z",
+ "status": "Due",
+ "amountDue": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "billedAmount": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "azurePrepaymentApplied": {
+ "currency": "USD",
+ "value": 15.46
+ },
+ "creditAmount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "freeAzureCreditApplied": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "subTotal": {
+ "currency": "USD",
+ "value": 33.99
+ },
+ "taxAmount": {
+ "currency": "USD",
+ "value": 0.00
+ },
+ "totalAmount": {
+ "currency": "USD",
+ "value": 16.53
+ },
+ "invoicePeriodStartDate": "2018-02-01T17:32:28Z",
+ "invoicePeriodEndDate": "2018-02-28T17:32:28Z",
+ "isMonthlyInvoice": true,
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso Operations Billing",
+ "purchaseOrderNumber": "123456",
+ "documents": [
+ {
+ "kind": "Invoice",
+ "url": "https://microsoft.com/invoice.pdf",
+ "source": "DRS"
+ },
+ {
+ "kind": "TaxReceipt",
+ "url": "https://microsoft.com/taxDoc.pdf",
+ "source": "DRS"
+ }
+ ],
+ "payments": [
+ {
+ "date": "2018-01-14T17:32:28Z",
+ "paymentType": "credited",
+ "amount": {
+ "currency": "USD",
+ "value": 2.00
+ },
+ "paymentMethodFamily": "CreditCard",
+ "paymentMethodType": "visa"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/MoveBillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/MoveBillingSubscription.json
new file mode 100644
index 000000000000..91fbf144a862
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/MoveBillingSubscription.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "subscriptionId": "{subscriptionId}",
+ "parameters": {
+ "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "displayName": "My Subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 600
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationResults/moveBillingSubscription_11000000-0000-0000-0000-000000000000:22000000-0000-0000-0000-000000000000:{subscriptionId}:44000000-0000-0000-0000-000000000055:10000000-0000-0000-0000-000000000001?api-version=2020-05-01",
+ "Retry-After": "30"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/MoveProduct.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/MoveProduct.json
new file mode 100644
index 000000000000..78387257995c
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/MoveProduct.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "productName": "{productName}",
+ "parameters": {
+ "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}/products/{productName}",
+ "name": "{productName}",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Subscription",
+ "displayName": "Test Product",
+ "status": "Active",
+ "purchaseDate": "2018-05-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "billingFrequency": "Monthly",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{newBillingProfileName}/invoiceSections/{newInvoiceSectionName}",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/44000000-0000-0000-0000-000000000000?api-version=2020-05-01",
+ "Retry-After": "60",
+ "OData-EntityId": "44000000-0000-0000-0000-000000000000"
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Policy.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Policy.json
new file mode 100644
index 000000000000..f625de03e3d1
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Policy.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default",
+ "name": "default",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/policies",
+ "properties": {
+ "marketplacePurchases": "AllAllowed",
+ "reservationPurchases": "Allowed",
+ "viewCharges": "Allowed"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Product.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Product.json
new file mode 100644
index 000000000000..5a2061c7b298
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/Product.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "productName": "{productName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/{productName}",
+ "name": "{productName}",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Subscription",
+ "displayName": "AIP Dev",
+ "status": "Active",
+ "purchaseDate": "2018-05-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "billingFrequency": "Monthly",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingAccount.json
new file mode 100644
index 000000000000..764393d75c29
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingAccount.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/00000000-0000-0000-0000-000000000000",
+ "name": "00000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Reservation",
+ "displayName": "Eng Reservation (1a13s21awe)",
+ "status": "Active",
+ "purchaseDate": "2018-05-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "billingFrequency": "OneTime",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/10000000-0000-0000-0000-000000000001",
+ "name": "10000000-0000-0000-0000-000000000001",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Azure subscription",
+ "displayName": "Engineering Email",
+ "status": "Active",
+ "purchaseDate": "2018-04-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "billingFrequency": "Monthly",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingProfile.json
new file mode 100644
index 000000000000..67a72146df6b
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByBillingProfile.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/00000000-0000-0000-0000-000000000000",
+ "name": "00000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Reservation",
+ "displayName": "Eng Reservation (1a13s21awe)",
+ "status": "Active",
+ "purchaseDate": "2018-05-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "billingFrequency": "OneTime",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/10000000-0000-0000-0000-000000000001",
+ "name": "10000000-0000-0000-0000-000000000001",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Azure subscription",
+ "displayName": "Engineering Email",
+ "status": "Active",
+ "purchaseDate": "2018-04-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "billingFrequency": "Monthly",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByCustomer.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByCustomer.json
new file mode 100644
index 000000000000..ff18e2fdfe07
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByCustomer.json
@@ -0,0 +1,75 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "customerName": "{customerName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/00000000-0000-0000-0000-000000000000",
+ "name": "00000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Reservation",
+ "displayName": "Eng Reservation (1a13s21awe)",
+ "status": "Active",
+ "purchaseDate": "2018-05-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "billingFrequency": "OneTime",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
+ "customerDisplayName": "Customer 1",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "reseller": {
+ "resellerId": "2c917292-b7bc-42f2-99a2-e498b9087c06",
+ "description": "Reseller1"
+ }
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/10000000-0000-0000-0000-000000000001",
+ "name": "10000000-0000-0000-0000-000000000001",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Azure subscription",
+ "displayName": "Engineering Email",
+ "status": "Active",
+ "purchaseDate": "2018-04-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 500.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "billingFrequency": "Monthly",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
+ "customerDisplayName": "Customer 1",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByInvoiceSection.json
new file mode 100644
index 000000000000..d2a538072eea
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ProductsListByInvoiceSection.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/00000000-0000-0000-0000-000000000000",
+ "name": "00000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Reservation",
+ "displayName": "Eng Reservation (1a13s21awe)",
+ "status": "Active",
+ "purchaseDate": "2018-05-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "billingFrequency": "OneTime",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/10000000-0000-0000-0000-000000000001",
+ "name": "10000000-0000-0000-0000-000000000001",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "On",
+ "productTypeId": "A12345",
+ "productType": "Azure subscription",
+ "displayName": "Engineering Email",
+ "status": "Active",
+ "purchaseDate": "2018-04-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 500.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "billingFrequency": "Monthly",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "availabilityId": "AvailabilityId1",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutBillingProfile.json
new file mode 100644
index 000000000000..34cd9b1a3b3a
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutBillingProfile.json
@@ -0,0 +1,76 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "parameters": {
+ "properties": {
+ "displayName": "Finance",
+ "billTo": {
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address 1",
+ "city": "Redmond",
+ "postalCode": "12345",
+ "region": "WA",
+ "country": "US"
+ },
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001"
+ },
+ {
+ "skuId": "0002"
+ }
+ ],
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345"
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationResults/putBillingProfile_00000000-0000-0000-0000-000000000000?api-version=2020-05-01",
+ "Retry-After": "60"
+ }
+ },
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/billingProfileId1",
+ "name": "billingProfileId1",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles",
+ "properties": {
+ "displayName": "Finance",
+ "billTo": {
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address 1",
+ "city": "Redmond",
+ "postalCode": "12345",
+ "region": "WA",
+ "country": "US"
+ },
+ "currency": "USD",
+ "enabledAzurePlans": [
+ {
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ },
+ {
+ "skuId": "0002",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ ],
+ "invoiceDay": 5,
+ "invoiceEmailOptIn": true,
+ "poNumber": "ABC12345",
+ "hasReadAccess": true,
+ "systemId": "1XXX-11XX-XX1-XXXX-XXX",
+ "status": "Active",
+ "spendingLimit": "Off"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutInstruction.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutInstruction.json
new file mode 100644
index 000000000000..a140f1b32e61
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutInstruction.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "instructionName": "{instructionName}",
+ "parameters": {
+ "properties": {
+ "amount": 5000.0,
+ "startDate": "2019-12-30T21:26:47.997Z",
+ "endDate": "2020-12-30T21:26:47.997Z"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/instructions/{instructionName}",
+ "name": "{instructionName}",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/instructions",
+ "properties": {
+ "amount": 5000.0,
+ "startDate": "2019-12-30T21:26:47.997Z",
+ "endDate": "2020-12-30T21:26:47.997Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutInvoiceSection.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutInvoiceSection.json
new file mode 100644
index 000000000000..363ccd587a07
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/PutInvoiceSection.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "invoiceSectionName": "{invoiceSectionName}",
+ "parameters": {
+ "properties": {
+ "displayName": "invoiceSection1",
+ "labels": {
+ "pcCode": "A123456",
+ "costCategory": "Support"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationResults/putInvoiceSection_00000000-0000-0000-0000-000000000000?api-version=2020-05-01",
+ "Retry-After": "60"
+ }
+ },
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "name": "{invoiceSectionName}",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections",
+ "properties": {
+ "displayName": "invoiceSection1",
+ "labels": {
+ "pcCode": "A123456",
+ "costCategory": "Support"
+ },
+ "systemId": "XX1X-XXAA-XXX-ZZZ"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/TransactionsListByInvoice.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/TransactionsListByInvoice.json
new file mode 100644
index 000000000000..3cd3d055db94
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/TransactionsListByInvoice.json
@@ -0,0 +1,124 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "invoiceName": "{invoiceName}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/41000000-0000-0000-0000-000000000000",
+ "name": "41000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/transactions",
+ "properties": {
+ "kind": "all",
+ "date": "2018-05-01T00:00:00Z",
+ "invoice": "2344233",
+ "invoiceId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/2344233",
+ "productFamily": "Storage",
+ "productTypeId": "A12345",
+ "productType": "VM Instance",
+ "productDescription": "Standard D1, US West 3",
+ "transactionType": "Purchase",
+ "transactionAmount": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "azurePlan": "Microsoft Azure Plan for DevTest",
+ "azureCreditApplied": {
+ "currency": "USD",
+ "value": 2000.00
+ },
+ "billingCurrency": "USD",
+ "discount": 0.1,
+ "effectivePrice": {
+ "currency": "USD",
+ "value": 10.00
+ },
+ "exchangeRate": 1,
+ "marketPrice": {
+ "currency": "USD",
+ "value": 20.00
+ },
+ "pricingCurrency": "USD",
+ "quantity": 1,
+ "servicePeriodStartDate": "2018-05-01T00:00:00Z",
+ "servicePeriodEndDate": "2018-09-30T00:00:00Z",
+ "subTotal": {
+ "currency": "USD",
+ "value": 4500.00
+ },
+ "tax": {
+ "currency": "USD",
+ "value": 500.00
+ },
+ "unitOfMeasure": "1 Minute",
+ "units": 11.25,
+ "unitType": "1 Runtime Minute"
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/transactions/51000000-0000-0000-0000-000000000000",
+ "name": "51000000-0000-0000-0000-000000000000",
+ "type": "Microsoft.Billing/billingAccounts/transactions",
+ "properties": {
+ "kind": "all",
+ "date": "2018-04-01T00:00:00Z",
+ "invoice": "pending",
+ "productFamily": "Storage",
+ "productTypeId": "A12345",
+ "productType": "VM Instance",
+ "productDescription": "Standard Support",
+ "transactionType": "Cancel",
+ "transactionAmount": {
+ "currency": "USD",
+ "value": 50.00
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "azurePlan": "Microsoft Azure Plan for DevTest",
+ "azureCreditApplied": {
+ "currency": "USD",
+ "value": 20.00
+ },
+ "billingCurrency": "USD",
+ "discount": 0.1,
+ "effectivePrice": {
+ "currency": "USD",
+ "value": 10.00
+ },
+ "exchangeRate": 1,
+ "marketPrice": {
+ "currency": "USD",
+ "value": 20.00
+ },
+ "pricingCurrency": "USD",
+ "quantity": 1,
+ "servicePeriodStartDate": "2018-05-01T00:00:00Z",
+ "servicePeriodEndDate": "2018-09-30T00:00:00Z",
+ "subTotal": {
+ "currency": "USD",
+ "value": 45.00
+ },
+ "tax": {
+ "currency": "USD",
+ "value": 5.00
+ },
+ "unitOfMeasure": "1 Minute",
+ "units": 1.25,
+ "unitType": "1 Runtime Minute"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingAccount.json
new file mode 100644
index 000000000000..fa0dca4f26c5
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingAccount.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "parameters": {
+ "properties": {
+ "displayName": "Test Account",
+ "soldTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address 1",
+ "city": "Redmond",
+ "postalCode": "12345",
+ "region": "WA",
+ "country": "US"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Location": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationStatus/65e1f2bf-c31c-4b89-a599-25d9d4172af9?api-version=2020-05-01",
+ "Retry-After": "10"
+ }
+ },
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}",
+ "name": "{billingAccountName}",
+ "type": "Microsoft.Billing/billingAccounts",
+ "properties": {
+ "displayName": "Test Account",
+ "agreementType": "MicrosoftCustomerAgreement",
+ "accountStatus": "Active",
+ "accountType": "Enterprise",
+ "hasReadAccess": true,
+ "soldTo": {
+ "companyName": "Contoso",
+ "firstName": "Test",
+ "lastName": "User",
+ "addressLine1": "Test Address 1",
+ "city": "Redmond",
+ "postalCode": "12345",
+ "region": "WA",
+ "country": "US"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingProperty.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingProperty.json
new file mode 100644
index 000000000000..564cea55db9e
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingProperty.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "{subscriptionId}",
+ "parameters": {
+ "properties": {
+ "costCenter": "1010"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty/default",
+ "name": "default",
+ "type": "Microsoft.Billing/billingProperty",
+ "properties": {
+ "accountAdminNotificationEmailAddress": "test@contoso.com",
+ "billingTenantId": "90000000-0000-0000-0000-000000000011",
+ "billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000",
+ "billingAccountDisplayName": "My Account",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "billingProfileStatus": "Warned",
+ "billingProfileStatusReasonCode": "PastDue",
+ "billingProfileSpendingLimit": "On",
+ "costCenter": "1010",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoice section",
+ "isAccountAdmin": true,
+ "productId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000/products/44000000-0000-0000-0000-000000000000",
+ "productName": "Standard Dev",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan for DevTest"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingSubscription.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingSubscription.json
new file mode 100644
index 000000000000..9b4bc71b63f3
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateBillingSubscription.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "subscriptionId": "{subscriptionId}",
+ "parameters": {
+ "properties": {
+ "costCenter": "ABC1234"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/{subscriptionId}",
+ "name": "{subscriptionId}",
+ "type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
+ "properties": {
+ "displayName": "My Subscription",
+ "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3",
+ "subscriptionBillingStatus": "Active",
+ "lastMonthCharges": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "monthToDateCharges": {
+ "currency": "USD",
+ "value": 600
+ },
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing",
+ "costCenter": "ABC1234",
+ "skuId": "0001",
+ "skuDescription": "Microsoft Azure Plan"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateCustomerPolicy.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateCustomerPolicy.json
new file mode 100644
index 000000000000..c014d2859aaa
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateCustomerPolicy.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "customerName": "{customerName}",
+ "parameters": {
+ "properties": {
+ "viewCharges": "NotAllowed"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default",
+ "name": "default",
+ "type": "Microsoft.Billing/billingAccounts/customers/policies",
+ "properties": {
+ "viewCharges": "NotAllowed"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdatePolicy.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdatePolicy.json
new file mode 100644
index 000000000000..c85677e85d94
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdatePolicy.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "billingProfileName": "{billingProfileName}",
+ "parameters": {
+ "properties": {
+ "marketplacePurchases": "OnlyFreeAllowed",
+ "reservationPurchases": "NotAllowed",
+ "viewCharges": "Allowed"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default",
+ "name": "default",
+ "type": "Microsoft.Billing/billingAccounts/billingProfiles/policies",
+ "properties": {
+ "marketplacePurchases": "OnlyFreeAllowed",
+ "reservationPurchases": "NotAllowed",
+ "viewCharges": "Allowed"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateProduct.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateProduct.json
new file mode 100644
index 000000000000..5d1beb7bafc5
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/UpdateProduct.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "productName": "{productName}",
+ "parameters": {
+ "properties": {
+ "autoRenew": "Off"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/products/{productName}",
+ "name": "{productName}",
+ "type": "Microsoft.Billing/billingAccounts/products",
+ "properties": {
+ "autoRenew": "Off",
+ "productTypeId": "A12345",
+ "productType": "Subscription",
+ "displayName": "AIP Dev",
+ "status": "Active",
+ "purchaseDate": "2018-05-01T17:32:28Z",
+ "lastCharge": {
+ "currency": "USD",
+ "value": 5000.00
+ },
+ "lastChargeDate": "2018-06-15T17:32:28Z",
+ "billingFrequency": "Monthly",
+ "quantity": 4,
+ "skuId": "0001",
+ "skuDescription": "Enterprise Agreement Development",
+ "tenantId": "515a6d36-aaf8-4ca2-a5e8-c45deb0c5cce",
+ "availabilityId": "AvailabilityId1",
+ "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}",
+ "invoiceSectionDisplayName": "Contoso operations invoiceSection",
+ "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
+ "billingProfileDisplayName": "Contoso operations billing"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateProductMoveFailure.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateProductMoveFailure.json
new file mode 100644
index 000000000000..bd75b901d431
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateProductMoveFailure.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "productName": "{productName}",
+ "parameters": {
+ "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "isMoveEligible": false,
+ "errorDetails": {
+ "code": "ProductTypeNotSupported",
+ "message": "Product '{productName}' is not allowed to be transferred."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateProductMoveSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateProductMoveSuccess.json
new file mode 100644
index 000000000000..12669b188250
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateProductMoveSuccess.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "productName": "{productName}",
+ "parameters": {
+ "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "isMoveEligible": true
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateSubscriptionMoveFailure.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateSubscriptionMoveFailure.json
new file mode 100644
index 000000000000..baadfc3441da
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateSubscriptionMoveFailure.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "subscriptionId": "{subscriptionId}",
+ "parameters": {
+ "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "isMoveEligible": false,
+ "errorDetails": {
+ "code": "SubscriptionNotActive",
+ "message": "Invoice Sections can only be changed for active subscriptions."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateSubscriptionMoveSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateSubscriptionMoveSuccess.json
new file mode 100644
index 000000000000..7fe8119fa29f
--- /dev/null
+++ b/specification/billing/resource-manager/Microsoft.Billing/stable/2020-05-01/examples/ValidateSubscriptionMoveSuccess.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "billingAccountName": "{billingAccountName}",
+ "subscriptionId": "{subscriptionId}",
+ "parameters": {
+ "destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "isMoveEligible": true
+ }
+ }
+ }
+}
diff --git a/specification/billing/resource-manager/readme.go.md b/specification/billing/resource-manager/readme.go.md
index 73acea981762..f6bf507cb97e 100644
--- a/specification/billing/resource-manager/readme.go.md
+++ b/specification/billing/resource-manager/readme.go.md
@@ -13,12 +13,22 @@ go:
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
+ - tag: package-2020-05
- tag: package-2018-11-preview
- tag: package-2018-03-preview
- tag: package-2017-04-preview
- tag: package-2017-02-preview
```
+### Tag: package-2020-05 and go
+
+These settings apply only when `--tag=package-2020-05 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-05' && $(go)
+output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-05-01-preview/$(namespace)
+```
+
### Tag: package-2018-11-preview and go
These settings apply only when `--tag=package-2018-11-preview --go` is specified on the command line.
diff --git a/specification/billing/resource-manager/readme.md b/specification/billing/resource-manager/readme.md
index 8bb331f5cb59..31988a610128 100644
--- a/specification/billing/resource-manager/readme.md
+++ b/specification/billing/resource-manager/readme.md
@@ -26,7 +26,16 @@ These are the global settings for the Billing API.
``` yaml
openapi-type: arm
-tag: package-2019-10-preview
+tag: package-2020-05
+```
+
+### Tag: package-2020-05
+
+These settings apply only when `--tag=package-2020-05` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-05'
+input-file:
+- Microsoft.Billing/stable/2020-05-01/billing.json
```
### Tag: package-2019-10-preview
@@ -133,6 +142,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-billing
``` yaml $(java) && $(multiapi)
batch:
+ - tag: package-2020-05
- tag: package-2019-10-preview
- tag: package-2018-11-preview
- tag: package-2018-03-preview
@@ -140,6 +150,19 @@ batch:
- tag: package-2017-02-preview
```
+### Tag: package-2020-05 and java
+
+These settings apply only when `--tag=package-2020-05 --java` is specified on the command line.
+Please also specify `--azure-libraries-for-java=`.
+
+``` yaml $(tag) == 'package-2020-05' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.billing.v2020_05_01
+ output-folder: $(azure-libraries-for-java-folder)/sdk/billing/mgmt-v2020_05_01
+regenerate-manager: true
+generate-interface: true
+```
+
### Tag: package-2019-10-preview and java
These settings apply only when `--tag=package-2019-10-preview --java` is specified on the command line.
@@ -219,6 +242,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.Billing/stable/2020-05-01/billing.json
- $(this-folder)/Microsoft.Billing/preview/2019-10-01-preview/billing.json
- $(this-folder)/Microsoft.Billing/preview/2018-11-01-preview/billing.json
- $(this-folder)/Microsoft.Billing/preview/2018-03-01-preview/billing.json
diff --git a/specification/billing/resource-manager/readme.ruby.md b/specification/billing/resource-manager/readme.ruby.md
index 1aa6339d90ab..fcb9843607a5 100644
--- a/specification/billing/resource-manager/readme.ruby.md
+++ b/specification/billing/resource-manager/readme.ruby.md
@@ -16,6 +16,16 @@ batch:
- tag: package-2017-02-preview
```
+### Tag: package-2020-05 and ruby
+
+These settings apply only when `--tag=package-2020-05 --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2020-05' && $(ruby)
+namespace: "Azure::Billing::Mgmt::V2020_05"
+output-folder: $(ruby-sdks-folder)/management/azure_mgmt_billing/lib
+```
+
### Tag: package-2017-04-preview and ruby
These settings apply only when `--tag=package-2017-04-preview --ruby` is specified on the command line.
diff --git a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Create.json b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Create.json
index dc0b961b6ca7..9fcbc4debcd5 100644
--- a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Create.json
+++ b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Create.json
@@ -11,9 +11,9 @@
"capacity": 2
},
"protocol": "Quorum",
- "password": "$@123_34#&",
+ "password": "1234abcdEFG1",
"consortium": "ContoseConsortium",
- "consortiumManagementAccountPassword": "$@123_34#&"
+ "consortiumManagementAccountPassword": "1234abcdEFG1"
}
}
},
diff --git a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Update.json b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Update.json
index 0e5b08b2ba45..14f07b1e8bb6 100644
--- a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Update.json
+++ b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Update.json
@@ -6,8 +6,8 @@
"api-version": "2018-06-01-preview",
"blockchainMember": {
"properties": {
- "password": "$@123_34#&",
- "consortiumManagementAccountPassword": "$@123_34#&",
+ "password": "1234abcdEFG1",
+ "consortiumManagementAccountPassword": "1234abcdEFG1",
"firewallRules": null
},
"tags": null
diff --git a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Create.json b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Create.json
index c67f8c60f4f6..458faaa40e4d 100644
--- a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Create.json
+++ b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Create.json
@@ -8,7 +8,7 @@
"transactionNode": {
"location": "southeastasia",
"properties": {
- "password": "$@123_34#&"
+ "password": "1234abcdEFG1"
}
}
},
diff --git a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Update.json b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Update.json
index 4db7bf67ace2..4c336035493c 100644
--- a/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Update.json
+++ b/specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Update.json
@@ -7,7 +7,7 @@
"api-version": "2018-06-01-preview",
"transactionNode": {
"properties": {
- "password": "$@123_34#&"
+ "password": "1234abcdEFG1"
}
}
},
diff --git a/specification/blockchain/resource-manager/readme.az.md b/specification/blockchain/resource-manager/readme.az.md
new file mode 100644
index 000000000000..a299cae2b674
--- /dev/null
+++ b/specification/blockchain/resource-manager/readme.az.md
@@ -0,0 +1,12 @@
+## AZ
+
+These settings apply only when `--az` is specified on the command line.
+
+``` yaml $(az)
+az:
+ extensions: blockchain
+ namespace: azure.mgmt.blockchain
+ package-name: azure-mgmt-blockchain
+az-output-folder: $(azure-cli-extension-folder)/src/blockchain
+python-sdk-output-folder: "$(az-output-folder)/azext_blockchain/vendored_sdks/blockchain"
+```
diff --git a/specification/blockchain/resource-manager/readme.cli.md b/specification/blockchain/resource-manager/readme.cli.md
index 643f6a056659..3b953b2334e9 100644
--- a/specification/blockchain/resource-manager/readme.cli.md
+++ b/specification/blockchain/resource-manager/readme.cli.md
@@ -1,8 +1,6 @@
-
-# Dns
-This directory contains the Cli common model for the Blockchain service.
+## CLI
-> Metadata
+These settings apply only when `--cli` is specified on the command line.
``` yaml
# Migrated from Powershell's readme
@@ -29,18 +27,4 @@ cli:
operationGroup: 'locations'
operation: 'listConsortiums'
name: 'list'
- - select: 'operationGroup'
- where:
- operationGroup: 'blockchainMemberOperationResults'
- hidden: true
- - select: 'operation'
- where:
- operationGroup: 'blockchainMembers'
- operation: '(create|update)'
- hidden: true
- - select: 'operation'
- where:
- operationGroup: 'transactionNodes'
- operation: '(create|update)'
- hidden: true
```
\ No newline at end of file
diff --git a/specification/blockchain/resource-manager/readme.md b/specification/blockchain/resource-manager/readme.md
index d0aa094d899f..806fc6ac3e2d 100644
--- a/specification/blockchain/resource-manager/readme.md
+++ b/specification/blockchain/resource-manager/readme.md
@@ -58,6 +58,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_blockchain']
+ - repo: azure-cli-extensions
```
## C#
diff --git a/specification/blockchain/resource-manager/readme.python.md b/specification/blockchain/resource-manager/readme.python.md
index 5e36652a4068..50680aec44a9 100644
--- a/specification/blockchain/resource-manager/readme.python.md
+++ b/specification/blockchain/resource-manager/readme.python.md
@@ -5,7 +5,7 @@ Please also specify `--python-sdks-folder=.azureedge.net.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/EndpointProperties"
+ }
+ }
+ },
+ "EndpointProperties": {
+ "description": "The JSON object that contains the properties required to create an endpoint.",
+ "required": [
+ "origins"
+ ],
+ "allOf": [
+ {
+ "$ref": "#/definitions/EndpointPropertiesUpdateParameters"
+ }
+ ],
+ "properties": {
+ "hostName": {
+ "description": "The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net",
+ "type": "string",
+ "readOnly": true
+ },
+ "origins": {
+ "description": "The source of the content being delivered via CDN.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeepCreatedOrigin"
+ }
+ },
+ "originGroups": {
+ "description": "The origin groups comprising of origins that are used for load balancing the traffic based on availability.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeepCreatedOriginGroup"
+ }
+ },
+ "resourceState": {
+ "description": "Resource status of the endpoint.",
+ "readOnly": true,
+ "enum": [
+ "Creating",
+ "Deleting",
+ "Running",
+ "Starting",
+ "Stopped",
+ "Stopping"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "EndpointResourceState",
+ "modelAsString": true
+ }
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "description": "Provisioning status of the endpoint.",
+ "type": "string"
+ }
+ }
+ },
+ "EndpointListResult": {
+ "description": "Result of the request to list endpoints. It contains a list of endpoint objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Endpoint"
+ },
+ "description": "List of CDN endpoints within a profile"
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of endpoint objects if there is any."
+ }
+ }
+ },
+ "EndpointUpdateParameters": {
+ "type": "object",
+ "description": "Properties required to create or update an endpoint.",
+ "properties": {
+ "tags": {
+ "description": "Endpoint tags.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/EndpointPropertiesUpdateParameters"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "EndpointPropertiesUpdateParameters": {
+ "description": "The JSON object containing endpoint update parameters.",
+ "properties": {
+ "originPath": {
+ "description": "A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.",
+ "type": "string"
+ },
+ "contentTypesToCompress": {
+ "description": "List of content types on which compression applies. The value should be a valid MIME type.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "originHostHeader": {
+ "description": "The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.",
+ "type": "string"
+ },
+ "isCompressionEnabled": {
+ "description": "Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB.",
+ "type": "boolean"
+ },
+ "isHttpAllowed": {
+ "description": "Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.",
+ "type": "boolean"
+ },
+ "isHttpsAllowed": {
+ "description": "Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.",
+ "type": "boolean"
+ },
+ "queryStringCachingBehavior": {
+ "description": "Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL.",
+ "$ref": "#/definitions/QueryStringCachingBehavior"
+ },
+ "optimizationType": {
+ "description": "Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization.",
+ "$ref": "#/definitions/OptimizationType"
+ },
+ "probePath": {
+ "description": "Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin.",
+ "type": "string"
+ },
+ "geoFilters": {
+ "description": "List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/GeoFilter"
+ }
+ },
+ "defaultOriginGroup": {
+ "description": "A reference to the origin group.",
+ "type": "object",
+ "$ref": "#/definitions/ResourceReference"
+ },
+ "urlSigningKeys": {
+ "description": "List of keys used to validate the signed URL hashes.",
+ "type": "array",
+ "$ref": "#/definitions/UrlSigningKey"
+ },
+ "deliveryPolicy": {
+ "description": "A policy that specifies the delivery rules to be used for an endpoint.",
+ "type": "object",
+ "required": [
+ "rules"
+ ],
+ "properties": {
+ "description": {
+ "description": "User-friendly description of the policy.",
+ "type": "string"
+ },
+ "rules": {
+ "description": "A list of the delivery rules.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeliveryRule"
+ }
+ }
+ }
+ },
+ "webApplicationFirewallPolicyLink": {
+ "description": "Defines the Web Application Firewall policy for the endpoint (if applicable)",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ }
+ }
+ }
+ },
+ "DeliveryRule": {
+ "description": "A rule that specifies a set of actions and conditions",
+ "type": "object",
+ "required": [
+ "order",
+ "actions"
+ ],
+ "properties": {
+ "name": {
+ "description": "Name of the rule",
+ "type": "string"
+ },
+ "order": {
+ "description": "The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.",
+ "type": "integer"
+ },
+ "conditions": {
+ "description": "A list of conditions that must be matched for the actions to be executed",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ },
+ "actions": {
+ "description": "A list of actions that are executed when all the conditions of a rule are satisfied.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeliveryRuleAction"
+ }
+ }
+ }
+ },
+ "DeliveryRuleCondition": {
+ "description": "A condition for the delivery rule.",
+ "discriminator": "name",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "description": "The name of the condition for the delivery rule.",
+ "type": "string",
+ "enum": [
+ "RemoteAddress",
+ "RequestMethod",
+ "QueryString",
+ "PostArgs",
+ "RequestUri",
+ "RequestHeader",
+ "RequestBody",
+ "RequestScheme",
+ "UrlPath",
+ "UrlFileExtension",
+ "UrlFileName",
+ "HttpVersion",
+ "Cookies",
+ "IsDevice"
+ ],
+ "x-ms-enum": {
+ "name": "MatchVariable",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "DeliveryRuleRemoteAddressCondition": {
+ "description": "Defines the RemoteAddress condition for the delivery rule.",
+ "x-ms-discriminator-value": "RemoteAddress",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/RemoteAddressMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleRequestMethodCondition": {
+ "description": "Defines the RequestMethod condition for the delivery rule.",
+ "x-ms-discriminator-value": "RequestMethod",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/RequestMethodMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleQueryStringCondition": {
+ "description": "Defines the QueryString condition for the delivery rule.",
+ "x-ms-discriminator-value": "QueryString",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/QueryStringMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRulePostArgsCondition": {
+ "description": "Defines the PostArgs condition for the delivery rule.",
+ "x-ms-discriminator-value": "PostArgs",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/PostArgsMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleRequestUriCondition": {
+ "description": "Defines the RequestUri condition for the delivery rule.",
+ "x-ms-discriminator-value": "RequestUri",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/RequestUriMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleRequestHeaderCondition": {
+ "description": "Defines the RequestHeader condition for the delivery rule.",
+ "x-ms-discriminator-value": "RequestHeader",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/RequestHeaderMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleRequestBodyCondition": {
+ "description": "Defines the RequestBody condition for the delivery rule.",
+ "x-ms-discriminator-value": "RequestBody",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/RequestBodyMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleRequestSchemeCondition": {
+ "description": "Defines the RequestScheme condition for the delivery rule.",
+ "x-ms-discriminator-value": "RequestScheme",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/RequestSchemeMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleUrlPathCondition": {
+ "description": "Defines the UrlPath condition for the delivery rule.",
+ "x-ms-discriminator-value": "UrlPath",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/UrlPathMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleUrlFileExtensionCondition": {
+ "description": "Defines the UrlFileExtension condition for the delivery rule.",
+ "x-ms-discriminator-value": "UrlFileExtension",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/UrlFileExtensionMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleUrlFileNameCondition": {
+ "description": "Defines the UrlFileName condition for the delivery rule.",
+ "x-ms-discriminator-value": "UrlFileName",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/UrlFileNameMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleHttpVersionCondition": {
+ "description": "Defines the HttpVersion condition for the delivery rule.",
+ "x-ms-discriminator-value": "HttpVersion",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/HttpVersionMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleCookiesCondition": {
+ "description": "Defines the Cookies condition for the delivery rule.",
+ "x-ms-discriminator-value": "Cookies",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/CookiesMatchConditionParameters"
+ }
+ }
+ },
+ "DeliveryRuleIsDeviceCondition": {
+ "description": "Defines the IsDevice condition for the delivery rule.",
+ "x-ms-discriminator-value": "IsDevice",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleCondition"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the condition.",
+ "$ref": "#/definitions/IsDeviceMatchConditionParameters"
+ }
+ }
+ },
+ "RemoteAddressMatchConditionParameters": {
+ "description": "Defines the parameters for RemoteAddress match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "IPMatch",
+ "GeoMatch"
+ ],
+ "x-ms-enum": {
+ "name": "RemoteAddressOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "RequestMethodMatchConditionParameters": {
+ "description": "Defines the parameters for RequestMethod match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Equal"
+ ],
+ "x-ms-enum": {
+ "name": "RequestMethodOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "GET",
+ "HEAD",
+ "POST",
+ "PUT",
+ "DELETE",
+ "OPTIONS",
+ "TRACE"
+ ]
+ }
+ }
+ }
+ },
+ "QueryStringMatchConditionParameters": {
+ "description": "Defines the parameters for QueryString match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "Equal",
+ "Contains",
+ "BeginsWith",
+ "EndsWith",
+ "LessThan",
+ "LessThanOrEqual",
+ "GreaterThan",
+ "GreaterThanOrEqual"
+ ],
+ "x-ms-enum": {
+ "name": "QueryStringOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "PostArgsMatchConditionParameters": {
+ "description": "Defines the parameters for PostArgs match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "selector",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters"
+ ]
+ },
+ "selector": {
+ "description": "Name of PostArg to be matched",
+ "type": "string"
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "Equal",
+ "Contains",
+ "BeginsWith",
+ "EndsWith",
+ "LessThan",
+ "LessThanOrEqual",
+ "GreaterThan",
+ "GreaterThanOrEqual"
+ ],
+ "x-ms-enum": {
+ "name": "PostArgsOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "RequestUriMatchConditionParameters": {
+ "description": "Defines the parameters for RequestUri match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "Equal",
+ "Contains",
+ "BeginsWith",
+ "EndsWith",
+ "LessThan",
+ "LessThanOrEqual",
+ "GreaterThan",
+ "GreaterThanOrEqual"
+ ],
+ "x-ms-enum": {
+ "name": "RequestUriOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "RequestHeaderMatchConditionParameters": {
+ "description": "Defines the parameters for RequestHeader match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "selector",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters"
+ ]
+ },
+ "selector": {
+ "description": "Name of Header to be matched",
+ "type": "string"
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "Equal",
+ "Contains",
+ "BeginsWith",
+ "EndsWith",
+ "LessThan",
+ "LessThanOrEqual",
+ "GreaterThan",
+ "GreaterThanOrEqual"
+ ],
+ "x-ms-enum": {
+ "name": "RequestHeaderOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "RequestBodyMatchConditionParameters": {
+ "description": "Defines the parameters for RequestBody match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "Equal",
+ "Contains",
+ "BeginsWith",
+ "EndsWith",
+ "LessThan",
+ "LessThanOrEqual",
+ "GreaterThan",
+ "GreaterThanOrEqual"
+ ],
+ "x-ms-enum": {
+ "name": "RequestBodyOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "RequestSchemeMatchConditionParameters": {
+ "description": "Defines the parameters for RequestScheme match conditions ",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Equal"
+ ]
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "HTTP",
+ "HTTPS"
+ ]
+ }
+ }
+ }
+ },
+ "UrlPathMatchConditionParameters": {
+ "description": "Defines the parameters for UrlPath match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "Equal",
+ "Contains",
+ "BeginsWith",
+ "EndsWith",
+ "LessThan",
+ "LessThanOrEqual",
+ "GreaterThan",
+ "GreaterThanOrEqual",
+ "Wildcard"
+ ],
+ "x-ms-enum": {
+ "name": "UrlPathOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "UrlFileExtensionMatchConditionParameters": {
+ "description": "Defines the parameters for UrlFileExtension match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "Equal",
+ "Contains",
+ "BeginsWith",
+ "EndsWith",
+ "LessThan",
+ "LessThanOrEqual",
+ "GreaterThan",
+ "GreaterThanOrEqual"
+ ],
+ "x-ms-enum": {
+ "name": "UrlFileExtensionOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "UrlFileNameMatchConditionParameters": {
+ "description": "Defines the parameters for UrlFilename match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "Equal",
+ "Contains",
+ "BeginsWith",
+ "EndsWith",
+ "LessThan",
+ "LessThanOrEqual",
+ "GreaterThan",
+ "GreaterThanOrEqual"
+ ],
+ "x-ms-enum": {
+ "name": "UrlFileNameOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "HttpVersionMatchConditionParameters": {
+ "description": "Defines the parameters for HttpVersion match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Equal"
+ ],
+ "x-ms-enum": {
+ "name": "HttpVersionOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "CookiesMatchConditionParameters": {
+ "description": "Defines the parameters for Cookies match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "selector",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters"
+ ]
+ },
+ "selector": {
+ "description": "Name of Cookies to be matched",
+ "type": "string"
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "Equal",
+ "Contains",
+ "BeginsWith",
+ "EndsWith",
+ "LessThan",
+ "LessThanOrEqual",
+ "GreaterThan",
+ "GreaterThanOrEqual"
+ ],
+ "x-ms-enum": {
+ "name": "CookiesOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "IsDeviceMatchConditionParameters": {
+ "description": "Defines the parameters for IsDevice match conditions",
+ "required": [
+ "operator",
+ "matchValues",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters"
+ ]
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Equal"
+ ],
+ "x-ms-enum": {
+ "name": "IsDeviceOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "matchValues": {
+ "description": "The match value for the condition of the delivery rule",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "Mobile",
+ "Desktop"
+ ]
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "DeliveryRuleAction": {
+ "description": "An action for the delivery rule.",
+ "discriminator": "name",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "description": "The name of the action for the delivery rule.",
+ "type": "string",
+ "enum": [
+ "CacheExpiration",
+ "CacheKeyQueryString",
+ "ModifyRequestHeader",
+ "ModifyResponseHeader",
+ "UrlRedirect",
+ "UrlRewrite",
+ "UrlSigning"
+ ],
+ "x-ms-enum": {
+ "name": "DeliveryRuleAction",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "UrlRedirectAction": {
+ "description": "Defines the url redirect action for the delivery rule.",
+ "x-ms-discriminator-value": "UrlRedirect",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleAction"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the action.",
+ "$ref": "#/definitions/UrlRedirectActionParameters"
+ }
+ }
+ },
+ "UrlRedirectActionParameters": {
+ "description": "Defines the parameters for the url redirect action.",
+ "required": [
+ "redirectType",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters"
+ ]
+ },
+ "redirectType": {
+ "description": "The redirect type the rule will use when redirecting traffic.",
+ "type": "string",
+ "enum": [
+ "Moved",
+ "Found",
+ "TemporaryRedirect",
+ "PermanentRedirect"
+ ],
+ "x-ms-enum": {
+ "name": "RedirectType",
+ "modelAsString": true
+ }
+ },
+ "destinationProtocol": {
+ "description": "Protocol to use for the redirect. The default value is MatchRequest",
+ "type": "string",
+ "enum": [
+ "MatchRequest",
+ "Http",
+ "Https"
+ ],
+ "x-ms-enum": {
+ "name": "DestinationProtocol",
+ "modelAsString": true
+ }
+ },
+ "customPath": {
+ "description": "The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.",
+ "type": "string"
+ },
+ "customHostname": {
+ "description": "Host to redirect. Leave empty to use the incoming host as the destination host.",
+ "type": "string"
+ },
+ "customQueryString": {
+ "description": "The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. ? and & will be added automatically so do not include them.",
+ "type": "string"
+ },
+ "customFragment": {
+ "type": "string",
+ "description": "Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #."
+ }
+ }
+ },
+ "UrlSigningActionParameters": {
+ "description": "Defines the parameters for the Url Signing action.",
+ "required": [
+ "keyId"
+ ],
+ "properties": {
+ "keyId": {
+ "description": "Id reference of the key to be used to verify the hash and should be defined in UrlSigningKeys",
+ "type": "string"
+ },
+ "algorithm": {
+ "description": "Algorithm to use for URL signing",
+ "type": "string",
+ "enum": [
+ "SHA256"
+ ]
+ },
+ "parameterNameOverride": {
+ "description": "Defines which query string parameters in the url to be considered for expires, key id etc. ",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/UrlSigningParamIdentifier"
+ }
+ },
+ "ipSubnets": {
+ "description": "Match values to match against. Supports CIDR ranges (both IPv4 and IPv6).",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "UrlSigningParamIdentifier": {
+ "description": "Defines how to identify a parameter for a specific purpose e.g. expires",
+ "required": [
+ "paramIndicator",
+ "paramName"
+ ],
+ "properties": {
+ "paramIndicator": {
+ "description": "Indicates the purpose of the parameter",
+ "type": "string",
+ "enum": [
+ "expires",
+ "keyId",
+ "signature"
+ ]
+ },
+ "paramName": {
+ "description": "Parameter name",
+ "type": "string"
+ }
+ }
+ },
+ "UrlRewriteAction": {
+ "description": "Defines the url rewrite action for the delivery rule.",
+ "x-ms-discriminator-value": "UrlRewrite",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleAction"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the action.",
+ "$ref": "#/definitions/UrlRewriteActionParameters"
+ }
+ }
+ },
+ "UrlRewriteActionParameters": {
+ "description": "Defines the parameters for the url rewrite action.",
+ "required": [
+ "sourcePattern",
+ "destination",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"
+ ]
+ },
+ "sourcePattern": {
+ "description": "define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.",
+ "type": "string"
+ },
+ "destination": {
+ "description": "Define the relative URL to which the above requests will be rewritten by.",
+ "type": "string"
+ },
+ "preserveUnmatchedPath": {
+ "description": "Whether to preserve unmatched path. Default value is true.",
+ "type": "boolean"
+ }
+ }
+ },
+ "DeliveryRuleRequestHeaderAction": {
+ "description": "Defines the request header action for the delivery rule.",
+ "x-ms-discriminator-value": "ModifyRequestHeader",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleAction"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the action.",
+ "$ref": "#/definitions/HeaderActionParameters"
+ }
+ }
+ },
+ "DeliveryRuleResponseHeaderAction": {
+ "description": "Defines the response header action for the delivery rule.",
+ "x-ms-discriminator-value": "ModifyResponseHeader",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleAction"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the action.",
+ "$ref": "#/definitions/HeaderActionParameters"
+ }
+ }
+ },
+ "HeaderActionParameters": {
+ "description": "Defines the parameters for the request header action.",
+ "required": [
+ "headerAction",
+ "headerName",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters"
+ ]
+ },
+ "headerAction": {
+ "description": "Action to perform",
+ "type": "string",
+ "enum": [
+ "Append",
+ "Overwrite",
+ "Delete"
+ ],
+ "x-ms-enum": {
+ "name": "HeaderAction",
+ "modelAsString": true
+ }
+ },
+ "headerName": {
+ "description": "Name of the header to modify",
+ "type": "string"
+ },
+ "value": {
+ "description": "Value for the specified action",
+ "type": "string"
+ }
+ }
+ },
+ "DeliveryRuleCacheExpirationAction": {
+ "description": "Defines the cache expiration action for the delivery rule.",
+ "x-ms-discriminator-value": "CacheExpiration",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleAction"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the action.",
+ "$ref": "#/definitions/CacheExpirationActionParameters"
+ }
+ }
+ },
+ "CacheExpirationActionParameters": {
+ "description": "Defines the parameters for the cache expiration action.",
+ "required": [
+ "cacheBehavior",
+ "cacheType",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"
+ ]
+ },
+ "cacheBehavior": {
+ "description": "Caching behavior for the requests",
+ "type": "string",
+ "enum": [
+ "BypassCache",
+ "Override",
+ "SetIfMissing"
+ ],
+ "x-ms-enum": {
+ "name": "cacheBehavior",
+ "modelAsString": true
+ }
+ },
+ "cacheType": {
+ "description": "The level at which the content needs to be cached.",
+ "type": "string",
+ "enum": [
+ "All"
+ ],
+ "x-ms-enum": {
+ "name": "CacheType",
+ "modelAsString": true
+ }
+ },
+ "cacheDuration": {
+ "description": "The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss",
+ "type": "string",
+ "x-nullable": true
+ }
+ }
+ },
+ "DeliveryRuleCacheKeyQueryStringAction": {
+ "description": "Defines the cache-key query string action for the delivery rule.",
+ "x-ms-discriminator-value": "CacheKeyQueryString",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeliveryRuleAction"
+ }
+ ],
+ "required": [
+ "parameters"
+ ],
+ "properties": {
+ "parameters": {
+ "description": "Defines the parameters for the action.",
+ "$ref": "#/definitions/CacheKeyQueryStringActionParameters"
+ }
+ }
+ },
+ "CacheKeyQueryStringActionParameters": {
+ "description": "Defines the parameters for the cache-key query string action.",
+ "required": [
+ "queryStringBehavior",
+ "@odata.type"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"
+ ]
+ },
+ "queryStringBehavior": {
+ "description": "Caching behavior for the requests",
+ "type": "string",
+ "enum": [
+ "Include",
+ "IncludeAll",
+ "Exclude",
+ "ExcludeAll"
+ ],
+ "x-ms-enum": {
+ "name": "queryStringBehavior",
+ "modelAsString": true
+ }
+ },
+ "queryParameters": {
+ "description": "query parameters to include or exclude (comma separated).",
+ "type": "string",
+ "x-nullable": true
+ }
+ }
+ },
+ "transform": {
+ "description": "Describes what transforms are applied before matching",
+ "type": "string",
+ "enum": [
+ "Lowercase",
+ "Uppercase"
+ ],
+ "x-ms-enum": {
+ "name": "transform",
+ "modelAsString": true
+ }
+ },
+ "DeepCreatedOrigin": {
+ "description": "The main origin of CDN content which is added when creating a CDN endpoint.",
+ "type": "object",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "description": "Origin name which must be unique within the endpoint. ",
+ "type": "string"
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DeepCreatedOriginProperties"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "DeepCreatedOriginProperties": {
+ "description": "Properties of the origin created on the CDN endpoint.",
+ "type": "object",
+ "required": [
+ "hostName"
+ ],
+ "properties": {
+ "hostName": {
+ "description": "The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint.",
+ "type": "string"
+ },
+ "httpPort": {
+ "description": "The value of the HTTP port. Must be between 1 and 65535.",
+ "type": "integer",
+ "maximum": 65535,
+ "exclusiveMaximum": false,
+ "minimum": 1,
+ "exclusiveMinimum": false
+ },
+ "httpsPort": {
+ "description": "The value of the HTTPS port. Must be between 1 and 65535.",
+ "type": "integer",
+ "maximum": 65535,
+ "exclusiveMaximum": false,
+ "minimum": 1,
+ "exclusiveMinimum": false
+ },
+ "originHostHeader": {
+ "description": "The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.",
+ "type": "string"
+ },
+ "priority": {
+ "description": "Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5.",
+ "type": "integer",
+ "maximum": 5,
+ "minimum": 1
+ },
+ "weight": {
+ "description": "Weight of the origin in given origin group for load balancing. Must be between 1 and 1000",
+ "type": "integer",
+ "maximum": 1000,
+ "minimum": 1
+ },
+ "enabled": {
+ "description": "Origin is enabled for load balancing or not. By default, origin is always enabled.",
+ "type": "boolean"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "DeepCreatedOriginGroup": {
+ "description": "The origin group for CDN content which is added when creating a CDN endpoint. Traffic is sent to the origins within the origin group based on origin health.",
+ "type": "object",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "description": "Origin group name which must be unique within the endpoint.",
+ "type": "string"
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DeepCreatedOriginGroupProperties"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "DeepCreatedOriginGroupProperties": {
+ "description": "Properties of the origin group created on the CDN endpoint.",
+ "type": "object",
+ "required": [
+ "origins"
+ ],
+ "properties": {
+ "healthProbeSettings": {
+ "description": "Health probe settings to the origin that is used to determine the health of the origin.",
+ "type": "object",
+ "$ref": "#/definitions/HealthProbeParameters"
+ },
+ "origins": {
+ "description": "The source of the content being delivered via CDN within given origin group.",
+ "type": "array",
+ "items": {
+ "description": "A reference to a origin.",
+ "$ref": "#/definitions/ResourceReference"
+ }
+ },
+ "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": {
+ "description": "Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.",
+ "type": "integer",
+ "maximum": 50,
+ "minimum": 0
+ },
+ "responseBasedOriginErrorDetectionSettings": {
+ "description": "The JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported.",
+ "type": "object",
+ "$ref": "#/definitions/ResponseBasedOriginErrorDetectionParameters"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "ResourceReference": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ },
+ "description": "Reference to another resource.",
+ "x-ms-azure-resource": true
+ },
+ "GeoFilter": {
+ "description": "Rules defining user's geo access within a CDN endpoint.",
+ "type": "object",
+ "required": [
+ "relativePath",
+ "action",
+ "countryCodes"
+ ],
+ "properties": {
+ "relativePath": {
+ "description": "Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.)",
+ "type": "string"
+ },
+ "action": {
+ "description": "Action of the geo filter, i.e. allow or block access.",
+ "enum": [
+ "Block",
+ "Allow"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "GeoFilterActions",
+ "modelAsString": false
+ }
+ },
+ "countryCodes": {
+ "description": "Two letter country codes defining user country access in a geo filter, e.g. AU, MX, US.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "PurgeParameters": {
+ "type": "object",
+ "description": "Parameters required for content purge.",
+ "required": [
+ "contentPaths"
+ ],
+ "properties": {
+ "contentPaths": {
+ "description": "The path to the content to be purged. Can describe a file path or a wild card directory.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "UrlSigningKey": {
+ "description": "Url signing key",
+ "required": [
+ "keyId",
+ "keySourceParameters"
+ ],
+ "properties": {
+ "keyId": {
+ "description": "Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.",
+ "type": "string"
+ },
+ "keySourceParameters": {
+ "description": "Defines the parameters for using customer key vault for Url Signing Key.",
+ "$ref": "#/definitions/KeyVaultSigningKeyParameters"
+ }
+ }
+ },
+ "KeyVaultSigningKeyParameters": {
+ "description": "Describes the parameters for using a user's KeyVault for URL Signing Key.",
+ "required": [
+ "@odata.type",
+ "subscriptionId",
+ "resourceGroupName",
+ "vaultName",
+ "secretName",
+ "secretVersion"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.KeyVaultSigningKeyParameters"
+ ]
+ },
+ "subscriptionId": {
+ "description": "Subscription Id of the user's Key Vault containing the secret",
+ "type": "string"
+ },
+ "resourceGroupName": {
+ "description": "Resource group of the user's Key Vault containing the secret",
+ "type": "string"
+ },
+ "vaultName": {
+ "description": "The name of the user's Key Vault containing the secret",
+ "type": "string"
+ },
+ "secretName": {
+ "description": "The name of secret in Key Vault.",
+ "type": "string"
+ },
+ "secretVersion": {
+ "description": "The version(GUID) of secret in Key Vault.",
+ "type": "string"
+ }
+ }
+ },
+ "LoadParameters": {
+ "type": "object",
+ "description": "Parameters required for content load.",
+ "required": [
+ "contentPaths"
+ ],
+ "properties": {
+ "contentPaths": {
+ "description": "The path to the content to be loaded. Path should be a relative file URL of the origin.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "Origin": {
+ "description": "CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/OriginProperties"
+ }
+ }
+ },
+ "OriginProperties": {
+ "description": "The JSON object that contains the properties of the origin.",
+ "required": [
+ "hostName"
+ ],
+ "allOf": [
+ {
+ "$ref": "#/definitions/OriginUpdatePropertiesParameters"
+ }
+ ],
+ "properties": {
+ "resourceState": {
+ "description": "Resource status of the origin.",
+ "readOnly": true,
+ "enum": [
+ "Creating",
+ "Active",
+ "Deleting"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "OriginResourceState",
+ "modelAsString": true
+ }
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "description": "Provisioning status of the origin.",
+ "type": "string"
+ },
+ "privateEndpointStatus": {
+ "description": "The approval status for the connection to the Private Link",
+ "type": "string",
+ "readOnly": true,
+ "enum": [
+ "Pending",
+ "Approved",
+ "Rejected",
+ "Disconnected",
+ "Timeout"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateEndpointStatus",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "OriginUpdateParameters": {
+ "type": "object",
+ "description": "Origin properties needed for origin update.",
+ "properties": {
+ "tags": {
+ "description": "Origin tags.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/OriginUpdatePropertiesParameters"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "OriginUpdatePropertiesParameters": {
+ "description": "The JSON object that contains the properties of the origin.",
+ "properties": {
+ "hostName": {
+ "description": "The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.",
+ "type": "string"
+ },
+ "httpPort": {
+ "description": "The value of the HTTP port. Must be between 1 and 65535.",
+ "type": "integer",
+ "maximum": 65535,
+ "exclusiveMaximum": false,
+ "minimum": 1,
+ "exclusiveMinimum": false
+ },
+ "httpsPort": {
+ "description": "The value of the HTTPS port. Must be between 1 and 65535.",
+ "type": "integer",
+ "maximum": 65535,
+ "exclusiveMaximum": false,
+ "minimum": 1,
+ "exclusiveMinimum": false
+ },
+ "originHostHeader": {
+ "description": "The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint",
+ "type": "string"
+ },
+ "priority": {
+ "description": "Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5",
+ "type": "integer",
+ "maximum": 5,
+ "minimum": 1
+ },
+ "weight": {
+ "description": "Weight of the origin in given origin group for load balancing. Must be between 1 and 1000",
+ "type": "integer",
+ "maximum": 1000,
+ "minimum": 1
+ },
+ "enabled": {
+ "description": "Origin is enabled for load balancing or not",
+ "type": "boolean"
+ },
+ "privateLinkAlias": {
+ "description": "The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'",
+ "type": "string"
+ },
+ "privateLinkResourceId": {
+ "description": "The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'",
+ "type": "string"
+ },
+ "privateLinkLocation": {
+ "description": "The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated",
+ "type": "string"
+ },
+ "privateLinkApprovalMessage": {
+ "description": "A custom message to be included in the approval request to connect to the Private Link.",
+ "type": "string"
+ }
+ }
+ },
+ "OriginListResult": {
+ "description": "Result of the request to list origins. It contains a list of origin objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Origin"
+ },
+ "description": "List of CDN origins within an endpoint"
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of origin objects if there are any."
+ }
+ }
+ },
+ "OriginGroup": {
+ "description": "Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/OriginGroupProperties"
+ }
+ }
+ },
+ "OriginGroupProperties": {
+ "description": "The JSON object that contains the properties of the origin group.",
+ "type": "object",
+ "required": [
+ "origins"
+ ],
+ "allOf": [
+ {
+ "$ref": "#/definitions/OriginGroupUpdatePropertiesParameters"
+ }
+ ],
+ "properties": {
+ "resourceState": {
+ "description": "Resource status of the origin group.",
+ "readOnly": true,
+ "enum": [
+ "Creating",
+ "Active",
+ "Deleting"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "OriginGroupResourceState",
+ "modelAsString": true
+ }
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "description": "Provisioning status of the origin group.",
+ "type": "string"
+ }
+ }
+ },
+ "OriginGroupUpdateParameters": {
+ "type": "object",
+ "description": "Origin group properties needed for origin group creation or update.",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/OriginGroupUpdatePropertiesParameters"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "OriginGroupUpdatePropertiesParameters": {
+ "description": "The JSON object that contains the properties of the origin group.",
+ "properties": {
+ "healthProbeSettings": {
+ "description": "Health probe settings to the origin that is used to determine the health of the origin.",
+ "type": "object",
+ "$ref": "#/definitions/HealthProbeParameters"
+ },
+ "origins": {
+ "description": "The source of the content being delivered via CDN within given origin group.",
+ "type": "array",
+ "items": {
+ "description": "A reference to a origin.",
+ "$ref": "#/definitions/ResourceReference"
+ }
+ },
+ "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": {
+ "description": "Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.",
+ "type": "integer",
+ "maximum": 50,
+ "minimum": 0
+ },
+ "responseBasedOriginErrorDetectionSettings": {
+ "description": "The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.",
+ "type": "object",
+ "$ref": "#/definitions/ResponseBasedOriginErrorDetectionParameters"
+ }
+ }
+ },
+ "HealthProbeParameters": {
+ "description": "The JSON object that contains the properties to send health probes to origin.",
+ "properties": {
+ "probePath": {
+ "description": "The path relative to the origin that is used to determine the health of the origin.",
+ "type": "string"
+ },
+ "probeRequestType": {
+ "description": "The type of health probe request that is made.",
+ "enum": [
+ "NotSet",
+ "GET",
+ "HEAD"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "HealthProbeRequestType",
+ "modelAsString": false
+ }
+ },
+ "probeProtocol": {
+ "description": "Protocol to use for health probe.",
+ "type": "string",
+ "enum": [
+ "NotSet",
+ "Http",
+ "Https"
+ ],
+ "x-ms-enum": {
+ "name": "ProbeProtocol",
+ "modelAsString": false
+ }
+ },
+ "probeIntervalInSeconds": {
+ "description": "The number of seconds between health probes.Default is 240sec.",
+ "type": "integer",
+ "maximum": 255,
+ "minimum": 1
+ }
+ }
+ },
+ "ResponseBasedOriginErrorDetectionParameters": {
+ "description": "The JSON object that contains the properties to determine origin health using real requests/responses.",
+ "properties": {
+ "responseBasedDetectedErrorTypes": {
+ "description": "Type of response errors for real user requests for which origin will be deemed unhealthy",
+ "type": "string",
+ "enum": [
+ "None",
+ "TcpErrorsOnly",
+ "TcpAndHttpErrors"
+ ],
+ "x-ms-enum": {
+ "name": "ResponseBasedDetectedErrorTypes",
+ "modelAsString": false
+ }
+ },
+ "responseBasedFailoverThresholdPercentage": {
+ "description": "The percentage of failed requests in the sample where failover should trigger.",
+ "type": "integer",
+ "maximum": 100,
+ "minimum": 0
+ },
+ "httpErrorRanges": {
+ "description": "The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/HttpErrorRangeParameters"
+ }
+ }
+ }
+ },
+ "HttpErrorRangeParameters": {
+ "description": "The JSON object that represents the range for http status codes",
+ "properties": {
+ "begin": {
+ "description": "The inclusive start of the http status code range.",
+ "type": "integer",
+ "maximum": 999,
+ "minimum": 100
+ },
+ "end": {
+ "description": "The inclusive end of the http status code range.",
+ "type": "integer",
+ "maximum": 999,
+ "minimum": 100
+ }
+ }
+ },
+ "OriginGroupListResult": {
+ "description": "Result of the request to list origin groups. It contains a list of origin groups objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/OriginGroup"
+ },
+ "description": "List of CDN origin groups within an endpoint"
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of origin objects if there are any."
+ }
+ }
+ },
+ "CustomDomain": {
+ "description": "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/CustomDomainProperties"
+ }
+ }
+ },
+ "CustomDomainProperties": {
+ "description": "The JSON object that contains the properties of the custom domain to create.",
+ "required": [
+ "hostName"
+ ],
+ "properties": {
+ "hostName": {
+ "description": "The host name of the custom domain. Must be a domain name.",
+ "type": "string"
+ },
+ "resourceState": {
+ "description": "Resource status of the custom domain.",
+ "readOnly": true,
+ "enum": [
+ "Creating",
+ "Active",
+ "Deleting"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CustomDomainResourceState",
+ "modelAsString": true
+ }
+ },
+ "customHttpsProvisioningState": {
+ "description": "Provisioning status of Custom Https of the custom domain.",
+ "readOnly": true,
+ "enum": [
+ "Enabling",
+ "Enabled",
+ "Disabling",
+ "Disabled",
+ "Failed"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CustomHttpsProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "customHttpsProvisioningSubstate": {
+ "description": "Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.",
+ "readOnly": true,
+ "enum": [
+ "SubmittingDomainControlValidationRequest",
+ "PendingDomainControlValidationREquestApproval",
+ "DomainControlValidationRequestApproved",
+ "DomainControlValidationRequestRejected",
+ "DomainControlValidationRequestTimedOut",
+ "IssuingCertificate",
+ "DeployingCertificate",
+ "CertificateDeployed",
+ "DeletingCertificate",
+ "CertificateDeleted"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CustomHttpsProvisioningSubstate",
+ "modelAsString": true
+ }
+ },
+ "validationData": {
+ "description": "Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.",
+ "type": "string"
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "description": "Provisioning status of the custom domain.",
+ "type": "string"
+ }
+ }
+ },
+ "CustomDomainParameters": {
+ "description": "The customDomain JSON object required for custom domain creation or update.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/CustomDomainPropertiesParameters"
+ }
+ }
+ },
+ "CustomDomainPropertiesParameters": {
+ "description": "The JSON object that contains the properties of the custom domain to create.",
+ "required": [
+ "hostName"
+ ],
+ "properties": {
+ "hostName": {
+ "description": "The host name of the custom domain. Must be a domain name.",
+ "type": "string"
+ }
+ }
+ },
+ "CustomDomainHttpsParameters": {
+ "description": "The JSON object that contains the properties to secure a custom domain.",
+ "discriminator": "certificateSource",
+ "required": [
+ "certificateSource",
+ "protocolType"
+ ],
+ "properties": {
+ "certificateSource": {
+ "description": "Defines the source of the SSL certificate.",
+ "enum": [
+ "AzureKeyVault",
+ "Cdn"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CertificateSource",
+ "modelAsString": true
+ }
+ },
+ "protocolType": {
+ "description": "Defines the TLS extension protocol that is used for secure delivery.",
+ "enum": [
+ "ServerNameIndication",
+ "IPBased"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ProtocolType",
+ "modelAsString": true
+ }
+ },
+ "minimumTlsVersion": {
+ "description": "TLS protocol version that will be used for Https",
+ "enum": [
+ "None",
+ "TLS10",
+ "TLS12"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "MinimumTlsVersion",
+ "modelAsString": false
+ }
+ }
+ }
+ },
+ "CdnManagedHttpsParameters": {
+ "description": "Defines the certificate source parameters using CDN managed certificate for enabling SSL.",
+ "x-ms-discriminator-value": "Cdn",
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomDomainHttpsParameters"
+ }
+ ],
+ "required": [
+ "certificateSourceParameters"
+ ],
+ "properties": {
+ "certificateSourceParameters": {
+ "description": "Defines the certificate source parameters using CDN managed certificate for enabling SSL.",
+ "$ref": "#/definitions/CdnCertificateSourceParameters"
+ }
+ }
+ },
+ "CdnCertificateSourceParameters": {
+ "description": "Defines the parameters for using CDN managed certificate for securing custom domain.",
+ "required": [
+ "@odata.type",
+ "certificateType"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"
+ ]
+ },
+ "certificateType": {
+ "description": "Type of certificate used",
+ "enum": [
+ "Shared",
+ "Dedicated"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CertificateType",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "UserManagedHttpsParameters": {
+ "description": "Defines the certificate source parameters using user's keyvault certificate for enabling SSL.",
+ "x-ms-discriminator-value": "AzureKeyVault",
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomDomainHttpsParameters"
+ }
+ ],
+ "required": [
+ "certificateSourceParameters"
+ ],
+ "properties": {
+ "certificateSourceParameters": {
+ "description": "Defines the certificate source parameters using user's keyvault certificate for enabling SSL.",
+ "$ref": "#/definitions/KeyVaultCertificateSourceParameters"
+ }
+ }
+ },
+ "KeyVaultCertificateSourceParameters": {
+ "description": "Describes the parameters for using a user's KeyVault certificate for securing custom domain.",
+ "required": [
+ "@odata.type",
+ "subscriptionId",
+ "resourceGroupName",
+ "vaultName",
+ "secretName",
+ "secretVersion",
+ "updateRule",
+ "deleteRule"
+ ],
+ "properties": {
+ "@odata.type": {
+ "type": "string",
+ "enum": [
+ "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"
+ ]
+ },
+ "subscriptionId": {
+ "description": "Subscription Id of the user's Key Vault containing the SSL certificate",
+ "type": "string"
+ },
+ "resourceGroupName": {
+ "description": "Resource group of the user's Key Vault containing the SSL certificate",
+ "type": "string"
+ },
+ "vaultName": {
+ "description": "The name of the user's Key Vault containing the SSL certificate",
+ "type": "string"
+ },
+ "secretName": {
+ "description": "The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.",
+ "type": "string"
+ },
+ "secretVersion": {
+ "description": "The version(GUID) of Key Vault Secret in Key Vault.",
+ "type": "string"
+ },
+ "updateRule": {
+ "description": "Describes the action that shall be taken when the certificate is updated in Key Vault.",
+ "type": "string",
+ "enum": [
+ "NoAction"
+ ],
+ "x-ms-enum": {
+ "name": "UpdateRule",
+ "modelAsString": true
+ }
+ },
+ "deleteRule": {
+ "description": "Describes the action that shall be taken when the certificate is removed from Key Vault.",
+ "type": "string",
+ "enum": [
+ "NoAction"
+ ],
+ "x-ms-enum": {
+ "name": "DeleteRule",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "CustomDomainListResult": {
+ "description": "Result of the request to list custom domains. It contains a list of custom domain objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/CustomDomain"
+ },
+ "description": "List of CDN CustomDomains within an endpoint."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of custom domain objects if there are any."
+ }
+ }
+ },
+ "ValidateCustomDomainInput": {
+ "description": "Input of the custom domain to be validated for DNS mapping.",
+ "type": "object",
+ "required": [
+ "hostName"
+ ],
+ "properties": {
+ "hostName": {
+ "description": "The host name of the custom domain. Must be a domain name.",
+ "type": "string"
+ }
+ }
+ },
+ "ValidateCustomDomainOutput": {
+ "description": "Output of custom domain validation.",
+ "type": "object",
+ "properties": {
+ "customDomainValidated": {
+ "description": "Indicates whether the custom domain is valid or not.",
+ "readOnly": true,
+ "type": "boolean"
+ },
+ "reason": {
+ "description": "The reason why the custom domain is not valid.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message describing why the custom domain is not valid.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "CheckNameAvailabilityInput": {
+ "description": "Input of CheckNameAvailability API.",
+ "type": "object",
+ "required": [
+ "name",
+ "type"
+ ],
+ "properties": {
+ "name": {
+ "description": "The resource name to validate.",
+ "type": "string"
+ },
+ "type": {
+ "description": "The type of the resource whose name is to be validated.",
+ "$ref": "#/definitions/ResourceType"
+ }
+ }
+ },
+ "CheckNameAvailabilityOutput": {
+ "description": "Output of check name availability API.",
+ "type": "object",
+ "properties": {
+ "nameAvailable": {
+ "description": "Indicates whether the name is available.",
+ "readOnly": true,
+ "type": "boolean"
+ },
+ "reason": {
+ "description": "The reason why the name is not available.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "message": {
+ "description": "The detailed error message describing why the name is not available.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "ValidateProbeInput": {
+ "description": "Input of the validate probe API.",
+ "properties": {
+ "probeURL": {
+ "description": "The probe URL to validate.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "probeURL"
+ ],
+ "type": "object"
+ },
+ "ValidateProbeOutput": {
+ "description": "Output of the validate probe API.",
+ "properties": {
+ "isValid": {
+ "description": "Indicates whether the probe URL is accepted or not.",
+ "readOnly": true,
+ "type": "boolean"
+ },
+ "errorCode": {
+ "description": "Specifies the error code when the probe url is not accepted.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "message": {
+ "description": "The detailed error message describing why the probe URL is not accepted.",
+ "readOnly": true,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ResourceUsageListResult": {
+ "description": "Output of check resource usage API.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/ResourceUsage"
+ },
+ "description": "List of resource usages."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of custom domain objects if there are any."
+ }
+ }
+ },
+ "ResourceUsage": {
+ "description": "Output of check resource usage API.",
+ "type": "object",
+ "properties": {
+ "resourceType": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Resource type for which the usage is provided."
+ },
+ "unit": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Unit of the usage. e.g. Count."
+ },
+ "currentValue": {
+ "type": "integer",
+ "readOnly": true,
+ "description": "Actual value of usage on the specified resource type."
+ },
+ "limit": {
+ "type": "integer",
+ "readOnly": true,
+ "description": "Quota of the specified resource type."
+ }
+ }
+ },
+ "ResourceType": {
+ "description": "Type of CDN resource used in CheckNameAvailability.",
+ "enum": [
+ "Microsoft.Cdn/Profiles/Endpoints"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ResourceType",
+ "modelAsString": false
+ }
+ },
+ "Operation": {
+ "description": "CDN REST API operation",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}",
+ "readOnly": true,
+ "type": "string"
+ },
+ "display": {
+ "description": "The object that represents the operation.",
+ "properties": {
+ "provider": {
+ "description": "Service provider: Microsoft.Cdn",
+ "readOnly": true,
+ "type": "string"
+ },
+ "resource": {
+ "description": "Resource on which the operation is performed: Profile, endpoint, etc.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "operation": {
+ "description": "Operation type: Read, write, delete, etc.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "OperationsListResult": {
+ "description": "Result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "description": "List of CDN operations supported by the CDN resource provider."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of operation list results if there are any."
+ }
+ }
+ },
+ "EdgenodeResult": {
+ "description": "Result of the request to list CDN edgenodes. It contains a list of ip address group and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/EdgeNode"
+ },
+ "description": "Edge node of CDN service."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of edgenode list results if there are any."
+ }
+ }
+ },
+ "EdgeNode": {
+ "description": "Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/EdgeNodeProperties"
+ }
+ }
+ },
+ "EdgeNodeProperties": {
+ "description": "The JSON object that contains the properties required to create an edgenode.",
+ "required": [
+ "ipAddressGroups"
+ ],
+ "properties": {
+ "ipAddressGroups": {
+ "description": "List of ip address groups.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IpAddressGroup"
+ }
+ }
+ }
+ },
+ "IpAddressGroup": {
+ "description": "CDN Ip address group",
+ "type": "object",
+ "properties": {
+ "deliveryRegion": {
+ "description": "The delivery region of the ip address group",
+ "type": "string"
+ },
+ "ipv4Addresses": {
+ "description": "The list of ip v4 addresses.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/cidrIpAddress"
+ }
+ },
+ "ipv6Addresses": {
+ "description": "The list of ip v6 addresses.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/cidrIpAddress"
+ }
+ }
+ }
+ },
+ "cidrIpAddress": {
+ "description": "CIDR Ip address",
+ "type": "object",
+ "properties": {
+ "baseIpAddress": {
+ "description": "Ip address itself.",
+ "type": "string"
+ },
+ "prefixLength": {
+ "description": "The length of the prefix of the ip address.",
+ "type": "integer"
+ }
+ }
+ },
+ "Resource": {
+ "description": "The core properties of ARM resources",
+ "properties": {
+ "id": {
+ "description": "Resource ID.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "name": {
+ "description": "Resource name.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "type": {
+ "description": "Resource type.",
+ "readOnly": true,
+ "type": "string"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "TrackedResource": {
+ "description": "The resource model definition for a ARM tracked top level resource.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "Resource location."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "x-ms-mutability": [
+ "read",
+ "create",
+ "update"
+ ],
+ "description": "Resource tags."
+ }
+ },
+ "required": [
+ "location"
+ ]
+ },
+ "ProxyResource": {
+ "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ]
+ },
+ "QueryStringCachingBehavior": {
+ "description": "Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL.",
+ "enum": [
+ "IgnoreQueryString",
+ "BypassCaching",
+ "UseQueryString",
+ "NotSet"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "QueryStringCachingBehavior",
+ "modelAsString": false
+ }
+ },
+ "Sku": {
+ "description": "The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile.",
+ "properties": {
+ "name": {
+ "description": "Name of the pricing tier.",
+ "enum": [
+ "Standard_Verizon",
+ "Premium_Verizon",
+ "Custom_Verizon",
+ "Standard_Akamai",
+ "Standard_ChinaCdn",
+ "Standard_Microsoft",
+ "Premium_ChinaCdn"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SkuName",
+ "modelAsString": true
+ }
+ }
+ },
+ "type": "object"
+ },
+ "OptimizationType": {
+ "description": "Specifies what scenario the customer wants this CDN endpoint to optimize, e.g. Download, Media services. With this information we can apply scenario driven optimization.",
+ "enum": [
+ "GeneralWebDelivery",
+ "GeneralMediaStreaming",
+ "VideoOnDemandMediaStreaming",
+ "LargeFileDownload",
+ "DynamicSiteAcceleration"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "OptimizationType",
+ "modelAsString": true
+ }
+ },
+ "ErrorResponse": {
+ "description": "Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Error code.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message indicating why the operation failed.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "subscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "Azure Subscription ID.",
+ "required": true,
+ "type": "string"
+ },
+ "apiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "Version of the API to be used with the client request. Current version is 2017-04-02."
+ },
+ "resourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Resource group within the Azure subscription."
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/cdnwebapplicationfirewall.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/cdnwebapplicationfirewall.json
new file mode 100644
index 000000000000..776e38b9d7eb
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/cdnwebapplicationfirewall.json
@@ -0,0 +1,926 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-04-15",
+ "title": "Azure CDN WebApplicationFirewallManagement",
+ "description": "APIs to manage web application firewall rules for Azure CDN"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies": {
+ "get": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Lists all of the protection policies within a resource group.",
+ "operationId": "Policies_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicyList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./cdn.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Policies in a Resource Group": {
+ "$ref": "./examples/WafListPolicies.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}": {
+ "get": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Retrieve protection policy with specified name within a resource group.",
+ "operationId": "Policies_Get",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./cdn.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Policy": {
+ "$ref": "./examples/WafPolicyGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Create or update policy with specified rule set name within a resource group.",
+ "operationId": "Policies_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "description": "Policy to be created.",
+ "in": "body",
+ "name": "cdnWebApplicationFirewallPolicy",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicy"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicy"
+ }
+ },
+ "201": {
+ "description": "Created. The request has been fulfilled and a new protection policy has been created.",
+ "schema": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicy"
+ }
+ },
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./cdn.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Creates specific policy": {
+ "$ref": "./examples/WafPolicyCreateOrUpdate.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group",
+ "operationId": "Policies_Update",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "description": "CdnWebApplicationFirewallPolicy parameters to be patched.",
+ "in": "body",
+ "name": "cdnWebApplicationFirewallPolicyPatchParameters",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicyPatchParameters"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicy"
+ }
+ },
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./cdn.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Creates specific policy": {
+ "$ref": "./examples/WafPatchPolicy.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Deletes Policy",
+ "operationId": "Policies_Delete",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete successful."
+ },
+ "204": {
+ "description": "No Content. The request has been accepted but the policy was not found."
+ }
+ },
+ "x-ms-examples": {
+ "Delete protection policy": {
+ "$ref": "./examples/WafPolicyDelete.json"
+ }
+ },
+ "x-ms-long-running-operation": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets": {
+ "get": {
+ "tags": [
+ "WebApplicationFirewallManagedRuleSets"
+ ],
+ "description": "Lists all available managed rule sets.",
+ "operationId": "ManagedRuleSets_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The operation returns a list of all available web application firewall managed rule sets.",
+ "schema": {
+ "$ref": "#/definitions/ManagedRuleSetDefinitionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./cdn.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Policies in a Resource Group": {
+ "$ref": "./examples/WafListManagedRuleSets.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "CdnWebApplicationFirewallPolicyList": {
+ "description": "Defines a list of WebApplicationFirewallPolicies for Azure CDN. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicy"
+ },
+ "description": "List of Azure CDN WebApplicationFirewallPolicies within a resource group."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of WebApplicationFirewallPolicy objects if there are any."
+ }
+ }
+ },
+ "CdnWebApplicationFirewallPolicy": {
+ "description": "Defines web application firewall policy for Azure CDN.",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties of the web application firewall policy.",
+ "$ref": "#/definitions/CdnWebApplicationFirewallPolicyProperties"
+ },
+ "etag": {
+ "type": "string",
+ "description": "Gets a unique read-only string that changes whenever the resource is updated."
+ },
+ "sku": {
+ "description": "The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.",
+ "$ref": "./cdn.json#/definitions/Sku"
+ }
+ },
+ "required": [
+ "sku"
+ ],
+ "allOf": [
+ {
+ "$ref": "./cdn.json#/definitions/TrackedResource"
+ }
+ ]
+ },
+ "CdnWebApplicationFirewallPolicyPatchParameters": {
+ "type": "object",
+ "description": "Properties required to update a CdnWebApplicationFirewallPolicy.",
+ "properties": {
+ "tags": {
+ "description": "CdnWebApplicationFirewallPolicy tags",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "CdnWebApplicationFirewallPolicyProperties": {
+ "description": "Defines CDN web application firewall policy properties.",
+ "properties": {
+ "policySettings": {
+ "description": "Describes policySettings for policy",
+ "$ref": "#/definitions/policySettings"
+ },
+ "rateLimitRules": {
+ "description": "Describes rate limit rules inside the policy.",
+ "$ref": "#/definitions/RateLimitRuleList"
+ },
+ "customRules": {
+ "description": "Describes custom rules inside the policy.",
+ "$ref": "#/definitions/CustomRuleList"
+ },
+ "managedRules": {
+ "description": "Describes managed rules inside the policy.",
+ "$ref": "#/definitions/ManagedRuleSetList"
+ },
+ "endpointLinks": {
+ "description": "Describes Azure CDN endpoints associated with this Web Application Firewall policy.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/CdnEndpoint"
+ }
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Provisioning state of the WebApplicationFirewallPolicy.",
+ "enum": [
+ "Creating",
+ "Succeeded",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "resourceState": {
+ "title": "Resource status of the policy.",
+ "readOnly": true,
+ "enum": [
+ "Creating",
+ "Enabling",
+ "Enabled",
+ "Disabling",
+ "Disabled",
+ "Deleting"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PolicyResourceState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "policySettings": {
+ "description": "Defines contents of a web application firewall global configuration",
+ "properties": {
+ "enabledState": {
+ "description": "describes if the policy is in enabled state or disabled state",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ],
+ "x-ms-enum": {
+ "name": "PolicyEnabledState",
+ "modelAsString": true
+ }
+ },
+ "mode": {
+ "description": "Describes if it is in detection mode or prevention mode at policy level.",
+ "type": "string",
+ "enum": [
+ "Prevention",
+ "Detection"
+ ],
+ "x-ms-enum": {
+ "name": "PolicyMode",
+ "modelAsString": true
+ }
+ },
+ "defaultRedirectUrl": {
+ "description": "If action type is redirect, this field represents the default redirect URL for the client.",
+ "type": "string"
+ },
+ "defaultCustomBlockResponseStatusCode": {
+ "description": "If the action type is block, this field defines the default customer overridable http response status code.",
+ "type": "integer",
+ "enum": [
+ 200,
+ 403,
+ 405,
+ 406,
+ 429
+ ]
+ },
+ "defaultCustomBlockResponseBody": {
+ "description": "If the action type is block, customer can override the response body. The body must be specified in base64 encoding.",
+ "type": "string",
+ "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
+ }
+ }
+ },
+ "CdnEndpoint": {
+ "description": "Defines the ARM Resource ID for the linked endpoints",
+ "type": "object",
+ "readOnly": true,
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "ARM Resource ID string."
+ }
+ }
+ },
+ "CustomRuleList": {
+ "description": "Defines contents of custom rules",
+ "properties": {
+ "rules": {
+ "description": "List of rules",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CustomRule"
+ }
+ }
+ }
+ },
+ "CustomRule": {
+ "description": "Defines the common attributes for a custom rule that can be included in a waf policy",
+ "type": "object",
+ "required": [
+ "name",
+ "priority",
+ "matchConditions",
+ "action"
+ ],
+ "properties": {
+ "name": {
+ "description": "Defines the name of the custom rule",
+ "type": "string"
+ },
+ "enabledState": {
+ "description": "Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ],
+ "x-ms-enum": {
+ "name": "CustomRuleEnabledState",
+ "modelAsString": true
+ }
+ },
+ "priority": {
+ "description": "Defines in what order this rule be evaluated in the overall list of custom rules",
+ "type": "integer",
+ "maximum": 1000,
+ "exclusiveMaximum": false,
+ "minimum": 0,
+ "exclusiveMinimum": false
+ },
+ "matchConditions": {
+ "description": "List of match conditions.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MatchCondition"
+ }
+ },
+ "action": {
+ "description": "Describes what action to be applied when rule matches",
+ "$ref": "#/definitions/ActionType"
+ }
+ }
+ },
+ "RateLimitRuleList": {
+ "description": "Defines contents of rate limit rules",
+ "properties": {
+ "rules": {
+ "description": "List of rules",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RateLimitRule"
+ }
+ }
+ }
+ },
+ "RateLimitRule": {
+ "description": "Defines a rate limiting rule that can be included in a waf policy",
+ "type": "object",
+ "required": [
+ "rateLimitThreshold",
+ "rateLimitDurationInMinutes"
+ ],
+ "properties": {
+ "rateLimitThreshold": {
+ "description": "Defines rate limit threshold.",
+ "type": "integer",
+ "minimum": 0,
+ "exclusiveMinimum": false
+ },
+ "rateLimitDurationInMinutes": {
+ "description": "Defines rate limit duration. Default is 1 minute.",
+ "type": "integer",
+ "maximum": 60,
+ "exclusiveMaximum": false,
+ "minimum": 0,
+ "exclusiveMinimum": false
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomRule"
+ }
+ ]
+ },
+ "MatchCondition": {
+ "description": "Define match conditions",
+ "required": [
+ "matchVariable",
+ "operator",
+ "matchValue"
+ ],
+ "properties": {
+ "matchVariable": {
+ "description": "Match variable to compare against.",
+ "type": "string",
+ "enum": [
+ "RemoteAddr",
+ "SocketAddr",
+ "RequestMethod",
+ "RequestHeader",
+ "RequestUri",
+ "QueryString",
+ "RequestBody",
+ "Cookies",
+ "PostArgs"
+ ],
+ "x-ms-enum": {
+ "name": "MatchVariable",
+ "modelAsString": true
+ }
+ },
+ "selector": {
+ "description": "Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.",
+ "type": "string"
+ },
+ "operator": {
+ "description": "Describes operator to be matched",
+ "type": "string",
+ "enum": [
+ "Any",
+ "IPMatch",
+ "GeoMatch",
+ "Equal",
+ "Contains",
+ "LessThan",
+ "GreaterThan",
+ "LessThanOrEqual",
+ "GreaterThanOrEqual",
+ "BeginsWith",
+ "EndsWith",
+ "RegEx"
+ ],
+ "x-ms-enum": {
+ "name": "operator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if the result of this condition should be negated.",
+ "type": "boolean"
+ },
+ "matchValue": {
+ "description": "List of possible match values.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TransformType"
+ }
+ }
+ }
+ },
+ "TransformType": {
+ "description": "Describes what transforms were applied before matching.",
+ "type": "string",
+ "enum": [
+ "Lowercase",
+ "Uppercase",
+ "Trim",
+ "UrlDecode",
+ "UrlEncode",
+ "RemoveNulls"
+ ],
+ "x-ms-enum": {
+ "name": "TransformType",
+ "modelAsString": true
+ }
+ },
+ "ManagedRuleSetList": {
+ "description": "Defines the list of managed rule sets for the policy.",
+ "properties": {
+ "managedRuleSets": {
+ "description": "List of rule sets.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleSet"
+ }
+ }
+ }
+ },
+ "ManagedRuleSet": {
+ "type": "object",
+ "description": "Defines a managed rule set.",
+ "required": [
+ "ruleSetType",
+ "ruleSetVersion"
+ ],
+ "properties": {
+ "ruleSetType": {
+ "description": "Defines the rule set type to use.",
+ "type": "string"
+ },
+ "ruleSetVersion": {
+ "description": "Defines the version of the rule set to use.",
+ "type": "string"
+ },
+ "anomalyScore": {
+ "description": "Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.",
+ "type": "integer",
+ "maximum": 20,
+ "exclusiveMaximum": false,
+ "minimum": 0,
+ "exclusiveMinimum": false
+ },
+ "ruleGroupOverrides": {
+ "description": "Defines the rule overrides to apply to the rule set.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleGroupOverride"
+ }
+ }
+ }
+ },
+ "ManagedRuleGroupOverride": {
+ "description": "Defines a managed rule group override setting.",
+ "required": [
+ "ruleGroupName"
+ ],
+ "properties": {
+ "ruleGroupName": {
+ "description": "Describes the managed rule group within the rule set to override",
+ "type": "string"
+ },
+ "rules": {
+ "description": "List of rules that will be disabled. If none specified, all rules in the group will be disabled.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleOverride"
+ }
+ }
+ }
+ },
+ "ManagedRuleOverride": {
+ "description": "Defines a managed rule group override setting.",
+ "required": [
+ "ruleId"
+ ],
+ "properties": {
+ "ruleId": {
+ "description": "Identifier for the managed rule.",
+ "type": "string"
+ },
+ "enabledState": {
+ "description": "Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ],
+ "x-ms-enum": {
+ "name": "ManagedRuleEnabledState",
+ "modelAsString": true
+ }
+ },
+ "action": {
+ "description": "Describes the override action to be applied when rule matches.",
+ "$ref": "#/definitions/ActionType"
+ }
+ }
+ },
+ "ManagedRuleSetDefinitionList": {
+ "description": "List of managed rule set definitions available for use in a policy.",
+ "properties": {
+ "value": {
+ "description": "List of managed rule set definitions.",
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleSetDefinition"
+ }
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to retrieve next set of managed rule set definitions."
+ }
+ }
+ },
+ "ManagedRuleSetDefinition": {
+ "description": "Describes a managed rule set definition.",
+ "properties": {
+ "properties": {
+ "description": "Describes managed rule set definition properties.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ManagedRuleSetDefinitionProperties"
+ },
+ "sku": {
+ "description": "The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.",
+ "$ref": "./cdn.json#/definitions/Sku"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./cdn.json#/definitions/Resource"
+ }
+ ]
+ },
+ "ManagedRuleSetDefinitionProperties": {
+ "description": "Properties for a managed rule set definition.",
+ "properties": {
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Provisioning state of the managed rule set."
+ },
+ "ruleSetType": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Type of the managed rule set."
+ },
+ "ruleSetVersion": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Version of the managed rule set type."
+ },
+ "ruleGroups": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/ManagedRuleGroupDefinition"
+ },
+ "description": "Rule groups of the managed rule set."
+ }
+ }
+ },
+ "ManagedRuleGroupDefinition": {
+ "description": "Describes a managed rule group.",
+ "properties": {
+ "ruleGroupName": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Name of the managed rule group."
+ },
+ "description": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Description of the managed rule group."
+ },
+ "rules": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/ManagedRuleDefinition"
+ },
+ "description": "List of rules within the managed rule group."
+ }
+ }
+ },
+ "ManagedRuleDefinition": {
+ "description": "Describes a managed rule definition.",
+ "properties": {
+ "ruleId": {
+ "description": "Identifier for the managed rule.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "description": {
+ "description": "Describes the functionality of the managed rule.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "ActionType": {
+ "description": "Defines the action to take on rule match.",
+ "type": "string",
+ "enum": [
+ "Allow",
+ "Block",
+ "Log",
+ "Redirect"
+ ],
+ "x-ms-enum": {
+ "name": "ActionType",
+ "modelAsString": true
+ }
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "Azure Subscription ID.",
+ "required": true,
+ "type": "string"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "Version of the API to be used with the client request. Current version is 2017-04-02."
+ },
+ "PolicyNameParameter": {
+ "name": "policyName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "maxLength": 128,
+ "x-ms-parameter-location": "method",
+ "description": "The name of the CdnWebApplicationFirewallPolicy."
+ },
+ "ResourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$",
+ "minLength": 1,
+ "maxLength": 80,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Resource group within the Azure subscription."
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CheckNameAvailability.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CheckNameAvailability.json
new file mode 100644
index 000000000000..a48e0e034f1f
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CheckNameAvailability.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "checkNameAvailabilityInput": {
+ "name": "sampleName",
+ "type": "Microsoft.Cdn/Profiles/Endpoints"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": false,
+ "reason": "Name is already in use",
+ "message": "Name not available"
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CheckNameAvailabilityWithSubscription.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CheckNameAvailabilityWithSubscription.json
new file mode 100644
index 000000000000..666805d4482d
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CheckNameAvailabilityWithSubscription.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "checkNameAvailabilityInput": {
+ "name": "sampleName",
+ "type": "Microsoft.Cdn/Profiles/Endpoints"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": false,
+ "reason": "Name is already in use",
+ "message": "Name not available"
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Create.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Create.json
new file mode 100644
index 000000000000..e234364eee5c
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Create.json
@@ -0,0 +1,62 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "customDomainName": "www-someDomain-net",
+ "customDomainProperties": {
+ "properties": {
+ "hostName": "www.someDomain.net"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/customdomains",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "customHttpsProvisioningState": "Enabling",
+ "customHttpsProvisioningSubstate": "PendingDomainControlValidationREquestApproval",
+ "validationData": null
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/customdomains",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "customHttpsProvisioningState": "Enabling",
+ "customHttpsProvisioningSubstate": "PendingDomainControlValidationREquestApproval",
+ "validationData": null
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/customdomains",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "customHttpsProvisioningState": "Enabling",
+ "customHttpsProvisioningSubstate": "PendingDomainControlValidationREquestApproval",
+ "validationData": null
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Delete.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Delete.json
new file mode 100644
index 000000000000..69f13bb1ddca
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Delete.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "customDomainName": "www-someDomain-net"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/customdomains",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "customHttpsProvisioningState": "Enabling",
+ "customHttpsProvisioningSubstate": "PendingDomainControlValidationREquestApproval",
+ "validationData": null
+ }
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_DisableCustomHttps.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_DisableCustomHttps.json
new file mode 100644
index 000000000000..53dc7228bc25
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_DisableCustomHttps.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "customDomainName": "www-someDomain-net"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/customdomains",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "customHttpsProvisioningState": "Enabling",
+ "customHttpsProvisioningSubstate": "PendingDomainControlValidationREquestApproval",
+ "validationData": null
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_EnableCustomHttpsUsingBYOC.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_EnableCustomHttpsUsingBYOC.json
new file mode 100644
index 000000000000..f1fc807c6e01
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_EnableCustomHttpsUsingBYOC.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "customDomainName": "www-someDomain-net",
+ "customHttpsParameters": {
+ "MinimumTLSVersion": "TLS12",
+ "certificateSource": "AzureKeyVault",
+ "protocolType": "ServerNameIndication",
+ "certificateSourceParameters": {
+ "OData.type": "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "vaultName": "kv",
+ "secretName": "secret1",
+ "secretVersion": "00000000-0000-0000-0000-000000000000",
+ "updateRule": "NoAction",
+ "deleteRule": "NoAction"
+ }
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/customdomains",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "customHttpsProvisioningState": "Enabling",
+ "customHttpsProvisioningSubstate": "PendingDomainControlValidationREquestApproval",
+ "validationData": "validationdata"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate.json
new file mode 100644
index 000000000000..fd81626a2431
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "customDomainName": "www-someDomain-net",
+ "customHttpsParameters": {
+ "MinimumTLSVersion": "TLS12",
+ "certificateSource": "Cdn",
+ "protocolType": "ServerNameIndication",
+ "certificateSourceParameters": {
+ "OData.type": "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters",
+ "certificateType": "Shared"
+ }
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/customdomains",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "customHttpsProvisioningState": "Enabling",
+ "customHttpsProvisioningSubstate": "PendingDomainControlValidationREquestApproval",
+ "validationData": "validationdata"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Get.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Get.json
new file mode 100644
index 000000000000..6d1b1d65a899
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_Get.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "customDomainName": "www-someDomain-net"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/customdomains",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "customHttpsProvisioningState": "Disabled",
+ "customHttpsProvisioningSubstate": "None",
+ "validationData": null
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_ListByEndpoint.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_ListByEndpoint.json
new file mode 100644
index 000000000000..98d69cfe24dd
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/CustomDomains_ListByEndpoint.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/customdomains",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "customHttpsProvisioningState": "Disabled",
+ "customHttpsProvisioningSubstate": "None",
+ "validationData": null
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/EdgeNodes_List.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/EdgeNodes_List.json
new file mode 100644
index 000000000000..85de12808f14
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/EdgeNodes_List.json
@@ -0,0 +1,107 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Standard_Verizon",
+ "id": "/providers/Microsoft.Cdn/edgenodes/Standard_Verizon",
+ "type": "Microsoft.Cdn/edgenodes",
+ "properties": {
+ "ipAddressGroups": [
+ {
+ "deliveryRegion": "All",
+ "ipv4Addresses": [
+ {
+ "baseIpAddress": "192.229.176.0",
+ "prefixLength": 24
+ },
+ {
+ "baseIpAddress": "180.240.184.128",
+ "prefixLength": 25
+ },
+ {
+ "baseIpAddress": "152.195.27.0",
+ "prefixLength": 24
+ }
+ ],
+ "ipv6Addresses": [
+ {
+ "baseIpAddress": "2606:2800:60f2::",
+ "prefixLength": 48
+ },
+ {
+ "baseIpAddress": "2606:2800:700c::",
+ "prefixLength": 48
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "name": "Premium_Verizon",
+ "id": "/providers/Microsoft.Cdn/edgenodes/Premium_Verizon",
+ "type": "Microsoft.Cdn/edgenodes",
+ "properties": {
+ "ipAddressGroups": [
+ {
+ "deliveryRegion": "All",
+ "ipv4Addresses": [
+ {
+ "baseIpAddress": "192.229.176.0",
+ "prefixLength": 24
+ },
+ {
+ "baseIpAddress": "152.195.27.0",
+ "prefixLength": 24
+ }
+ ],
+ "ipv6Addresses": [
+ {
+ "baseIpAddress": "2606:2800:60f2::",
+ "prefixLength": 48
+ },
+ {
+ "baseIpAddress": "2606:2800:700c::",
+ "prefixLength": 48
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "name": "Custom_Verizon",
+ "id": "/providers/Microsoft.Cdn/edgenodes/Custom_Verizon",
+ "type": "Microsoft.Cdn/edgenodes",
+ "properties": {
+ "ipAddressGroups": [
+ {
+ "deliveryRegion": "All",
+ "ipv4Addresses": [
+ {
+ "baseIpAddress": "192.229.176.0",
+ "prefixLength": 24
+ },
+ {
+ "baseIpAddress": "2606:2800:420b::",
+ "prefixLength": 48
+ },
+ {
+ "baseIpAddress": "2606:2800:700c::",
+ "prefixLength": 48
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Create.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Create.json
new file mode 100644
index 000000000000..81fce9324123
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Create.json
@@ -0,0 +1,543 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "endpoint": {
+ "location": "WestUs",
+ "tags": {
+ "key1": "value1"
+ },
+ "properties": {
+ "originHostHeader": "www.bing.com",
+ "originPath": "/photos",
+ "contentTypesToCompress": [
+ "text/html",
+ "application/octet-stream"
+ ],
+ "isCompressionEnabled": true,
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "BypassCaching",
+ "defaultOriginGroup": {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1"
+ },
+ "deliveryPolicy": {
+ "description": "Test description for a policy.",
+ "rules": [
+ {
+ "name": "rule1",
+ "order": 1,
+ "conditions": [
+ {
+ "name": "RemoteAddress",
+ "parameters": {
+ "operator": "IPMatch",
+ "negateCondition": true,
+ "matchValues": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"
+ }
+ }
+ ],
+ "actions": [
+ {
+ "name": "CacheExpiration",
+ "parameters": {
+ "cacheBehavior": "Override",
+ "cacheDuration": "10:10:09",
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters",
+ "cacheType": "All"
+ }
+ },
+ {
+ "name": "ModifyResponseHeader",
+ "parameters": {
+ "headerAction": "Overwrite",
+ "headerName": "Access-Control-Allow-Origin",
+ "value": "*",
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters"
+ }
+ },
+ {
+ "name": "ModifyRequestHeader",
+ "parameters": {
+ "headerAction": "Overwrite",
+ "headerName": "Accept-Encoding",
+ "value": "gzip",
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "origins": [
+ {
+ "name": "origin1",
+ "properties": {
+ "hostName": "www.someDomain1.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain1.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true
+ }
+ },
+ {
+ "name": "origin2",
+ "properties": {
+ "hostName": "www.someDomain2.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 2,
+ "weight": 50,
+ "enabled": true
+ }
+ }
+ ],
+ "originGroups": [
+ {
+ "name": "originGroup1",
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "endpoint4899",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {
+ "kay1": "value1"
+ },
+ "location": "WestUs",
+ "properties": {
+ "hostName": "endpoint4899.azureedge-test.net",
+ "originHostHeader": "www.bing.com",
+ "provisioningState": "Creating",
+ "resourceState": "Creating",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "BypassCaching",
+ "originPath": "/photos",
+ "defaultOriginGroup": {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1"
+ },
+ "origins": [
+ {
+ "name": "origin1",
+ "properties": {
+ "hostName": "www.someDomain1.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain1.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true
+ }
+ },
+ {
+ "name": "origin2",
+ "properties": {
+ "hostName": "www.someDomain2.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 2,
+ "weight": 50,
+ "enabled": true
+ }
+ }
+ ],
+ "originGroups": [
+ {
+ "name": "originGroup1",
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ ],
+ "contentTypesToCompress": [
+ "text/html",
+ "application/octet-stream"
+ ],
+ "isCompressionEnabled": true,
+ "optimizationType": null,
+ "probePath": null,
+ "geoFilters": [],
+ "deliveryPolicy": {
+ "description": "Test description for a policy.",
+ "rules": [
+ {
+ "name": "rule1",
+ "order": 1,
+ "conditions": [
+ {
+ "name": "RemoteAddress",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters",
+ "operator": "IPMatch",
+ "negateCondition": true,
+ "matchValues": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ }
+ ],
+ "actions": [
+ {
+ "name": "CacheExpiration",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters",
+ "cacheBehavior": "Override",
+ "cacheDuration": "10:10:09",
+ "cacheType": "All"
+ }
+ },
+ {
+ "name": "ModifyResponseHeader",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters",
+ "headerAction": "Overwrite",
+ "headerName": "Access-Control-Allow-Origin",
+ "value": "*"
+ }
+ },
+ {
+ "name": "ModifyRequestHeader",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters",
+ "headerAction": "Overwrite",
+ "headerName": "Accept-Encoding",
+ "value": "gzip"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "name": "endpoint4899",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {
+ "kay1": "value1"
+ },
+ "location": "WestUs",
+ "properties": {
+ "hostName": "endpoint4899.azureedge-test.net",
+ "originHostHeader": "www.bing.com",
+ "provisioningState": "Creating",
+ "resourceState": "Creating",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "BypassCaching",
+ "originPath": "/photos",
+ "defaultOriginGroup": {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1"
+ },
+ "origins": [
+ {
+ "name": "origin1",
+ "properties": {
+ "hostName": "www.someDomain1.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain1.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true
+ }
+ },
+ {
+ "name": "origin2",
+ "properties": {
+ "hostName": "www.someDomain2.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 2,
+ "weight": 50,
+ "enabled": true
+ }
+ }
+ ],
+ "originGroups": [
+ {
+ "name": "originGroup1",
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ ],
+ "contentTypesToCompress": [
+ "text/html",
+ "application/octet-stream"
+ ],
+ "isCompressionEnabled": true,
+ "optimizationType": null,
+ "probePath": null,
+ "geoFilters": [],
+ "deliveryPolicy": {
+ "description": "Test description for a policy.",
+ "rules": [
+ {
+ "name": "rule1",
+ "order": 1,
+ "conditions": [
+ {
+ "name": "RemoteAddress",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters",
+ "operator": "IPMatch",
+ "negateCondition": true,
+ "matchValues": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ }
+ ],
+ "actions": [
+ {
+ "name": "CacheExpiration",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters",
+ "cacheBehavior": "Override",
+ "cacheDuration": "10:10:09",
+ "cacheType": "All"
+ }
+ },
+ {
+ "name": "ModifyResponseHeader",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters",
+ "headerAction": "Overwrite",
+ "headerName": "Access-Control-Allow-Origin",
+ "value": "*"
+ }
+ },
+ {
+ "name": "ModifyRequestHeader",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters",
+ "headerAction": "Overwrite",
+ "headerName": "Accept-Encoding",
+ "value": "gzip"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "endpoint4899",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {
+ "kay1": "value1"
+ },
+ "location": "WestUs",
+ "properties": {
+ "hostName": "endpoint4899.azureedge-test.net",
+ "originHostHeader": "www.bing.com",
+ "provisioningState": "Creating",
+ "resourceState": "Creating",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "BypassCaching",
+ "originPath": "/photos",
+ "defaultOriginGroup": {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1"
+ },
+ "origins": [
+ {
+ "name": "origin1",
+ "properties": {
+ "hostName": "www.someDomain1.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain1.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true
+ }
+ },
+ {
+ "name": "origin2",
+ "properties": {
+ "hostName": "www.someDomain2.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 2,
+ "weight": 50,
+ "enabled": true
+ }
+ }
+ ],
+ "originGroups": [
+ {
+ "name": "originGroup1",
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ ],
+ "contentTypesToCompress": [
+ "text/html",
+ "application/octet-stream"
+ ],
+ "isCompressionEnabled": true,
+ "optimizationType": null,
+ "probePath": null,
+ "geoFilters": [],
+ "deliveryPolicy": {
+ "description": "Test description for a policy.",
+ "rules": [
+ {
+ "name": "rule1",
+ "order": 1,
+ "conditions": [
+ {
+ "name": "RemoteAddress",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters",
+ "operator": "IPMatch",
+ "negateCondition": true,
+ "matchValues": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ }
+ ],
+ "actions": [
+ {
+ "name": "CacheExpiration",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters",
+ "cacheBehavior": "Override",
+ "cacheDuration": "10:10:09",
+ "cacheType": "All"
+ }
+ },
+ {
+ "name": "ModifyResponseHeader",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters",
+ "headerAction": "Overwrite",
+ "headerName": "Access-Control-Allow-Origin",
+ "value": "*"
+ }
+ },
+ {
+ "name": "ModifyRequestHeader",
+ "parameters": {
+ "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters",
+ "headerAction": "Overwrite",
+ "headerName": "Accept-Encoding",
+ "value": "gzip"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Delete.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Delete.json
new file mode 100644
index 000000000000..4b0bc371a510
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Get.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Get.json
new file mode 100644
index 000000000000..039687fc7b8d
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Get.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "endpoint1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {},
+ "location": "CentralUs",
+ "properties": {
+ "hostName": "endpoint1.azureedge.net",
+ "originHostHeader": "www.bing.com",
+ "provisioningState": "Succeeded",
+ "resourceState": "Running",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "NotSet",
+ "originPath": null,
+ "origins": [
+ {
+ "name": "www-bing-com",
+ "properties": {
+ "hostName": "www.bing.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 2,
+ "weight": 50,
+ "enabled": true
+ }
+ }
+ ],
+ "originGroups": [
+ {
+ "name": "originGroup1",
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-bing-com"
+ }
+ ]
+ }
+ }
+ ],
+ "contentTypesToCompress": [],
+ "isCompressionEnabled": false,
+ "optimizationType": "DynamicSiteAcceleration",
+ "probePath": "/image",
+ "geoFilters": [],
+ "defaultOriginGroup": {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ListByProfile.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ListByProfile.json
new file mode 100644
index 000000000000..f5cb3c0f6fe2
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ListByProfile.json
@@ -0,0 +1,77 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "endpoint1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {},
+ "location": "CentralUs",
+ "properties": {
+ "hostName": "endpoint1.azureedge.net",
+ "originHostHeader": "www.bing.com",
+ "provisioningState": "Succeeded",
+ "resourceState": "Running",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "NotSet",
+ "originPath": null,
+ "origins": [
+ {
+ "name": "www-bing-com",
+ "properties": {
+ "hostName": "www.bing.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 2,
+ "weight": 50,
+ "enabled": true
+ }
+ }
+ ],
+ "originGroups": [
+ {
+ "name": "originGroup1",
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-bing-com"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ ],
+ "contentTypesToCompress": [],
+ "isCompressionEnabled": false,
+ "optimizationType": "DynamicSiteAcceleration",
+ "probePath": "/image",
+ "geoFilters": [],
+ "defaultOriginGroup": {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ListResourceUsage.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ListResourceUsage.json
new file mode 100644
index 000000000000..b3c53e02be22
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ListResourceUsage.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "resourceType": "customdomain",
+ "unit": "count",
+ "currentValue": 1,
+ "limit": 20
+ },
+ {
+ "resourceType": "geofilter",
+ "unit": "count",
+ "currentValue": 0,
+ "limit": 25
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_LoadContent.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_LoadContent.json
new file mode 100644
index 000000000000..5daeb6e31202
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_LoadContent.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "contentFilePaths": {
+ "contentPaths": [
+ "/folder1"
+ ]
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_PurgeContent.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_PurgeContent.json
new file mode 100644
index 000000000000..5daeb6e31202
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_PurgeContent.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "contentFilePaths": {
+ "contentPaths": [
+ "/folder1"
+ ]
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Start.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Start.json
new file mode 100644
index 000000000000..94310c51922f
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Start.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "endpoint4899",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {
+ "kay1": "value1"
+ },
+ "location": "WestUs",
+ "properties": {
+ "hostName": "endpoint1.azureedge.net",
+ "originHostHeader": "www.bing.com",
+ "provisioningState": "Succeeded",
+ "resourceState": "Starting",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "NotSet",
+ "originPath": null,
+ "origins": [
+ {
+ "name": "www-bing-com",
+ "properties": {
+ "hostName": "www.bing.com",
+ "httpPort": 80,
+ "httpsPort": 443
+ }
+ }
+ ],
+ "contentTypesToCompress": [],
+ "isCompressionEnabled": false,
+ "optimizationType": "DynamicSiteAcceleration",
+ "probePath": "/image",
+ "geoFilters": []
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "endpoint4899",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {
+ "kay1": "value1"
+ },
+ "location": "WestUs",
+ "properties": {
+ "hostName": "endpoint1.azureedge.net",
+ "originHostHeader": "www.bing.com",
+ "provisioningState": "Succeeded",
+ "resourceState": "Starting",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "NotSet",
+ "originPath": null,
+ "origins": [
+ {
+ "name": "www-bing-com",
+ "properties": {
+ "hostName": "www.bing.com",
+ "httpPort": 80,
+ "httpsPort": 443
+ }
+ }
+ ],
+ "contentTypesToCompress": [],
+ "isCompressionEnabled": false,
+ "optimizationType": "DynamicSiteAcceleration",
+ "probePath": "/image",
+ "geoFilters": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Stop.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Stop.json
new file mode 100644
index 000000000000..0bf457363066
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Stop.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "endpoint4899",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {
+ "kay1": "value1"
+ },
+ "location": "WestUs",
+ "properties": {
+ "hostName": "endpoint1.azureedge.net",
+ "originHostHeader": "www.bing.com",
+ "provisioningState": "Succeeded",
+ "resourceState": "Stopping",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "NotSet",
+ "originPath": null,
+ "origins": [
+ {
+ "name": "www-bing-com",
+ "properties": {
+ "hostName": "www.bing.com",
+ "httpPort": 80,
+ "httpsPort": 443
+ }
+ }
+ ],
+ "contentTypesToCompress": [],
+ "isCompressionEnabled": false,
+ "optimizationType": "DynamicSiteAcceleration",
+ "probePath": "/image",
+ "geoFilters": []
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "endpoint4899",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {
+ "kay1": "value1"
+ },
+ "location": "WestUs",
+ "properties": {
+ "hostName": "endpoint1.azureedge.net",
+ "originHostHeader": "www.bing.com",
+ "provisioningState": "Succeeded",
+ "resourceState": "Stopping",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "NotSet",
+ "originPath": null,
+ "origins": [
+ {
+ "name": "www-bing-com",
+ "properties": {
+ "hostName": "www.bing.com",
+ "httpPort": 80,
+ "httpsPort": 443
+ }
+ }
+ ],
+ "contentTypesToCompress": [],
+ "isCompressionEnabled": false,
+ "optimizationType": "DynamicSiteAcceleration",
+ "probePath": "/image",
+ "geoFilters": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Update.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Update.json
new file mode 100644
index 000000000000..bad861f930d3
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_Update.json
@@ -0,0 +1,138 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "endpointUpdateProperties": {
+ "tags": {
+ "additionalProperties": "Tag1"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "endpoint1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {
+ "additionalProperties": "Tag1"
+ },
+ "location": "WestCentralUs",
+ "properties": {
+ "hostName": "endpoint1.azureedge.net",
+ "originHostHeader": null,
+ "provisioningState": "Creating",
+ "resourceState": "Creating",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "IgnoreQueryString",
+ "originPath": null,
+ "origins": [
+ {
+ "name": "www-bing-com",
+ "properties": {
+ "hostName": "www.bing.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 2,
+ "weight": 50,
+ "enabled": true
+ }
+ }
+ ],
+ "originGroups": [
+ {
+ "name": "originGroup1",
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-bing-com"
+ }
+ ]
+ }
+ }
+ ],
+ "defaultOriginGroup": {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1"
+ },
+ "contentTypesToCompress": [],
+ "isCompressionEnabled": false,
+ "optimizationType": null,
+ "probePath": null,
+ "geoFilters": []
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "endpoint1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1",
+ "type": "Microsoft.Cdn/profiles/endpoints",
+ "tags": {
+ "additionalProperties": "Tag1"
+ },
+ "location": "WestCentralUs",
+ "properties": {
+ "hostName": "endpoint1.azureedge.net",
+ "originHostHeader": null,
+ "provisioningState": "Creating",
+ "resourceState": "Creating",
+ "isHttpAllowed": true,
+ "isHttpsAllowed": true,
+ "queryStringCachingBehavior": "IgnoreQueryString",
+ "originPath": null,
+ "origins": [
+ {
+ "name": "www-bing-com",
+ "properties": {
+ "hostName": "www.bing.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 2,
+ "weight": 50,
+ "enabled": true
+ }
+ }
+ ],
+ "originGroups": [
+ {
+ "name": "originGroup1",
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-bing-com"
+ }
+ ]
+ }
+ }
+ ],
+ "contentTypesToCompress": [],
+ "isCompressionEnabled": false,
+ "optimizationType": null,
+ "probePath": null,
+ "geoFilters": [],
+ "defaultOriginGroup": {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ValidateCustomDomain.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ValidateCustomDomain.json
new file mode 100644
index 000000000000..e57bad007e46
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Endpoints_ValidateCustomDomain.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "customDomainProperties": {
+ "hostName": "www.someDomain.com"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "customDomainValidated": true,
+ "message": null,
+ "reason": null
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Operations_List.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Operations_List.json
new file mode 100644
index 000000000000..e971f958b00e
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Operations_List.json
@@ -0,0 +1,93 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.Cdn/register/action",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "Microsoft.Cdn Resource Provider",
+ "operation": "Registers the Microsoft.Cdn Resource Provider"
+ }
+ },
+ {
+ "name": "Microsoft.Cdn/edgenodes/read",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "EdgeNode",
+ "operation": "read"
+ }
+ },
+ {
+ "name": "Microsoft.Cdn/edgenodes/write",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "EdgeNode",
+ "operation": "write"
+ }
+ },
+ {
+ "name": "Microsoft.Cdn/edgenodes/delete",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "EdgeNode",
+ "operation": "delete"
+ }
+ },
+ {
+ "name": "Microsoft.Cdn/profiles/read",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "Profile",
+ "operation": "read"
+ }
+ },
+ {
+ "name": "Microsoft.Cdn/profiles/write",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "Profile",
+ "operation": "write"
+ }
+ },
+ {
+ "name": "Microsoft.Cdn/operationresults/profileresults/write",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "Profile",
+ "operation": "write"
+ }
+ },
+ {
+ "name": "Microsoft.Cdn/operationresults/profileresults/delete",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "Profile",
+ "operation": "delete"
+ }
+ },
+ {
+ "name": "Microsoft.Cdn/operationresults/profileresults/CheckResourceUsage/action",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "Profile",
+ "operation": "CheckResourceUsage"
+ }
+ },
+ {
+ "name": "Microsoft.Cdn/operationresults/profileresults/GenerateSsoUri/action",
+ "display": {
+ "provider": "Microsoft.Cdn",
+ "resource": "Profile",
+ "operation": "GenerateSsoUri"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Create.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Create.json
new file mode 100644
index 000000000000..78c047669ba4
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Create.json
@@ -0,0 +1,109 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "originGroupName": "origingroup1",
+ "originGroup": {
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "origingroup1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1",
+ "type": "Microsoft.Cdn/profiles/endpoints/origingroups",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "name": "origingroup1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1",
+ "type": "Microsoft.Cdn/profiles/endpoints/origingroups",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "originGroup1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1",
+ "type": "Microsoft.Cdn/profiles/endpoints/origingroups",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Delete.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Delete.json
new file mode 100644
index 000000000000..30b340bc1eb9
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Delete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "originGroupName": "originGroup1"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Get.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Get.json
new file mode 100644
index 000000000000..c6f28a99a3b9
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Get.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "originGroupName": "originGroup1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "origingroup1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1",
+ "type": "Microsoft.Cdn/profiles/endpoints/origingroups",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpAndHttpErrors",
+ "responseBasedFailoverThresholdPercentage": 10,
+ "httpErrorRanges": [
+ {
+ "begin": 500,
+ "end": 505
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_ListByEndpoint.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_ListByEndpoint.json
new file mode 100644
index 000000000000..491319268648
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_ListByEndpoint.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "origingroup1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/originGroups/originGroup1",
+ "type": "Microsoft.Cdn/profiles/endpoints/origingroups",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin1"
+ }
+ ],
+ "responseBasedOriginErrorDetectionSettings": {
+ "responseBasedDetectedErrorTypes": "TcpErrorsOnly",
+ "responseBasedFailoverThresholdPercentage": 10
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Update.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Update.json
new file mode 100644
index 000000000000..8c7b87fe8999
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/OriginGroups_Update.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "originGroupName": "originGroup1",
+ "originGroupUpdateProperties": {
+ "properties": {
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/origins",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
+ }
+ ]
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/origins",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "healthProbeSettings": {
+ "probePath": "/health.aspx",
+ "probeRequestType": "GET",
+ "probeProtocol": "Http",
+ "probeIntervalInSeconds": 120
+ },
+ "origins": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/origin2"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Create.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Create.json
new file mode 100644
index 000000000000..31ad52dc4aaa
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Create.json
@@ -0,0 +1,108 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "originName": "www-someDomain-net",
+ "origin": {
+ "location": "WestUs",
+ "tags": {
+ "key1": "value1"
+ },
+ "properties": {
+ "hostName": "www.someDomain.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true,
+ "privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
+ "privateLinkLocation": "eastus",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "www-someDomain-net",
+ "location": "WestUs",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/origins",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true,
+ "privateEndpointStatus": "Pending",
+ "privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
+ "privateLinkLocation": "eastus",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "name": "www-someDomain-net",
+ "location": "WestUs",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/origins",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true,
+ "privateEndpointStatus": "Pending",
+ "privateLinkApprovalMessage": "",
+ "privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
+ "privateLinkLocation": "eastus"
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "www-someDomain-net",
+ "location": "WestUs",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/origins",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "originHostHeader": "www.someDomain.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true,
+ "privateEndpointStatus": "Pending",
+ "privateLinkApprovalMessage": "",
+ "privateLinkResourceId": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Network/privateLinkServices/pls1",
+ "privateLinkLocation": "eastus"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Delete.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Delete.json
new file mode 100644
index 000000000000..4a270df6853f
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Delete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "originName": "origin1"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Get.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Get.json
new file mode 100644
index 000000000000..89a514a4d173
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Get.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "originName": "www-someDomain-net"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "www-someDomain-net",
+ "location": "WestUs",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/origins",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "httpPort": null,
+ "httpsPort": null,
+ "originHostHeader": "www.someDomain.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true,
+ "privateEndpointStatus": "Pending",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "privateLinkAlias": "APPSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_ListByEndpoint.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_ListByEndpoint.json
new file mode 100644
index 000000000000..13aae31ac89f
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_ListByEndpoint.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "www-someDomain-net",
+ "location": "WestUs",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/origins",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "httpPort": null,
+ "httpsPort": null,
+ "originHostHeader": "www.someDomain.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true,
+ "privateEndpointStatus": "Pending",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "privateLinkAlias": "APPSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Update.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Update.json
new file mode 100644
index 000000000000..f6e79f729785
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Origins_Update.json
@@ -0,0 +1,76 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "endpointName": "endpoint1",
+ "originName": "www-someDomain-net",
+ "originUpdateProperties": {
+ "tags": {
+ "key1": "value1"
+ },
+ "properties": {
+ "httpPort": 42,
+ "httpsPort": 43,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true,
+ "privateLinkAlias": "APPSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "www-someDomain-net",
+ "location": "WestUs",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
+ "type": "Microsoft.Cdn/profiles/endpoints/origins",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "httpPort": 42,
+ "httpsPort": 43,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true,
+ "privateEndpointStatus": "Pending",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "privateLinkAlias": "APPSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice"
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "www-someDomain-net",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
+ "location": "WestUs",
+ "tags": {
+ "key1": "value1"
+ },
+ "type": "Microsoft.Cdn/profiles/endpoints/origins",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active",
+ "hostName": "www.someDomain.net",
+ "httpPort": 42,
+ "httpsPort": 43,
+ "originHostHeader": "www.someDomain2.net",
+ "priority": 1,
+ "weight": 50,
+ "enabled": true,
+ "privateEndpointStatus": "Pending",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "privateLinkAlias": "APPSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Create.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Create.json
new file mode 100644
index 000000000000..8ed2a4b03dd2
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Create.json
@@ -0,0 +1,64 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "profile": {
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Verizon"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "profile1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {},
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Verizon"
+ },
+ "properties": {
+ "provisioningState": "Creating",
+ "resourceState": "Creating"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "name": "profile1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {},
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Verizon"
+ },
+ "properties": {
+ "provisioningState": "Creating",
+ "resourceState": "Creating"
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "profile1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {},
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Verizon"
+ },
+ "properties": {
+ "provisioningState": "Creating",
+ "resourceState": "Creating"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Delete.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Delete.json
new file mode 100644
index 000000000000..22bbf70debdd
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Delete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_GenerateSsoUri.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_GenerateSsoUri.json
new file mode 100644
index 000000000000..aefe1ea2bf3e
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_GenerateSsoUri.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "ssoUriValue": "https://someuri.com"
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Get.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Get.json
new file mode 100644
index 000000000000..d9ea670565db
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Get.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "profile1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {},
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Akamai"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_List.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_List.json
new file mode 100644
index 000000000000..b50921e0621b
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_List.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "profile1",
+ "id": "/subscriptions/subid/resourcegroups/RG1/providers/Microsoft.Cdn/profiles/profile1",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {},
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Akamai"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active"
+ }
+ },
+ {
+ "name": "profile2",
+ "id": "/subscriptions/subid/resourcegroups/RG1/providers/Microsoft.Cdn/profiles/profile2",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {},
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Akamai"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListByResourceGroup.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListByResourceGroup.json
new file mode 100644
index 000000000000..63a2179d74c0
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListByResourceGroup.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "profile1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {},
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Akamai"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active"
+ }
+ },
+ {
+ "name": "profile2",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile2",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {},
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Akamai"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListResourceUsage.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListResourceUsage.json
new file mode 100644
index 000000000000..3830380800be
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListResourceUsage.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "resourceType": "endpoint",
+ "unit": "count",
+ "currentValue": 0,
+ "limit": 25
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListSupportedOptimizationTypes.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListSupportedOptimizationTypes.json
new file mode 100644
index 000000000000..c3f7aecedd99
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_ListSupportedOptimizationTypes.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "supportedOptimizationTypes": [
+ "GeneralWebDelivery",
+ "DynamicSiteAcceleration"
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Update.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Update.json
new file mode 100644
index 000000000000..8b626338de52
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/Profiles_Update.json
@@ -0,0 +1,51 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "RG",
+ "profileName": "profile1",
+ "profileUpdateParameters": {
+ "tags": {
+ "additionalProperties": "Tag1"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "profile1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {
+ "additionalProperties": "Tag1"
+ },
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Verizon"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active"
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "profile1",
+ "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1",
+ "type": "Microsoft.Cdn/profiles",
+ "tags": {
+ "additionalProperties": "Tag1"
+ },
+ "location": "WestCentralUs",
+ "sku": {
+ "name": "Standard_Verizon"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "resourceState": "Active"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/ResourceUsage_List.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/ResourceUsage_List.json
new file mode 100644
index 000000000000..e392d79f386d
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/ResourceUsage_List.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "resourceType": "profile",
+ "unit": "count",
+ "currentValue": 31,
+ "limit": 200
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/ValidateProbe.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/ValidateProbe.json
new file mode 100644
index 000000000000..cf8a858664ca
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/ValidateProbe.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "validateProbeInput": {
+ "probeURL": "https://www.bing.com/image"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "isValid": true,
+ "errorCode": "None",
+ "message": null
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafListManagedRuleSets.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafListManagedRuleSets.json
new file mode 100644
index 000000000000..92cca78b4f3b
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafListManagedRuleSets.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "DefaultRuleSet_1.0",
+ "id": "/subscriptions/subid/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets",
+ "type": "Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets",
+ "sku": {
+ "name": "Standard_Microsoft"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "preview-1.0",
+ "ruleGroups": [
+ {
+ "ruleGroupName": "Group1",
+ "description": "Description for rule group 1.",
+ "rules": [
+ {
+ "ruleId": "GROUP1-0001",
+ "description": "Generic managed web application firewall rule."
+ },
+ {
+ "ruleId": "GROUP1-0002",
+ "description": "Generic managed web application firewall rule."
+ }
+ ]
+ },
+ {
+ "ruleGroupName": "Group2",
+ "description": "Description for rule group 2.",
+ "rules": [
+ {
+ "ruleId": "GROUP2-0001",
+ "description": "Generic managed web application firewall rule."
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafListPolicies.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafListPolicies.json
new file mode 100644
index 000000000000..68f6d96c8893
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafListPolicies.json
@@ -0,0 +1,265 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "MicrosoftCdnWafPolicy",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/MicrosoftCdnWafPolicy",
+ "type": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "sku": {
+ "name": "Standard_Microsoft"
+ },
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "defaultRedirectUrl": "http://www.bing.com",
+ "defaultCustomBlockResponseStatusCode": 429,
+ "defaultCustomBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "rateLimitRules": {
+ "rules": [
+ {
+ "name": "RateLimitRule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "CustomRule1",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "windows"
+ ]
+ },
+ {
+ "matchVariable": "QueryString",
+ "selector": "search",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [
+ "UrlDecode",
+ "Lowercase"
+ ],
+ "matchValue": [
+ ""
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "preview-1.0",
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "Group1",
+ "rules": [
+ {
+ "ruleId": "GROUP1-0001",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "GROUP1-0002",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "endpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint2"
+ }
+ ]
+ }
+ },
+ {
+ "name": "VerizonStandardCdnWafPolicy",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/VerizonStandardCdnWafPolicy",
+ "type": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "sku": {
+ "name": "Standard_Verizon"
+ },
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "defaultRedirectUrl": "http://www.bing.com",
+ "defaultCustomBlockResponseStatusCode": 429,
+ "defaultCustomBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "rateLimitRules": {
+ "rules": [
+ {
+ "name": "RateLimitRule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "CustomRule1",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ]
+ },
+ {
+ "matchVariable": "QueryString",
+ "selector": "search",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [
+ "UrlDecode",
+ "Lowercase"
+ ],
+ "matchValue": [
+ ""
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "ECRS",
+ "ruleSetVersion": "2018-11-2",
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "XSS",
+ "rules": [
+ {
+ "ruleId": "XSS-0001",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "XSS-0002",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "endpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPatchPolicy.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPatchPolicy.json
new file mode 100644
index 000000000000..7e8c7d3e05ee
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPatchPolicy.json
@@ -0,0 +1,272 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "MicrosoftCdnWafPolicy",
+ "cdnWebApplicationFirewallPolicyPatchParameters": {
+ "tags": {
+ "foo": "bar"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "MicrosoftCdnWafPolicy",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/MicrosoftCdnWafPolicy",
+ "type": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies",
+ "tags": {
+ "foo": "bar"
+ },
+ "location": "WestUs",
+ "sku": {
+ "name": "Standard_Microsoft"
+ },
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "defaultRedirectUrl": "http://www.bing.com",
+ "defaultCustomBlockResponseStatusCode": 403,
+ "defaultCustomBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "rateLimitRules": {
+ "rules": [
+ {
+ "name": "RateLimitRule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "CustomRule1",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "windows"
+ ]
+ },
+ {
+ "matchVariable": "QueryString",
+ "selector": "search",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [
+ "UrlDecode",
+ "Lowercase"
+ ],
+ "matchValue": [
+ ""
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "preview-1.0",
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "Group1",
+ "rules": [
+ {
+ "ruleId": "GROUP1-0001",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "GROUP1-0002",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "endpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint2"
+ }
+ ]
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "MicrosoftCdnWafPolicy",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/MicrosoftCdnWafPolicy",
+ "type": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "sku": {
+ "name": "Standard_Microsoft"
+ },
+ "properties": {
+ "resourceState": "Creating",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "defaultRedirectUrl": "http://www.bing.com",
+ "defaultCustomBlockResponseStatusCode": 403,
+ "defaultCustomBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "rateLimitRules": {
+ "rules": [
+ {
+ "name": "RateLimitRule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "CustomRule1",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "windows"
+ ]
+ },
+ {
+ "matchVariable": "QueryString",
+ "selector": "search",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [
+ "UrlDecode",
+ "Lowercase"
+ ],
+ "matchValue": [
+ ""
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "preview-1.0",
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "Group1",
+ "rules": [
+ {
+ "ruleId": "GROUP1-0001",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "GROUP1-0002",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "endpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint2"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyCreateOrUpdate.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyCreateOrUpdate.json
new file mode 100644
index 000000000000..c0fb68fe3c69
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyCreateOrUpdate.json
@@ -0,0 +1,505 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "MicrosoftCdnWafPolicy",
+ "cdnWebApplicationFirewallPolicy": {
+ "location": "WestUs",
+ "sku": {
+ "name": "Standard_Microsoft"
+ },
+ "properties": {
+ "policySettings": {
+ "defaultRedirectUrl": "http://www.bing.com",
+ "defaultCustomBlockResponseStatusCode": 200,
+ "defaultCustomBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "rateLimitRules": {
+ "rules": [
+ {
+ "name": "RateLimitRule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "CustomRule1",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "windows"
+ ]
+ },
+ {
+ "matchVariable": "QueryString",
+ "selector": "search",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [
+ "UrlDecode",
+ "Lowercase"
+ ],
+ "matchValue": [
+ ""
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "preview-1.0",
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "Group1",
+ "rules": [
+ {
+ "ruleId": "GROUP1-0001",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "GROUP1-0002",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "MicrosoftCdnWafPolicy",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/MicrosoftCdnWafPolicy",
+ "type": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "sku": {
+ "name": "Standard_Microsoft"
+ },
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "defaultRedirectUrl": "http://www.bing.com",
+ "defaultCustomBlockResponseStatusCode": 200,
+ "defaultCustomBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "rateLimitRules": {
+ "rules": [
+ {
+ "name": "RateLimitRule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "CustomRule1",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "windows"
+ ]
+ },
+ {
+ "matchVariable": "QueryString",
+ "selector": "search",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [
+ "UrlDecode",
+ "Lowercase"
+ ],
+ "matchValue": [
+ ""
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "preview-1.0",
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "Group1",
+ "rules": [
+ {
+ "ruleId": "GROUP1-0001",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "GROUP1-0002",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "endpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint2"
+ }
+ ]
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "name": "MicrosoftCdnWafPolicy",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/MicrosoftCdnWafPolicy",
+ "type": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "sku": {
+ "name": "Standard_Microsoft"
+ },
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "defaultRedirectUrl": "http://www.bing.com",
+ "defaultCustomBlockResponseStatusCode": 200,
+ "defaultCustomBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "rateLimitRules": {
+ "rules": [
+ {
+ "name": "RateLimitRule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "CustomRule1",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "windows"
+ ]
+ },
+ {
+ "matchVariable": "QueryString",
+ "selector": "search",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [
+ "UrlDecode",
+ "Lowercase"
+ ],
+ "matchValue": [
+ ""
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "preview-1.0",
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "Group1",
+ "rules": [
+ {
+ "ruleId": "GROUP1-0001",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "GROUP1-0002",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "endpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint2"
+ }
+ ]
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "MicrosoftCdnWafPolicy",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/MicrosoftCdnWafPolicy",
+ "type": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "sku": {
+ "name": "Standard_Microsoft"
+ },
+ "properties": {
+ "resourceState": "Creating",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "defaultRedirectUrl": "http://www.bing.com",
+ "defaultCustomBlockResponseStatusCode": 200,
+ "defaultCustomBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "rateLimitRules": {
+ "rules": [
+ {
+ "name": "RateLimitRule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "CustomRule1",
+ "priority": 3,
+ "enabledState": "Enabled",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "windows"
+ ]
+ },
+ {
+ "matchVariable": "QueryString",
+ "selector": "search",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [
+ "UrlDecode",
+ "Lowercase"
+ ],
+ "matchValue": [
+ ""
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "preview-1.0",
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "Group1",
+ "rules": [
+ {
+ "ruleId": "GROUP1-0001",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "GROUP1-0002",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "endpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint2"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyDelete.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyDelete.json
new file mode 100644
index 000000000000..1a88912550cf
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyDelete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "Policy1"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyGet.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyGet.json
new file mode 100644
index 000000000000..086cbc0e512d
--- /dev/null
+++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-04-15/examples/WafPolicyGet.json
@@ -0,0 +1,139 @@
+{
+ "parameters": {
+ "api-version": "2020-04-15",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "MicrosoftCdnWafPolicy"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "MicrosoftCdnWafPolicy",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/MicrosoftCdnWafPolicy",
+ "type": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "sku": {
+ "name": "Standard_Microsoft"
+ },
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "defaultRedirectUrl": "http://www.bing.com",
+ "defaultCustomBlockResponseStatusCode": 429,
+ "defaultCustomBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "rateLimitRules": {
+ "rules": [
+ {
+ "name": "RateLimitRule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "CustomRule1",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [],
+ "matchValue": [
+ "windows"
+ ]
+ },
+ {
+ "matchVariable": "QueryString",
+ "selector": "search",
+ "operator": "Contains",
+ "negateCondition": false,
+ "transforms": [
+ "UrlDecode",
+ "Lowercase"
+ ],
+ "matchValue": [
+ ""
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "preview-1.0",
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "Group1",
+ "rules": [
+ {
+ "ruleId": "GROUP1-0001",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "GROUP1-0002",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "endpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/profiles/profile1/endpoints/testEndpoint2"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cdn/resource-manager/readme.go.md b/specification/cdn/resource-manager/readme.go.md
index 2700f6d89157..b53dccbfb0c7 100644
--- a/specification/cdn/resource-manager/readme.go.md
+++ b/specification/cdn/resource-manager/readme.go.md
@@ -13,6 +13,7 @@ go:
``` yaml $(go) && $(multiapi)
batch:
+ - tag: package-2020-04
- tag: package-2019-06
- tag: package-2019-04
- tag: package-2017-10
@@ -22,13 +23,13 @@ batch:
- tag: package-2015-06
```
-### Tag: package-2019-06 and go
+### Tag: package-2020-04 and go
-These settings apply only when `--tag=package-2019-06 --go` is specified on the command line.
+These settings apply only when `--tag=package-2020-04 --go` is specified on the command line.
Please also specify `--go-sdk-folder=`.
-``` yaml $(tag) == 'package-2019-06' && $(go)
-output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-06-15-preview/$(namespace)
+``` yaml $(tag) == 'package-2020-04' && $(go)
+output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-04-15/$(namespace)
```
### Tag: package-2019-04 and go
diff --git a/specification/cdn/resource-manager/readme.md b/specification/cdn/resource-manager/readme.md
index 6e48071bcdf2..58ca149dc55d 100644
--- a/specification/cdn/resource-manager/readme.md
+++ b/specification/cdn/resource-manager/readme.md
@@ -31,6 +31,16 @@ openapi-type: arm
tag: package-2019-06
```
+### Tag: package-2020-04
+
+These settings apply only when `--tag=package-2020-04` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-04'
+input-file:
+- Microsoft.Cdn/stable/2020-04-15/cdn.json
+- Microsoft.Cdn/stable/2020-04-15/cdnwebapplicationfirewall.json
+```
+
### Tag: package-2019-12
These settings apply only when `--tag=package-2019-12` is specified on the command line.
@@ -177,6 +187,8 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.Cdn/stable/2020-04-15/cdn.json
+ - $(this-folder)/Microsoft.Cdn/stable/2020-04-15/cdnwebapplicationfirewall.json
- $(this-folder)/Microsoft.Cdn/stable/2019-12-31/cdn.json
- $(this-folder)/Microsoft.Cdn/stable/2019-06-15/cdn.json
- $(this-folder)/Microsoft.Cdn/stable/2019-06-15/cdnwebapplicationfirewall.json
diff --git a/specification/cdn/resource-manager/readme.ruby.md b/specification/cdn/resource-manager/readme.ruby.md
index 7d3f03852d62..f1c42770c4fa 100644
--- a/specification/cdn/resource-manager/readme.ruby.md
+++ b/specification/cdn/resource-manager/readme.ruby.md
@@ -21,6 +21,16 @@ batch:
- tag: package-2015-06
```
+### Tag: package-2020-04 and ruby
+
+These settings apply only when `--tag=package-2020-04 --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2020-04' && $(ruby)
+namespace: "Azure::CDN::Mgmt::V2020_04_15"
+output-folder: $(ruby-sdks-folder)/management/azure_mgmt_cdn/lib
+```
+
### Tag: package-2019-06 and ruby
These settings apply only when `--tag=package-2019-06 --ruby` is specified on the command line.
diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json
new file mode 100644
index 000000000000..5e9311a95e5a
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json
@@ -0,0 +1,519 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "AzureChangeAnalysisManagementClient",
+ "version": "2020-04-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.ChangeAnalysis/profile/{profileName}": {
+ "get": {
+ "tags": [
+ "ConfigurationProfile"
+ ],
+ "summary": "Gets the configuration profile for the Microsoft.ChangeAnalysis resource provider. The profile name should be always set to 'default'.",
+ "operationId": "ConfigurationProfile_Get",
+ "produces": [
+ "application/json",
+ "default"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/ConfigurationProfileResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "ConfigurationProfile_Get": {
+ "$ref": "./examples/ConfigurationProfileGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ConfigurationProfile"
+ ],
+ "summary": "Updates configuration profile for for the Microsoft.ChangeAnalysis resource provider. The profile name should be always set to 'default'.",
+ "operationId": "ConfigurationProfile_Create",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json",
+ "default"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "Request body containing new configuration profile.",
+ "schema": {
+ "$ref": "#/definitions/ConfigurationProfileResource"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/ConfigurationProfileResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "ConfigurationProfile_Create": {
+ "$ref": "./examples/ConfigurationProfileCreate.json"
+ },
+ "ConfigurationProfile_CreateWithIdentity": {
+ "$ref": "./examples/ConfigurationProfileCreateWithIdentity.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "ConfigurationProfile"
+ ],
+ "summary": "Updates a configuration profile with the specified parameters. The profile name should be always set to 'default'",
+ "operationId": "ConfigurationProfile_Update",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json",
+ "default"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "in": "body",
+ "name": "body",
+ "description": "The parameters for updating a configuration store.",
+ "schema": {
+ "$ref": "#/definitions/ConfigurationProfileResource"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/ConfigurationProfileResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "ConfigurationProfile_Update": {
+ "$ref": "./examples/ConfigurationProfileUpdate.json"
+ },
+ "ConfigurationProfile_UpdateWithIdentity": {
+ "$ref": "./examples/ConfigurationProfileUpdateWithIdentity.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ConfigurationProfile"
+ ],
+ "summary": "Deletes existing configuration profile. The profile name should be always set to 'default'",
+ "operationId": "ConfigurationProfile_Delete",
+ "produces": [
+ "default"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ProfileNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly."
+ },
+ "204": {
+ "description": "No Content - the specified resource was not found."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "ConfigurationProfile_Delete": {
+ "$ref": "./examples/ConfigurationProfileDelete.json"
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.ChangeAnalysis/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "summary": "Lists all the supported operations by the Microsoft.ChangeAnalysis resource provider along with their descriptions.",
+ "operationId": "Operations_List",
+ "produces": [
+ "application/json",
+ "default"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "in": "query",
+ "name": "$skipToken",
+ "description": "A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.",
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/ResourceProviderOperationList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Operations_List": {
+ "$ref": "./examples/OperationsList.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ResourceIdentity": {
+ "description": "The identity block returned by ARM resource that supports managed identity.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "description": "The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities.",
+ "enum": [
+ "None",
+ "SystemAssigned"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ManagedIdentityTypes",
+ "modelAsString": true
+ }
+ },
+ "principalId": {
+ "format": "uuid",
+ "description": "The principal id of the identity. This property will only be provided for a system-assigned identity.",
+ "type": "string",
+ "readOnly": true
+ },
+ "tenantId": {
+ "format": "uuid",
+ "description": "The tenant id associated with the resource's identity. This property will only be provided for a system-assigned identity.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "AzureMonitorWorkspaceProperties": {
+ "description": "Configuration properties of an Azure Monitor workspace that receives change notifications.",
+ "type": "object",
+ "properties": {
+ "workspaceId": {
+ "description": "The Azure Monitor workspace ID - the unique identifier for the Log Analytics workspace.",
+ "type": "string"
+ },
+ "workspaceResourceId": {
+ "description": "The Azure Monitor workspace ARM Resource ID. The resource ID should be in the following format: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}",
+ "type": "string"
+ }
+ }
+ },
+ "NotificationsState": {
+ "description": "The state of notifications feature.",
+ "enum": [
+ "None",
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "NotificationsState",
+ "modelAsString": true
+ }
+ },
+ "NotificationSettings": {
+ "description": "Settings of change notification configuration for a subscription.",
+ "type": "object",
+ "properties": {
+ "azureMonitorWorkspaceProperties": {
+ "$ref": "#/definitions/AzureMonitorWorkspaceProperties"
+ },
+ "activationState": {
+ "$ref": "#/definitions/NotificationsState"
+ }
+ }
+ },
+ "ConfigurationProfileResourceProperties": {
+ "description": "The properties of a configuration profile.",
+ "type": "object",
+ "properties": {
+ "notifications": {
+ "$ref": "#/definitions/NotificationSettings"
+ }
+ }
+ },
+ "SystemData": {
+ "description": "Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources",
+ "type": "object",
+ "properties": {
+ "createdBy": {
+ "description": "A string identifier for the identity that created the resource",
+ "type": "string",
+ "readOnly": true
+ },
+ "createdByType": {
+ "description": "The type of identity that created the resource: user, application, managedIdentity, key",
+ "type": "string",
+ "readOnly": true
+ },
+ "createdAt": {
+ "format": "date-time",
+ "description": "The timestamp of resource creation (UTC)",
+ "type": "string",
+ "readOnly": true
+ },
+ "lastModifiedBy": {
+ "description": "A string identifier for the identity that last modified the resource",
+ "type": "string",
+ "readOnly": true
+ },
+ "lastModifiedByType": {
+ "description": "The type of identity that last modified the resource: user, application, managedIdentity, key",
+ "type": "string",
+ "readOnly": true
+ },
+ "lastModifiedAt": {
+ "format": "date-time",
+ "description": "The timestamp of resource last modification (UTC)",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "ConfigurationProfileResource": {
+ "description": "A profile object that contains change analysis configuration, such as notification settings, for this subscription",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "identity": {
+ "$ref": "#/definitions/ResourceIdentity"
+ },
+ "properties": {
+ "$ref": "#/definitions/ConfigurationProfileResourceProperties"
+ }
+ }
+ },
+ "ProxyResource": {
+ "description": "An Azure resource.",
+ "properties": {
+ "id": {
+ "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.",
+ "type": "string",
+ "readOnly": true
+ },
+ "name": {
+ "description": "The name of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "type": {
+ "description": "The type of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "systemData": {
+ "$ref": "#/definitions/SystemData"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "ResourceProviderOperationDisplay": {
+ "description": "The resource provider operation details.",
+ "type": "object",
+ "properties": {
+ "provider": {
+ "description": "Name of the resource provider.",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Name of the resource type.",
+ "type": "string"
+ },
+ "operation": {
+ "description": "Name of the resource provider operation.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description of the resource provider operation.",
+ "type": "string"
+ }
+ }
+ },
+ "ResourceProviderOperationDefinition": {
+ "description": "The resource provider operation definition.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The resource provider operation name.",
+ "type": "string"
+ },
+ "display": {
+ "$ref": "#/definitions/ResourceProviderOperationDisplay"
+ }
+ }
+ },
+ "ResourceProviderOperationList": {
+ "description": "The resource provider operation list.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Resource provider operations list.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceProviderOperationDefinition"
+ }
+ },
+ "nextLink": {
+ "description": "The URI that can be used to request the next page for list of Azure operations.",
+ "type": "string"
+ }
+ }
+ },
+ "Error": {
+ "description": "Unexpected Microsoft.ChangeAnalysis Resource Provider Error.",
+ "properties": {
+ "code": {
+ "description": "Error code.",
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message.",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "ProfileNameParameter": {
+ "in": "path",
+ "name": "profileName",
+ "description": "The name of the configuration profile. The profile name should be set to 'default', all other names will be overwritten.",
+ "required": true,
+ "type": "string",
+ "pattern": "^(?!.*-$)[^-][a-zA-Z0-9-]*$",
+ "x-ms-parameter-location": "method"
+ },
+ "SubscriptionIdParameter": {
+ "in": "path",
+ "name": "subscriptionId",
+ "description": "The Microsoft Azure subscription ID.",
+ "required": true,
+ "type": "string"
+ },
+ "ApiVersionParameter": {
+ "in": "query",
+ "name": "api-version",
+ "description": "The resource provider API version.",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ },
+ "description": "Azure Active Directory OAuth2 Flow"
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json
new file mode 100644
index 000000000000..bd24d84d7d07
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "profileName": "default",
+ "api-version": "2020-04-01-preview",
+ "resource": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "type": "Microsoft.AppConfiguration/profile",
+ "properties": {
+ "notifications": {
+ "azureMonitorWorkspaceProperties": {
+ "workspaceId": null,
+ "workspaceResourceId": null
+ },
+ "activationState": "None"
+ }
+ },
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default",
+ "name": "default"
+ }
+ }
+ }
+}
diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json
new file mode 100644
index 000000000000..09c9f23cba8d
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "profileName": "default",
+ "api-version": "2020-04-01-preview",
+ "resource": {
+ "identity": {
+ "type": "SystemAssigned"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "type": "Microsoft.ChangeAnalysis/profile",
+ "properties": {
+ "notifications": {
+ "azureMonitorWorkspaceProperties": {
+ "workspaceId": null,
+ "workspaceResourceId": null
+ },
+ "activationState": "None"
+ }
+ },
+ "identity": {
+ "principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA",
+ "tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB",
+ "type": "SystemAssigned"
+ },
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default",
+ "name": "default"
+ }
+ }
+ }
+}
diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json
new file mode 100644
index 000000000000..a30a48f30bf0
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "profileName": "default",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json
new file mode 100644
index 000000000000..9cc400f02bac
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "profileName": "default",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "type": "Microsoft.ChangeAnalysis/profile",
+ "properties": {
+ "notifications": {
+ "azureMonitorWorkspaceProperties": {
+ "workspaceId": null,
+ "workspaceResourceId": null
+ },
+ "activationState": "None"
+ }
+ },
+ "identity": {
+ "principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA",
+ "tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB",
+ "type": "SystemAssigned"
+ },
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default",
+ "name": "default"
+ }
+ }
+ }
+}
diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json
new file mode 100644
index 000000000000..000c465f20ca
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "profileName": "default",
+ "api-version": "2020-04-01-preview",
+ "resource": {
+ "properties": {
+ "notifications": {
+ "azureMonitorWorkspaceProperties": {
+ "workspaceId": "workspaceIdValue",
+ "workspaceResourceId": "workspace resource Id"
+ },
+ "activationState": "Enabled"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "type": "Microsoft.ChangeAnalysis/profile",
+ "properties": {
+ "notifications": {
+ "azureMonitorWorkspaceProperties": {
+ "workspaceId": "workspaceIdValue",
+ "workspaceResourceId": "workspace resource Id"
+ },
+ "activationState": "Enabled"
+ }
+ }
+ },
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default",
+ "name": "default"
+ }
+ }
+}
diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json
new file mode 100644
index 000000000000..3b06d6733ce9
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "profileName": "default",
+ "api-version": "2020-04-01-preview",
+ "resource": {
+ "properties": {
+ "notifications": {
+ "azureMonitorWorkspaceProperties": {
+ "workspaceId": "workspaceIdValue",
+ "workspaceResourceId": "workspace resource Id"
+ },
+ "activationState": "Enabled"
+ }
+ },
+ "identity": {
+ "type": "SystemAssigned"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "type": "Microsoft.ChangeAnalysis/profile",
+ "properties": {
+ "notifications": {
+ "azureMonitorWorkspaceProperties": {
+ "workspaceId": "workspaceIdValue",
+ "workspaceResourceId": "workspace resource Id"
+ },
+ "activationState": "Enabled"
+ }
+ },
+ "identity": {
+ "principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA",
+ "tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB",
+ "type": "SystemAssigned"
+ },
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default",
+ "name": "default"
+ }
+ }
+ }
+}
diff --git a/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json
new file mode 100644
index 000000000000..2d2000363115
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.ChangeAnalysis/profile/read",
+ "display": {
+ "provider": "Microsoft Change Analysis",
+ "resource": "Azure Application Change Analysis Service Configuration Profile",
+ "operation": "Read Azure Application Change Analysis Servie Configuration Profile"
+ }
+ },
+ {
+ "name": "Microsoft.ChangeAnalysis/profile/write",
+ "display": {
+ "provider": "Microsoft Change Analysis",
+ "resource": "Azure Application Change Analysis Service Configuration Profile",
+ "operation": "Create or Update Azure Application Change Analysis Servie Configuration Profile Properties"
+ }
+ },
+ {
+ "name": "Microsoft.ChangeAnalysis/register/action",
+ "display": {
+ "provider": "Microsoft Change Analysis",
+ "resource": "",
+ "operation": "Register Microsoft Change Analysis resource provider with a subscriptions"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/changeanalysis/resource-manager/readme.csharp.md b/specification/changeanalysis/resource-manager/readme.csharp.md
new file mode 100644
index 000000000000..8e5139845e12
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/readme.csharp.md
@@ -0,0 +1,15 @@
+## C
+
+These settings apply only when `--csharp` is specified on the command line.
+Please also specify `--csharp-sdks-folder=`.
+
+```yaml $(csharp)
+csharp:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 1
+ clear-output-folder: true
+ client-side-validation: false
+ namespace: Microsoft.ChangeAnalysis
+ output-folder: $(csharp-sdks-folder)/changeanalysis/management/Microsoft.ChangeAnalysis/GeneratedProtocol
+```
diff --git a/specification/changeanalysis/resource-manager/readme.go.md b/specification/changeanalysis/resource-manager/readme.go.md
new file mode 100644
index 000000000000..c2b2c0df4332
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/readme.go.md
@@ -0,0 +1,19 @@
+## Go
+
+These settings apply only when `--go` is specified on the command line.
+
+```yaml $(go)
+go:
+ license-header: MICROSOFT_APACHE_NO_VERSION
+ clear-output-folder: true
+```
+
+### Tag: package-2020-04-01-preview and go
+
+These settings apply only when `--tag=package-2020-04-01-preview --go` is specified on the command line.
+Please also specify `--go-sdks-folder=`.
+
+```yaml $(tag) == 'package-2020-04-01-preview' && $(go)
+namespace: Microsoft.ChangeAnalysis
+output-folder: $(go-sdks-folder)/changeanalysis/Generated
+```
diff --git a/specification/changeanalysis/resource-manager/readme.md b/specification/changeanalysis/resource-manager/readme.md
new file mode 100644
index 000000000000..82bb9acfa298
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/readme.md
@@ -0,0 +1,140 @@
+# changeanalysis
+
+> see https://aka.ms/autorest
+
+This is the AutoRest configuration file for changeanalysis.
+
+## Getting Started
+
+To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
+
+> `autorest readme.md`
+
+To see additional help and options, run:
+
+> `autorest --help`
+
+For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
+
+---
+
+## Configuration
+
+### Basic Information
+
+These are the global settings for the changeanalysis.
+
+``` yaml
+openapi-type: arm
+tag: package-2020-04-01-preview
+```
+
+### Tag: package-2020-04-01-preview
+
+These settings apply only when `--tag=package-2020-04-01-preview` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-04-01-preview'
+input-file:
+ - Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json
+
+```
+
+---
+
+# Code Generation
+
+## Swagger to SDK
+
+This section describes what SDK should be generated by the automatic system.
+This is not used by Autorest itself.
+
+``` yaml $(swagger-to-sdk)
+swagger-to-sdk:
+ - repo: azure-sdk-for-python
+ - repo: azure-sdk-for-java
+ - repo: azure-sdk-for-go
+ - repo: azure-sdk-for-js
+ - repo: azure-sdk-for-ruby
+ after_scripts:
+ - bundle install && rake arm:regen_all_profiles['azure_mgmt_changeanalysis']
+```
+
+## Go
+
+See configuration in [readme.go.md](./readme.go.md)
+
+## Python
+
+See configuration in [readme.python.md](./readme.python.md)
+
+## Ruby
+
+See configuration in [readme.ruby.md](./readme.ruby.md)
+
+## TypeScript
+
+See configuration in [readme.typescript.md](./readme.typescript.md)
+
+## CSharp
+
+See configuration in [readme.csharp.md](./readme.csharp.md)
+
+## Suppression
+
+``` yaml
+directive:
+ - suppress: BodyTopLevelProperties
+ where: $.definitions.ConfigurationProfileResource.properties
+ from: changeanalysis.json
+ reason: |-
+ https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources
+
+ The systemData should be top level element based on the new requirement:
+ {
+ "id": "/subscriptions/{id}/resourceGroups/{group}/providers/{rpns}/{type}/{name}",
+ "name": "{name}",
+ "type": "{resourceProviderNamespace}/{resourceType}",
+ "location": "North US",
+ "systemData":{
+ "createdBy": "",
+ "createdByType": "",
+ "createdAt": "",
+ "lastModifiedBy": "",
+ "lastModifiedByType": "",
+ "lastModifiedAt": ""
+ },
+ "tags": {
+ "key1": "value 1",
+ "key2": "value 2"
+ },
+ "kind": "resource kind",
+ "properties": {
+ "comment": "Resource defined structure"
+ }
+ }
+```
+
+## Multi-API/Profile support for AutoRest v3 generators
+
+AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
+
+This block is updated by an automatic script. Edits may be lost!
+
+``` yaml $(tag) == 'all-api-versions' /* autogenerated */
+# include the azure profile definitions from the standard location
+require: $(this-folder)/../../../profiles/readme.md
+
+# all the input files across all versions
+input-file:
+ - $(this-folder)/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json
+
+```
+
+If there are files that should not be in the `all-api-versions` set,
+uncomment the `exclude-file` section below and add the file paths.
+
+``` yaml $(tag) == 'all-api-versions'
+#exclude-file:
+# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
+```
+
diff --git a/specification/changeanalysis/resource-manager/readme.python.md b/specification/changeanalysis/resource-manager/readme.python.md
new file mode 100644
index 000000000000..5bfa3618bd78
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/readme.python.md
@@ -0,0 +1,21 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+
+```yaml $(python)
+python:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: Microsoft.ChangeAnalysis
+ package-name: changeanalysis
+ package-version: 2020-04-01-preview
+ clear-output-folder: true
+```
+
+```yaml $(python)
+python:
+ no-namespace-folders: true
+ output-folder: $(python-sdks-folder)/azure-mgmt/changeanalysis
+```
diff --git a/specification/changeanalysis/resource-manager/readme.ruby.md b/specification/changeanalysis/resource-manager/readme.ruby.md
new file mode 100644
index 000000000000..7b7265a1b2ca
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/readme.ruby.md
@@ -0,0 +1,19 @@
+## Ruby
+
+These settings apply only when `--ruby` is specified on the command line.
+
+```yaml
+package-name: azure_mgmt_changeanalysis
+package-version: 2020-04-01-preview
+azure-arm: true
+```
+
+### Tag: package-2020-04-01-preview and ruby
+
+These settings apply only when `--tag=package-2020-04-01-preview --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+```yaml $(tag) == 'package-2020-04-01-preview' && $(ruby)
+namespace: Microsoft.ChangeAnalysis
+output-folder: $(ruby-sdks-folder)/changeanalysis
+```
diff --git a/specification/changeanalysis/resource-manager/readme.typescript.md b/specification/changeanalysis/resource-manager/readme.typescript.md
new file mode 100644
index 000000000000..63e73c265818
--- /dev/null
+++ b/specification/changeanalysis/resource-manager/readme.typescript.md
@@ -0,0 +1,13 @@
+## TypeScript
+
+These settings apply only when `--typescript` is specified on the command line.
+Please also specify `--typescript-sdks-folder=`.
+
+```yaml $(typescript)
+typescript:
+ azure-arm: true
+ package-name: "changeanalysis"
+ output-folder: "$(typescript-sdks-folder)/packages/changeanalysis"
+ payload-flattening-threshold: 1
+ generate-metadata: true
+```
diff --git a/specification/cognitiveservices/data-plane/AnomalyDetector/preview/v1.0/AnomalyDetector.json b/specification/cognitiveservices/data-plane/AnomalyDetector/preview/v1.0/AnomalyDetector.json
index 8a3f2b3797fc..ac5d89494132 100644
--- a/specification/cognitiveservices/data-plane/AnomalyDetector/preview/v1.0/AnomalyDetector.json
+++ b/specification/cognitiveservices/data-plane/AnomalyDetector/preview/v1.0/AnomalyDetector.json
@@ -188,7 +188,7 @@
},
"Granularity": {
"type": "string",
- "description": "Can only be one of yearly, monthly, weekly, daily, hourly or minutely. Granularity is used for verify whether input series is valid.",
+ "description": "Can only be one of yearly, monthly, weekly, daily, hourly, minutely or secondly. Granularity is used for verify whether input series is valid.",
"x-nullable": false,
"x-ms-enum": {
"name": "Granularity",
@@ -200,7 +200,8 @@
"weekly",
"daily",
"hourly",
- "minutely"
+ "minutely",
+ "secondly"
]
},
"CustomInterval": {
@@ -404,7 +405,7 @@
},
"granularity": {
"$ref": "#/definitions/Granularity",
- "description": "Can only be one of yearly, monthly, weekly, daily, hourly or minutely. Granularity is used for verify whether input series is valid."
+ "description": "Can only be one of yearly, monthly, weekly, daily, hourly, minutely or secondly. Granularity is used for verify whether input series is valid."
},
"customInterval": {
"description": "Custom Interval is used to set non-standard time interval, for example, if the series is 5 minutes, request can be set as {\"granularity\":\"minutely\", \"customInterval\":5}.",
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/readme.go.md b/specification/cognitiveservices/data-plane/ComputerVision/readme.go.md
index 3696b8eb182f..8fb795822422 100644
--- a/specification/cognitiveservices/data-plane/ComputerVision/readme.go.md
+++ b/specification/cognitiveservices/data-plane/ComputerVision/readme.go.md
@@ -42,5 +42,5 @@ These settings apply only when `--tag=release_3_0 --go` is specified on the comm
Please also specify `--go-sdk-folder=`.
``` yaml $(tag) == 'release_3_0' && $(go)
-output-folder: $(go-sdk-folder)/services/preview/cognitiveservices/v3.0-preview/$(namespace)
+output-folder: $(go-sdk-folder)/services/cognitiveservices/v3.0/$(namespace)
```
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/readme.md b/specification/cognitiveservices/data-plane/ComputerVision/readme.md
index 31c01fd4644b..020fca003e1d 100644
--- a/specification/cognitiveservices/data-plane/ComputerVision/readme.md
+++ b/specification/cognitiveservices/data-plane/ComputerVision/readme.md
@@ -4,11 +4,11 @@
Configuration for generating Computer Vision SDK.
-The current release is `release_2_1`.
+The current release is `release_3_0`.
``` yaml
-tag: release_2_1
+tag: release_3_0
add-credentials: true
openapi-type: data-plane
```
@@ -32,12 +32,21 @@ input-file:
- stable/v2.1/Ocr.json
```
+### Release 3.0-preview
+These settings apply only when `--tag=release_3_0_preview` is specified on the command line.
+
+``` yaml $(tag) == 'release_3_0_preview'
+input-file:
+ - preview/v3.0-preview/Ocr.json
+```
+
### Release 3.0
These settings apply only when `--tag=release_3_0` is specified on the command line.
``` yaml $(tag) == 'release_3_0'
input-file:
- - preview/v3.0-preview/Ocr.json
+ - stable/v3.0/ComputerVision.json
+ - stable/v3.0/Ocr.json
```
## Swagger to SDK
@@ -155,6 +164,8 @@ input-file:
- $(this-folder)/stable/v2.1/ComputerVision.json
- $(this-folder)/stable/v2.1/Ocr.json
- $(this-folder)/preview/v3.0-preview/Ocr.json
+ - $(this-folder)/stable/v3.0/ComputerVision.json
+ - $(this-folder)/stable/v3.0/Ocr.json
```
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/readme.ruby.md b/specification/cognitiveservices/data-plane/ComputerVision/readme.ruby.md
index 543dbe567e1d..019525023fad 100644
--- a/specification/cognitiveservices/data-plane/ComputerVision/readme.ruby.md
+++ b/specification/cognitiveservices/data-plane/ComputerVision/readme.ruby.md
@@ -31,3 +31,14 @@ namespace: "Azure::CognitiveServices::ComputerVision::V2_1"
output-folder: $(ruby-sdks-folder)/data/azure_cognitiveservices_computervision/lib
title: "ComputerVisionClient"
```
+
+### Tag: release_3_0 and ruby
+
+These settings apply only when `--tag=release_3_0 --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'release_3_0' && $(ruby)
+namespace: "Azure::CognitiveServices::ComputerVision::V3_0"
+output-folder: $(ruby-sdks-folder)/data/azure_cognitiveservices_computervision/lib
+title: "ComputerVisionClient"
+```
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/ComputerVision.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/ComputerVision.json
new file mode 100644
index 000000000000..4ffa82212a66
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/ComputerVision.json
@@ -0,0 +1,1840 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "3.0",
+ "title": "Computer Vision Client",
+ "description": "The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effectively."
+ },
+ "securityDefinitions": {
+ "apim_key": {
+ "type": "apiKey",
+ "name": "Ocp-Apim-Subscription-Key",
+ "in": "header"
+ }
+ },
+ "security": [
+ {
+ "apim_key": []
+ }
+ ],
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{Endpoint}",
+ "useSchemePrefix": false,
+ "parameters": [
+ {
+ "$ref": "#/parameters/Endpoint"
+ }
+ ]
+ },
+ "host": "westcentralus.api.cognitive.microsoft.com",
+ "basePath": "/vision/v3.0",
+ "schemes": [
+ "https"
+ ],
+ "paths": {
+ "/analyze": {
+ "post": {
+ "description": "This operation extracts a rich set of visual features based on the image content.\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL. Within your request, there is an optional parameter to allow you to choose which features to return. By default, image categories are returned in the response.\r\nA successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "AnalyzeImage",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/VisualFeatures"
+ },
+ {
+ "name": "details",
+ "in": "query",
+ "description": "A string indicating which domain-specific details to return. Multiple values should be comma-separated. Valid visual feature types include: Celebrities - identifies celebrities if detected in the image, Landmarks - identifies notable landmarks in the image.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "Celebrities",
+ "Landmarks"
+ ],
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "Details",
+ "modelAsString": false
+ }
+ },
+ "collectionFormat": "csv",
+ "x-nullable": true
+ },
+ {
+ "$ref": "#/parameters/ServiceLanguage"
+ },
+ {
+ "$ref": "#/parameters/DescriptionExclude"
+ },
+ {
+ "$ref": "#/parameters/ImageUrl"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The response include the extracted features in JSON format. Here is the definitions for enumeration types:\r\n ClipartType\r\n Non - clipart = 0, ambiguous = 1, normal - clipart = 2, good - clipart = 3. LineDrawingTypeNon - LineDrawing = 0, LineDrawing = 1.",
+ "schema": {
+ "$ref": "#/definitions/ImageAnalysis"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful AnalyzeImage request": {
+ "$ref": "./examples/SuccessfulAnalyzeImageWithUrl.json"
+ }
+ }
+ }
+ },
+ "/describe": {
+ "post": {
+ "description": "This operation generates a description of an image in human readable language with complete sentences. The description is based on a collection of content tags, which are also returned by the operation. More than one description can be generated for each image. Descriptions are ordered by their confidence score. Descriptions may include results from celebrity and landmark domain models, if applicable.\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL.\r\nA successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "DescribeImage",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "maxCandidates",
+ "in": "query",
+ "description": "Maximum number of candidate descriptions to be returned. The default is 1.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 1,
+ "x-nullable": true
+ },
+ {
+ "$ref": "#/parameters/ServiceLanguage"
+ },
+ {
+ "$ref": "#/parameters/DescriptionExclude"
+ },
+ {
+ "$ref": "#/parameters/ImageUrl"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Image description object.",
+ "schema": {
+ "$ref": "#/definitions/ImageDescription"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DescribeImage request": {
+ "$ref": "./examples/SuccessfulDescribeImageWithUrl.json"
+ }
+ }
+ }
+ },
+ "/detect": {
+ "post": {
+ "description": "Performs object detection on the specified image.\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL.\r\nA successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "DetectObjects",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ImageUrl"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The response include the detected objects in JSON format.",
+ "schema": {
+ "$ref": "#/definitions/DetectResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DetectObjects request": {
+ "$ref": "./examples/SuccessfulDetectObjectsWithUrl.json"
+ }
+ }
+ }
+ },
+ "/models": {
+ "get": {
+ "description": "This operation returns the list of domain-specific models that are supported by the Computer Vision API. Currently, the API supports following domain-specific models: celebrity recognizer, landmark recognizer.\r\nA successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "ListModels",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "200": {
+ "description": "List of available domain models.",
+ "schema": {
+ "$ref": "#/definitions/ListModelsResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful ListModels request": {
+ "$ref": "./examples/SuccessfulListModels.json"
+ }
+ }
+ }
+ },
+ "/models/{model}/analyze": {
+ "post": {
+ "description": "This operation recognizes content within an image by applying a domain-specific model. The list of domain-specific models that are supported by the Computer Vision API can be retrieved using the /models GET request. Currently, the API provides following domain-specific models: celebrities, landmarks.\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL.\r\nA successful response will be returned in JSON.\r\nIf the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "AnalyzeImageByDomain",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "model",
+ "in": "path",
+ "description": "The domain-specific content to recognize.",
+ "required": true,
+ "type": "string",
+ "x-nullable": true
+ },
+ {
+ "$ref": "#/parameters/ServiceLanguage"
+ },
+ {
+ "$ref": "#/parameters/ImageUrl"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Analysis result based on the domain model.",
+ "schema": {
+ "$ref": "#/definitions/DomainModelResults"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful AnalyzeImageByDomain request": {
+ "$ref": "./examples/SuccessfulAnalyzeImageByDomainWithUrl.json"
+ }
+ }
+ }
+ },
+ "/ocr": {
+ "post": {
+ "description": "Optical Character Recognition (OCR) detects text in an image and extracts the recognized characters into a machine-usable character stream.\r\nUpon success, the OCR results will be returned.\r\nUpon failure, the error code together with an error message will be returned. The error code can be one of InvalidImageUrl, InvalidImageFormat, InvalidImageSize, NotSupportedImage, NotSupportedLanguage, or InternalServerError.",
+ "operationId": "RecognizePrintedText",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/DetectOrientation"
+ },
+ {
+ "$ref": "#/parameters/OcrLanguage"
+ },
+ {
+ "$ref": "#/parameters/ImageUrl"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The OCR results in the hierarchy of region/line/word. The results include text, bounding box for regions, lines and words. The angle, in radians, of the detected text with respect to the closest horizontal or vertical direction. After rotating the input image clockwise by this angle, the recognized text lines become horizontal or vertical. In combination with the orientation property it can be used to overlay recognition results correctly on the original image, by rotating either the original image or recognition results by a suitable angle around the center of the original image. If the angle cannot be confidently detected, this property is not present. If the image contains text at different angles, only part of the text will be recognized correctly.",
+ "schema": {
+ "$ref": "#/definitions/OcrResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful RecognizePrintedText request": {
+ "$ref": "./examples/SuccessfulRecognizePrintedTextWithUrl.json"
+ }
+ }
+ }
+ },
+ "/tag": {
+ "post": {
+ "description": "This operation generates a list of words, or tags, that are relevant to the content of the supplied image. The Computer Vision API can return tags based on objects, living beings, scenery or actions found in images. Unlike categories, tags are not organized according to a hierarchical classification system, but correspond to image content. Tags may contain hints to avoid ambiguity or provide context, for example the tag \"ascomycete\" may be accompanied by the hint \"fungus\".\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL.\r\nA successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "TagImage",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ServiceLanguage"
+ },
+ {
+ "$ref": "#/parameters/ImageUrl"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Image tags object.",
+ "schema": {
+ "$ref": "#/definitions/TagResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful TagImage request": {
+ "$ref": "./examples/SuccessfulTagImageWithUrl.json"
+ }
+ }
+ }
+ },
+ "/generateThumbnail": {
+ "post": {
+ "description": "This operation generates a thumbnail image with the user-specified width and height. By default, the service analyzes the image, identifies the region of interest (ROI), and generates smart cropping coordinates based on the ROI. Smart cropping helps when you specify an aspect ratio that differs from that of the input image.\r\nA successful response contains the thumbnail image binary. If the request failed, the response contains an error code and a message to help determine what went wrong.\r\nUpon failure, the error code and an error message are returned. The error code could be one of InvalidImageUrl, InvalidImageFormat, InvalidImageSize, InvalidThumbnailSize, NotSupportedImage, FailedToProcess, Timeout, or InternalServerError.",
+ "operationId": "GenerateThumbnail",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/octet-stream"
+ ],
+ "parameters": [
+ {
+ "name": "width",
+ "in": "query",
+ "description": "Width of the thumbnail, in pixels. It must be between 1 and 1024. Recommended minimum of 50.",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 1024,
+ "minimum": 1,
+ "x-nullable": false
+ },
+ {
+ "name": "height",
+ "in": "query",
+ "description": "Height of the thumbnail, in pixels. It must be between 1 and 1024. Recommended minimum of 50.",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 1024,
+ "minimum": 1,
+ "x-nullable": false
+ },
+ {
+ "name": "smartCropping",
+ "in": "query",
+ "description": "Boolean flag for enabling smart cropping.",
+ "required": false,
+ "type": "boolean",
+ "default": false,
+ "x-nullable": true
+ },
+ {
+ "$ref": "#/parameters/ImageUrl"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The generated thumbnail in binary format.",
+ "schema": {
+ "type": "file"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GenerateThumbnail request": {
+ "$ref": "./examples/SuccessfulGenerateThumbnailWithUrl.json"
+ }
+ }
+ }
+ },
+ "/areaOfInterest": {
+ "post": {
+ "description": "This operation returns a bounding box around the most important area of the image.\r\nA successful response will be returned in JSON. If the request failed, the response contains an error code and a message to help determine what went wrong.\r\nUpon failure, the error code and an error message are returned. The error code could be one of InvalidImageUrl, InvalidImageFormat, InvalidImageSize, NotSupportedImage, FailedToProcess, Timeout, or InternalServerError.",
+ "operationId": "GetAreaOfInterest",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ImageUrl"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The response includes the extracted area of interest in JSON format.",
+ "schema": {
+ "$ref": "#/definitions/AreaOfInterestResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetAreaOfInterest request": {
+ "$ref": "./examples/SuccessfulGetAreaOfInterestWithUrl.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ImageAnalysis": {
+ "description": "Result of AnalyzeImage operation.",
+ "type": "object",
+ "properties": {
+ "categories": {
+ "description": "An array indicating identified categories.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Category"
+ },
+ "x-nullable": true
+ },
+ "adult": {
+ "$ref": "#/definitions/AdultInfo",
+ "description": "An object describing whether the image contains adult-oriented content and/or is racy."
+ },
+ "color": {
+ "$ref": "#/definitions/ColorInfo",
+ "description": "An object providing additional metadata describing color attributes."
+ },
+ "imageType": {
+ "$ref": "#/definitions/ImageType",
+ "description": "An object providing possible image types and matching confidence levels."
+ },
+ "tags": {
+ "description": "A list of tags with confidence level.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageTag"
+ },
+ "x-nullable": true
+ },
+ "description": {
+ "$ref": "#/definitions/ImageDescriptionDetails",
+ "description": "A collection of content tags, along with a list of captions sorted by confidence level, and image metadata."
+ },
+ "faces": {
+ "description": "An array of possible faces within the image.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/FaceDescription"
+ },
+ "x-nullable": true
+ },
+ "objects": {
+ "description": "Array of objects describing what was detected in the image.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DetectedObject"
+ },
+ "x-nullable": true
+ },
+ "brands": {
+ "description": "Array of brands detected in the image.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DetectedBrand"
+ },
+ "x-nullable": true
+ },
+ "requestId": {
+ "description": "Id of the REST API request.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "metadata": {
+ "$ref": "#/definitions/ImageMetadata"
+ }
+ },
+ "x-nullable": true
+ },
+ "Category": {
+ "description": "An object describing identified category.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the category.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "score": {
+ "format": "double",
+ "description": "Scoring of the category.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "detail": {
+ "$ref": "#/definitions/CategoryDetail",
+ "description": "Details of the identified category."
+ }
+ },
+ "x-nullable": true
+ },
+ "AdultInfo": {
+ "description": "An object describing whether the image contains adult-oriented content and/or is racy.",
+ "type": "object",
+ "properties": {
+ "isAdultContent": {
+ "description": "A value indicating if the image contains adult-oriented content.",
+ "type": "boolean",
+ "x-nullable": false
+ },
+ "isRacyContent": {
+ "description": "A value indicating if the image is racy.",
+ "type": "boolean",
+ "x-nullable": false
+ },
+ "isGoryContent": {
+ "description": "A value indicating if the image is gory.",
+ "type": "boolean",
+ "x-nullable": false
+ },
+ "adultScore": {
+ "format": "double",
+ "description": "Score from 0 to 1 that indicates how much the content is considered adult-oriented within the image.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "racyScore": {
+ "format": "double",
+ "description": "Score from 0 to 1 that indicates how suggestive is the image.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "goreScore": {
+ "format": "double",
+ "description": "Score from 0 to 1 that indicates how gory is the image.",
+ "type": "number",
+ "x-nullable": false
+ }
+ },
+ "x-nullable": true
+ },
+ "ColorInfo": {
+ "description": "An object providing additional metadata describing color attributes.",
+ "type": "object",
+ "properties": {
+ "dominantColorForeground": {
+ "description": "Possible dominant foreground color.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "dominantColorBackground": {
+ "description": "Possible dominant background color.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "dominantColors": {
+ "description": "An array of possible dominant colors.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "x-nullable": true
+ },
+ "x-nullable": true
+ },
+ "accentColor": {
+ "description": "Possible accent color.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "isBWImg": {
+ "description": "A value indicating if the image is black and white.",
+ "type": "boolean",
+ "x-nullable": false
+ }
+ },
+ "x-nullable": true
+ },
+ "ImageType": {
+ "description": "An object providing possible image types and matching confidence levels.",
+ "type": "object",
+ "properties": {
+ "clipArtType": {
+ "format": "int32",
+ "description": "Confidence level that the image is a clip art.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "lineDrawingType": {
+ "format": "int32",
+ "description": "Confidence level that the image is a line drawing.",
+ "type": "integer",
+ "x-nullable": false
+ }
+ },
+ "x-nullable": true
+ },
+ "ImageTag": {
+ "description": "An entity observation in the image, along with the confidence score.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the entity.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "confidence": {
+ "format": "double",
+ "description": "The level of confidence that the entity was observed.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "hint": {
+ "description": "Optional hint/details for this tag.",
+ "type": "string",
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "ImageDescriptionDetails": {
+ "description": "A collection of content tags, along with a list of captions sorted by confidence level, and image metadata.",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "description": "A collection of image tags.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "x-nullable": true
+ },
+ "x-nullable": true
+ },
+ "captions": {
+ "description": "A list of captions, sorted by confidence level.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageCaption"
+ },
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "FaceDescription": {
+ "description": "An object describing a face identified in the image.",
+ "type": "object",
+ "properties": {
+ "age": {
+ "format": "int32",
+ "description": "Possible age of the face.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "gender": {
+ "description": "Possible gender of the face.",
+ "enum": [
+ "Male",
+ "Female"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "Gender",
+ "modelAsString": false
+ },
+ "x-nullable": true
+ },
+ "faceRectangle": {
+ "$ref": "#/definitions/FaceRectangle",
+ "description": "Rectangle in the image containing the identified face."
+ }
+ },
+ "x-nullable": true
+ },
+ "DetectedObject": {
+ "description": "An object detected in an image.",
+ "type": "object",
+ "properties": {
+ "rectangle": {
+ "$ref": "#/definitions/BoundingRect",
+ "description": "Approximate location of the detected object.",
+ "readOnly": true
+ },
+ "object": {
+ "description": "Label for the object.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "confidence": {
+ "format": "double",
+ "description": "Confidence score of having observed the object in the image, as a value ranging from 0 to 1.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "parent": {
+ "$ref": "#/definitions/ObjectHierarchy",
+ "description": "The parent object, from a taxonomy perspective.\r\nThe parent object is a more generic form of this object. For example, a 'bulldog' would have a parent of 'dog'."
+ }
+ },
+ "x-nullable": true
+ },
+ "DetectedBrand": {
+ "description": "A brand detected in an image.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Label for the brand.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "confidence": {
+ "format": "double",
+ "description": "Confidence score of having observed the brand in the image, as a value ranging from 0 to 1.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "rectangle": {
+ "$ref": "#/definitions/BoundingRect",
+ "description": "Approximate location of the detected brand.",
+ "readOnly": true
+ }
+ },
+ "x-nullable": true
+ },
+ "ImageMetadata": {
+ "description": "Image metadata.",
+ "type": "object",
+ "properties": {
+ "width": {
+ "format": "int32",
+ "description": "Image width, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "height": {
+ "format": "int32",
+ "description": "Image height, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "format": {
+ "description": "Image format.",
+ "type": "string",
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "CategoryDetail": {
+ "description": "An object describing additional category details.",
+ "type": "object",
+ "properties": {
+ "celebrities": {
+ "description": "An array of celebrities if any identified.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CelebritiesModel"
+ },
+ "x-nullable": true
+ },
+ "landmarks": {
+ "description": "An array of landmarks if any identified.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/LandmarksModel"
+ },
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "ImageCaption": {
+ "description": "An image caption, i.e. a brief description of what the image depicts.",
+ "type": "object",
+ "properties": {
+ "text": {
+ "description": "The text of the caption.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "confidence": {
+ "format": "double",
+ "description": "The level of confidence the service has in the caption.",
+ "type": "number",
+ "x-nullable": false
+ }
+ },
+ "x-nullable": true
+ },
+ "FaceRectangle": {
+ "description": "An object describing face rectangle.",
+ "type": "object",
+ "properties": {
+ "left": {
+ "format": "int32",
+ "description": "X-coordinate of the top left point of the face, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "top": {
+ "format": "int32",
+ "description": "Y-coordinate of the top left point of the face, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "width": {
+ "format": "int32",
+ "description": "Width measured from the top-left point of the face, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "height": {
+ "format": "int32",
+ "description": "Height measured from the top-left point of the face, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ }
+ },
+ "x-nullable": true
+ },
+ "BoundingRect": {
+ "description": "A bounding box for an area inside an image.",
+ "type": "object",
+ "properties": {
+ "x": {
+ "format": "int32",
+ "description": "X-coordinate of the top left point of the area, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "y": {
+ "format": "int32",
+ "description": "Y-coordinate of the top left point of the area, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "w": {
+ "format": "int32",
+ "description": "Width measured from the top-left point of the area, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "h": {
+ "format": "int32",
+ "description": "Height measured from the top-left point of the area, in pixels.",
+ "type": "integer",
+ "x-nullable": false
+ }
+ },
+ "x-nullable": false
+ },
+ "ObjectHierarchy": {
+ "description": "An object detected inside an image.",
+ "type": "object",
+ "properties": {
+ "object": {
+ "description": "Label for the object.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "confidence": {
+ "format": "double",
+ "description": "Confidence score of having observed the object in the image, as a value ranging from 0 to 1.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "parent": {
+ "$ref": "#/definitions/ObjectHierarchy",
+ "description": "The parent object, from a taxonomy perspective.\r\nThe parent object is a more generic form of this object. For example, a 'bulldog' would have a parent of 'dog'."
+ }
+ },
+ "x-nullable": true
+ },
+ "CelebritiesModel": {
+ "description": "An object describing possible celebrity identification.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the celebrity.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "confidence": {
+ "format": "double",
+ "description": "Confidence level for the celebrity recognition as a value ranging from 0 to 1.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "faceRectangle": {
+ "$ref": "#/definitions/FaceRectangle",
+ "description": "Location of the identified face in the image."
+ }
+ },
+ "x-nullable": true
+ },
+ "LandmarksModel": {
+ "description": "A landmark recognized in the image.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the landmark.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "confidence": {
+ "format": "double",
+ "description": "Confidence level for the landmark recognition as a value ranging from 0 to 1.",
+ "type": "number",
+ "x-nullable": false
+ }
+ },
+ "x-nullable": true
+ },
+ "ImageDescription": {
+ "description": "A collection of content tags, along with a list of captions sorted by confidence level, and image metadata.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "$ref": "#/definitions/ImageDescriptionDetails",
+ "description": "A collection of content tags, along with a list of captions sorted by confidence level, and image metadata.",
+ "x-ms-client-flatten": true
+ },
+ "requestId": {
+ "description": "Id of the REST API request.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "metadata": {
+ "$ref": "#/definitions/ImageMetadata"
+ }
+ },
+ "x-nullable": true
+ },
+ "DetectResult": {
+ "description": "Result of a DetectImage call.",
+ "type": "object",
+ "properties": {
+ "objects": {
+ "description": "An array of detected objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DetectedObject"
+ },
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "requestId": {
+ "description": "Id of the REST API request.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "metadata": {
+ "$ref": "#/definitions/ImageMetadata"
+ }
+ },
+ "x-nullable": true
+ },
+ "ListModelsResult": {
+ "description": "Result of the List Domain Models operation.",
+ "type": "object",
+ "properties": {
+ "models": {
+ "description": "An array of supported models.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ModelDescription"
+ },
+ "readOnly": true,
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "ModelDescription": {
+ "description": "An object describing supported model by name and categories.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the model.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "categories": {
+ "description": "Categories of the model.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "x-nullable": true
+ },
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "DomainModelResults": {
+ "description": "Result of image analysis using a specific domain model including additional metadata.",
+ "type": "object",
+ "properties": {
+ "result": {
+ "description": "Model-specific response.",
+ "type": "object",
+ "x-ms-client-flatten": true
+ },
+ "requestId": {
+ "description": "Id of the REST API request.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "metadata": {
+ "$ref": "#/definitions/ImageMetadata"
+ }
+ },
+ "x-nullable": true
+ },
+ "OcrResult": {
+ "type": "object",
+ "properties": {
+ "language": {
+ "description": "The BCP-47 language code of the text in the image.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "textAngle": {
+ "format": "double",
+ "description": "The angle, in radians, of the detected text with respect to the closest horizontal or vertical direction. After rotating the input image clockwise by this angle, the recognized text lines become horizontal or vertical. In combination with the orientation property it can be used to overlay recognition results correctly on the original image, by rotating either the original image or recognition results by a suitable angle around the center of the original image. If the angle cannot be confidently detected, this property is not present. If the image contains text at different angles, only part of the text will be recognized correctly.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "orientation": {
+ "description": "Orientation of the text recognized in the image, if requested. The value (up, down, left, or right) refers to the direction that the top of the recognized text is facing, after the image has been rotated around its center according to the detected text angle (see textAngle property).\r\nIf detection of the orientation was not requested, or no text is detected, the value is 'NotDetected'.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "regions": {
+ "description": "An array of objects, where each object represents a region of recognized text.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/OcrRegion"
+ },
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "OcrRegion": {
+ "description": "A region consists of multiple lines (e.g. a column of text in a multi-column document).",
+ "type": "object",
+ "properties": {
+ "boundingBox": {
+ "description": "Bounding box of a recognized region. The four integers represent the x-coordinate of the left edge, the y-coordinate of the top edge, width, and height of the bounding box, in the coordinate system of the input image, after it has been rotated around its center according to the detected text angle (see textAngle property), with the origin at the top-left corner, and the y-axis pointing down.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "lines": {
+ "description": "An array of recognized lines of text.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/OcrLine"
+ },
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "OcrLine": {
+ "description": "An object describing a single recognized line of text.",
+ "type": "object",
+ "properties": {
+ "boundingBox": {
+ "description": "Bounding box of a recognized line. The four integers represent the x-coordinate of the left edge, the y-coordinate of the top edge, width, and height of the bounding box, in the coordinate system of the input image, after it has been rotated around its center according to the detected text angle (see textAngle property), with the origin at the top-left corner, and the y-axis pointing down.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "words": {
+ "description": "An array of objects, where each object represents a recognized word.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/OcrWord"
+ },
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "OcrWord": {
+ "description": "Information on a recognized word.",
+ "type": "object",
+ "properties": {
+ "boundingBox": {
+ "description": "Bounding box of a recognized word. The four integers represent the x-coordinate of the left edge, the y-coordinate of the top edge, width, and height of the bounding box, in the coordinate system of the input image, after it has been rotated around its center according to the detected text angle (see textAngle property), with the origin at the top-left corner, and the y-axis pointing down.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "text": {
+ "description": "String value of a recognized word.",
+ "type": "string",
+ "x-nullable": true
+ }
+ },
+ "x-nullable": true
+ },
+ "TagResult": {
+ "description": "The results of a image tag operation, including any tags and image metadata.",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "description": "A list of tags with confidence level.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageTag"
+ },
+ "x-nullable": true
+ },
+ "requestId": {
+ "description": "Id of the REST API request.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "metadata": {
+ "$ref": "#/definitions/ImageMetadata"
+ }
+ },
+ "x-nullable": true
+ },
+ "AreaOfInterestResult": {
+ "description": "Result of AreaOfInterest operation.",
+ "type": "object",
+ "properties": {
+ "areaOfInterest": {
+ "$ref": "#/definitions/BoundingRect",
+ "description": "A bounding box for an area of interest inside an image.",
+ "readOnly": true
+ },
+ "requestId": {
+ "description": "Id of the REST API request.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "metadata": {
+ "$ref": "#/definitions/ImageMetadata"
+ }
+ },
+ "x-nullable": true
+ },
+ "ImageUrl": {
+ "required": [
+ "url"
+ ],
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "Publicly reachable URL of an image.",
+ "type": "string"
+ }
+ }
+ },
+ "ComputerVisionError": {
+ "description": "Details about the API request error.",
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "The error code.",
+ "enum": [
+ "InvalidImageFormat",
+ "UnsupportedMediaType",
+ "InvalidImageUrl",
+ "NotSupportedFeature",
+ "NotSupportedImage",
+ "Timeout",
+ "InternalServerError",
+ "InvalidImageSize",
+ "BadArgument",
+ "DetectFaceError",
+ "NotSupportedLanguage",
+ "InvalidThumbnailSize",
+ "InvalidDetails",
+ "InvalidModel",
+ "CancelledRequest",
+ "NotSupportedVisualFeature",
+ "FailedToProcess",
+ "Unspecified",
+ "StorageException"
+ ],
+ "x-ms-enum": {
+ "name": "ComputerVisionErrorCodes",
+ "modelAsString": true
+ }
+ },
+ "message": {
+ "description": "A message explaining the error reported by the service.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "A unique request identifier.",
+ "type": "string"
+ }
+ }
+ },
+ "LandmarkResults": {
+ "description": "Result of domain-specific classifications for the domain of landmarks.",
+ "type": "object",
+ "properties": {
+ "landmarks": {
+ "description": "List of landmarks recognized in the image.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/LandmarksModel"
+ },
+ "x-nullable": true
+ },
+ "requestId": {
+ "description": "Id of the REST API request.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "metadata": {
+ "$ref": "#/definitions/ImageMetadata"
+ }
+ },
+ "x-nullable": true
+ },
+ "CelebrityResults": {
+ "description": "Result of domain-specific classifications for the domain of celebrities.",
+ "type": "object",
+ "properties": {
+ "celebrities": {
+ "description": "List of celebrities recognized in the image.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CelebritiesModel"
+ },
+ "x-nullable": true
+ },
+ "requestId": {
+ "description": "Id of the REST API request.",
+ "type": "string",
+ "x-nullable": true
+ },
+ "metadata": {
+ "$ref": "#/definitions/ImageMetadata"
+ }
+ },
+ "x-nullable": true
+ }
+ },
+ "parameters": {
+ "Endpoint": {
+ "name": "Endpoint",
+ "in": "path",
+ "description": "Supported Cognitive Services endpoints.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client",
+ "x-ms-skip-url-encoding": true
+ },
+ "ImageStream": {
+ "name": "Image",
+ "in": "body",
+ "description": "An image stream.",
+ "required": true,
+ "schema": {
+ "format": "file",
+ "type": "object"
+ },
+ "x-ms-parameter-location": "method"
+ },
+ "ImageUrl": {
+ "name": "ImageUrl",
+ "in": "body",
+ "description": "A JSON document with a URL pointing to the image that is to be analyzed.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageUrl"
+ },
+ "x-ms-parameter-location": "method",
+ "x-ms-client-flatten": true
+ },
+ "ServiceLanguage": {
+ "name": "language",
+ "in": "query",
+ "description": "The desired language for output generation. If this parameter is not specified, the default value is "en".Supported languages:en - English, Default. es - Spanish, ja - Japanese, pt - Portuguese, zh - Simplified Chinese.",
+ "required": false,
+ "type": "string",
+ "default": "en",
+ "enum": [
+ "en",
+ "es",
+ "ja",
+ "pt",
+ "zh"
+ ],
+ "x-ms-parameter-location": "method",
+ "x-nullable": false
+ },
+ "DescriptionExclude": {
+ "name": "descriptionExclude",
+ "in": "query",
+ "description": "Turn off specified domain models when generating the description.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "Celebrities",
+ "Landmarks"
+ ],
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "DescriptionExclude",
+ "modelAsString": false
+ }
+ },
+ "collectionFormat": "csv",
+ "x-nullable": true,
+ "x-ms-parameter-location": "method"
+ },
+ "OcrLanguage": {
+ "name": "language",
+ "in": "query",
+ "description": "The BCP-47 language code of the text to be detected in the image. The default value is 'unk'.",
+ "required": false,
+ "type": "string",
+ "default": "unk",
+ "enum": [
+ "unk",
+ "zh-Hans",
+ "zh-Hant",
+ "cs",
+ "da",
+ "nl",
+ "en",
+ "fi",
+ "fr",
+ "de",
+ "el",
+ "hu",
+ "it",
+ "ja",
+ "ko",
+ "nb",
+ "pl",
+ "pt",
+ "ru",
+ "es",
+ "sv",
+ "tr",
+ "ar",
+ "ro",
+ "sr-Cyrl",
+ "sr-Latn",
+ "sk"
+ ],
+ "x-ms-parameter-location": "method",
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "OcrLanguages",
+ "modelAsString": false
+ }
+ },
+ "VisualFeatures": {
+ "name": "visualFeatures",
+ "in": "query",
+ "description": "A string indicating what visual feature types to return. Multiple values should be comma-separated. Valid visual feature types include: Categories - categorizes image content according to a taxonomy defined in documentation. Tags - tags the image with a detailed list of words related to the image content. Description - describes the image content with a complete English sentence. Faces - detects if faces are present. If present, generate coordinates, gender and age. ImageType - detects if image is clipart or a line drawing. Color - determines the accent color, dominant color, and whether an image is black&white. Adult - detects if the image is pornographic in nature (depicts nudity or a sex act), or is gory (depicts extreme violence or blood). Sexually suggestive content (aka racy content) is also detected. Objects - detects various objects within an image, including the approximate location. The Objects argument is only available in English. Brands - detects various brands within an image, including the approximate location. The Brands argument is only available in English.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "ImageType",
+ "Faces",
+ "Adult",
+ "Categories",
+ "Color",
+ "Tags",
+ "Description",
+ "Objects",
+ "Brands"
+ ],
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "VisualFeatureTypes",
+ "modelAsString": false
+ }
+ },
+ "collectionFormat": "csv",
+ "x-ms-parameter-location": "method"
+ },
+ "DetectOrientation": {
+ "name": "detectOrientation",
+ "in": "query",
+ "description": "Whether detect the text orientation in the image. With detectOrientation=true the OCR service tries to detect the image orientation and correct it before further processing (e.g. if it's upside-down).",
+ "required": true,
+ "type": "boolean",
+ "default": true,
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "x-ms-paths": {
+ "/analyze?overload=stream": {
+ "post": {
+ "description": "This operation extracts a rich set of visual features based on the image content.\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL. Within your request, there is an optional parameter to allow you to choose which features to return. By default, image categories are returned in the response.\r\nA successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "AnalyzeImageInStream",
+ "consumes": [
+ "application/octet-stream",
+ "multipart/form-data"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/VisualFeatures"
+ },
+ {
+ "name": "details",
+ "in": "query",
+ "description": "A string indicating which domain-specific details to return. Multiple values should be comma-separated. Valid visual feature types include: Celebrities - identifies celebrities if detected in the image, Landmarks - identifies notable landmarks in the image.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "Celebrities",
+ "Landmarks"
+ ],
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "Details",
+ "modelAsString": false
+ }
+ },
+ "collectionFormat": "csv",
+ "x-nullable": true
+ },
+ {
+ "$ref": "#/parameters/ServiceLanguage"
+ },
+ {
+ "$ref": "#/parameters/DescriptionExclude"
+ },
+ {
+ "$ref": "#/parameters/ImageStream"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The response include the extracted features in JSON format. Here is the definitions for enumeration types:\r\n ClipartType\r\n Non - clipart = 0, ambiguous = 1, normal - clipart = 2, good - clipart = 3. LineDrawingTypeNon - LineDrawing = 0, LineDrawing = 1.",
+ "schema": {
+ "$ref": "#/definitions/ImageAnalysis"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful AnalyzeImage request": {
+ "$ref": "./examples/SuccessfulAnalyzeImageWithStream.json"
+ }
+ }
+ }
+ },
+ "/areaOfInterest?overload=stream": {
+ "post": {
+ "description": "This operation returns a bounding box around the most important area of the image.\r\nA successful response will be returned in JSON. If the request failed, the response contains an error code and a message to help determine what went wrong.\r\nUpon failure, the error code and an error message are returned. The error code could be one of InvalidImageUrl, InvalidImageFormat, InvalidImageSize, NotSupportedImage, FailedToProcess, Timeout, or InternalServerError.",
+ "operationId": "GetAreaOfInterestInStream",
+ "consumes": [
+ "application/octet-stream",
+ "multipart/form-data"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ImageStream"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The response includes the extracted area of interest in JSON format.",
+ "schema": {
+ "$ref": "#/definitions/AreaOfInterestResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetAreaOfInterest request": {
+ "$ref": "./examples/SuccessfulGetAreaOfInterestWithStream.json"
+ }
+ }
+ }
+ },
+ "/describe?overload=stream": {
+ "post": {
+ "description": "This operation generates a description of an image in human readable language with complete sentences. The description is based on a collection of content tags, which are also returned by the operation. More than one description can be generated for each image. Descriptions are ordered by their confidence score. Descriptions may include results from celebrity and landmark domain models, if applicable.\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL.\r\nA successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "DescribeImageInStream",
+ "consumes": [
+ "application/octet-stream",
+ "multipart/form-data"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "maxCandidates",
+ "in": "query",
+ "description": "Maximum number of candidate descriptions to be returned. The default is 1.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 1,
+ "x-nullable": true
+ },
+ {
+ "$ref": "#/parameters/ServiceLanguage"
+ },
+ {
+ "$ref": "#/parameters/DescriptionExclude"
+ },
+ {
+ "$ref": "#/parameters/ImageStream"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Image description object.",
+ "schema": {
+ "$ref": "#/definitions/ImageDescription"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DescribeImage request": {
+ "$ref": "./examples/SuccessfulDescribeImageWithStream.json"
+ }
+ }
+ }
+ },
+ "/detect?overload=stream": {
+ "post": {
+ "description": "Performs object detection on the specified image.\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL.\r\nA successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "DetectObjectsInStream",
+ "consumes": [
+ "application/octet-stream",
+ "multipart/form-data"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ImageStream"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The response include the detected objects in JSON format.",
+ "schema": {
+ "$ref": "#/definitions/DetectResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DetectObjects request": {
+ "$ref": "./examples/SuccessfulDetectObjectsWithStream.json"
+ }
+ }
+ }
+ },
+ "/generateThumbnail?overload=stream": {
+ "post": {
+ "description": "This operation generates a thumbnail image with the user-specified width and height. By default, the service analyzes the image, identifies the region of interest (ROI), and generates smart cropping coordinates based on the ROI. Smart cropping helps when you specify an aspect ratio that differs from that of the input image.\r\nA successful response contains the thumbnail image binary. If the request failed, the response contains an error code and a message to help determine what went wrong.\r\nUpon failure, the error code and an error message are returned. The error code could be one of InvalidImageUrl, InvalidImageFormat, InvalidImageSize, InvalidThumbnailSize, NotSupportedImage, FailedToProcess, Timeout, or InternalServerError.",
+ "operationId": "GenerateThumbnailInStream",
+ "consumes": [
+ "application/octet-stream",
+ "multipart/form-data"
+ ],
+ "produces": [
+ "application/octet-stream"
+ ],
+ "parameters": [
+ {
+ "name": "width",
+ "in": "query",
+ "description": "Width of the thumbnail, in pixels. It must be between 1 and 1024. Recommended minimum of 50.",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 1024,
+ "minimum": 1,
+ "x-nullable": false
+ },
+ {
+ "name": "height",
+ "in": "query",
+ "description": "Height of the thumbnail, in pixels. It must be between 1 and 1024. Recommended minimum of 50.",
+ "required": true,
+ "type": "integer",
+ "format": "int32",
+ "maximum": 1024,
+ "minimum": 1,
+ "x-nullable": false
+ },
+ {
+ "name": "smartCropping",
+ "in": "query",
+ "description": "Boolean flag for enabling smart cropping.",
+ "required": false,
+ "type": "boolean",
+ "default": false,
+ "x-nullable": true
+ },
+ {
+ "$ref": "#/parameters/ImageStream"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The generated thumbnail in binary format.",
+ "schema": {
+ "type": "file"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GenerateThumbnail request": {
+ "$ref": "./examples/SuccessfulGenerateThumbnailWithStream.json"
+ }
+ }
+ }
+ },
+ "/models/{model}/analyze?overload=stream": {
+ "post": {
+ "description": "This operation recognizes content within an image by applying a domain-specific model. The list of domain-specific models that are supported by the Computer Vision API can be retrieved using the /models GET request. Currently, the API provides following domain-specific models: celebrities, landmarks.\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL.\r\nA successful response will be returned in JSON.\r\nIf the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "AnalyzeImageByDomainInStream",
+ "consumes": [
+ "application/octet-stream",
+ "multipart/form-data"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "model",
+ "in": "path",
+ "description": "The domain-specific content to recognize.",
+ "required": true,
+ "type": "string",
+ "x-nullable": true
+ },
+ {
+ "$ref": "#/parameters/ServiceLanguage"
+ },
+ {
+ "$ref": "#/parameters/ImageStream"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Analysis result based on the domain model.",
+ "schema": {
+ "$ref": "#/definitions/DomainModelResults"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful AnalyzeImageByDomain request": {
+ "$ref": "./examples/SuccessfulAnalyzeImageByDomainWithStream.json"
+ }
+ }
+ }
+ },
+ "/ocr?overload=stream": {
+ "post": {
+ "description": "Optical Character Recognition (OCR) detects text in an image and extracts the recognized characters into a machine-usable character stream.\r\nUpon success, the OCR results will be returned.\r\nUpon failure, the error code together with an error message will be returned. The error code can be one of InvalidImageUrl, InvalidImageFormat, InvalidImageSize, NotSupportedImage, NotSupportedLanguage, or InternalServerError.",
+ "operationId": "RecognizePrintedTextInStream",
+ "consumes": [
+ "application/octet-stream",
+ "multipart/form-data"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/DetectOrientation"
+ },
+ {
+ "$ref": "#/parameters/OcrLanguage"
+ },
+ {
+ "$ref": "#/parameters/ImageStream"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The OCR results in the hierarchy of region/line/word. The results include text, bounding box for regions, lines and words. The angle, in radians, of the detected text with respect to the closest horizontal or vertical direction. After rotating the input image clockwise by this angle, the recognized text lines become horizontal or vertical. In combination with the orientation property it can be used to overlay recognition results correctly on the original image, by rotating either the original image or recognition results by a suitable angle around the center of the original image. If the angle cannot be confidently detected, this property is not present. If the image contains text at different angles, only part of the text will be recognized correctly.",
+ "schema": {
+ "$ref": "#/definitions/OcrResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful RecognizePrintedText request": {
+ "$ref": "./examples/SuccessfulRecognizePrintedTextWithStream.json"
+ }
+ }
+ }
+ },
+ "/tag?overload=stream": {
+ "post": {
+ "description": "This operation generates a list of words, or tags, that are relevant to the content of the supplied image. The Computer Vision API can return tags based on objects, living beings, scenery or actions found in images. Unlike categories, tags are not organized according to a hierarchical classification system, but correspond to image content. Tags may contain hints to avoid ambiguity or provide context, for example the tag \"ascomycete\" may be accompanied by the hint \"fungus\".\r\nTwo input methods are supported -- (1) Uploading an image or (2) specifying an image URL.\r\nA successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong.",
+ "operationId": "TagImageInStream",
+ "consumes": [
+ "application/octet-stream",
+ "multipart/form-data"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ServiceLanguage"
+ },
+ {
+ "$ref": "#/parameters/ImageStream"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Image tags object.",
+ "schema": {
+ "$ref": "#/definitions/TagResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful TagImage request": {
+ "$ref": "./examples/SuccessfulTagImageWithStream.json"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/Ocr.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/Ocr.json
new file mode 100644
index 000000000000..2017f16c1671
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/Ocr.json
@@ -0,0 +1,452 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "3.0",
+ "title": "Computer Vision Client",
+ "description": "The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effectively."
+ },
+ "securityDefinitions": {
+ "apim_key": {
+ "type": "apiKey",
+ "name": "Ocp-Apim-Subscription-Key",
+ "in": "header"
+ }
+ },
+ "security": [
+ {
+ "apim_key": []
+ }
+ ],
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{Endpoint}",
+ "useSchemePrefix": false,
+ "parameters": [
+ {
+ "$ref": "#/parameters/Endpoint"
+ }
+ ]
+ },
+ "host": "westcentralus.api.cognitive.microsoft.com",
+ "basePath": "/vision/v3.0",
+ "schemes": [
+ "https"
+ ],
+ "paths": {
+ "/read/analyze": {
+ "post": {
+ "description": "Use this interface to get the result of a Read operation, employing the state-of-the-art Optical Character Recognition (OCR) algorithms optimized for text-heavy documents. When you use the Read interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your 'GetReadResult' operation to access OCR results.",
+ "operationId": "Read",
+ "parameters": [
+ {
+ "$ref": "#/parameters/OcrDetectionLanguage"
+ },
+ {
+ "$ref": "#/parameters/ImageUrl"
+ }
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "202": {
+ "description": "The service has accepted the request and will start processing later.",
+ "headers": {
+ "Operation-Location": {
+ "description": "URL to query for status of the operation. The operation ID will expire in 48 hours. ",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful Analyze request": {
+ "$ref": "./examples/SuccessfulReadWithUrl.json"
+ }
+ }
+ }
+ },
+ "/read/analyzeResults/{operationId}": {
+ "get": {
+ "description": "This interface is used for getting OCR results of Read operation. The URL to this interface should be retrieved from 'Operation-Location' field returned from Read interface.",
+ "operationId": "GetReadResult",
+ "parameters": [
+ {
+ "name": "operationId",
+ "in": "path",
+ "description": "Id of read operation returned in the response of the 'Read' interface.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns the read operation status.",
+ "schema": {
+ "$ref": "#/definitions/ReadOperationResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful Get Read Result request": {
+ "$ref": "./examples/SuccessfulGetReadResult.json"
+ }
+ }
+ }
+ }
+ },
+ "x-ms-paths": {
+ "/read/analyze?overload=stream": {
+ "post": {
+ "description": "Use this interface to get the result of a Read operation, employing the state-of-the-art Optical Character Recognition (OCR) algorithms optimized for text-heavy documents. When you use the Read interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your 'GetReadResult' operation to access OCR results.",
+ "operationId": "ReadInStream",
+ "parameters": [
+ {
+ "$ref": "#/parameters/OcrDetectionLanguage"
+ },
+ {
+ "$ref": "#/parameters/ImageStream"
+ }
+ ],
+ "consumes": [
+ "application/octet-stream"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "202": {
+ "description": "The service has accepted the request and will start processing later.",
+ "headers": {
+ "Operation-Location": {
+ "description": "URL to query for status of the operation. The operation ID will expire in 48 hours. ",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "#/definitions/ComputerVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful Analyze request": {
+ "$ref": "./examples/SuccessfulReadWithStream.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ReadOperationResult": {
+ "type": "object",
+ "description": "OCR result of the read operation.",
+ "properties": {
+ "status": {
+ "description": "Status of the read operation.",
+ "$ref": "#/definitions/OperationStatus"
+ },
+ "createdDateTime": {
+ "type": "string",
+ "description": "Get UTC date time the batch operation was submitted.",
+ "x-nullable": false
+ },
+ "lastUpdatedDateTime": {
+ "type": "string",
+ "description": "Get last updated UTC date time of this batch operation.",
+ "x-nullable": false
+ },
+ "analyzeResult": {
+ "description": "Analyze batch operation result.",
+ "type": "object",
+ "$ref": "#/definitions/analyzeResults"
+ }
+ }
+ },
+ "OperationStatus": {
+ "type": "string",
+ "description": "Status code of the text operation.",
+ "enum": [
+ "notStarted",
+ "running",
+ "failed",
+ "succeeded"
+ ],
+ "x-ms-enum": {
+ "name": "OperationStatusCodes",
+ "modelAsString": false
+ },
+ "x-nullable": false
+ },
+ "ReadResult": {
+ "description": "Text extracted from a page in the input document.",
+ "type": "object",
+ "required": [
+ "page",
+ "angle",
+ "width",
+ "height",
+ "unit",
+ "lines"
+ ],
+ "properties": {
+ "page": {
+ "description": "The 1-based page number of the recognition result.",
+ "type": "integer"
+ },
+ "language": {
+ "description": "The BCP-47 language code of the recognized text page.",
+ "type": "string"
+ },
+ "angle": {
+ "description": "The orientation of the image in degrees in the clockwise direction. Range between [-180, 180).",
+ "type": "number"
+ },
+ "width": {
+ "description": "The width of the image in pixels or the PDF in inches.",
+ "type": "number"
+ },
+ "height": {
+ "description": "The height of the image in pixels or the PDF in inches.",
+ "type": "number"
+ },
+ "unit": {
+ "description": "The unit used in the Width, Height and BoundingBox. For images, the unit is 'pixel'. For PDF, the unit is 'inch'.",
+ "type": "string",
+ "enum": [
+ "pixel",
+ "inch"
+ ],
+ "x-ms-enum": {
+ "name": "TextRecognitionResultDimensionUnit",
+ "modelAsString": false
+ },
+ "x-nullable": false
+ },
+ "lines": {
+ "description": "A list of recognized text lines.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Line"
+ }
+ }
+ }
+ },
+ "analyzeResults": {
+ "description": "Analyze batch operation result.",
+ "type": "object",
+ "required": [
+ "version",
+ "readResults"
+ ],
+ "properties": {
+ "version": {
+ "description": "Version of schema used for this result.",
+ "type": "string"
+ },
+ "readResults": {
+ "description": "Text extracted from the input.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReadResult"
+ }
+ }
+ }
+ },
+ "Line": {
+ "description": "An object representing a recognized text line.",
+ "type": "object",
+ "required": [
+ "boundingBox",
+ "text",
+ "words"
+ ],
+ "properties": {
+ "language": {
+ "description": "The BCP-47 language code of the recognized text line. Only provided where the language of the line differs from the page's.",
+ "type": "string"
+ },
+ "boundingBox": {
+ "description": "Bounding box of a recognized line.",
+ "$ref": "#/definitions/BoundingBox"
+ },
+ "text": {
+ "description": "The text content of the line.",
+ "type": "string"
+ },
+ "words": {
+ "description": "List of words in the text line.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Word"
+ }
+ }
+ }
+ },
+ "Word": {
+ "description": "An object representing a recognized word.",
+ "type": "object",
+ "required": [
+ "boundingBox",
+ "text",
+ "confidence"
+ ],
+ "properties": {
+ "boundingBox": {
+ "description": "Bounding box of a recognized word.",
+ "$ref": "#/definitions/BoundingBox"
+ },
+ "text": {
+ "description": "The text content of the word.",
+ "type": "string"
+ },
+ "confidence": {
+ "description": "Qualitative confidence measure.",
+ "type": "number",
+ "format": "float"
+ }
+ }
+ },
+ "BoundingBox": {
+ "description": "Quadrangle bounding box, with coordinates in original image. The eight numbers represent the four points (x-coordinate, y-coordinate from the left-top corner of the image) of the detected rectangle from the left-top corner in the clockwise direction. For images, coordinates are in pixels. For PDF, coordinates are in inches.",
+ "type": "array",
+ "items": {
+ "type": "number",
+ "x-nullable": false
+ }
+ },
+ "ComputerVisionError": {
+ "description": "Details about the API request error.",
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "The error code.",
+ "enum": [
+ "InvalidImageFormat",
+ "UnsupportedMediaType",
+ "InvalidImageUrl",
+ "NotSupportedFeature",
+ "NotSupportedImage",
+ "Timeout",
+ "InternalServerError",
+ "InvalidImageSize",
+ "BadArgument",
+ "DetectFaceError",
+ "NotSupportedLanguage",
+ "InvalidThumbnailSize",
+ "InvalidDetails",
+ "InvalidModel",
+ "CancelledRequest",
+ "NotSupportedVisualFeature",
+ "FailedToProcess",
+ "Unspecified",
+ "StorageException"
+ ],
+ "x-ms-enum": {
+ "name": "ComputerVisionErrorCodes",
+ "modelAsString": true
+ }
+ },
+ "message": {
+ "description": "A message explaining the error reported by the service.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "A unique request identifier.",
+ "type": "string"
+ }
+ }
+ },
+ "ImageUrl": {
+ "type": "object",
+ "required": [
+ "url"
+ ],
+ "properties": {
+ "url": {
+ "description": "Publicly reachable URL of an image.",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "OcrDetectionLanguage": {
+ "name": "language",
+ "in": "query",
+ "description": "The BCP-47 language code of the text in the document. Currently, only English ('en'), Dutch (‘nl’), French (‘fr’), German (‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are supported. Read supports auto language identification and multilanguage documents, so only provide a language code if you would like to force the documented to be processed as that specific language.",
+ "required": false,
+ "default": "en",
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "x-ms-enum": {
+ "name": "OcrDetectionLanguage",
+ "modelAsString": true
+ },
+ "enum": [
+ "en",
+ "es",
+ "fr",
+ "de",
+ "it",
+ "nl",
+ "pt"
+ ]
+ },
+ "ImageUrl": {
+ "name": "ImageUrl",
+ "in": "body",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "x-ms-client-flatten": true,
+ "description": "A JSON document with a URL pointing to the image that is to be analyzed.",
+ "schema": {
+ "$ref": "#/definitions/ImageUrl"
+ }
+ },
+ "ImageStream": {
+ "name": "Image",
+ "in": "body",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "description": "An image stream.",
+ "schema": {
+ "type": "object",
+ "format": "file"
+ }
+ },
+ "Endpoint": {
+ "name": "Endpoint",
+ "description": "Supported Cognitive Services endpoints.",
+ "x-ms-parameter-location": "client",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageByDomainWithStream.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageByDomainWithStream.json
new file mode 100644
index 000000000000..a3cd00555cc6
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageByDomainWithStream.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "model": "Celebrities",
+ "Image": "{binary}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "requestId": "f0027b4b-dc0d-4082-9228-1545ed246b03",
+ "metadata": {
+ "width": 1500,
+ "height": 1000,
+ "format": "Jpeg"
+ },
+ "result": {
+ "celebrities": [
+ {
+ "name": "Satya Nadella",
+ "faceRectangle": {
+ "left": 597,
+ "top": 162,
+ "width": 248,
+ "height": 248
+ },
+ "confidence": 0.999028444
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageByDomainWithUrl.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageByDomainWithUrl.json
new file mode 100644
index 000000000000..92ead72b5f8f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageByDomainWithUrl.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "model": "Celebrities",
+ "ImageUrl": {
+ "url": "{url}"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "requestId": "f0027b4b-dc0d-4082-9228-1545ed246b03",
+ "metadata": {
+ "width": 1500,
+ "height": 1000,
+ "format": "Jpeg"
+ },
+ "result": {
+ "celebrities": [
+ {
+ "name": "Satya Nadella",
+ "faceRectangle": {
+ "left": 597,
+ "top": 162,
+ "width": 248,
+ "height": 248
+ },
+ "confidence": 0.999028444
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageWithStream.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageWithStream.json
new file mode 100644
index 000000000000..ba86791a7e36
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageWithStream.json
@@ -0,0 +1,176 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "visualFeatures": [
+ "Categories",
+ "Adult",
+ "Tags",
+ "Description",
+ "Faces",
+ "Color",
+ "ImageType",
+ "Objects",
+ "Brands"
+ ],
+ "details": [
+ "Celebrities",
+ "Landmarks"
+ ],
+ "language": "en",
+ "Image": "{binary}"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "categories": [
+ {
+ "name": "abstract_",
+ "score": 0.00390625
+ },
+ {
+ "name": "people_",
+ "score": 0.83984375,
+ "detail": {
+ "celebrities": [
+ {
+ "name": "Satya Nadella",
+ "faceRectangle": {
+ "left": 597,
+ "top": 162,
+ "width": 248,
+ "height": 248
+ },
+ "confidence": 0.999028444
+ }
+ ],
+ "landmarks": [
+ {
+ "name": "Forbidden City",
+ "confidence": 0.9978346
+ }
+ ]
+ }
+ }
+ ],
+ "adult": {
+ "isAdultContent": false,
+ "isRacyContent": false,
+ "isGoryContent": false,
+ "adultScore": 0.0934349000453949,
+ "racyScore": 0.068613491952419281,
+ "goreScore": 0.012872257380997575
+ },
+ "tags": [
+ {
+ "name": "person",
+ "confidence": 0.98979085683822632
+ },
+ {
+ "name": "man",
+ "confidence": 0.94493889808654785
+ },
+ {
+ "name": "outdoor",
+ "confidence": 0.938492476940155
+ },
+ {
+ "name": "window",
+ "confidence": 0.89513939619064331
+ },
+ {
+ "name": "pangolin",
+ "confidence": 0.7250059783791661,
+ "hint": "mammal"
+ }
+ ],
+ "description": {
+ "tags": [
+ "person",
+ "man",
+ "outdoor",
+ "window",
+ "glasses"
+ ],
+ "captions": [
+ {
+ "text": "Satya Nadella sitting on a bench",
+ "confidence": 0.48293603002174407
+ }
+ ]
+ },
+ "requestId": "0dbec5ad-a3d3-4f7e-96b4-dfd57efe967d",
+ "metadata": {
+ "width": 1500,
+ "height": 1000,
+ "format": "Jpeg"
+ },
+ "faces": [
+ {
+ "age": 44,
+ "gender": "Male",
+ "faceRectangle": {
+ "left": 593,
+ "top": 160,
+ "width": 250,
+ "height": 250
+ }
+ }
+ ],
+ "color": {
+ "dominantColorForeground": "Brown",
+ "dominantColorBackground": "Brown",
+ "dominantColors": [
+ "Brown",
+ "Black"
+ ],
+ "accentColor": "873B59",
+ "isBWImg": false
+ },
+ "imageType": {
+ "clipArtType": 0,
+ "lineDrawingType": 0
+ },
+ "objects": [
+ {
+ "rectangle": {
+ "x": 0,
+ "y": 0,
+ "w": 50,
+ "h": 50
+ },
+ "object": "tree",
+ "confidence": 0.9,
+ "parent": {
+ "object": "plant",
+ "confidence": 0.95
+ }
+ }
+ ],
+ "brands": [
+ {
+ "name": "Pepsi",
+ "confidence": 0.857,
+ "rectangle": {
+ "x": 489,
+ "y": 79,
+ "w": 161,
+ "h": 177
+ }
+ },
+ {
+ "name": "Coca-Cola",
+ "confidence": 0.893,
+ "rectangle": {
+ "x": 216,
+ "y": 55,
+ "w": 171,
+ "h": 372
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageWithUrl.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageWithUrl.json
new file mode 100644
index 000000000000..be78226e0e16
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulAnalyzeImageWithUrl.json
@@ -0,0 +1,184 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "visualFeatures": [
+ "Categories",
+ "Adult",
+ "Tags",
+ "Description",
+ "Faces",
+ "Color",
+ "ImageType",
+ "Objects",
+ "Brands"
+ ],
+ "details": [
+ "Celebrities",
+ "Landmarks"
+ ],
+ "language": "en",
+ "ImageUrl": {
+ "url": "{url}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "categories": [
+ {
+ "name": "abstract_",
+ "score": 0.00390625
+ },
+ {
+ "name": "people_",
+ "score": 0.83984375,
+ "detail": {
+ "celebrities": [
+ {
+ "name": "Satya Nadella",
+ "faceRectangle": {
+ "left": 597,
+ "top": 162,
+ "width": 248,
+ "height": 248
+ },
+ "confidence": 0.999028444
+ }
+ ]
+ }
+ },
+ {
+ "name": "building_",
+ "score": 0.984375,
+ "detail": {
+ "landmarks": [
+ {
+ "name": "Forbidden City",
+ "confidence": 0.98290169239044189
+ }
+ ]
+ }
+ }
+ ],
+ "adult": {
+ "isAdultContent": false,
+ "isRacyContent": false,
+ "isGoryContent": false,
+ "adultScore": 0.0934349000453949,
+ "racyScore": 0.068613491952419281,
+ "goreScore": 0.012872257380997575
+ },
+ "tags": [
+ {
+ "name": "person",
+ "confidence": 0.98979085683822632
+ },
+ {
+ "name": "man",
+ "confidence": 0.94493889808654785
+ },
+ {
+ "name": "outdoor",
+ "confidence": 0.938492476940155
+ },
+ {
+ "name": "window",
+ "confidence": 0.89513939619064331
+ },
+ {
+ "name": "pangolin",
+ "confidence": 0.7250059783791661,
+ "hint": "mammal"
+ }
+ ],
+ "description": {
+ "tags": [
+ "person",
+ "man",
+ "outdoor",
+ "window",
+ "glasses"
+ ],
+ "captions": [
+ {
+ "text": "Satya Nadella sitting on a bench",
+ "confidence": 0.48293603002174407
+ }
+ ]
+ },
+ "requestId": "0dbec5ad-a3d3-4f7e-96b4-dfd57efe967d",
+ "metadata": {
+ "width": 1500,
+ "height": 1000,
+ "format": "Jpeg"
+ },
+ "faces": [
+ {
+ "age": 44,
+ "gender": "Male",
+ "faceRectangle": {
+ "left": 593,
+ "top": 160,
+ "width": 250,
+ "height": 250
+ }
+ }
+ ],
+ "color": {
+ "dominantColorForeground": "Brown",
+ "dominantColorBackground": "Brown",
+ "dominantColors": [
+ "Brown",
+ "Black"
+ ],
+ "accentColor": "873B59",
+ "isBWImg": false
+ },
+ "imageType": {
+ "clipArtType": 0,
+ "lineDrawingType": 0
+ },
+ "objects": [
+ {
+ "rectangle": {
+ "x": 0,
+ "y": 0,
+ "w": 50,
+ "h": 50
+ },
+ "object": "tree",
+ "confidence": 0.9,
+ "parent": {
+ "object": "plant",
+ "confidence": 0.95
+ }
+ }
+ ],
+ "brands": [
+ {
+ "name": "Pepsi",
+ "confidence": 0.857,
+ "rectangle": {
+ "x": 489,
+ "y": 79,
+ "w": 161,
+ "h": 177
+ }
+ },
+ {
+ "name": "Coca-Cola",
+ "confidence": 0.893,
+ "rectangle": {
+ "x": 216,
+ "y": 55,
+ "w": 171,
+ "h": 372
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDescribeImageWithStream.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDescribeImageWithStream.json
new file mode 100644
index 000000000000..071248140600
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDescribeImageWithStream.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "maxCandidates": 1,
+ "Image": "{binary}"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "description": {
+ "tags": [
+ "person",
+ "man",
+ "outdoor",
+ "window",
+ "glasses"
+ ],
+ "captions": [
+ {
+ "text": "Satya Nadella sitting on a bench",
+ "confidence": 0.48293603002174407
+ },
+ {
+ "text": "Satya Nadella is sitting on a bench",
+ "confidence": 0.40037006815422832
+ },
+ {
+ "text": "Satya Nadella sitting in front of a building",
+ "confidence": 0.38035155997373377
+ }
+ ]
+ },
+ "requestId": "ed2de1c6-fb55-4686-b0da-4da6e05d283f",
+ "metadata": {
+ "width": 1500,
+ "height": 1000,
+ "format": "Jpeg"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDescribeImageWithUrl.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDescribeImageWithUrl.json
new file mode 100644
index 000000000000..087ac0515231
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDescribeImageWithUrl.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "maxCandidates": 1,
+ "ImageUrl": {
+ "url": "{url}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "description": {
+ "tags": [
+ "person",
+ "man",
+ "outdoor",
+ "window",
+ "glasses"
+ ],
+ "captions": [
+ {
+ "text": "Satya Nadella sitting on a bench",
+ "confidence": 0.48293603002174407
+ },
+ {
+ "text": "Satya Nadella is sitting on a bench",
+ "confidence": 0.40037006815422832
+ },
+ {
+ "text": "Satya Nadella sitting in front of a building",
+ "confidence": 0.38035155997373377
+ }
+ ]
+ },
+ "requestId": "ed2de1c6-fb55-4686-b0da-4da6e05d283f",
+ "metadata": {
+ "width": 1500,
+ "height": 1000,
+ "format": "Jpeg"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDetectObjectsWithStream.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDetectObjectsWithStream.json
new file mode 100644
index 000000000000..8f4ad7fd73aa
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDetectObjectsWithStream.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "Image": "{binary}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "objects": [
+ {
+ "rectangle": {
+ "x": 0,
+ "y": 0,
+ "w": 50,
+ "h": 50
+ },
+ "object": "tree",
+ "confidence": 0.9,
+ "parent": {
+ "object": "plant",
+ "confidence": 0.95
+ }
+ }
+ ],
+ "requestId": "1ad0e45e-b7b4-4be3-8042-53be96103337",
+ "metadata": {
+ "width": 100,
+ "height": 100,
+ "format": "Jpeg"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDetectObjectsWithUrl.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDetectObjectsWithUrl.json
new file mode 100644
index 000000000000..7ea387eb41be
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulDetectObjectsWithUrl.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "ImageUrl": {
+ "url": "{url}"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "objects": [
+ {
+ "rectangle": {
+ "x": 0,
+ "y": 0,
+ "w": 50,
+ "h": 50
+ },
+ "object": "tree",
+ "confidence": 0.9,
+ "parent": {
+ "object": "plant",
+ "confidence": 0.95
+ }
+ }
+ ],
+ "requestId": "1ad0e45e-b7b4-4be3-8042-53be96103337",
+ "metadata": {
+ "width": 100,
+ "height": 100,
+ "format": "Jpeg"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGenerateThumbnailWithStream.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGenerateThumbnailWithStream.json
new file mode 100644
index 000000000000..22d52fbe7644
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGenerateThumbnailWithStream.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "width": "500",
+ "height": "500",
+ "smartCropping": true,
+ "Image": "{binary}"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": "{binary}"
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGenerateThumbnailWithUrl.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGenerateThumbnailWithUrl.json
new file mode 100644
index 000000000000..28744179ecb8
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGenerateThumbnailWithUrl.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "width": "500",
+ "height": "500",
+ "smartCropping": true,
+ "ImageUrl": {
+ "url": "{url}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": "{Binary}"
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetAreaOfInterestWithStream.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetAreaOfInterestWithStream.json
new file mode 100644
index 000000000000..ae32a21a551e
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetAreaOfInterestWithStream.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "Image": "{binary}"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "areaOfInterest": {
+ "h": 951,
+ "w": 950,
+ "x": 160,
+ "y": 0
+ },
+ "requestId": "ed2de1c6-fb55-4686-b0da-4da6e05d283f",
+ "metadata": {
+ "format": "Jpeg",
+ "height": 951,
+ "width": 1378
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetAreaOfInterestWithUrl.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetAreaOfInterestWithUrl.json
new file mode 100644
index 000000000000..7d6d08208836
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetAreaOfInterestWithUrl.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "ImageUrl": {
+ "url": "{url}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "areaOfInterest": {
+ "h": 951,
+ "w": 950,
+ "x": 160,
+ "y": 0
+ },
+ "requestId": "ed2de1c6-fb55-4686-b0da-4da6e05d283f",
+ "metadata": {
+ "format": "Jpeg",
+ "height": 951,
+ "width": 1378
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetReadResult.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetReadResult.json
new file mode 100644
index 000000000000..aaaa9df00c50
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulGetReadResult.json
@@ -0,0 +1,369 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "operationId": "e56ffa6e-1ee4-4042-bc07-993db706c95f"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "status": "succeeded",
+ "createdDateTime": "2019-10-03T14:32:04.236Z",
+ "lastUpdatedDateTime": "2019-10-03T14:38:14.852Z",
+ "analyzeResult": {
+ "version": "v3.0",
+ "readResults": [
+ {
+ "page": 1,
+ "language": "en",
+ "angle": 49.59,
+ "width": 600,
+ "height": 400,
+ "unit": "pixel",
+ "lines": [
+ {
+ "boundingBox": [
+ 202,
+ 618,
+ 2047,
+ 643,
+ 2046,
+ 840,
+ 200,
+ 813
+ ],
+ "text": "Our greatest glory is not",
+ "words": [
+ {
+ "boundingBox": [
+ 204,
+ 627,
+ 481,
+ 628,
+ 481,
+ 830,
+ 204,
+ 829
+ ],
+ "text": "Our",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 519,
+ 628,
+ 1057,
+ 630,
+ 1057,
+ 832,
+ 518,
+ 830
+ ],
+ "text": "greatest",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 1114,
+ 630,
+ 1549,
+ 631,
+ 1548,
+ 833,
+ 1114,
+ 832
+ ],
+ "text": "glory",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 1586,
+ 631,
+ 1785,
+ 632,
+ 1784,
+ 834,
+ 1586,
+ 833
+ ],
+ "text": "is",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 1822,
+ 632,
+ 2115,
+ 633,
+ 2115,
+ 835,
+ 1822,
+ 834
+ ],
+ "text": "not",
+ "confidence": 0.164
+ }
+ ]
+ },
+ {
+ "boundingBox": [
+ 420,
+ 1273,
+ 2954,
+ 1250,
+ 2958,
+ 1488,
+ 422,
+ 1511
+ ],
+ "text": "but in rising every time we fall",
+ "words": [
+ {
+ "boundingBox": [
+ 423,
+ 1269,
+ 634,
+ 1268,
+ 635,
+ 1507,
+ 424,
+ 1508
+ ],
+ "text": "but",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 667,
+ 1268,
+ 808,
+ 1268,
+ 809,
+ 1506,
+ 668,
+ 1507
+ ],
+ "text": "in",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 874,
+ 1267,
+ 1289,
+ 1265,
+ 1290,
+ 1504,
+ 875,
+ 1506
+ ],
+ "text": "rising",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 1331,
+ 1265,
+ 1771,
+ 1263,
+ 1772,
+ 1502,
+ 1332,
+ 1504
+ ],
+ "text": "every",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 1812,
+ 1263,
+ 2178,
+ 1261,
+ 2179,
+ 1500,
+ 1813,
+ 1502
+ ],
+ "text": "time",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 2219,
+ 1261,
+ 2510,
+ 1260,
+ 2511,
+ 1498,
+ 2220,
+ 1500
+ ],
+ "text": "we",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 2551,
+ 1260,
+ 3016,
+ 1258,
+ 3017,
+ 1496,
+ 2552,
+ 1498
+ ],
+ "text": "fall",
+ "confidence": 0.164
+ }
+ ]
+ },
+ {
+ "language": "es",
+ "boundingBox": [
+ 1612,
+ 903,
+ 2744,
+ 935,
+ 2738,
+ 1139,
+ 1607,
+ 1107
+ ],
+ "text": "Viva la vida",
+ "words": [
+ {
+ "boundingBox": [
+ 323,
+ 454,
+ 416,
+ 449,
+ 418,
+ 494,
+ 325,
+ 501
+ ],
+ "text": "Viva",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 92,
+ 550,
+ 429,
+ 541,
+ 430,
+ 591,
+ 94,
+ 600
+ ],
+ "text": "la",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 58,
+ 466,
+ 268,
+ 458,
+ 270,
+ 505,
+ 161,
+ 512
+ ],
+ "text": "vida",
+ "confidence": 0.164
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "page": 2,
+ "language": "en",
+ "angle": 1.32,
+ "width": 600,
+ "height": 400,
+ "unit": "pixel",
+ "lines": [
+ {
+ "boundingBox": [
+ 1612,
+ 903,
+ 2744,
+ 935,
+ 2738,
+ 1139,
+ 1607,
+ 1107
+ ],
+ "text": "in never failing ,",
+ "words": [
+ {
+ "boundingBox": [
+ 1611,
+ 934,
+ 1707,
+ 933,
+ 1708,
+ 1147,
+ 1613,
+ 1147
+ ],
+ "text": "in",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 1753,
+ 933,
+ 2132,
+ 930,
+ 2133,
+ 1144,
+ 1754,
+ 1146
+ ],
+ "text": "never",
+ "confidence": 0.999
+ },
+ {
+ "boundingBox": [
+ 2162,
+ 930,
+ 2673,
+ 927,
+ 2674,
+ 1140,
+ 2164,
+ 1144
+ ],
+ "text": "failing",
+ "confidence": 0.164
+ },
+ {
+ "boundingBox": [
+ 2703,
+ 926,
+ 2788,
+ 926,
+ 2790,
+ 1139,
+ 2705,
+ 1140
+ ],
+ "text": ",",
+ "confidence": 0.164
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulListModels.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulListModels.json
new file mode 100644
index 000000000000..54e72d376431
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulListModels.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "models": [
+ {
+ "name": "celebrities",
+ "categories": [
+ "people_"
+ ]
+ },
+ {
+ "name": "landmarks",
+ "categories": [
+ "building_"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulReadWithStream.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulReadWithStream.json
new file mode 100644
index 000000000000..a901d16abba0
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulReadWithStream.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "language": "en",
+ "Image": "{binary}"
+ },
+ "responses": {
+ "202": {
+ "header": {
+ "location": "https://{domain}/vision/v3.0/read/e56ffa6e-1ee4-4042-bc07-993db706c95f"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulReadWithUrl.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulReadWithUrl.json
new file mode 100644
index 000000000000..642e44b140c0
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulReadWithUrl.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "language": "en",
+ "ImageUrl": {
+ "url": "{url}"
+ }
+ },
+ "responses": {
+ "202": {
+ "header": {
+ "Operation-Location": "https://{domain}/vision/v3.0/read/e56ffa6e-1ee4-4042-bc07-993db706c95f"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulRecognizePrintedTextWithStream.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulRecognizePrintedTextWithStream.json
new file mode 100644
index 000000000000..201d0fe48254
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulRecognizePrintedTextWithStream.json
@@ -0,0 +1,77 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "detectOrientation": "true",
+ "language": "en",
+ "Image": "{binary}"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "language": "en",
+ "textAngle": -2.0000000000000338,
+ "orientation": "Up",
+ "regions": [
+ {
+ "boundingBox": "462,379,497,258",
+ "lines": [
+ {
+ "boundingBox": "462,379,497,74",
+ "words": [
+ {
+ "boundingBox": "462,379,41,73",
+ "text": "A"
+ },
+ {
+ "boundingBox": "523,379,153,73",
+ "text": "GOAL"
+ },
+ {
+ "boundingBox": "694,379,265,74",
+ "text": "WITHOUT"
+ }
+ ]
+ },
+ {
+ "boundingBox": "565,471,289,74",
+ "words": [
+ {
+ "boundingBox": "565,471,41,73",
+ "text": "A"
+ },
+ {
+ "boundingBox": "626,471,150,73",
+ "text": "PLAN"
+ },
+ {
+ "boundingBox": "801,472,53,73",
+ "text": "IS"
+ }
+ ]
+ },
+ {
+ "boundingBox": "519,563,375,74",
+ "words": [
+ {
+ "boundingBox": "519,563,149,74",
+ "text": "JUST"
+ },
+ {
+ "boundingBox": "683,564,41,72",
+ "text": "A"
+ },
+ {
+ "boundingBox": "741,564,153,73",
+ "text": "WISH"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulRecognizePrintedTextWithUrl.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulRecognizePrintedTextWithUrl.json
new file mode 100644
index 000000000000..a0b8bc84e37b
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulRecognizePrintedTextWithUrl.json
@@ -0,0 +1,79 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "detectOrientation": "true",
+ "language": "en",
+ "ImageUrl": {
+ "url": "{url}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "language": "en",
+ "textAngle": -2.0000000000000338,
+ "orientation": "Up",
+ "regions": [
+ {
+ "boundingBox": "462,379,497,258",
+ "lines": [
+ {
+ "boundingBox": "462,379,497,74",
+ "words": [
+ {
+ "boundingBox": "462,379,41,73",
+ "text": "A"
+ },
+ {
+ "boundingBox": "523,379,153,73",
+ "text": "GOAL"
+ },
+ {
+ "boundingBox": "694,379,265,74",
+ "text": "WITHOUT"
+ }
+ ]
+ },
+ {
+ "boundingBox": "565,471,289,74",
+ "words": [
+ {
+ "boundingBox": "565,471,41,73",
+ "text": "A"
+ },
+ {
+ "boundingBox": "626,471,150,73",
+ "text": "PLAN"
+ },
+ {
+ "boundingBox": "801,472,53,73",
+ "text": "IS"
+ }
+ ]
+ },
+ {
+ "boundingBox": "519,563,375,74",
+ "words": [
+ {
+ "boundingBox": "519,563,149,74",
+ "text": "JUST"
+ },
+ {
+ "boundingBox": "683,564,41,72",
+ "text": "A"
+ },
+ {
+ "boundingBox": "741,564,153,73",
+ "text": "WISH"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulTagImageWithStream.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulTagImageWithStream.json
new file mode 100644
index 000000000000..813a645d0086
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulTagImageWithStream.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "Image": "{binary}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "tags": [
+ {
+ "name": "grass",
+ "confidence": 0.9999997615814209
+ },
+ {
+ "name": "outdoor",
+ "confidence": 0.99997067451477051
+ },
+ {
+ "name": "sky",
+ "confidence": 0.99928975105285645
+ },
+ {
+ "name": "building",
+ "confidence": 0.99646323919296265
+ },
+ {
+ "name": "house",
+ "confidence": 0.99279803037643433
+ },
+ {
+ "name": "lawn",
+ "confidence": 0.82268029451370239
+ },
+ {
+ "name": "green",
+ "confidence": 0.64122253656387329
+ },
+ {
+ "name": "residential",
+ "confidence": 0.31403225660324097
+ }
+ ],
+ "requestId": "1ad0e45e-b7b4-4be3-8042-53be96103337",
+ "metadata": {
+ "width": 400,
+ "height": 400,
+ "format": "Jpeg"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulTagImageWithUrl.json b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulTagImageWithUrl.json
new file mode 100644
index 000000000000..0dcf0304a33a
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/ComputerVision/stable/v3.0/examples/SuccessfulTagImageWithUrl.json
@@ -0,0 +1,55 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "ImageUrl": {
+ "url": "{url}"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "tags": [
+ {
+ "name": "grass",
+ "confidence": 0.9999997615814209
+ },
+ {
+ "name": "outdoor",
+ "confidence": 0.99997067451477051
+ },
+ {
+ "name": "sky",
+ "confidence": 0.99928975105285645
+ },
+ {
+ "name": "building",
+ "confidence": 0.99646323919296265
+ },
+ {
+ "name": "house",
+ "confidence": 0.99279803037643433
+ },
+ {
+ "name": "lawn",
+ "confidence": 0.82268029451370239
+ },
+ {
+ "name": "green",
+ "confidence": 0.64122253656387329
+ },
+ {
+ "name": "residential",
+ "confidence": 0.31403225660324097
+ }
+ ],
+ "requestId": "1ad0e45e-b7b4-4be3-8042-53be96103337",
+ "metadata": {
+ "width": 400,
+ "height": 400,
+ "format": "Jpeg"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.go.md b/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.go.md
index 279452db4ec0..33b14c7856fe 100644
--- a/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.go.md
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.go.md
@@ -15,6 +15,7 @@ go:
batch:
- tag: release_1_0
- tag: release_3_0
+ - tag: release_3_1
```
### Tag: release_1_0 and go
@@ -34,3 +35,12 @@ Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'release_3_0' && $(go)
+output-folder: $(go-sdk-folder)/services/cognitiveservices/v3.1/customvision/$(namespace)
+```
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md b/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md
index 74cffe566389..1441a4a7fcad 100644
--- a/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.md
@@ -4,11 +4,11 @@
Configuration for generating Custom Vision Prediction SDK.
-The current release is `release_3_0`.
+The current release is `release_3_1`.
``` yaml
-tag: release_3_0
+tag: release_3_1
openapi-type: data-plane
```
# Releases
@@ -28,6 +28,14 @@ input-file: stable/v3.0/Prediction.json
add-credentials: true
```
+### Release 3.1
+These settings apply only when `--tag=release_3_1` is specified on the command line.
+
+``` yaml $(tag) == 'release_3_1'
+input-file: stable/v3.1/Prediction.json
+add-credentials: true
+```
+
# Validation
## Suppression
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.ruby.md b/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.ruby.md
index 3adbf19106d6..4e7d49eafbb3 100644
--- a/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.ruby.md
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/readme.ruby.md
@@ -14,6 +14,7 @@ azure-arm: true
batch:
- tag: release_1_0
- tag: release_3_0
+ - tag: release_3_1
```
### Tag: release_1_0 and ruby
@@ -37,3 +38,14 @@ namespace: "Azure::CognitiveServices::CustomVision::Prediction::V3_0"
output-folder: $(ruby-sdks-folder)/data/azure_cognitiveservices_customvisionprediction/lib
title: "PredictionClient"
```
+
+### Tag: release_3_1 and ruby
+
+These settings apply only when `--tag=release_3_1 --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'release_1_0' && $(ruby)
+namespace: "Azure::CognitiveServices::CustomVision::Prediction::V3_1"
+output-folder: $(ruby-sdks-folder)/data/azure_cognitiveservices_customvisionprediction/lib
+title: "PredictionClient"
+```
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/Prediction.json b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/Prediction.json
new file mode 100644
index 000000000000..4f5dca22f52d
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/Prediction.json
@@ -0,0 +1,922 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "3.1",
+ "title": "Custom Vision Prediction Client"
+ },
+ "host": "southcentralus.api.cognitive.microsoft.com",
+ "basePath": "/customvision/v3.1/prediction",
+ "schemes": [
+ "https"
+ ],
+ "paths": {
+ "/{projectId}/classify/iterations/{publishedName}/image": {
+ "post": {
+ "tags": [
+ "ImagePredictionApi"
+ ],
+ "summary": "Classify an image and saves the result.",
+ "operationId": "ClassifyImage",
+ "consumes": [
+ "multipart/form-data",
+ "application/octet-stream"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "publishedName",
+ "in": "path",
+ "description": "Specifies the name of the model to evaluate against.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "application",
+ "in": "query",
+ "description": "Optional. Specifies the name of application using the endpoint.",
+ "required": false,
+ "type": "string",
+ "x-nullable": true
+ },
+ {
+ "name": "imageData",
+ "in": "formData",
+ "description": "Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB.",
+ "required": true,
+ "type": "file"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful ClassifyImage request": {
+ "$ref": "./examples/ClassifyImage.json"
+ }
+ }
+ }
+ },
+ "/{projectId}/classify/iterations/{publishedName}/image/nostore": {
+ "post": {
+ "tags": [
+ "ImagePredictionApi"
+ ],
+ "summary": "Classify an image without saving the result.",
+ "operationId": "ClassifyImageWithNoStore",
+ "consumes": [
+ "multipart/form-data",
+ "application/octet-stream"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "publishedName",
+ "in": "path",
+ "description": "Specifies the name of the model to evaluate against.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "application",
+ "in": "query",
+ "description": "Optional. Specifies the name of application using the endpoint.",
+ "required": false,
+ "type": "string",
+ "x-nullable": true
+ },
+ {
+ "name": "imageData",
+ "in": "formData",
+ "description": "Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB.",
+ "required": true,
+ "type": "file"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful ClassifyImageWithNoStore request": {
+ "$ref": "./examples/ClassifyImageWithNoStore.json"
+ }
+ }
+ }
+ },
+ "/{projectId}/classify/iterations/{publishedName}/url": {
+ "post": {
+ "tags": [
+ "ImagePredictionApi"
+ ],
+ "summary": "Classify an image url and saves the result.",
+ "operationId": "ClassifyImageUrl",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "publishedName",
+ "in": "path",
+ "description": "Specifies the name of the model to evaluate against.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "imageUrl",
+ "in": "body",
+ "description": "An ImageUrl that contains the url of the image to be evaluated.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageUrl"
+ }
+ },
+ {
+ "name": "application",
+ "in": "query",
+ "description": "Optional. Specifies the name of application using the endpoint.",
+ "required": false,
+ "type": "string",
+ "x-nullable": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful ClassifyImageUrl request": {
+ "$ref": "./examples/ClassifyImageUrl.json"
+ }
+ }
+ }
+ },
+ "/{projectId}/classify/iterations/{publishedName}/url/nostore": {
+ "post": {
+ "tags": [
+ "ImagePredictionApi"
+ ],
+ "summary": "Classify an image url without saving the result.",
+ "operationId": "ClassifyImageUrlWithNoStore",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "publishedName",
+ "in": "path",
+ "description": "Specifies the name of the model to evaluate against.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "imageUrl",
+ "in": "body",
+ "description": "An {Iris.Web.Api.Models.ImageUrl} that contains the url of the image to be evaluated.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageUrl"
+ }
+ },
+ {
+ "name": "application",
+ "in": "query",
+ "description": "Optional. Specifies the name of application using the endpoint.",
+ "required": false,
+ "type": "string",
+ "x-nullable": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful ClassifyImageUrlWithNoStore request": {
+ "$ref": "./examples/ClassifyImageUrlWithNoStore.json"
+ }
+ }
+ }
+ },
+ "/{projectId}/detect/iterations/{publishedName}/image": {
+ "post": {
+ "tags": [
+ "ImagePredictionApi"
+ ],
+ "summary": "Detect objects in an image and saves the result.",
+ "operationId": "DetectImage",
+ "consumes": [
+ "multipart/form-data",
+ "application/octet-stream"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "publishedName",
+ "in": "path",
+ "description": "Specifies the name of the model to evaluate against.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "application",
+ "in": "query",
+ "description": "Optional. Specifies the name of application using the endpoint.",
+ "required": false,
+ "type": "string",
+ "x-nullable": true
+ },
+ {
+ "name": "imageData",
+ "in": "formData",
+ "description": "Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB.",
+ "required": true,
+ "type": "file"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DetectImage request": {
+ "$ref": "./examples/DetectImage.json"
+ }
+ }
+ }
+ },
+ "/{projectId}/detect/iterations/{publishedName}/image/nostore": {
+ "post": {
+ "tags": [
+ "ImagePredictionApi"
+ ],
+ "summary": "Detect objects in an image without saving the result.",
+ "operationId": "DetectImageWithNoStore",
+ "consumes": [
+ "multipart/form-data",
+ "application/octet-stream"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "publishedName",
+ "in": "path",
+ "description": "Specifies the name of the model to evaluate against.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "application",
+ "in": "query",
+ "description": "Optional. Specifies the name of application using the endpoint.",
+ "required": false,
+ "type": "string",
+ "x-nullable": true
+ },
+ {
+ "name": "imageData",
+ "in": "formData",
+ "description": "Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB.",
+ "required": true,
+ "type": "file"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DetectImageWithNoStore request": {
+ "$ref": "./examples/DetectImageWithNoStore.json"
+ }
+ }
+ }
+ },
+ "/{projectId}/detect/iterations/{publishedName}/url": {
+ "post": {
+ "tags": [
+ "ImagePredictionApi"
+ ],
+ "summary": "Detect objects in an image url and saves the result.",
+ "operationId": "DetectImageUrl",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "publishedName",
+ "in": "path",
+ "description": "Specifies the name of the model to evaluate against.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "imageUrl",
+ "in": "body",
+ "description": "An ImageUrl that contains the url of the image to be evaluated.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageUrl"
+ }
+ },
+ {
+ "name": "application",
+ "in": "query",
+ "description": "Optional. Specifies the name of application using the endpoint.",
+ "required": false,
+ "type": "string",
+ "x-nullable": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DetectImageUrl request": {
+ "$ref": "./examples/DetectImageUrl.json"
+ }
+ }
+ }
+ },
+ "/{projectId}/detect/iterations/{publishedName}/url/nostore": {
+ "post": {
+ "tags": [
+ "ImagePredictionApi"
+ ],
+ "summary": "Detect objects in an image url without saving the result.",
+ "operationId": "DetectImageUrlWithNoStore",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "publishedName",
+ "in": "path",
+ "description": "Specifies the name of the model to evaluate against.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "imageUrl",
+ "in": "body",
+ "description": "An {Iris.Web.Api.Models.ImageUrl} that contains the url of the image to be evaluated.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageUrl"
+ }
+ },
+ {
+ "name": "application",
+ "in": "query",
+ "description": "Optional. Specifies the name of application using the endpoint.",
+ "required": false,
+ "type": "string",
+ "x-nullable": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DetectImageUrlWithNoStore request": {
+ "$ref": "./examples/DetectImageUrlWithNoStore.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "BoundingBox": {
+ "description": "Bounding box that defines a region of an image.",
+ "required": [
+ "left",
+ "top",
+ "width",
+ "height"
+ ],
+ "type": "object",
+ "properties": {
+ "left": {
+ "format": "float",
+ "description": "Coordinate of the left boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "top": {
+ "format": "float",
+ "description": "Coordinate of the top boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "width": {
+ "format": "float",
+ "description": "Width.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "height": {
+ "format": "float",
+ "description": "Height.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "CustomVisionError": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "The error code.",
+ "enum": [
+ "NoError",
+ "BadRequest",
+ "BadRequestExceededBatchSize",
+ "BadRequestNotSupported",
+ "BadRequestInvalidIds",
+ "BadRequestProjectName",
+ "BadRequestProjectNameNotUnique",
+ "BadRequestProjectDescription",
+ "BadRequestProjectUnknownDomain",
+ "BadRequestProjectUnknownClassification",
+ "BadRequestProjectUnsupportedDomainTypeChange",
+ "BadRequestProjectUnsupportedExportPlatform",
+ "BadRequestProjectImagePreprocessingSettings",
+ "BadRequestProjectDuplicated",
+ "BadRequestIterationName",
+ "BadRequestIterationNameNotUnique",
+ "BadRequestIterationDescription",
+ "BadRequestIterationIsNotTrained",
+ "BadRequestIterationValidationFailed",
+ "BadRequestWorkspaceCannotBeModified",
+ "BadRequestWorkspaceNotDeletable",
+ "BadRequestTagName",
+ "BadRequestTagNameNotUnique",
+ "BadRequestTagDescription",
+ "BadRequestTagType",
+ "BadRequestMultipleNegativeTag",
+ "BadRequestMultipleGeneralProductTag",
+ "BadRequestImageTags",
+ "BadRequestImageRegions",
+ "BadRequestNegativeAndRegularTagOnSameImage",
+ "BadRequestUnsupportedDomain",
+ "BadRequestRequiredParamIsNull",
+ "BadRequestIterationIsPublished",
+ "BadRequestInvalidPublishName",
+ "BadRequestInvalidPublishTarget",
+ "BadRequestUnpublishFailed",
+ "BadRequestIterationNotPublished",
+ "BadRequestSubscriptionApi",
+ "BadRequestExceedProjectLimit",
+ "BadRequestExceedIterationPerProjectLimit",
+ "BadRequestExceedTagPerProjectLimit",
+ "BadRequestExceedTagPerImageLimit",
+ "BadRequestExceededQuota",
+ "BadRequestCannotMigrateProjectWithName",
+ "BadRequestNotLimitedTrial",
+ "BadRequestImageBatch",
+ "BadRequestImageStream",
+ "BadRequestImageUrl",
+ "BadRequestImageFormat",
+ "BadRequestImageSizeBytes",
+ "BadRequestImageDimensions",
+ "BadRequestImageExceededCount",
+ "BadRequestTrainingNotNeeded",
+ "BadRequestTrainingNotNeededButTrainingPipelineUpdated",
+ "BadRequestTrainingValidationFailed",
+ "BadRequestClassificationTrainingValidationFailed",
+ "BadRequestMultiClassClassificationTrainingValidationFailed",
+ "BadRequestMultiLabelClassificationTrainingValidationFailed",
+ "BadRequestDetectionTrainingValidationFailed",
+ "BadRequestTrainingAlreadyInProgress",
+ "BadRequestDetectionTrainingNotAllowNegativeTag",
+ "BadRequestInvalidEmailAddress",
+ "BadRequestDomainNotSupportedForAdvancedTraining",
+ "BadRequestExportPlatformNotSupportedForAdvancedTraining",
+ "BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining",
+ "BadRequestExportValidationFailed",
+ "BadRequestExportAlreadyInProgress",
+ "BadRequestPredictionIdsMissing",
+ "BadRequestPredictionIdsExceededCount",
+ "BadRequestPredictionTagsExceededCount",
+ "BadRequestPredictionResultsExceededCount",
+ "BadRequestPredictionInvalidApplicationName",
+ "BadRequestPredictionInvalidQueryParameters",
+ "BadRequestInvalidImportToken",
+ "BadRequestExportWhileTraining",
+ "BadRequestImageMetadataKey",
+ "BadRequestImageMetadataValue",
+ "BadRequestOperationNotSupported",
+ "BadRequestInvalidArtifactUri",
+ "BadRequestCustomerManagedKeyRevoked",
+ "BadRequestInvalid",
+ "UnsupportedMediaType",
+ "Forbidden",
+ "ForbiddenUser",
+ "ForbiddenUserResource",
+ "ForbiddenUserSignupDisabled",
+ "ForbiddenUserSignupAllowanceExceeded",
+ "ForbiddenUserDoesNotExist",
+ "ForbiddenUserDisabled",
+ "ForbiddenUserInsufficientCapability",
+ "ForbiddenDRModeEnabled",
+ "ForbiddenInvalid",
+ "NotFound",
+ "NotFoundProject",
+ "NotFoundProjectDefaultIteration",
+ "NotFoundIteration",
+ "NotFoundIterationPerformance",
+ "NotFoundTag",
+ "NotFoundImage",
+ "NotFoundDomain",
+ "NotFoundApimSubscription",
+ "NotFoundInvalid",
+ "Conflict",
+ "ConflictInvalid",
+ "ErrorUnknown",
+ "ErrorIterationCopyFailed",
+ "ErrorPreparePerformanceMigrationFailed",
+ "ErrorProjectInvalidWorkspace",
+ "ErrorProjectInvalidPipelineConfiguration",
+ "ErrorProjectInvalidDomain",
+ "ErrorProjectTrainingRequestFailed",
+ "ErrorProjectImportRequestFailed",
+ "ErrorProjectExportRequestFailed",
+ "ErrorFeaturizationServiceUnavailable",
+ "ErrorFeaturizationQueueTimeout",
+ "ErrorFeaturizationInvalidFeaturizer",
+ "ErrorFeaturizationAugmentationUnavailable",
+ "ErrorFeaturizationUnrecognizedJob",
+ "ErrorFeaturizationAugmentationError",
+ "ErrorExporterInvalidPlatform",
+ "ErrorExporterInvalidFeaturizer",
+ "ErrorExporterInvalidClassifier",
+ "ErrorPredictionServiceUnavailable",
+ "ErrorPredictionModelNotFound",
+ "ErrorPredictionModelNotCached",
+ "ErrorPrediction",
+ "ErrorPredictionStorage",
+ "ErrorRegionProposal",
+ "ErrorUnknownBaseModel",
+ "ErrorInvalid"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CustomVisionErrorCodes",
+ "modelAsString": true
+ }
+ },
+ "message": {
+ "description": "A message explaining the error reported by the service.",
+ "type": "string"
+ }
+ }
+ },
+ "ImagePrediction": {
+ "description": "Result of an image prediction request.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "description": "Prediction Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "project": {
+ "format": "uuid",
+ "description": "Project Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "iteration": {
+ "format": "uuid",
+ "description": "Iteration Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "description": "Date this prediction was created.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "predictions": {
+ "description": "List of predictions.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Prediction",
+ "x-nullable": false
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "ImageUrl": {
+ "description": "Image url.",
+ "required": [
+ "url"
+ ],
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "Url of the image.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "Prediction": {
+ "description": "Prediction result.",
+ "type": "object",
+ "properties": {
+ "probability": {
+ "format": "float",
+ "description": "Probability of the tag.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagId": {
+ "format": "uuid",
+ "description": "Id of the predicted tag.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagName": {
+ "description": "Name of the predicted tag.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "boundingBox": {
+ "$ref": "#/definitions/BoundingBox",
+ "description": "Bounding box of the prediction.",
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "tagType": {
+ "description": "Type of the predicted tag.",
+ "enum": [
+ "Regular",
+ "Negative",
+ "GeneralProduct"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": true,
+ "x-ms-enum": {
+ "name": "TagType",
+ "modelAsString": true
+ }
+ }
+ }
+ }
+ },
+ "parameters": {
+ "Endpoint": {
+ "name": "Endpoint",
+ "in": "path",
+ "description": "Supported Cognitive Services endpoints.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client",
+ "x-ms-skip-url-encoding": true
+ }
+ },
+ "securityDefinitions": {
+ "apim_key": {
+ "type": "apiKey",
+ "name": "Prediction-Key",
+ "in": "header"
+ }
+ },
+ "security": [
+ {
+ "apim_key": []
+ }
+ ],
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{Endpoint}",
+ "useSchemePrefix": false,
+ "parameters": [
+ {
+ "$ref": "#/parameters/Endpoint"
+ }
+ ]
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImage.json b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImage.json
new file mode 100644
index 000000000000..92c8f66b7eec
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImage.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Prediction-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "publishedName": "MyModel1",
+ "imageData": "multipart-form-data"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "951098b2-9b69-427b-bddb-d5cb618874e3",
+ "project": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iteration": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "created": "2019-03-06T02:15:00Z",
+ "predictions": [
+ {
+ "tagId": "e31ff107-5505-4753-be42-b369b21b026c",
+ "tagName": "Hemlock",
+ "probability": 0.05149666
+ },
+ {
+ "tagId": "349d72ac-0948-4d51-b1e4-c14a1f9b848a",
+ "tagName": "Japanese Cherry",
+ "probability": 0.000193528482
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageUrl.json b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageUrl.json
new file mode 100644
index 000000000000..a73984bd908b
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageUrl.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Prediction-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "publishedName": "MyModel1",
+ "imageUrl": {
+ "url": "{Image URL}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "951098b2-9b69-427b-bddb-d5cb618874e3",
+ "project": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iteration": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "created": "2019-03-06T02:15:00Z",
+ "predictions": [
+ {
+ "tagId": "e31ff107-5505-4753-be42-b369b21b026c",
+ "tagName": "Hemlock",
+ "probability": 0.05149666
+ },
+ {
+ "tagId": "349d72ac-0948-4d51-b1e4-c14a1f9b848a",
+ "tagName": "Japanese Cherry",
+ "probability": 0.000193528482
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageUrlWithNoStore.json b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageUrlWithNoStore.json
new file mode 100644
index 000000000000..a73984bd908b
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageUrlWithNoStore.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Prediction-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "publishedName": "MyModel1",
+ "imageUrl": {
+ "url": "{Image URL}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "951098b2-9b69-427b-bddb-d5cb618874e3",
+ "project": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iteration": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "created": "2019-03-06T02:15:00Z",
+ "predictions": [
+ {
+ "tagId": "e31ff107-5505-4753-be42-b369b21b026c",
+ "tagName": "Hemlock",
+ "probability": 0.05149666
+ },
+ {
+ "tagId": "349d72ac-0948-4d51-b1e4-c14a1f9b848a",
+ "tagName": "Japanese Cherry",
+ "probability": 0.000193528482
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageWithNoStore.json b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageWithNoStore.json
new file mode 100644
index 000000000000..92c8f66b7eec
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/ClassifyImageWithNoStore.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Prediction-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "publishedName": "MyModel1",
+ "imageData": "multipart-form-data"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "951098b2-9b69-427b-bddb-d5cb618874e3",
+ "project": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iteration": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "created": "2019-03-06T02:15:00Z",
+ "predictions": [
+ {
+ "tagId": "e31ff107-5505-4753-be42-b369b21b026c",
+ "tagName": "Hemlock",
+ "probability": 0.05149666
+ },
+ {
+ "tagId": "349d72ac-0948-4d51-b1e4-c14a1f9b848a",
+ "tagName": "Japanese Cherry",
+ "probability": 0.000193528482
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImage.json b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImage.json
new file mode 100644
index 000000000000..53c02746507d
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImage.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Prediction-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "publishedName": "MyModel1",
+ "imageData": "multipart-form-data"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "64615ba1-b53f-e911-b05b-f8633f7a2ef1",
+ "project": "fb5bc587-b53f-e911-b05b-f8633f7a2ef1",
+ "iteration": "45c79472-7198-46e1-8ed7-bad2ca111957",
+ "created": "2019-03-10T06:10:28Z",
+ "predictions": [
+ {
+ "tagId": "7e703b80-3c7a-4c3c-bf48-9673c6891a75",
+ "tagName": "Tag 1",
+ "probability": 0.05149666,
+ "boundingBox": {
+ "left": 0.955476165,
+ "top": 0,
+ "width": 0.0412225723,
+ "height": 0.156851858
+ }
+ },
+ {
+ "tagId": "a0d06a54-18e4-4787-a9f9-27a9c13a91e8",
+ "tagName": "Tag 2",
+ "probability": 0.000193528482,
+ "boundingBox": {
+ "left": 0.062178582,
+ "top": 0,
+ "width": 0.9378114,
+ "height": 0.6830492
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageUrl.json b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageUrl.json
new file mode 100644
index 000000000000..2b133a020f80
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageUrl.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Prediction-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "publishedName": "MyModel1",
+ "imageUrl": {
+ "url": "{Image URL}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "64615ba1-b53f-e911-b05b-f8633f7a2ef1",
+ "project": "fb5bc587-b53f-e911-b05b-f8633f7a2ef1",
+ "iteration": "45c79472-7198-46e1-8ed7-bad2ca111957",
+ "created": "2019-03-10T06:10:28Z",
+ "predictions": [
+ {
+ "tagId": "7e703b80-3c7a-4c3c-bf48-9673c6891a75",
+ "tagName": "Tag 1",
+ "probability": 0.05149666,
+ "boundingBox": {
+ "left": 0.955476165,
+ "top": 0,
+ "width": 0.0412225723,
+ "height": 0.156851858
+ }
+ },
+ {
+ "tagId": "a0d06a54-18e4-4787-a9f9-27a9c13a91e8",
+ "tagName": "Tag 2",
+ "probability": 0.000193528482,
+ "boundingBox": {
+ "left": 0.062178582,
+ "top": 0,
+ "width": 0.9378114,
+ "height": 0.6830492
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageUrlWithNoStore.json b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageUrlWithNoStore.json
new file mode 100644
index 000000000000..2b133a020f80
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageUrlWithNoStore.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Prediction-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "publishedName": "MyModel1",
+ "imageUrl": {
+ "url": "{Image URL}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "64615ba1-b53f-e911-b05b-f8633f7a2ef1",
+ "project": "fb5bc587-b53f-e911-b05b-f8633f7a2ef1",
+ "iteration": "45c79472-7198-46e1-8ed7-bad2ca111957",
+ "created": "2019-03-10T06:10:28Z",
+ "predictions": [
+ {
+ "tagId": "7e703b80-3c7a-4c3c-bf48-9673c6891a75",
+ "tagName": "Tag 1",
+ "probability": 0.05149666,
+ "boundingBox": {
+ "left": 0.955476165,
+ "top": 0,
+ "width": 0.0412225723,
+ "height": 0.156851858
+ }
+ },
+ {
+ "tagId": "a0d06a54-18e4-4787-a9f9-27a9c13a91e8",
+ "tagName": "Tag 2",
+ "probability": 0.000193528482,
+ "boundingBox": {
+ "left": 0.062178582,
+ "top": 0,
+ "width": 0.9378114,
+ "height": 0.6830492
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageWithNoStore.json b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageWithNoStore.json
new file mode 100644
index 000000000000..53c02746507d
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Prediction/stable/v3.1/examples/DetectImageWithNoStore.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Prediction-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "publishedName": "MyModel1",
+ "imageData": "multipart-form-data"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "64615ba1-b53f-e911-b05b-f8633f7a2ef1",
+ "project": "fb5bc587-b53f-e911-b05b-f8633f7a2ef1",
+ "iteration": "45c79472-7198-46e1-8ed7-bad2ca111957",
+ "created": "2019-03-10T06:10:28Z",
+ "predictions": [
+ {
+ "tagId": "7e703b80-3c7a-4c3c-bf48-9673c6891a75",
+ "tagName": "Tag 1",
+ "probability": 0.05149666,
+ "boundingBox": {
+ "left": 0.955476165,
+ "top": 0,
+ "width": 0.0412225723,
+ "height": 0.156851858
+ }
+ },
+ {
+ "tagId": "a0d06a54-18e4-4787-a9f9-27a9c13a91e8",
+ "tagName": "Tag 2",
+ "probability": 0.000193528482,
+ "boundingBox": {
+ "left": 0.062178582,
+ "top": 0,
+ "width": 0.9378114,
+ "height": 0.6830492
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/readme.go.md b/specification/cognitiveservices/data-plane/CustomVision/Training/readme.go.md
index 14bda8dd8dca..c61b06fde524 100644
--- a/specification/cognitiveservices/data-plane/CustomVision/Training/readme.go.md
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/readme.go.md
@@ -19,6 +19,8 @@ batch:
- tag: release_2_2
- tag: release_3_0
- tag: release_3_1
+ - tag: release_3_2
+ - tag: release_3_3
```
### Tag: release_1_0 and go
@@ -73,4 +75,13 @@ Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'release_3_3' && $(go)
+output-folder: $(go-sdk-folder)/services/cognitiveservices/v3.3/customvision/$(namespace)
```
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md b/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md
index c27680fff689..c24589d79dc3 100644
--- a/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/readme.md
@@ -4,11 +4,11 @@
Configuration for generating Custom Vision Training SDK.
-The current release is `release_3_2`.
+The current release is `release_3_3`.
``` yaml
-tag: release_3_2
+tag: release_3_3
openapi-type: data-plane
```
# Releases
@@ -56,6 +56,14 @@ input-file: stable/v3.2/Training.json
add-credentials: true
```
+### Release 3.3
+These settings apply only when `--tag=release_3_3` is specified on the command line.
+
+``` yaml $(tag) == 'release_3_3'
+input-file: stable/v3.3/Training.json
+add-credentials: true
+```
+
# Validation
## Suppression
@@ -163,7 +171,7 @@ input-file:
- $(this-folder)/stable/v3.0/Training.json
- $(this-folder)/stable/v3.1/Training.json
- $(this-folder)/stable/v3.2/Training.json
-
+ - $(this-folder)/stable/v3.3/Training.json
```
If there are files that should not be in the `all-api-versions` set,
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/readme.ruby.md b/specification/cognitiveservices/data-plane/CustomVision/Training/readme.ruby.md
index 65b84d38d255..517819d1250a 100644
--- a/specification/cognitiveservices/data-plane/CustomVision/Training/readme.ruby.md
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/readme.ruby.md
@@ -16,6 +16,7 @@ batch:
- tag: release_3_0
- tag: release_3_1
- tag: release_3_2
+ - tag: release_3_3
```
### Tag: release_1_0 and ruby
@@ -62,3 +63,13 @@ output-folder: $(ruby-sdks-folder)/data/azure_cognitiveservices_customvisiontrai
title: "TrainingClient"
```
+### Tag: release_3_3 and ruby
+
+These settings apply only when `--tag=release_3_3 --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'release_3_3' && $(ruby)
+namespace: "Azure::CognitiveServices::CustomVision::Training::V3_3"
+output-folder: $(ruby-sdks-folder)/data/azure_cognitiveservices_customvisiontraining/lib
+title: "TrainingClient"
+```
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/Training.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/Training.json
new file mode 100644
index 000000000000..90ef38fb562b
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/Training.json
@@ -0,0 +1,5606 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "3.3",
+ "title": "Custom Vision Training Client"
+ },
+ "host": "southcentralus.api.cognitive.microsoft.com",
+ "basePath": "/customvision/v3.3/training",
+ "schemes": [
+ "https"
+ ],
+ "paths": {
+ "/domains": {
+ "get": {
+ "tags": [
+ "DomainsApi"
+ ],
+ "summary": "Get a list of the available domains.",
+ "operationId": "GetDomains",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Domain"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetDomains request": {
+ "$ref": "./examples/GetDomains.json"
+ }
+ }
+ }
+ },
+ "/domains/{domainId}": {
+ "get": {
+ "tags": [
+ "DomainsApi"
+ ],
+ "summary": "Get information about a specific domain.",
+ "operationId": "GetDomain",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "domainId",
+ "in": "path",
+ "description": "The id of the domain to get information about.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Domain"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetDomain request": {
+ "$ref": "./examples/GetDomain.json"
+ }
+ }
+ }
+ },
+ "/projects": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Get your projects.",
+ "operationId": "GetProjects",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Project"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetProjects request": {
+ "$ref": "./examples/GetProjects.json"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Create a project.",
+ "operationId": "CreateProject",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "name",
+ "in": "query",
+ "description": "Name of the project.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "description",
+ "in": "query",
+ "description": "The description of the project.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "domainId",
+ "in": "query",
+ "description": "The id of the domain to use for this project. Defaults to General.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "classificationType",
+ "in": "query",
+ "description": "The type of classifier to create for this project.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "Multiclass",
+ "Multilabel"
+ ]
+ },
+ {
+ "name": "targetExportPlatforms",
+ "in": "query",
+ "description": "List of platforms the trained model is intending exporting to.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "CoreML",
+ "TensorFlow",
+ "DockerFile",
+ "ONNX",
+ "VAIDK"
+ ]
+ },
+ "collectionFormat": "csv"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Project"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful CreateProject request": {
+ "$ref": "./examples/CreateProject.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Get a specific project.",
+ "operationId": "GetProject",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The id of the project to get.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Project"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetProject request": {
+ "$ref": "./examples/GetProject.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Delete a specific project.",
+ "operationId": "DeleteProject",
+ "consumes": [],
+ "produces": [],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DeleteProject request": {
+ "$ref": "./examples/DeleteProject.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Update a specific project.",
+ "operationId": "UpdateProject",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The id of the project to update.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "updatedProject",
+ "in": "body",
+ "description": "The updated project model.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Project"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Project"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful UpdateProject request": {
+ "$ref": "./examples/UpdateProject.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/artifacts": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Get artifact content from blob storage, based on artifact relative path in the blob.",
+ "operationId": "GetArtifact",
+ "consumes": [],
+ "produces": [
+ "application/octet-stream"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "path",
+ "in": "query",
+ "description": "The relative path for artifact.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "file"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetArtifact request": {
+ "$ref": "./examples/GetArtifact.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/export": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Exports a project.",
+ "operationId": "ExportProject",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id of the project to export.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ProjectExport"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful ExportProject request": {
+ "$ref": "./examples/ExportProject.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images": {
+ "get": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Get images for a given project iteration or workspace.",
+ "description": "This API supports batching and range selection. By default it will only return first 50 images matching images.\r\nUse the {take} and {skip} parameters to control how many images to return in a given batch.\r\nThe filtering is on an and/or relationship. For example, if the provided tag ids are for the \"Dog\" and\r\n\"Cat\" tags, then only images tagged with Dog and/or Cat will be returned",
+ "operationId": "GetImages",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "tagIds",
+ "in": "query",
+ "description": "A list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 20,
+ "minItems": 0
+ },
+ {
+ "name": "taggingStatus",
+ "in": "query",
+ "description": "The tagging status filter. It can be 'All', 'Tagged', or 'Untagged'. Defaults to 'All'.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "All",
+ "Tagged",
+ "Untagged"
+ ]
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "description": "An expression to filter the images against image metadata. Only images where the expression evaluates to true are included in the response.\r\nThe expression supports eq (Equal), ne (Not equal), and (Logical and), or (Logical or) operators.\r\nHere is an example, metadata=key1 eq 'value1' and key2 ne 'value2'.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "orderBy",
+ "in": "query",
+ "description": "The ordering. Defaults to newest.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "Newest",
+ "Oldest"
+ ]
+ },
+ {
+ "name": "take",
+ "in": "query",
+ "description": "Maximum number of images to return. Defaults to 50, limited to 256.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 50,
+ "maximum": 256,
+ "minimum": 0
+ },
+ {
+ "name": "skip",
+ "in": "query",
+ "description": "Number of images to skip before beginning the image batch. Defaults to 0.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 0
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Image"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetImages request": {
+ "$ref": "./examples/GetImages.json"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Add the provided images to the set of training images.",
+ "description": "This API accepts body content as multipart/form-data and application/octet-stream. When using multipart\r\nmultiple image files can be sent at once, with a maximum of 64 files.\r\nIf all images are successful created, 200(OK) status code will be returned.\r\nOtherwise, 207 (Multi-Status) status code will be returned and detail status for each image will be listed in the response payload.",
+ "operationId": "CreateImagesFromData",
+ "consumes": [
+ "multipart/form-data",
+ "application/octet-stream"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "tagIds",
+ "in": "query",
+ "description": "The tags ids with which to tag each image. Limited to 20.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 20,
+ "minItems": 0
+ },
+ {
+ "name": "imageData",
+ "in": "formData",
+ "description": "Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.",
+ "required": true,
+ "type": "file"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImageCreateSummary"
+ }
+ },
+ "207": {
+ "description": "207",
+ "schema": {
+ "$ref": "#/definitions/ImageCreateSummary"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful CreateImagesFromData request": {
+ "$ref": "./examples/CreateImagesFromData.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Delete images from the set of training images.",
+ "operationId": "DeleteImages",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "imageIds",
+ "in": "query",
+ "description": "Ids of the images to be deleted. Limited to 256 images per batch.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 256,
+ "minItems": 0
+ },
+ {
+ "name": "allImages",
+ "in": "query",
+ "description": "Flag to specify delete all images, specify this flag or a list of images. Using this flag will return a 202 response to indicate the images are being deleted.",
+ "required": false,
+ "type": "boolean"
+ },
+ {
+ "name": "allIterations",
+ "in": "query",
+ "description": "Removes these images from all iterations, not just the current workspace. Using this flag will return a 202 response to indicate the images are being deleted.",
+ "required": false,
+ "type": "boolean"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DeleteImages request": {
+ "$ref": "./examples/DeleteImages.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/{imageId}/regionproposals": {
+ "post": {
+ "tags": [
+ "ImageRegionProposalApi"
+ ],
+ "summary": "Get region proposals for an image. Returns empty array if no proposals are found.",
+ "description": "This API will get region proposals for an image along with confidences for the region. It returns an empty array if no proposals are found.",
+ "operationId": "GetImageRegionProposals",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "imageId",
+ "in": "path",
+ "description": "The image id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImageRegionProposal"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetImageRegionProposals request": {
+ "$ref": "./examples/GetImageRegionProposals.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/count": {
+ "get": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Get the number of images.",
+ "description": "The filtering is on an and/or relationship. For example, if the provided tag ids are for the \"Dog\" and\r\n\"Cat\" tags, then only images tagged with Dog and/or Cat will be returned",
+ "operationId": "GetImageCount",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "taggingStatus",
+ "in": "query",
+ "description": "The tagging status filter. It can be 'All', 'Tagged', or 'Untagged'. Defaults to 'All'.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "All",
+ "Tagged",
+ "Untagged"
+ ]
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "description": "An expression to filter the images against image metadata. Only images where the expression evaluates to true are included in the response.\r\nThe expression supports eq (Equal), ne (Not equal), and (Logical and), or (Logical or) operators.\r\nHere is an example, metadata=key1 eq 'value1' and key2 ne 'value2'.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "tagIds",
+ "in": "query",
+ "description": "A list of tags ids to filter the images to count. Defaults to all tags when null.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetImageCount request": {
+ "$ref": "./examples/GetImageCount.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/files": {
+ "post": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Add the provided batch of images to the set of training images.",
+ "description": "This API accepts a batch of files, and optionally tags, to create images. There is a limit of 64 images and 20 tags.\r\nIf all images are successful created, 200(OK) status code will be returned.\r\nOtherwise, 207 (Multi-Status) status code will be returned and detail status for each image will be listed in the response payload.",
+ "operationId": "CreateImagesFromFiles",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "batch",
+ "in": "body",
+ "description": "The batch of image files to add. Limited to 64 images and 20 tags per batch.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageFileCreateBatch"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImageCreateSummary"
+ }
+ },
+ "207": {
+ "description": "207",
+ "schema": {
+ "$ref": "#/definitions/ImageCreateSummary"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful CreateImagesFromFiles request": {
+ "$ref": "./examples/CreateImagesFromFiles.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/id": {
+ "get": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Get images by id for a given project iteration.",
+ "description": "This API will return a set of Images for the specified tags and optionally iteration. If no iteration is specified the\r\ncurrent workspace is used.",
+ "operationId": "GetImagesByIds",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "imageIds",
+ "in": "query",
+ "description": "The list of image ids to retrieve. Limited to 256.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 256,
+ "minItems": 0
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Image"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetImagesByIds request": {
+ "$ref": "./examples/GetImagesByIds.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/metadata": {
+ "post": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Update metadata of images.",
+ "description": "This API accepts a batch of image Ids, and metadata, to update images. There is a limit of 64 images.",
+ "operationId": "UpdateImageMetadata",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "imageIds",
+ "in": "query",
+ "description": "The list of image ids to update. Limited to 64.",
+ "required": true,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 256,
+ "minItems": 0
+ },
+ {
+ "name": "metadata",
+ "in": "body",
+ "description": "The metadata to be updated to the specified images. Limited to 50 key-value pairs per image. The length of key is limited to 256. The length of value is limited to 512.",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImageMetadataUpdateSummary"
+ }
+ },
+ "207": {
+ "description": "207",
+ "schema": {
+ "$ref": "#/definitions/ImageMetadataUpdateSummary"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful UpdateImageMetadata request": {
+ "$ref": "./examples/UpdateImageMetadata.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/predictions": {
+ "post": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Add the specified predicted images to the set of training images.",
+ "description": "This API creates a batch of images from predicted images specified. There is a limit of 64 images and 20 tags.\r\nIf all images are successful created, 200(OK) status code will be returned.\r\nOtherwise, 207 (Multi-Status) status code will be returned and detail status for each image will be listed in the response payload.",
+ "operationId": "CreateImagesFromPredictions",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "batch",
+ "in": "body",
+ "description": "Image, tag ids, and metadata. Limited to 64 images and 20 tags per batch.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageIdCreateBatch"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImageCreateSummary"
+ }
+ },
+ "207": {
+ "description": "207",
+ "schema": {
+ "$ref": "#/definitions/ImageCreateSummary"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful CreateImagesFromPredictions request": {
+ "$ref": "./examples/CreateImagesFromPredictions.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/regions": {
+ "post": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Create a set of image regions.",
+ "description": "This API accepts a batch of image regions, and optionally tags, to update existing images with region information.\r\nThere is a limit of 64 entries in the batch.\r\nIf all regions are successful created, 200(OK) status code will be returned.\r\nOtherwise, 207 (Multi-Status) status code will be returned and detail status for each region will be listed in the response payload.",
+ "operationId": "CreateImageRegions",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "batch",
+ "in": "body",
+ "description": "Batch of image regions which include a tag and bounding box. Limited to 64.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageRegionCreateBatch"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImageRegionCreateSummary"
+ }
+ },
+ "207": {
+ "description": "207",
+ "schema": {
+ "$ref": "#/definitions/ImageRegionCreateSummary"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful CreateImageRegions request": {
+ "$ref": "./examples/CreateImageRegions.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Delete a set of image regions.",
+ "operationId": "DeleteImageRegions",
+ "consumes": [],
+ "produces": [],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "regionIds",
+ "in": "query",
+ "description": "Regions to delete. Limited to 64.",
+ "required": true,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 64,
+ "minItems": 0
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DeleteImageRegions request": {
+ "$ref": "./examples/DeleteImageRegions.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/suggested": {
+ "post": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Get untagged images whose suggested tags match given tags. Returns empty array if no images are found.",
+ "description": "This API will fetch untagged images filtered by suggested tags Ids. It returns an empty array if no images are found.",
+ "operationId": "QuerySuggestedImages",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "IterationId to use for the suggested tags and regions.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "query",
+ "in": "body",
+ "description": "Contains properties we need to query suggested images.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SuggestedTagAndRegionQueryToken"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SuggestedTagAndRegionQuery"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful QuerySuggestedImages request": {
+ "$ref": "./examples/QuerySuggestedImages.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/suggested/count": {
+ "post": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Get count of images whose suggested tags match given tags and their probabilities are greater than or equal to the given threshold. Returns count as 0 if none found.",
+ "description": "This API takes in tagIds to get count of untagged images per suggested tags for a given threshold.",
+ "operationId": "QuerySuggestedImageCount",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "IterationId to use for the suggested tags and regions.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "query",
+ "in": "body",
+ "description": "Model that contains tagIds, threshold and projectType to query by.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TagFilter"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "object",
+ "additionalProperties": {
+ "format": "int32",
+ "type": "integer"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful QuerySuggestedImageCount request": {
+ "$ref": "./examples/QuerySuggestedImageCount.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/tagged": {
+ "get": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Get tagged images for a given project iteration.",
+ "description": "This API supports batching and range selection. By default it will only return first 50 images matching images.\r\nUse the {take} and {skip} parameters to control how many images to return in a given batch.\r\nThe filtering is on an and/or relationship. For example, if the provided tag ids are for the \"Dog\" and\r\n\"Cat\" tags, then only images tagged with Dog and/or Cat will be returned",
+ "operationId": "GetTaggedImages",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "tagIds",
+ "in": "query",
+ "description": "A list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 20,
+ "minItems": 0
+ },
+ {
+ "name": "orderBy",
+ "in": "query",
+ "description": "The ordering. Defaults to newest.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "Newest",
+ "Oldest"
+ ]
+ },
+ {
+ "name": "take",
+ "in": "query",
+ "description": "Maximum number of images to return. Defaults to 50, limited to 256.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 50,
+ "maximum": 256,
+ "minimum": 0
+ },
+ {
+ "name": "skip",
+ "in": "query",
+ "description": "Number of images to skip before beginning the image batch. Defaults to 0.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 0
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Image"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetTaggedImages request": {
+ "$ref": "./examples/GetTaggedImages.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/tagged/count": {
+ "get": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Gets the number of images tagged with the provided {tagIds}.",
+ "description": "The filtering is on an and/or relationship. For example, if the provided tag ids are for the \"Dog\" and\r\n\"Cat\" tags, then only images tagged with Dog and/or Cat will be returned",
+ "operationId": "GetTaggedImageCount",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "tagIds",
+ "in": "query",
+ "description": "A list of tags ids to filter the images to count. Defaults to all tags when null.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetTaggedImageCount request": {
+ "$ref": "./examples/GetTaggedImageCount.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/tags": {
+ "post": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Associate a set of images with a set of tags.",
+ "operationId": "CreateImageTags",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "batch",
+ "in": "body",
+ "description": "Batch of image tags. Limited to 128 tags per batch.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageTagCreateBatch"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImageTagCreateSummary"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful CreateImageTags request": {
+ "$ref": "./examples/CreateImageTags.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Remove a set of tags from a set of images.",
+ "operationId": "DeleteImageTags",
+ "consumes": [],
+ "produces": [],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "imageIds",
+ "in": "query",
+ "description": "Image ids. Limited to 64 images.",
+ "required": true,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 64,
+ "minItems": 0
+ },
+ {
+ "name": "tagIds",
+ "in": "query",
+ "description": "Tags to be deleted from the specified images. Limited to 20 tags.",
+ "required": true,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 20,
+ "minItems": 0
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DeleteImageTags request": {
+ "$ref": "./examples/DeleteImageTags.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/untagged": {
+ "get": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Get untagged images for a given project iteration.",
+ "description": "This API supports batching and range selection. By default it will only return first 50 images matching images.\r\nUse the {take} and {skip} parameters to control how many images to return in a given batch.",
+ "operationId": "GetUntaggedImages",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "orderBy",
+ "in": "query",
+ "description": "The ordering. Defaults to newest.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "Newest",
+ "Oldest"
+ ]
+ },
+ {
+ "name": "take",
+ "in": "query",
+ "description": "Maximum number of images to return. Defaults to 50, limited to 256.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 50,
+ "maximum": 256,
+ "minimum": 0
+ },
+ {
+ "name": "skip",
+ "in": "query",
+ "description": "Number of images to skip before beginning the image batch. Defaults to 0.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 0
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Image"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetUntaggedImages request": {
+ "$ref": "./examples/GetUntaggedImages.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/untagged/count": {
+ "get": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Gets the number of untagged images.",
+ "description": "This API returns the images which have no tags for a given project and optionally an iteration. If no iteration is specified the\r\ncurrent workspace is used.",
+ "operationId": "GetUntaggedImageCount",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetUntaggedImageCount request": {
+ "$ref": "./examples/GetUntaggedImageCount.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/images/urls": {
+ "post": {
+ "tags": [
+ "ImageApi"
+ ],
+ "summary": "Add the provided images urls to the set of training images.",
+ "description": "This API accepts a batch of urls, and optionally tags, to create images. There is a limit of 64 images and 20 tags.\r\nIf all images are successful created, 200(OK) status code will be returned.\r\nOtherwise, 207 (Multi-Status) status code will be returned and detail status for each image will be listed in the response payload.",
+ "operationId": "CreateImagesFromUrls",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "batch",
+ "in": "body",
+ "description": "Image urls, tag ids, and metadata. Limited to 64 images and 20 tags per batch.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageUrlCreateBatch"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImageCreateSummary"
+ }
+ },
+ "207": {
+ "description": "207",
+ "schema": {
+ "$ref": "#/definitions/ImageCreateSummary"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful CreateImagesFromUrls request": {
+ "$ref": "./examples/CreateImagesFromUrls.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/iterations": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Get iterations for the project.",
+ "operationId": "GetIterations",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Iteration"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetIterations request": {
+ "$ref": "./examples/GetIterations.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/iterations/{iterationId}": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Get a specific iteration.",
+ "operationId": "GetIteration",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The id of the project the iteration belongs to.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "The id of the iteration to get.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Iteration"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetIteration request": {
+ "$ref": "./examples/GetIteration.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Delete a specific iteration of a project.",
+ "operationId": "DeleteIteration",
+ "consumes": [],
+ "produces": [],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "The iteration id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DeleteIteration request": {
+ "$ref": "./examples/DeleteIteration.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Update a specific iteration.",
+ "operationId": "UpdateIteration",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "Project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "Iteration id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "updatedIteration",
+ "in": "body",
+ "description": "The updated iteration model.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Iteration"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Iteration"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful UpdateIteration request": {
+ "$ref": "./examples/UpdateIteration.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/iterations/{iterationId}/export": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Get the list of exports for a specific iteration.",
+ "operationId": "GetExports",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "The iteration id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Export"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetExports request": {
+ "$ref": "./examples/GetExports.json"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Export a trained iteration.",
+ "operationId": "ExportIteration",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "The iteration id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "platform",
+ "in": "query",
+ "description": "The target platform.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "CoreML",
+ "TensorFlow",
+ "DockerFile",
+ "ONNX",
+ "VAIDK"
+ ]
+ },
+ {
+ "name": "flavor",
+ "in": "query",
+ "description": "The flavor of the target platform.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "Linux",
+ "Windows",
+ "ONNX10",
+ "ONNX12",
+ "ARM",
+ "TensorFlowNormal",
+ "TensorFlowLite"
+ ]
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Export"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful ExportIteration request": {
+ "$ref": "./examples/ExportIteration.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/iterations/{iterationId}/performance": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Get detailed performance information about an iteration.",
+ "operationId": "GetIterationPerformance",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The id of the project the iteration belongs to.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "The id of the iteration to get.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "threshold",
+ "in": "query",
+ "description": "The threshold used to determine true predictions.",
+ "required": false,
+ "type": "number",
+ "format": "float"
+ },
+ {
+ "name": "overlapThreshold",
+ "in": "query",
+ "description": "If applicable, the bounding box overlap threshold used to determine true predictions.",
+ "required": false,
+ "type": "number",
+ "format": "float"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/IterationPerformance"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetIterationPerformance request": {
+ "$ref": "./examples/GetIterationPerformance.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/iterations/{iterationId}/performance/images": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Get image with its prediction for a given project iteration.",
+ "description": "This API supports batching and range selection. By default it will only return first 50 images matching images.\r\nUse the {take} and {skip} parameters to control how many images to return in a given batch.\r\nThe filtering is on an and/or relationship. For example, if the provided tag ids are for the \"Dog\" and\r\n\"Cat\" tags, then only images tagged with Dog and/or Cat will be returned",
+ "operationId": "GetImagePerformances",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "tagIds",
+ "in": "query",
+ "description": "A list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 20,
+ "minItems": 0
+ },
+ {
+ "name": "orderBy",
+ "in": "query",
+ "description": "The ordering. Defaults to newest.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "Newest",
+ "Oldest"
+ ]
+ },
+ {
+ "name": "take",
+ "in": "query",
+ "description": "Maximum number of images to return. Defaults to 50, limited to 256.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 50,
+ "maximum": 256,
+ "minimum": 0
+ },
+ {
+ "name": "skip",
+ "in": "query",
+ "description": "Number of images to skip before beginning the image batch. Defaults to 0.",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 0
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImagePerformance"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetImagePerformances request": {
+ "$ref": "./examples/GetImagePerformances.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/iterations/{iterationId}/performance/images/count": {
+ "get": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Gets the number of images tagged with the provided {tagIds} that have prediction results from\r\ntraining for the provided iteration {iterationId}.",
+ "description": "The filtering is on an and/or relationship. For example, if the provided tag ids are for the \"Dog\" and\r\n\"Cat\" tags, then only images tagged with Dog and/or Cat will be returned",
+ "operationId": "GetImagePerformanceCount",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "tagIds",
+ "in": "query",
+ "description": "A list of tags ids to filter the images to count. Defaults to all tags when null.",
+ "required": false,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "format": "int32",
+ "type": "integer"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetImagePerformanceCount request": {
+ "$ref": "./examples/GetImagePerformanceCount.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/iterations/{iterationId}/publish": {
+ "post": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Publish a specific iteration.",
+ "operationId": "PublishIteration",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "The iteration id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "publishName",
+ "in": "query",
+ "description": "The name to give the published iteration.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "predictionId",
+ "in": "query",
+ "description": "The id of the prediction resource to publish to.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "overwrite",
+ "in": "query",
+ "description": "Whether to overwrite the published model with the given name (default: false).",
+ "required": false,
+ "type": "boolean"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful PublishIteration request": {
+ "$ref": "./examples/PublishIteration.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Unpublish a specific iteration.",
+ "operationId": "UnpublishIteration",
+ "consumes": [],
+ "produces": [],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "path",
+ "description": "The iteration id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful UnpublishIteration request": {
+ "$ref": "./examples/UnpublishIteration.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/predictions": {
+ "delete": {
+ "tags": [
+ "PredictionsApi"
+ ],
+ "summary": "Delete a set of predicted images and their associated prediction results.",
+ "operationId": "DeletePrediction",
+ "consumes": [],
+ "produces": [],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "ids",
+ "in": "query",
+ "description": "The prediction ids. Limited to 64.",
+ "required": true,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 64,
+ "minItems": 0
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DeletePrediction request": {
+ "$ref": "./examples/DeletePrediction.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/predictions/query": {
+ "post": {
+ "tags": [
+ "PredictionsApi"
+ ],
+ "summary": "Get images that were sent to your prediction endpoint.",
+ "operationId": "QueryPredictions",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "query",
+ "in": "body",
+ "description": "Parameters used to query the predictions. Limited to combining 2 tags.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PredictionQueryToken"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PredictionQueryResult"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful QueryPredictions request": {
+ "$ref": "./examples/QueryPredictions.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/quicktest/image": {
+ "post": {
+ "tags": [
+ "PredictionsApi"
+ ],
+ "summary": "Quick test an image.",
+ "operationId": "QuickTestImage",
+ "consumes": [
+ "multipart/form-data",
+ "application/octet-stream"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "Optional. Specifies the id of a particular iteration to evaluate against.\r\n The default iteration for the project will be used when not specified.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "store",
+ "in": "query",
+ "description": "Optional. Specifies whether or not to store the result of this prediction. The default is true, to store.",
+ "required": false,
+ "type": "boolean",
+ "default": true
+ },
+ {
+ "name": "imageData",
+ "in": "formData",
+ "description": "Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.",
+ "required": true,
+ "type": "file"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful QuickTestImage request": {
+ "$ref": "./examples/QuickTestImage.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/quicktest/url": {
+ "post": {
+ "tags": [
+ "PredictionsApi"
+ ],
+ "summary": "Quick test an image url.",
+ "operationId": "QuickTestImageUrl",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project to evaluate against.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "imageUrl",
+ "in": "body",
+ "description": "An ImageUrl that contains the url of the image to be evaluated.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImageUrl"
+ }
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "Optional. Specifies the id of a particular iteration to evaluate against.\r\n The default iteration for the project will be used when not specified.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "store",
+ "in": "query",
+ "description": "Optional. Specifies whether or not to store the result of this prediction. The default is true, to store.",
+ "required": false,
+ "type": "boolean",
+ "default": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ImagePrediction"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful QuickTestImageUrl request": {
+ "$ref": "./examples/QuickTestImageUrl.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/tags": {
+ "get": {
+ "tags": [
+ "TagsApi"
+ ],
+ "summary": "Get the tags for a given project and iteration.",
+ "operationId": "GetTags",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "The iteration id. Defaults to workspace.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Tag"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetTags request": {
+ "$ref": "./examples/GetTags.json"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "TagsApi"
+ ],
+ "summary": "Create a tag for the project.",
+ "operationId": "CreateTag",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "name",
+ "in": "query",
+ "description": "The tag name.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "description",
+ "in": "query",
+ "description": "Optional description for the tag.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "description": "Optional type for the tag.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "Regular",
+ "Negative",
+ "GeneralProduct"
+ ]
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Tag"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful CreateTag request": {
+ "$ref": "./examples/CreateTag.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/tags/{tagId}": {
+ "get": {
+ "tags": [
+ "TagsApi"
+ ],
+ "summary": "Get information about a specific tag.",
+ "operationId": "GetTag",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project this tag belongs to.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "tagId",
+ "in": "path",
+ "description": "The tag id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "The iteration to retrieve this tag from. Optional, defaults to current training set.",
+ "required": false,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Tag"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful GetTag request": {
+ "$ref": "./examples/GetTag.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "TagsApi"
+ ],
+ "summary": "Delete a tag from the project.",
+ "operationId": "DeleteTag",
+ "consumes": [],
+ "produces": [],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "tagId",
+ "in": "path",
+ "description": "Id of the tag to be deleted.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful DeleteTag request": {
+ "$ref": "./examples/DeleteTag.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "TagsApi"
+ ],
+ "summary": "Update a tag.",
+ "operationId": "UpdateTag",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "tagId",
+ "in": "path",
+ "description": "The id of the target tag.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "updatedTag",
+ "in": "body",
+ "description": "The updated tag model.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Tag"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Tag"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful UpdateTag request": {
+ "$ref": "./examples/UpdateTag.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/tagsandregions/suggestions": {
+ "post": {
+ "tags": [
+ "SuggestTagsAndRegionsApi"
+ ],
+ "summary": "Suggest tags and regions for an array/batch of untagged images. Returns empty array if no tags are found.",
+ "description": "This API will get suggested tags and regions for an array/batch of untagged images along with confidences for the tags. It returns an empty array if no tags are found.\r\nThere is a limit of 64 images in the batch.",
+ "operationId": "SuggestTagsAndRegions",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "iterationId",
+ "in": "query",
+ "description": "IterationId to use for tag and region suggestion.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "imageIds",
+ "in": "query",
+ "description": "Array of image ids tag suggestion are needed for. Use GetUntaggedImages API to get imageIds.",
+ "required": true,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "collectionFormat": "csv",
+ "maxItems": 64,
+ "minItems": 0
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SuggestedTagAndRegion"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful SuggestTagsAndRegions request": {
+ "$ref": "./examples/SuggestTagsAndRegions.json"
+ }
+ }
+ }
+ },
+ "/projects/{projectId}/train": {
+ "post": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Queues project for training.",
+ "operationId": "TrainProject",
+ "consumes": [
+ "application/json",
+ "application/xml",
+ "text/xml",
+ "application/x-www-form-urlencoded"
+ ],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "projectId",
+ "in": "path",
+ "description": "The project id.",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ {
+ "name": "trainingType",
+ "in": "query",
+ "description": "The type of training to use to train the project (default: Regular).",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "Regular",
+ "Advanced"
+ ]
+ },
+ {
+ "name": "reservedBudgetInHours",
+ "in": "query",
+ "description": "The number of hours reserved as budget for training (if applicable).",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "default": 0
+ },
+ {
+ "name": "forceTrain",
+ "in": "query",
+ "description": "Whether to force train even if dataset and configuration does not change (default: false).",
+ "required": false,
+ "type": "boolean",
+ "default": false
+ },
+ {
+ "name": "notificationEmailAddress",
+ "in": "query",
+ "description": "The email address to send notification to when training finishes (default: null).",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "trainingParameters",
+ "in": "body",
+ "description": "Additional training parameters passed in to control how the project is trained.",
+ "required": false,
+ "schema": {
+ "$ref": "#/definitions/TrainingParameters"
+ },
+ "x-nullable": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Iteration"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful TrainProject request": {
+ "$ref": "./examples/TrainProject.json"
+ }
+ }
+ }
+ },
+ "/projects/import": {
+ "post": {
+ "tags": [
+ "ProjectApi"
+ ],
+ "summary": "Imports a project.",
+ "operationId": "ImportProject",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "application/xml",
+ "text/xml"
+ ],
+ "parameters": [
+ {
+ "name": "token",
+ "in": "query",
+ "description": "Token generated from the export project call.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "in": "query",
+ "description": "Optional, name of the project to use instead of auto-generated name.",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Project"
+ }
+ },
+ "default": {
+ "description": "Error response",
+ "schema": {
+ "$ref": "#/definitions/CustomVisionError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful ImportProject request": {
+ "$ref": "./examples/ImportProject.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "BoundingBox": {
+ "description": "Bounding box that defines a region of an image.",
+ "required": [
+ "left",
+ "top",
+ "width",
+ "height"
+ ],
+ "type": "object",
+ "properties": {
+ "left": {
+ "format": "float",
+ "description": "Coordinate of the left boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "top": {
+ "format": "float",
+ "description": "Coordinate of the top boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "width": {
+ "format": "float",
+ "description": "Width.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "height": {
+ "format": "float",
+ "description": "Height.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "CustomVisionError": {
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "The error code.",
+ "enum": [
+ "NoError",
+ "BadRequest",
+ "BadRequestExceededBatchSize",
+ "BadRequestNotSupported",
+ "BadRequestInvalidIds",
+ "BadRequestProjectName",
+ "BadRequestProjectNameNotUnique",
+ "BadRequestProjectDescription",
+ "BadRequestProjectUnknownDomain",
+ "BadRequestProjectUnknownClassification",
+ "BadRequestProjectUnsupportedDomainTypeChange",
+ "BadRequestProjectUnsupportedExportPlatform",
+ "BadRequestProjectImagePreprocessingSettings",
+ "BadRequestProjectDuplicated",
+ "BadRequestIterationName",
+ "BadRequestIterationNameNotUnique",
+ "BadRequestIterationDescription",
+ "BadRequestIterationIsNotTrained",
+ "BadRequestIterationValidationFailed",
+ "BadRequestWorkspaceCannotBeModified",
+ "BadRequestWorkspaceNotDeletable",
+ "BadRequestTagName",
+ "BadRequestTagNameNotUnique",
+ "BadRequestTagDescription",
+ "BadRequestTagType",
+ "BadRequestMultipleNegativeTag",
+ "BadRequestMultipleGeneralProductTag",
+ "BadRequestImageTags",
+ "BadRequestImageRegions",
+ "BadRequestNegativeAndRegularTagOnSameImage",
+ "BadRequestUnsupportedDomain",
+ "BadRequestRequiredParamIsNull",
+ "BadRequestIterationIsPublished",
+ "BadRequestInvalidPublishName",
+ "BadRequestInvalidPublishTarget",
+ "BadRequestUnpublishFailed",
+ "BadRequestIterationNotPublished",
+ "BadRequestSubscriptionApi",
+ "BadRequestExceedProjectLimit",
+ "BadRequestExceedIterationPerProjectLimit",
+ "BadRequestExceedTagPerProjectLimit",
+ "BadRequestExceedTagPerImageLimit",
+ "BadRequestExceededQuota",
+ "BadRequestCannotMigrateProjectWithName",
+ "BadRequestNotLimitedTrial",
+ "BadRequestImageBatch",
+ "BadRequestImageStream",
+ "BadRequestImageUrl",
+ "BadRequestImageFormat",
+ "BadRequestImageSizeBytes",
+ "BadRequestImageDimensions",
+ "BadRequestImageExceededCount",
+ "BadRequestTrainingNotNeeded",
+ "BadRequestTrainingNotNeededButTrainingPipelineUpdated",
+ "BadRequestTrainingValidationFailed",
+ "BadRequestClassificationTrainingValidationFailed",
+ "BadRequestMultiClassClassificationTrainingValidationFailed",
+ "BadRequestMultiLabelClassificationTrainingValidationFailed",
+ "BadRequestDetectionTrainingValidationFailed",
+ "BadRequestTrainingAlreadyInProgress",
+ "BadRequestDetectionTrainingNotAllowNegativeTag",
+ "BadRequestInvalidEmailAddress",
+ "BadRequestDomainNotSupportedForAdvancedTraining",
+ "BadRequestExportPlatformNotSupportedForAdvancedTraining",
+ "BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining",
+ "BadRequestExportValidationFailed",
+ "BadRequestExportAlreadyInProgress",
+ "BadRequestPredictionIdsMissing",
+ "BadRequestPredictionIdsExceededCount",
+ "BadRequestPredictionTagsExceededCount",
+ "BadRequestPredictionResultsExceededCount",
+ "BadRequestPredictionInvalidApplicationName",
+ "BadRequestPredictionInvalidQueryParameters",
+ "BadRequestInvalidImportToken",
+ "BadRequestExportWhileTraining",
+ "BadRequestImageMetadataKey",
+ "BadRequestImageMetadataValue",
+ "BadRequestOperationNotSupported",
+ "BadRequestInvalidArtifactUri",
+ "BadRequestCustomerManagedKeyRevoked",
+ "BadRequestInvalid",
+ "UnsupportedMediaType",
+ "Forbidden",
+ "ForbiddenUser",
+ "ForbiddenUserResource",
+ "ForbiddenUserSignupDisabled",
+ "ForbiddenUserSignupAllowanceExceeded",
+ "ForbiddenUserDoesNotExist",
+ "ForbiddenUserDisabled",
+ "ForbiddenUserInsufficientCapability",
+ "ForbiddenDRModeEnabled",
+ "ForbiddenInvalid",
+ "NotFound",
+ "NotFoundProject",
+ "NotFoundProjectDefaultIteration",
+ "NotFoundIteration",
+ "NotFoundIterationPerformance",
+ "NotFoundTag",
+ "NotFoundImage",
+ "NotFoundDomain",
+ "NotFoundApimSubscription",
+ "NotFoundInvalid",
+ "Conflict",
+ "ConflictInvalid",
+ "ErrorUnknown",
+ "ErrorIterationCopyFailed",
+ "ErrorPreparePerformanceMigrationFailed",
+ "ErrorProjectInvalidWorkspace",
+ "ErrorProjectInvalidPipelineConfiguration",
+ "ErrorProjectInvalidDomain",
+ "ErrorProjectTrainingRequestFailed",
+ "ErrorProjectImportRequestFailed",
+ "ErrorProjectExportRequestFailed",
+ "ErrorFeaturizationServiceUnavailable",
+ "ErrorFeaturizationQueueTimeout",
+ "ErrorFeaturizationInvalidFeaturizer",
+ "ErrorFeaturizationAugmentationUnavailable",
+ "ErrorFeaturizationUnrecognizedJob",
+ "ErrorFeaturizationAugmentationError",
+ "ErrorExporterInvalidPlatform",
+ "ErrorExporterInvalidFeaturizer",
+ "ErrorExporterInvalidClassifier",
+ "ErrorPredictionServiceUnavailable",
+ "ErrorPredictionModelNotFound",
+ "ErrorPredictionModelNotCached",
+ "ErrorPrediction",
+ "ErrorPredictionStorage",
+ "ErrorRegionProposal",
+ "ErrorUnknownBaseModel",
+ "ErrorInvalid"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CustomVisionErrorCodes",
+ "modelAsString": true
+ }
+ },
+ "message": {
+ "description": "A message explaining the error reported by the service.",
+ "type": "string"
+ }
+ }
+ },
+ "Domain": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": true,
+ "example": "00000000-0000-0000-0000-000000000000",
+ "x-nullable": false
+ },
+ "name": {
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "type": {
+ "enum": [
+ "Classification",
+ "ObjectDetection"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "DomainType",
+ "modelAsString": true
+ }
+ },
+ "exportable": {
+ "type": "boolean",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "enabled": {
+ "type": "boolean",
+ "readOnly": true,
+ "x-nullable": false
+ }
+ }
+ },
+ "Export": {
+ "type": "object",
+ "properties": {
+ "platform": {
+ "description": "Platform of the export.",
+ "enum": [
+ "CoreML",
+ "TensorFlow",
+ "DockerFile",
+ "ONNX",
+ "VAIDK"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "ExportPlatform",
+ "modelAsString": true
+ }
+ },
+ "status": {
+ "description": "Status of the export.",
+ "enum": [
+ "Exporting",
+ "Failed",
+ "Done"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "ExportStatus",
+ "modelAsString": true
+ }
+ },
+ "downloadUri": {
+ "description": "URI used to download the model. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "flavor": {
+ "description": "Flavor of the export. These are specializations of the export platform.\r\nDocker platform has valid flavors: Linux, Windows, ARM.\r\nTensorflow platform has valid flavors: TensorFlowNormal, TensorFlowLite.\r\nONNX platform has valid flavors: ONNX10, ONNX12.",
+ "enum": [
+ "Linux",
+ "Windows",
+ "ONNX10",
+ "ONNX12",
+ "ARM",
+ "TensorFlowNormal",
+ "TensorFlowLite"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": true,
+ "x-ms-enum": {
+ "name": "ExportFlavor",
+ "modelAsString": true
+ }
+ },
+ "newerVersionAvailable": {
+ "description": "Indicates an updated version of the export package is available and should be re-exported for the latest changes.",
+ "type": "boolean",
+ "readOnly": true,
+ "x-nullable": false
+ }
+ }
+ },
+ "Image": {
+ "description": "Image model to be sent as JSON.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "description": "Id of the image.",
+ "type": "string",
+ "readOnly": true,
+ "example": "00000000-0000-0000-0000-000000000000",
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "description": "Date the image was created.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "width": {
+ "format": "int32",
+ "description": "Width of the image.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "height": {
+ "format": "int32",
+ "description": "Height of the image.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "resizedImageUri": {
+ "description": "The URI to the (resized) image used for training. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "thumbnailUri": {
+ "description": "The URI to the thumbnail of the original image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "originalImageUri": {
+ "description": "The URI to the original uploaded image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "tags": {
+ "description": "Tags associated with this image.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageTag"
+ },
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "regions": {
+ "description": "Regions associated with this image.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageRegion"
+ },
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "metadata": {
+ "description": "Metadata associated with this image.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "readOnly": true,
+ "x-nullable": true
+ }
+ }
+ },
+ "ImageCreateResult": {
+ "type": "object",
+ "properties": {
+ "sourceUrl": {
+ "description": "Source URL of the image.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "status": {
+ "description": "Status of the image creation.",
+ "enum": [
+ "OK",
+ "OKDuplicate",
+ "ErrorSource",
+ "ErrorImageFormat",
+ "ErrorImageSize",
+ "ErrorStorage",
+ "ErrorLimitExceed",
+ "ErrorTagLimitExceed",
+ "ErrorRegionLimitExceed",
+ "ErrorUnknown",
+ "ErrorNegativeAndRegularTagOnSameImage"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "ImageCreateStatus",
+ "modelAsString": true
+ }
+ },
+ "image": {
+ "$ref": "#/definitions/Image",
+ "description": "The image.",
+ "readOnly": true
+ }
+ }
+ },
+ "ImageCreateSummary": {
+ "type": "object",
+ "properties": {
+ "isBatchSuccessful": {
+ "description": "True if all of the images in the batch were created successfully, otherwise false.",
+ "type": "boolean",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "images": {
+ "description": "List of the image creation results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageCreateResult",
+ "x-nullable": false
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "ImageFileCreateBatch": {
+ "type": "object",
+ "properties": {
+ "images": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageFileCreateEntry",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "tagIds": {
+ "type": "array",
+ "items": {
+ "format": "uuid",
+ "type": "string",
+ "example": "00000000-0000-0000-0000-000000000000",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "metadata": {
+ "description": "The metadata of image. Limited to 50 key-value pairs per image. The length of key is limited to 256. The length of value is limited to 512.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ }
+ }
+ },
+ "ImageFileCreateEntry": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "contents": {
+ "format": "byte",
+ "type": "string",
+ "readOnly": false
+ },
+ "tagIds": {
+ "type": "array",
+ "items": {
+ "format": "uuid",
+ "type": "string",
+ "example": "00000000-0000-0000-0000-000000000000",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "regions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Region",
+ "x-nullable": false
+ },
+ "readOnly": false
+ }
+ }
+ },
+ "ImageIdCreateBatch": {
+ "type": "object",
+ "properties": {
+ "images": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageIdCreateEntry",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "tagIds": {
+ "type": "array",
+ "items": {
+ "format": "uuid",
+ "type": "string",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "metadata": {
+ "description": "The metadata of image. Limited to 50 key-value pairs per image. The length of key is limited to 256. The length of value is limited to 512.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ }
+ }
+ },
+ "ImageIdCreateEntry": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "description": "Id of the image.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "tagIds": {
+ "type": "array",
+ "items": {
+ "format": "uuid",
+ "type": "string",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "regions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Region",
+ "x-nullable": false
+ },
+ "readOnly": false
+ }
+ }
+ },
+ "ImageMetadataUpdateEntry": {
+ "description": "Entry associating a metadata to an image.",
+ "type": "object",
+ "properties": {
+ "imageId": {
+ "format": "uuid",
+ "description": "Id of the image.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "status": {
+ "description": "Status of the metadata update.",
+ "enum": [
+ "OK",
+ "ErrorImageNotFound",
+ "ErrorLimitExceed",
+ "ErrorUnknown"
+ ],
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "ImageMetadataUpdateStatus",
+ "modelAsString": true
+ }
+ },
+ "metadata": {
+ "description": "Metadata of the image.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ }
+ }
+ },
+ "ImageMetadataUpdateSummary": {
+ "type": "object",
+ "properties": {
+ "isBatchSuccessful": {
+ "type": "boolean",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "images": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageMetadataUpdateEntry",
+ "x-nullable": false
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "ImagePerformance": {
+ "description": "Image performance model.",
+ "type": "object",
+ "properties": {
+ "predictions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Prediction"
+ },
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "id": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "width": {
+ "format": "int32",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "height": {
+ "format": "int32",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "imageUri": {
+ "type": "string",
+ "readOnly": true
+ },
+ "thumbnailUri": {
+ "type": "string",
+ "readOnly": true
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageTag"
+ },
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "regions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageRegion"
+ },
+ "readOnly": true,
+ "x-nullable": true
+ }
+ }
+ },
+ "ImagePrediction": {
+ "description": "Result of an image prediction request.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "description": "Prediction Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "project": {
+ "format": "uuid",
+ "description": "Project Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "iteration": {
+ "format": "uuid",
+ "description": "Iteration Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "description": "Date this prediction was created.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "predictions": {
+ "description": "List of predictions.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Prediction",
+ "x-nullable": false
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "ImageProcessingSettings": {
+ "description": "Represents image preprocessing settings used by image augmentation.",
+ "type": "object",
+ "properties": {
+ "augmentationMethods": {
+ "description": "Gets or sets enabled image transforms. The key corresponds to the transform name. If value is set to true, then correspondent transform is enabled. Otherwise this transform will not be used.\r\nAugmentation will be uniformly distributed among enabled transforms.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ }
+ }
+ },
+ "ImageRegion": {
+ "required": [
+ "tagId",
+ "left",
+ "top",
+ "width",
+ "height"
+ ],
+ "type": "object",
+ "properties": {
+ "regionId": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagName": {
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagId": {
+ "format": "uuid",
+ "description": "Id of the tag associated with this region.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "left": {
+ "format": "float",
+ "description": "Coordinate of the left boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "top": {
+ "format": "float",
+ "description": "Coordinate of the top boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "width": {
+ "format": "float",
+ "description": "Width.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "height": {
+ "format": "float",
+ "description": "Height.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "ImageRegionCreateBatch": {
+ "description": "Batch of image region information to create.",
+ "type": "object",
+ "properties": {
+ "regions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageRegionCreateEntry",
+ "x-nullable": false
+ },
+ "readOnly": false
+ }
+ }
+ },
+ "ImageRegionCreateEntry": {
+ "description": "Entry associating a region to an image.",
+ "required": [
+ "imageId",
+ "tagId",
+ "left",
+ "top",
+ "width",
+ "height"
+ ],
+ "type": "object",
+ "properties": {
+ "imageId": {
+ "format": "uuid",
+ "description": "Id of the image.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "tagId": {
+ "format": "uuid",
+ "description": "Id of the tag associated with this region.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "left": {
+ "format": "float",
+ "description": "Coordinate of the left boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "top": {
+ "format": "float",
+ "description": "Coordinate of the top boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "width": {
+ "format": "float",
+ "description": "Width.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "height": {
+ "format": "float",
+ "description": "Height.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "ImageRegionCreateResult": {
+ "required": [
+ "tagId",
+ "left",
+ "top",
+ "width",
+ "height"
+ ],
+ "type": "object",
+ "properties": {
+ "imageId": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "regionId": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagName": {
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagId": {
+ "format": "uuid",
+ "description": "Id of the tag associated with this region.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "left": {
+ "format": "float",
+ "description": "Coordinate of the left boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "top": {
+ "format": "float",
+ "description": "Coordinate of the top boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "width": {
+ "format": "float",
+ "description": "Width.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "height": {
+ "format": "float",
+ "description": "Height.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "ImageRegionCreateSummary": {
+ "type": "object",
+ "properties": {
+ "created": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageRegionCreateResult"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ },
+ "duplicated": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageRegionCreateEntry"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ },
+ "exceeded": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageRegionCreateEntry"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ }
+ }
+ },
+ "ImageRegionProposal": {
+ "type": "object",
+ "properties": {
+ "projectId": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "imageId": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "proposals": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RegionProposal",
+ "x-nullable": false
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "ImageTag": {
+ "type": "object",
+ "properties": {
+ "tagId": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagName": {
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ }
+ }
+ },
+ "ImageTagCreateBatch": {
+ "description": "Batch of image tags.",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "description": "Image Tag entries to include in this batch.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageTagCreateEntry",
+ "x-nullable": false
+ },
+ "readOnly": false
+ }
+ }
+ },
+ "ImageTagCreateEntry": {
+ "description": "Entry associating a tag to an image.",
+ "type": "object",
+ "properties": {
+ "imageId": {
+ "format": "uuid",
+ "description": "Id of the image.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "tagId": {
+ "format": "uuid",
+ "description": "Id of the tag.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "ImageTagCreateSummary": {
+ "type": "object",
+ "properties": {
+ "created": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageTagCreateEntry"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ },
+ "duplicated": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageTagCreateEntry"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ },
+ "exceeded": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageTagCreateEntry"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ }
+ }
+ },
+ "ImageUrl": {
+ "description": "Image url.",
+ "required": [
+ "url"
+ ],
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "Url of the image.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "ImageUrlCreateBatch": {
+ "type": "object",
+ "properties": {
+ "images": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ImageUrlCreateEntry",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "tagIds": {
+ "type": "array",
+ "items": {
+ "format": "uuid",
+ "type": "string",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "metadata": {
+ "description": "The metadata of image. Limited to 50 key-value pairs per image. The length of key is limited to 256. The length of value is limited to 512.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "readOnly": false,
+ "x-nullable": true
+ }
+ }
+ },
+ "ImageUrlCreateEntry": {
+ "required": [
+ "url"
+ ],
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "Url of the image.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "tagIds": {
+ "type": "array",
+ "items": {
+ "format": "uuid",
+ "type": "string",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "regions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Region",
+ "x-nullable": false
+ },
+ "readOnly": false
+ }
+ }
+ },
+ "Iteration": {
+ "description": "Iteration model to be sent over JSON.",
+ "required": [
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "description": "Gets the id of the iteration.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "name": {
+ "description": "Gets or sets the name of the iteration.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "status": {
+ "description": "Gets the current iteration status.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "description": "Gets the time this iteration was completed.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "lastModified": {
+ "format": "date-time",
+ "description": "Gets the time this iteration was last modified.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "trainedAt": {
+ "format": "date-time",
+ "description": "Gets the time this iteration was last modified.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "projectId": {
+ "format": "uuid",
+ "description": "Gets the project id of the iteration.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "exportable": {
+ "description": "Whether the iteration can be exported to another format for download.",
+ "type": "boolean",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "exportableTo": {
+ "description": "A set of platforms this iteration can export to.",
+ "type": "array",
+ "items": {
+ "enum": [
+ "CoreML",
+ "TensorFlow",
+ "DockerFile",
+ "ONNX",
+ "VAIDK"
+ ],
+ "type": "string",
+ "x-nullable": false
+ },
+ "readOnly": true
+ },
+ "domainId": {
+ "format": "uuid",
+ "description": "Get or sets a guid of the domain the iteration has been trained on.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "classificationType": {
+ "description": "Gets the classification type of the project.",
+ "enum": [
+ "Multiclass",
+ "Multilabel"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": true,
+ "x-ms-enum": {
+ "name": "Classifier",
+ "modelAsString": true
+ }
+ },
+ "trainingType": {
+ "description": "Gets the training type of the iteration.",
+ "enum": [
+ "Regular",
+ "Advanced"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "TrainingType",
+ "modelAsString": true
+ }
+ },
+ "reservedBudgetInHours": {
+ "format": "int32",
+ "description": "Gets the reserved advanced training budget for the iteration.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "trainingTimeInMinutes": {
+ "format": "int32",
+ "description": "Gets the training time for the iteration.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "publishName": {
+ "description": "Name of the published model.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "originalPublishResourceId": {
+ "description": "Resource Provider Id this iteration was originally published to.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ }
+ }
+ },
+ "IterationPerformance": {
+ "description": "Represents the detailed performance data for a trained iteration.",
+ "type": "object",
+ "properties": {
+ "perTagPerformance": {
+ "description": "Gets the per-tag performance details for this iteration.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TagPerformance",
+ "x-nullable": false
+ },
+ "readOnly": true
+ },
+ "precision": {
+ "format": "float",
+ "description": "Gets the precision.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "precisionStdDeviation": {
+ "format": "float",
+ "description": "Gets the standard deviation for the precision.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "recall": {
+ "format": "float",
+ "description": "Gets the recall.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "recallStdDeviation": {
+ "format": "float",
+ "description": "Gets the standard deviation for the recall.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "averagePrecision": {
+ "format": "float",
+ "description": "Gets the average precision when applicable.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": true
+ }
+ }
+ },
+ "Prediction": {
+ "description": "Prediction result.",
+ "type": "object",
+ "properties": {
+ "probability": {
+ "format": "float",
+ "description": "Probability of the tag.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagId": {
+ "format": "uuid",
+ "description": "Id of the predicted tag.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagName": {
+ "description": "Name of the predicted tag.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "boundingBox": {
+ "$ref": "#/definitions/BoundingBox",
+ "description": "Bounding box of the prediction.",
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "tagType": {
+ "description": "Type of the predicted tag.",
+ "enum": [
+ "Regular",
+ "Negative",
+ "GeneralProduct"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": true,
+ "x-ms-enum": {
+ "name": "TagType",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "PredictionQueryResult": {
+ "description": "Query result of the prediction images that were sent to your prediction endpoint.",
+ "type": "object",
+ "properties": {
+ "token": {
+ "$ref": "#/definitions/PredictionQueryToken",
+ "description": "Prediction Query Token.",
+ "readOnly": false
+ },
+ "results": {
+ "description": "Result of an image prediction request.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/StoredImagePrediction",
+ "x-nullable": false
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "PredictionQueryTag": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "minThreshold": {
+ "format": "float",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "maxThreshold": {
+ "format": "float",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "PredictionQueryToken": {
+ "type": "object",
+ "properties": {
+ "session": {
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "continuation": {
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "maxCount": {
+ "format": "int32",
+ "type": "integer",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "orderBy": {
+ "enum": [
+ "Newest",
+ "Oldest",
+ "Suggested"
+ ],
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "OrderBy",
+ "modelAsString": true
+ }
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PredictionQueryTag",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "iterationId": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": true
+ },
+ "startTime": {
+ "format": "date-time",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": true
+ },
+ "endTime": {
+ "format": "date-time",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": true
+ },
+ "application": {
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "Project": {
+ "description": "Represents a project.",
+ "required": [
+ "name",
+ "description",
+ "settings"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "description": "Gets the project id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "name": {
+ "description": "Gets or sets the name of the project.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "description": {
+ "description": "Gets or sets the description of the project.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": true
+ },
+ "settings": {
+ "$ref": "#/definitions/ProjectSettings",
+ "description": "Gets or sets the project settings.",
+ "readOnly": false
+ },
+ "created": {
+ "format": "date-time",
+ "description": "Gets the date this project was created.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "lastModified": {
+ "format": "date-time",
+ "description": "Gets the date this project was last modified.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "thumbnailUri": {
+ "description": "Gets the thumbnail url representing the image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "drModeEnabled": {
+ "description": "Gets if the Disaster Recovery (DR) mode is on, indicating the project is temporarily read-only.",
+ "type": "boolean",
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "status": {
+ "description": "Gets the status of the project.",
+ "enum": [
+ "Succeeded",
+ "Importing",
+ "Failed"
+ ],
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "ProjectStatus",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "ProjectExport": {
+ "description": "Represents information about a project export.",
+ "type": "object",
+ "properties": {
+ "iterationCount": {
+ "format": "int32",
+ "description": "Count of iterations that will be exported.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "imageCount": {
+ "format": "int32",
+ "description": "Count of images that will be exported.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "tagCount": {
+ "format": "int32",
+ "description": "Count of tags that will be exported.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "regionCount": {
+ "format": "int32",
+ "description": "Count of regions that will be exported.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "estimatedImportTimeInMS": {
+ "format": "int32",
+ "description": "Estimated time this project will take to import, can change based on network connectivity and load between\r\nsource and destination regions.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "token": {
+ "description": "Opaque token that should be passed to ImportProject to perform the import. This token grants access to import this\r\nproject to all that have the token.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ }
+ }
+ },
+ "ProjectSettings": {
+ "description": "Represents settings associated with a project.",
+ "type": "object",
+ "properties": {
+ "domainId": {
+ "format": "uuid",
+ "description": "Gets or sets the id of the Domain to use with this project.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "classificationType": {
+ "description": "Gets or sets the classification type of the project.",
+ "enum": [
+ "Multiclass",
+ "Multilabel"
+ ],
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": true,
+ "x-ms-enum": {
+ "name": "Classifier",
+ "modelAsString": true
+ }
+ },
+ "targetExportPlatforms": {
+ "description": "A list of ExportPlatform that the trained model should be able to support.",
+ "type": "array",
+ "items": {
+ "enum": [
+ "CoreML",
+ "TensorFlow",
+ "DockerFile",
+ "ONNX",
+ "VAIDK"
+ ],
+ "type": "string",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "useNegativeSet": {
+ "description": "Indicates if negative set is being used.",
+ "type": "boolean",
+ "readOnly": true,
+ "x-nullable": true
+ },
+ "detectionParameters": {
+ "description": "Detection parameters in use, if any.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "imageProcessingSettings": {
+ "$ref": "#/definitions/ImageProcessingSettings",
+ "description": "Gets or sets image preprocessing settings.",
+ "readOnly": false
+ }
+ }
+ },
+ "Region": {
+ "required": [
+ "tagId",
+ "left",
+ "top",
+ "width",
+ "height"
+ ],
+ "type": "object",
+ "properties": {
+ "tagId": {
+ "format": "uuid",
+ "description": "Id of the tag associated with this region.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "left": {
+ "format": "float",
+ "description": "Coordinate of the left boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "top": {
+ "format": "float",
+ "description": "Coordinate of the top boundary.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "width": {
+ "format": "float",
+ "description": "Width.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "height": {
+ "format": "float",
+ "description": "Height.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "RegionProposal": {
+ "type": "object",
+ "properties": {
+ "confidence": {
+ "format": "float",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "boundingBox": {
+ "$ref": "#/definitions/BoundingBox",
+ "readOnly": true
+ }
+ }
+ },
+ "StoredImagePrediction": {
+ "description": "Result of an image prediction request.",
+ "type": "object",
+ "properties": {
+ "resizedImageUri": {
+ "description": "The URI to the (resized) prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "thumbnailUri": {
+ "description": "The URI to the thumbnail of the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "originalImageUri": {
+ "description": "The URI to the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "domain": {
+ "format": "uuid",
+ "description": "Domain used for the prediction.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "id": {
+ "format": "uuid",
+ "description": "Prediction Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "project": {
+ "format": "uuid",
+ "description": "Project Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "iteration": {
+ "format": "uuid",
+ "description": "Iteration Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "description": "Date this prediction was created.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "predictions": {
+ "description": "List of predictions.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Prediction",
+ "x-nullable": false
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "StoredSuggestedTagAndRegion": {
+ "description": "Result of a suggested tags and regions request of the untagged image.",
+ "type": "object",
+ "properties": {
+ "width": {
+ "format": "int32",
+ "description": "Width of the resized image.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "height": {
+ "format": "int32",
+ "description": "Height of the resized image.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "resizedImageUri": {
+ "description": "The URI to the (resized) prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "thumbnailUri": {
+ "description": "The URI to the thumbnail of the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "originalImageUri": {
+ "description": "The URI to the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "domain": {
+ "format": "uuid",
+ "description": "Domain used for the prediction.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "id": {
+ "format": "uuid",
+ "description": "Prediction Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "project": {
+ "format": "uuid",
+ "description": "Project Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "iteration": {
+ "format": "uuid",
+ "description": "Iteration Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "description": "Date this prediction was created.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "predictions": {
+ "description": "List of predictions.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Prediction",
+ "x-nullable": false
+ },
+ "readOnly": true
+ },
+ "predictionUncertainty": {
+ "format": "double",
+ "description": "Uncertainty (entropy) of suggested tags or regions per image.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ }
+ }
+ },
+ "SuggestedTagAndRegion": {
+ "description": "Result of a suggested tags and regions request.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "description": "Prediction Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "project": {
+ "format": "uuid",
+ "description": "Project Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "iteration": {
+ "format": "uuid",
+ "description": "Iteration Id.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "created": {
+ "format": "date-time",
+ "description": "Date this prediction was created.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "predictions": {
+ "description": "List of predictions.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Prediction",
+ "x-nullable": false
+ },
+ "readOnly": true
+ },
+ "predictionUncertainty": {
+ "format": "double",
+ "description": "Uncertainty (entropy) of suggested tags or regions per image.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ }
+ }
+ },
+ "SuggestedTagAndRegionQuery": {
+ "description": "The array of result images and token containing session and continuation Ids for the next query.",
+ "type": "object",
+ "properties": {
+ "token": {
+ "$ref": "#/definitions/SuggestedTagAndRegionQueryToken",
+ "description": "Contains properties we need to fetch suggested tags for.",
+ "readOnly": false
+ },
+ "results": {
+ "description": "Result of a suggested tags and regions request of the untagged image.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/StoredSuggestedTagAndRegion",
+ "x-nullable": false
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "SuggestedTagAndRegionQueryToken": {
+ "description": "Contains properties we need to fetch suggested tags for. For the first call, Session and continuation set to null.\r\nThen on subsequent calls, uses the session/continuation from the previous SuggestedTagAndRegionQuery result to fetch additional results.",
+ "type": "object",
+ "properties": {
+ "tagIds": {
+ "description": "Existing TagIds in project to filter suggested tags on.",
+ "type": "array",
+ "items": {
+ "format": "uuid",
+ "type": "string",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "threshold": {
+ "format": "double",
+ "description": "Confidence threshold to filter suggested tags on.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "session": {
+ "description": "SessionId for database query. Initially set to null but later used to paginate.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "continuation": {
+ "description": "Continuation Id for database pagination. Initially null but later used to paginate.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "maxCount": {
+ "format": "int32",
+ "description": "Maximum number of results you want to be returned in the response.",
+ "type": "integer",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "sortBy": {
+ "description": "OrderBy. Ordering mechanism for your results.",
+ "enum": [
+ "UncertaintyAscending",
+ "UncertaintyDescending"
+ ],
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "SortBy",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "Tag": {
+ "description": "Represents a Tag.",
+ "required": [
+ "name",
+ "description",
+ "type"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "description": "Gets the Tag ID.",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "name": {
+ "description": "Gets or sets the name of the tag.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false
+ },
+ "description": {
+ "description": "Gets or sets the description of the tag.",
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": true
+ },
+ "type": {
+ "description": "Gets or sets the type of the tag.",
+ "enum": [
+ "Regular",
+ "Negative",
+ "GeneralProduct"
+ ],
+ "type": "string",
+ "readOnly": false,
+ "x-nullable": false,
+ "x-ms-enum": {
+ "name": "TagType",
+ "modelAsString": true
+ }
+ },
+ "imageCount": {
+ "format": "int32",
+ "description": "Gets the number of images with this tag.",
+ "type": "integer",
+ "readOnly": true,
+ "x-nullable": false
+ }
+ }
+ },
+ "TagFilter": {
+ "description": "Model that query for counting of images whose suggested tags match given tags and their probability are greater than or equal to the given threshold.",
+ "type": "object",
+ "properties": {
+ "tagIds": {
+ "description": "Existing TagIds in project to get suggested tags count for.",
+ "type": "array",
+ "items": {
+ "format": "uuid",
+ "type": "string",
+ "x-nullable": false
+ },
+ "readOnly": false
+ },
+ "threshold": {
+ "format": "double",
+ "description": "Confidence threshold to filter suggested tags on.",
+ "type": "number",
+ "readOnly": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "TagPerformance": {
+ "description": "Represents performance data for a particular tag in a trained iteration.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "name": {
+ "type": "string",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "precision": {
+ "format": "float",
+ "description": "Gets the precision.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "precisionStdDeviation": {
+ "format": "float",
+ "description": "Gets the standard deviation for the precision.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "recall": {
+ "format": "float",
+ "description": "Gets the recall.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "recallStdDeviation": {
+ "format": "float",
+ "description": "Gets the standard deviation for the recall.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": false
+ },
+ "averagePrecision": {
+ "format": "float",
+ "description": "Gets the average precision when applicable.",
+ "type": "number",
+ "readOnly": true,
+ "x-nullable": true
+ }
+ }
+ },
+ "TrainingParameters": {
+ "description": "Parameters used for training.",
+ "type": "object",
+ "properties": {
+ "selectedTags": {
+ "description": "List of tags selected for this training session, other tags in the project will be ignored.",
+ "type": "array",
+ "items": {
+ "format": "uuid",
+ "type": "string",
+ "x-nullable": false
+ },
+ "readOnly": false
+ }
+ }
+ }
+ },
+ "parameters": {
+ "Endpoint": {
+ "name": "Endpoint",
+ "in": "path",
+ "description": "Supported Cognitive Services endpoints.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client",
+ "x-ms-skip-url-encoding": true
+ }
+ },
+ "securityDefinitions": {
+ "apim_key": {
+ "type": "apiKey",
+ "name": "Training-Key",
+ "in": "header"
+ }
+ },
+ "security": [
+ {
+ "apim_key": []
+ }
+ ],
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{Endpoint}",
+ "useSchemePrefix": false,
+ "parameters": [
+ {
+ "$ref": "#/parameters/Endpoint"
+ }
+ ]
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImageRegions.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImageRegions.json
new file mode 100644
index 000000000000..9f554c49071c
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImageRegions.json
@@ -0,0 +1,81 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "batch": {
+ "regions": [
+ {
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "left": 0.25,
+ "top": 0.25,
+ "width": 0.25,
+ "height": 0.25
+ },
+ {
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "left": 0.35,
+ "top": 0.35,
+ "width": 0.25,
+ "height": 0.25
+ }
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "created": [
+ {
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "left": 0.25,
+ "top": 0.25,
+ "width": 0.25,
+ "height": 0.25
+ },
+ {
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "left": 0.35,
+ "top": 0.35,
+ "width": 0.25,
+ "height": 0.25
+ }
+ ],
+ "duplicated": [],
+ "exceeded": []
+ }
+ },
+ "207": {
+ "headers": {},
+ "body": {
+ "created": [
+ {
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "left": 0.25,
+ "top": 0.25,
+ "width": 0.25,
+ "height": 0.25
+ }
+ ],
+ "duplicated": [],
+ "exceeded": [
+ {
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "left": 0.35,
+ "top": 0.35,
+ "width": 0.25,
+ "height": 0.25
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImageTags.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImageTags.json
new file mode 100644
index 000000000000..5b7395424693
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImageTags.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "batch": {
+ "tags": [
+ {
+ "imageId": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "tagId": "349d72ac-0948-4d51-b1e4-c14a1f9b848a"
+ }
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "created": [
+ {
+ "imageId": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "tagId": "349d72ac-0948-4d51-b1e4-c14a1f9b848a"
+ }
+ ],
+ "duplicated": null,
+ "exceeded": null
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromData.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromData.json
new file mode 100644
index 000000000000..05b0b07590b5
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromData.json
@@ -0,0 +1,94 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "tagIds": [
+ "b607964f-7bd6-4a3b-a869-6791fb6aab87"
+ ],
+ "imageData": "multipart data"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": true,
+ "images": [
+ {
+ "sourceUrl": "\"hemlock_10.jpg\"",
+ "status": "OK",
+ "image": {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 1095,
+ "height": 900,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag 1"
+ }
+ ]
+ }
+ },
+ {
+ "sourceUrl": "\"hemlock_6.jpg\"",
+ "status": "OK",
+ "image": {
+ "id": "f1855a92-b873-47e7-b513-f07a667ceda1",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 900,
+ "height": 1531,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag 1"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "207": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": false,
+ "images": [
+ {
+ "sourceUrl": "\"hemlock_10.jpg\"",
+ "status": "OK",
+ "image": {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 1095,
+ "height": 900,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag 1"
+ }
+ ]
+ }
+ },
+ {
+ "sourceUrl": "\"hemlock_6.jpg\"",
+ "status": "ErrorLimitExceed"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromFiles.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromFiles.json
new file mode 100644
index 000000000000..6853f6ab1401
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromFiles.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "tagIds": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "batch": {
+ "images": [
+ {
+ "name": "hemlock_10.jpg",
+ "contents": "{image contents}"
+ }
+ ],
+ "tagIds": [
+ "b607964f-7bd6-4a3b-a869-6791fb6aab87"
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": true,
+ "images": [
+ {
+ "sourceUrl": "\"hemlock_10.jpg\"",
+ "status": "OK",
+ "image": {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 1095,
+ "height": 900,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag 1"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "207": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": false,
+ "images": [
+ {
+ "sourceUrl": "\"hemlock_10.jpg\"",
+ "status": "OK",
+ "image": {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 1095,
+ "height": 900,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag 1"
+ }
+ ]
+ }
+ },
+ {
+ "sourceUrl": "{url}",
+ "status": "ErrorLimitExceed"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromPredictions.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromPredictions.json
new file mode 100644
index 000000000000..1970c61d0d39
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromPredictions.json
@@ -0,0 +1,81 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "tagIds": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "batch": {
+ "images": [
+ {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9"
+ }
+ ],
+ "tagIds": [
+ "b607964f-7bd6-4a3b-a869-6791fb6aab87"
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": true,
+ "images": [
+ {
+ "sourceUrl": "\"hemlock_10.jpg\"",
+ "status": "OK",
+ "image": {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 1095,
+ "height": 900,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag 1"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "207": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": false,
+ "images": [
+ {
+ "sourceUrl": "\"hemlock_10.jpg\"",
+ "status": "OK",
+ "image": {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 1095,
+ "height": 900,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag 1"
+ }
+ ]
+ }
+ },
+ {
+ "sourceUrl": "{url}",
+ "status": "ErrorLimitExceed"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromUrls.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromUrls.json
new file mode 100644
index 000000000000..a3ecd489a1f7
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateImagesFromUrls.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "tagIds": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "batch": {
+ "images": [
+ {
+ "url": "{url to image}"
+ }
+ ],
+ "tagIds": [
+ "b607964f-7bd6-4a3b-a869-6791fb6aab87"
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": true,
+ "images": [
+ {
+ "sourceUrl": "{url to image}",
+ "status": "OK",
+ "image": {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 1095,
+ "height": 900,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag name"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "207": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": false,
+ "images": [
+ {
+ "sourceUrl": "{url to image}",
+ "status": "OK",
+ "image": {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 1095,
+ "height": 900,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag name"
+ }
+ ]
+ }
+ },
+ {
+ "sourceUrl": "{url to image}",
+ "status": "ErrorSource",
+ "image": null
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateProject.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateProject.json
new file mode 100644
index 000000000000..88f852ced738
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateProject.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "name": "My New Project",
+ "description": "A test project",
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "name": "My New Project",
+ "description": "A test project",
+ "settings": {
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31"
+ },
+ "created": "2017-12-18T05:43:18Z",
+ "lastModified": "2017-12-18T05:43:18Z",
+ "thumbnailUri": ""
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateTag.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateTag.json
new file mode 100644
index 000000000000..ed19817462ae
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/CreateTag.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "name": "Tag1",
+ "description": "Description of Tag1",
+ "body": ""
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "9e27bc1b-7ae7-4e3b-a4e5-36153479dc01",
+ "name": "Tag1",
+ "description": "Description of Tag1",
+ "type": "Regular",
+ "imageCount": 0
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImageRegions.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImageRegions.json
new file mode 100644
index 000000000000..8931d4e2629e
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImageRegions.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "regionIds": [
+ ""
+ ]
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImageTags.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImageTags.json
new file mode 100644
index 000000000000..d6a188454e9b
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImageTags.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "imageIds": [
+ "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12"
+ ],
+ "tagIds": [
+ "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12"
+ ]
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImages.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImages.json
new file mode 100644
index 000000000000..ccc479209fd2
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteImages.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "imageIds": [
+ "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12"
+ ]
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteIteration.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteIteration.json
new file mode 100644
index 000000000000..d1f9b7629958
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteIteration.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iterationId": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeletePrediction.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeletePrediction.json
new file mode 100644
index 000000000000..c6b2d5c0bc58
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeletePrediction.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "ids": [
+ "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12"
+ ]
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteProject.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteProject.json
new file mode 100644
index 000000000000..2b4cb5723a6a
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteProject.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteTag.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteTag.json
new file mode 100644
index 000000000000..e9f802505a09
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/DeleteTag.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "tagId": "9e27bc1b-7ae7-4e3b-a4e5-36153479dc01"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ExportIteration.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ExportIteration.json
new file mode 100644
index 000000000000..1bbfa05a5d86
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ExportIteration.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iterationId": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "platform": "TensorFlow"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "platform": "TensorFlow",
+ "status": "Exporting",
+ "downloadUri": "",
+ "newerVersionAvailable": false
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ExportProject.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ExportProject.json
new file mode 100644
index 000000000000..8d59acb577d1
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ExportProject.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "token": ""
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetArtifact.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetArtifact.json
new file mode 100644
index 000000000000..e48a4cf6fd86
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetArtifact.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "path": "i-40b66b39b86b4583be8c0fe223aa9ec5/t-5c882c62ca2b4458b39a2041b111dd73"
+ },
+ "responses": {
+ "200": {
+ "body": "{file}"
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetDomain.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetDomain.json
new file mode 100644
index 000000000000..c6702b3a8f29
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetDomain.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "domainId": "b30a91ae-e3c1-4f73-a81e-c270bff27c39"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "b30a91ae-e3c1-4f73-a81e-c270bff27c39",
+ "name": "Retail",
+ "type": "Classification",
+ "exportable": false,
+ "enabled": true
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetDomains.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetDomains.json
new file mode 100644
index 000000000000..a10887726fcb
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetDomains.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": [
+ {
+ "id": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31",
+ "name": "General",
+ "type": "Classification",
+ "exportable": false,
+ "enabled": true
+ },
+ {
+ "id": "c151d5b5-dd07-472a-acc8-15d29dea8518",
+ "name": "Food",
+ "type": "Classification",
+ "exportable": false,
+ "enabled": true
+ },
+ {
+ "id": "ca455789-012d-4b50-9fec-5bb63841c793",
+ "name": "Landmarks",
+ "type": "Classification",
+ "exportable": false,
+ "enabled": true
+ },
+ {
+ "id": "b30a91ae-e3c1-4f73-a81e-c270bff27c39",
+ "name": "Retail",
+ "type": "Classification",
+ "exportable": false,
+ "enabled": true
+ },
+ {
+ "id": "45badf75-3591-4f26-a705-45678d3e9f5f",
+ "name": "Adult",
+ "type": "Classification",
+ "exportable": false,
+ "enabled": true
+ },
+ {
+ "id": "0732100f-1a38-4e49-a514-c9b44c697ab5",
+ "name": "General (compact)",
+ "type": "Classification",
+ "exportable": false,
+ "enabled": true
+ },
+ {
+ "id": "b5cfd229-2ac7-4b2b-8d0a-2b0661344894",
+ "name": "Landmarks (compact)",
+ "type": "Classification",
+ "exportable": false,
+ "enabled": true
+ },
+ {
+ "id": "6b4faeda-8396-481b-9f8b-177b9fa3097f",
+ "name": "Retail (compact)",
+ "type": "Classification",
+ "exportable": false,
+ "enabled": true
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetExports.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetExports.json
new file mode 100644
index 000000000000..1267168dbb4c
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetExports.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iterationId": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": [
+ {
+ "platform": "TensorFlow",
+ "status": "Done",
+ "newerVersionAvailable": false,
+ "downloadUri": "{Download URI}"
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImageCount.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImageCount.json
new file mode 100644
index 000000000000..ee6e4980eefa
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImageCount.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": 12
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagePerformanceCount.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagePerformanceCount.json
new file mode 100644
index 000000000000..c57ffd50669b
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagePerformanceCount.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12",
+ "tagIds": [
+ "b5f7e6a2-a481-49a6-afec-a7cef1af3544"
+ ]
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": "1"
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagePerformances.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagePerformances.json
new file mode 100644
index 000000000000..dfe6eb5a7208
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagePerformances.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "b7b9d99c-a2c6-4658-9900-a98d2ff5bc66",
+ "tagIds": [
+ ""
+ ],
+ "orderBy": "Newest"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": [
+ {
+ "id": "dfd2d346-3ed5-4e1e-857d-af4e32cec042",
+ "created": "2018-01-31T20:18:26Z",
+ "predictions": [
+ {
+ "tagId": "b5f7e6a2-a481-49a6-afec-a7cef1af3544",
+ "tagName": "Tag 1",
+ "probability": 1.0,
+ "boundingBox": {
+ "left": 0.25,
+ "top": 0.25,
+ "width": 0.25,
+ "height": 0.25
+ }
+ }
+ ],
+ "width": 600,
+ "height": 1600,
+ "imageUri": "",
+ "thumbnailUri": "",
+ "tags": [],
+ "regions": []
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImageRegionProposals.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImageRegionProposals.json
new file mode 100644
index 000000000000..7638215aae62
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImageRegionProposals.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "proposals": [
+ {
+ "confidence": 0.25,
+ "boundingBox": {
+ "left": 0.25,
+ "top": 0.25,
+ "width": 0.25,
+ "height": 0.25
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImages.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImages.json
new file mode 100644
index 000000000000..d02bd9b585ef
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImages.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": [
+ {
+ "id": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 1095,
+ "height": 900,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag 1"
+ }
+ ]
+ },
+ {
+ "id": "f1855a92-b873-47e7-b513-f07a667ceda1",
+ "created": "2017-12-19T15:56:10Z",
+ "width": 900,
+ "height": 1531,
+ "resizedImageUri": "{Resized Image Uri}",
+ "originalImageUri": "{Image Uri}",
+ "thumbnailUri": "{Thumbnail Uri}",
+ "tags": [
+ {
+ "tagId": "b607964f-7bd6-4a3b-a869-6791fb6aab87",
+ "created": "2017-12-19T15:56:09Z",
+ "tagName": "tag 1"
+ }
+ ]
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagesByIds.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagesByIds.json
new file mode 100644
index 000000000000..037118bc9d41
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetImagesByIds.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": []
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIteration.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIteration.json
new file mode 100644
index 000000000000..2383a6c6f910
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIteration.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iterationId": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "name": "Iteration 2",
+ "status": "Completed",
+ "created": "2017-12-18T22:40:36Z",
+ "lastModified": "2017-12-19T15:47:02Z",
+ "trainedAt": "2017-12-19T15:47:02Z",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "exportable": false,
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31",
+ "exportableTo": [
+ "ONNX",
+ "DockerFile",
+ "TensorFlow",
+ "CoreML"
+ ],
+ "trainingType": "Regular",
+ "reservedBudgetInHours": 0,
+ "publishName": ""
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIterationPerformance.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIterationPerformance.json
new file mode 100644
index 000000000000..323173c03a51
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIterationPerformance.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "threshold": 0.9
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "perTagPerformance": [
+ {
+ "id": "e31ff107-5505-4753-be42-b369b21b026c",
+ "name": "Hemlock",
+ "precision": 1.0,
+ "precisionStdDeviation": 0.0,
+ "recall": 1.0,
+ "recallStdDeviation": 0.0
+ },
+ {
+ "id": "349d72ac-0948-4d51-b1e4-c14a1f9b848a",
+ "name": "Japanese Cherry",
+ "precision": 1.0,
+ "precisionStdDeviation": 0.0,
+ "recall": 1.0,
+ "recallStdDeviation": 0.0
+ }
+ ],
+ "precision": 1.0,
+ "precisionStdDeviation": 0.0,
+ "recall": 1.0,
+ "recallStdDeviation": 0.0
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIterations.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIterations.json
new file mode 100644
index 000000000000..ac0c78134a80
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetIterations.json
@@ -0,0 +1,74 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": [
+ {
+ "id": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "name": "Iteration 1",
+ "status": "Completed",
+ "created": "2017-12-18T22:40:29Z",
+ "lastModified": "2017-12-18T22:40:41Z",
+ "trainedAt": "2017-12-18T22:40:41Z",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "exportable": false,
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31",
+ "exportableTo": [
+ "ONNX",
+ "DockerFile",
+ "TensorFlow",
+ "CoreML"
+ ],
+ "trainingType": "Regular",
+ "reservedBudgetInHours": 0,
+ "publishName": ""
+ },
+ {
+ "id": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "name": "Iteration 2",
+ "status": "Completed",
+ "created": "2017-12-18T22:40:36Z",
+ "lastModified": "2017-12-19T15:47:02Z",
+ "trainedAt": "2017-12-19T15:47:02Z",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "exportable": false,
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31",
+ "exportableTo": [
+ "ONNX",
+ "DockerFile",
+ "TensorFlow",
+ "CoreML"
+ ],
+ "trainingType": "Regular",
+ "reservedBudgetInHours": 5,
+ "publishName": "model1"
+ },
+ {
+ "id": "3adaf7b2-18fc-4376-9da4-b5ea160a7cf5",
+ "name": "Iteration 3",
+ "status": "New",
+ "created": "2017-12-19T15:46:59Z",
+ "lastModified": "2017-12-19T15:46:59Z",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "exportable": false,
+ "domainId": null,
+ "exportableTo": [
+ "ONNX",
+ "DockerFile",
+ "TensorFlow",
+ "CoreML"
+ ],
+ "trainingType": "Regular",
+ "reservedBudgetInHours": 0,
+ "publishName": ""
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetProject.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetProject.json
new file mode 100644
index 000000000000..4b68bf1ea390
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetProject.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "name": "My New Project",
+ "description": "A test project",
+ "settings": {
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31"
+ },
+ "created": "2017-12-18T05:43:18Z",
+ "lastModified": "2017-12-18T05:43:18Z",
+ "thumbnailUri": ""
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetProjects.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetProjects.json
new file mode 100644
index 000000000000..b5166555936f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetProjects.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": [
+ {
+ "id": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "name": "My New Project",
+ "description": "",
+ "settings": {
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31"
+ },
+ "created": "2017-12-18T05:43:18Z",
+ "lastModified": "2017-12-18T05:43:18Z",
+ "thumbnailUri": ""
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTag.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTag.json
new file mode 100644
index 000000000000..4ad3135822ae
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTag.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "tagId": "9e27bc1b-7ae7-4e3b-a4e5-36153479dc01"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "9e27bc1b-7ae7-4e3b-a4e5-36153479dc01",
+ "name": "Tag1",
+ "description": "Description of Tag1",
+ "type": "Regular",
+ "imageCount": 0
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTaggedImageCount.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTaggedImageCount.json
new file mode 100644
index 000000000000..c0ed09aa6ae9
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTaggedImageCount.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": "10"
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTaggedImages.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTaggedImages.json
new file mode 100644
index 000000000000..037118bc9d41
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTaggedImages.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": []
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTags.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTags.json
new file mode 100644
index 000000000000..6ad8ea76c689
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetTags.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": [
+ {
+ "id": "9e27bc1b-7ae7-4e3b-a4e5-36153479dc01",
+ "name": "Tag1",
+ "description": "Description of Tag1",
+ "type": "Regular",
+ "imageCount": 0
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetUntaggedImageCount.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetUntaggedImageCount.json
new file mode 100644
index 000000000000..c0ed09aa6ae9
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetUntaggedImageCount.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": "10"
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetUntaggedImages.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetUntaggedImages.json
new file mode 100644
index 000000000000..037118bc9d41
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/GetUntaggedImages.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "cf0f83fb-ebaa-4b25-8e34-613a6a0b8a12"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": []
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ImportProject.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ImportProject.json
new file mode 100644
index 000000000000..87702da27426
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/ImportProject.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "token": "token"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "name": "Import Project",
+ "description": "",
+ "settings": {
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31"
+ },
+ "created": "2019-10-06T05:43:18Z",
+ "lastModified": "2019-10-06T05:43:18Z",
+ "thumbnailUri": "",
+ "status": "Importing"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/PublishIteration.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/PublishIteration.json
new file mode 100644
index 000000000000..67d6ad03e29f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/PublishIteration.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iterationId": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "publishName": "Model1",
+ "predictionId": "/subscriptions/{subscription}/resourceGroups/{resource group name}/providers/Microsoft.CognitiveServices/accounts/{resource name}"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": true
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QueryPredictions.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QueryPredictions.json
new file mode 100644
index 000000000000..0bd19d6b7980
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QueryPredictions.json
@@ -0,0 +1,66 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "query": {
+ "orderBy": "Newest",
+ "tags": [
+ {
+ "id": "b5f7e6a2-a481-49a6-afec-a7cef1af3544",
+ "maxThreshold": 1,
+ "minThreshold": 0.9
+ }
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "results": [
+ {
+ "id": "dfd2d346-3ed5-4e1e-857d-af4e32cec042",
+ "project": "8988643a-ae70-447d-9a22-15c4255e5ecb",
+ "iteration": "b7b9d99c-a2c6-4658-9900-a98d2ff5bc66",
+ "created": "2018-01-31T20:18:26Z",
+ "predictions": [
+ {
+ "tagId": "b5f7e6a2-a481-49a6-afec-a7cef1af3544",
+ "tagName": "Tag 1",
+ "probability": 1.0
+ },
+ {
+ "tagId": "45619cda-d1c9-4bc8-a3e1-87c5d81adbc3",
+ "tagName": "Tag 2",
+ "probability": 3.60627153E-12
+ }
+ ],
+ "originalImageUri": "",
+ "thumbnailUri": "",
+ "resizedImageUri": "",
+ "domain": "b30a91ae-e3c1-4f73-a81e-c270bff27c39"
+ }
+ ],
+ "token": {
+ "session": "1:286613",
+ "continuation": "",
+ "maxCount": 0,
+ "orderBy": "Newest",
+ "tags": [
+ {
+ "id": "b5f7e6a2-a481-49a6-afec-a7cef1af3544",
+ "minThreshold": 0.9,
+ "maxThreshold": 1.0
+ }
+ ],
+ "iterationId": null,
+ "startTime": null,
+ "endTime": null,
+ "application": ""
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuerySuggestedImageCount.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuerySuggestedImageCount.json
new file mode 100644
index 000000000000..bfe12dad0540
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuerySuggestedImageCount.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "b7b9d99c-a2c6-4658-9900-a98d2ff5bc66",
+ "query": {
+ "tagIds": [
+ "b5f7e6a2-a481-49a6-afec-a7cef1af3544"
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "b5f7e6a2-a481-49a6-afec-a7cef1af3544": 1
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuerySuggestedImages.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuerySuggestedImages.json
new file mode 100644
index 000000000000..c42db2bc784f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuerySuggestedImages.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "b7b9d99c-a2c6-4658-9900-a98d2ff5bc66",
+ "query": {
+ "tagIds": [
+ "b5f7e6a2-a481-49a6-afec-a7cef1af3544"
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "results": [
+ {
+ "id": "dfd2d346-3ed5-4e1e-857d-af4e32cec042",
+ "project": "8988643a-ae70-447d-9a22-15c4255e5ecb",
+ "iteration": "b7b9d99c-a2c6-4658-9900-a98d2ff5bc66",
+ "created": "2018-01-31T20:18:26Z",
+ "predictions": [
+ {
+ "tagId": "b5f7e6a2-a481-49a6-afec-a7cef1af3544",
+ "tagName": "Tag 1",
+ "probability": 1.0
+ },
+ {
+ "tagId": "45619cda-d1c9-4bc8-a3e1-87c5d81adbc3",
+ "tagName": "Tag 2",
+ "probability": 3.60627153E-12
+ }
+ ],
+ "originalImageUri": "",
+ "thumbnailUri": "",
+ "resizedImageUri": "",
+ "domain": "b30a91ae-e3c1-4f73-a81e-c270bff27c39"
+ }
+ ],
+ "token": {
+ "session": "1:286613",
+ "continuation": "",
+ "maxCount": 0,
+ "sortBy": "Newest",
+ "tagIds": [
+ "b5f7e6a2-a481-49a6-afec-a7cef1af3544"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuickTestImage.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuickTestImage.json
new file mode 100644
index 000000000000..489852dc79df
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuickTestImage.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iterationId": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "imageData": "multipart-form-data"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "951098b2-9b69-427b-bddb-d5cb618874e3",
+ "project": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iteration": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "created": "2017-12-19T14:21:41Z",
+ "predictions": [
+ {
+ "tagId": "e31ff107-5505-4753-be42-b369b21b026c",
+ "tagName": "Hemlock",
+ "probability": 0.05149666
+ },
+ {
+ "tagId": "349d72ac-0948-4d51-b1e4-c14a1f9b848a",
+ "tagName": "Japanese Cherry",
+ "probability": 0.00
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuickTestImageUrl.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuickTestImageUrl.json
new file mode 100644
index 000000000000..dc904ef6f116
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/QuickTestImageUrl.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iterationId": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "imageUrl": {
+ "url": "{Image URL}"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "951098b2-9b69-427b-bddb-d5cb618874e3",
+ "project": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iteration": "fe1e83c4-6f50-4899-9544-6bb08cf0e15a",
+ "created": "2017-12-19T14:21:41Z",
+ "predictions": [
+ {
+ "tagId": "e31ff107-5505-4753-be42-b369b21b026c",
+ "tagName": "Hemlock",
+ "probability": 0.05149666
+ },
+ {
+ "tagId": "349d72ac-0948-4d51-b1e4-c14a1f9b848a",
+ "tagName": "Japanese Cherry",
+ "probability": 0.00
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/SuggestTagsAndRegions.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/SuggestTagsAndRegions.json
new file mode 100644
index 000000000000..175a0a2a01e0
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/SuggestTagsAndRegions.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iterationId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "imageIds": [
+ "e7f08c23-9e54-49f7-b609-69a0240ba306",
+ "ce632666-4b66-4adb-aa0a-ad8b7c32df06"
+ ]
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": [
+ {
+ "id": "8497e814-23cc-47d7-b24b-691cef0bcec9",
+ "project": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "iteration": "ce271ee4-cc13-460f-b66f-993f8005522d",
+ "created": "2019-07-08T13:43:18Z",
+ "predictions": [
+ {
+ "tagId": "b5f7e6a2-a481-49a6-afec-a7cef1af3544",
+ "tagName": "Tag 1",
+ "probability": 1.0
+ },
+ {
+ "tagId": "45619cda-d1c9-4bc8-a3e1-87c5d81adbc3",
+ "tagName": "Tag 2",
+ "probability": 3.60627153E-12
+ }
+ ],
+ "predictionUncertainty": 0.32
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/TrainProject.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/TrainProject.json
new file mode 100644
index 000000000000..dd3deca15afb
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/TrainProject.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "trainingParameters": {}
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "name": "Iteration 2",
+ "status": "Training",
+ "created": "2017-12-18T22:40:36Z",
+ "lastModified": "2017-12-19T15:46:58Z",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "exportable": false,
+ "domainId": null,
+ "exportableTo": [
+ "ONNX",
+ "DockerFile",
+ "TensorFlow",
+ "CoreML"
+ ],
+ "trainingType": "Regular",
+ "reservedBudgetInHours": 0,
+ "publishName": ""
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UnpublishIteration.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UnpublishIteration.json
new file mode 100644
index 000000000000..d1f9b7629958
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UnpublishIteration.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iterationId": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateImageMetadata.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateImageMetadata.json
new file mode 100644
index 000000000000..54ac8a7a0725
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateImageMetadata.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "imageIds": [
+ "4d6eb844-42ee-42bc-bd6f-c32455ef07c9"
+ ],
+ "metadata": {
+ "tag": "value"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": true,
+ "images": [
+ {
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "status": "OK",
+ "metadata": {
+ "tag": "value"
+ }
+ }
+ ]
+ }
+ },
+ "207": {
+ "headers": {},
+ "body": {
+ "isBatchSuccessful": false,
+ "images": [
+ {
+ "imageId": "4d6eb844-42ee-42bc-bd6f-c32455ef07c9",
+ "status": "ErrorLimitExceed"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateIteration.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateIteration.json
new file mode 100644
index 000000000000..a965deb8aa0f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateIteration.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "iterationId": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "updatedIteration": {
+ "name": "Best Iteration"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "e31a14ab-5d78-4f7b-a267-3a1e4fd8a758",
+ "name": "Best Iteration",
+ "status": "Completed",
+ "created": "2017-12-18T22:40:36Z",
+ "lastModified": "2017-12-19T15:53:07Z",
+ "trainedAt": "2017-12-19T15:47:02Z",
+ "projectId": "64b822c5-8082-4b36-a426-27225f4aa18c",
+ "exportable": false,
+ "exportableTo": [
+ "ONNX",
+ "DockerFile",
+ "TensorFlow",
+ "CoreML"
+ ],
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31",
+ "trainingType": "Regular",
+ "reservedBudgetInHours": 0,
+ "publishName": ""
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateProject.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateProject.json
new file mode 100644
index 000000000000..e19735364b5e
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateProject.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "updatedProject": {
+ "name": "New Project Name",
+ "description": "A new Description",
+ "settings": {
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "name": "New Project Name",
+ "description": "A new Description",
+ "settings": {
+ "domainId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31"
+ },
+ "created": "2017-12-18T05:43:18Z",
+ "lastModified": "2017-12-18T05:43:19Z",
+ "thumbnailUri": ""
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateTag.json b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateTag.json
new file mode 100644
index 000000000000..51e0ee680aab
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v3.3/examples/UpdateTag.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "Endpoint": "https://westus.api.cognitive.microsoft.com",
+ "Content-Type": "application/json",
+ "Training-Key": "{API Key}",
+ "projectId": "bc3f7dad-5544-468c-8573-3ef04d55463e",
+ "tagId": "9e27bc1b-7ae7-4e3b-a4e5-36153479dc01",
+ "updatedTag": {
+ "name": "Better Tag Name",
+ "type": "Regular",
+ "description": "Better description"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "9e27bc1b-7ae7-4e3b-a4e5-36153479dc01",
+ "name": "Better Tag Name",
+ "description": "Better description",
+ "type": "Regular",
+ "imageCount": 0
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.1/FormRecognizer.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.1/FormRecognizer.json
index 7873607d810f..c38b433fab62 100644
--- a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.1/FormRecognizer.json
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.1/FormRecognizer.json
@@ -497,6 +497,13 @@
"type": "boolean",
"x-nullable": false
},
+ {
+ "name": "locale",
+ "in": "query",
+ "description": "Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.",
+ "required": false,
+ "type": "string"
+ },
{
"$ref": "#/parameters/FileStream"
}
@@ -590,6 +597,13 @@
"type": "boolean",
"x-nullable": false
},
+ {
+ "name": "locale",
+ "in": "query",
+ "description": "Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.",
+ "required": false,
+ "type": "string"
+ },
{
"$ref": "#/parameters/FileStream"
}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/FormRecognizer.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/FormRecognizer.json
new file mode 100644
index 000000000000..661759f1ac32
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/FormRecognizer.json
@@ -0,0 +1,2054 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2.1-preview.2",
+ "title": "Form Recognizer Client",
+ "description": "Extracts information from forms and images into structured data."
+ },
+ "securityDefinitions": {
+ "apim_key": {
+ "type": "apiKey",
+ "name": "Ocp-Apim-Subscription-Key",
+ "in": "header"
+ }
+ },
+ "security": [
+ {
+ "apim_key": []
+ }
+ ],
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{endpoint}/formrecognizer/v2.1-preview.2",
+ "useSchemePrefix": false,
+ "parameters": [
+ {
+ "$ref": "#/parameters/Endpoint"
+ }
+ ]
+ },
+ "schemes": [
+ "https"
+ ],
+ "paths": {
+ "/custom/models": {
+ "post": {
+ "summary": "Train Custom Model",
+ "description": "Create and train a custom model. The request must include a source parameter that is either an externally accessible Azure storage blob container Uri (preferably a Shared Access Signature Uri) or valid path to a data folder in a locally mounted drive. When local paths are specified, they must follow the Linux/Unix path format and be an absolute path rooted to the input mount configuration setting value e.g., if '{Mounts:Input}' configuration setting value is '/input' then a valid source path would be '/input/contosodataset'. All data to be trained is expected to be under the source folder or sub folders under it. Models are trained using documents that are of the following content type - 'application/pdf', 'image/jpeg', 'image/png', 'image/tiff'. Other type of content is ignored.",
+ "operationId": "TrainCustomModelAsync",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "trainRequest",
+ "in": "body",
+ "description": "Training request parameters.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TrainRequest"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Request is queued successfully.",
+ "headers": {
+ "Location": {
+ "type": "string",
+ "description": "Location and ID of the model being trained. The status of model training is specified in the status property at the model location."
+ }
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Train custom model": {
+ "$ref": "./examples/TrainBatch.json"
+ },
+ "Train custom model with subfolder filter options": {
+ "$ref": "./examples/TrainBatchWithSubFolders.json"
+ }
+ }
+ }
+ },
+ "/custom/models/{modelId}": {
+ "get": {
+ "summary": "Get Custom Model",
+ "description": "Get detailed information about a custom model.",
+ "operationId": "GetCustomModel",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "modelId",
+ "in": "path",
+ "description": "Model identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "includeKeys",
+ "in": "query",
+ "description": "Include list of extracted keys in model information.",
+ "required": false,
+ "default": false,
+ "type": "boolean",
+ "x-nullable": false
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/Model"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get custom model": {
+ "$ref": "./examples/GetModel.json"
+ }
+ }
+ },
+ "delete": {
+ "summary": "Delete Custom Model",
+ "description": "Mark model for deletion. Model artifacts will be permanently removed within a predetermined period.",
+ "operationId": "DeleteCustomModel",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "modelId",
+ "in": "path",
+ "description": "Model identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Successfully marked model for deletion. Model artifacts will be removed within a predefined time period."
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete custom model": {
+ "$ref": "./examples/DeleteModel.json"
+ }
+ }
+ }
+ },
+ "/custom/models/{modelId}/analyze": {
+ "post": {
+ "summary": "Analyze Form",
+ "description": "Extract key-value pairs, tables, and semantic values from a given document. The input document must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local path) of the document to be analyzed.",
+ "operationId": "AnalyzeWithCustomModel",
+ "consumes": [
+ "application/pdf",
+ "application/json",
+ "image/jpeg",
+ "image/png",
+ "image/tiff"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "modelId",
+ "in": "path",
+ "description": "Model identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "includeTextDetails",
+ "in": "query",
+ "description": "Include text lines and element references in the result.",
+ "required": false,
+ "default": false,
+ "type": "boolean",
+ "x-nullable": false
+ },
+ {
+ "name": "includeResultsFrom",
+ "in": "query",
+ "description": "Include results from these pages.",
+ "required": false,
+ "default": false,
+ "type": "string",
+ "x-nullable": false
+ },
+ {
+ "$ref": "#/parameters/FileStream"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Request is queued successfully.",
+ "headers": {
+ "Operation-Location": {
+ "type": "string",
+ "description": "URL containing the resultId used to track the progress and obtain the result of the analyze operation."
+ }
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Analyze form with custom model": {
+ "$ref": "./examples/AnalyzeBatch.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/custom/models/{modelId}/analyzeResults/{resultId}": {
+ "get": {
+ "summary": "Get Analyze Form Result",
+ "description": "Obtain current status and the result of the analyze form operation.",
+ "operationId": "GetAnalyzeFormResult",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "modelId",
+ "in": "path",
+ "description": "Model identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "resultId",
+ "in": "path",
+ "description": "Analyze operation result identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeOperationResult"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get analyze form result": {
+ "$ref": "./examples/AnalyzeOperationResult.json"
+ }
+ }
+ }
+ },
+ "/custom/models/{modelId}/copy": {
+ "post": {
+ "summary": "Copy Custom Model",
+ "description": "Copy custom model stored in this resource (the source) to user specified target Form Recognizer resource.",
+ "operationId": "CopyCustomModel",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "modelId",
+ "in": "path",
+ "description": "Model identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "copyRequest",
+ "in": "body",
+ "description": "Copy request parameters.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CopyRequest"
+ }
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Copy request is queued successfully.",
+ "headers": {
+ "Operation-Location": {
+ "type": "string",
+ "description": "URL containing the resultId used to track the progress and obtain the result of the copy operation."
+ }
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Copy custom model": {
+ "$ref": "./examples/CopyModel.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/custom/models/{modelId}/copyResults/{resultId}": {
+ "get": {
+ "summary": "Get Custom Model Copy Result",
+ "description": "Obtain current status and the result of a custom model copy operation.",
+ "operationId": "GetCustomModelCopyResult",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "modelId",
+ "in": "path",
+ "description": "Model identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ },
+ {
+ "name": "resultId",
+ "in": "path",
+ "description": "Copy operation result identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/CopyOperationResult"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get copy custom model result": {
+ "$ref": "./examples/CopyOperationResult.json"
+ },
+ "Get copy custom model result with failures": {
+ "$ref": "./examples/CopyOperationResultWithErrors.json"
+ }
+ }
+ }
+ },
+ "/custom/models/copyAuthorization": {
+ "post": {
+ "summary": "Generate Copy Authorization",
+ "description": "Generate authorization to copy a model into the target Form Recognizer resource.",
+ "operationId": "GenerateModelCopyAuthorization",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [],
+ "responses": {
+ "201": {
+ "description": "Copy request is authorized successfully.",
+ "headers": {
+ "Location": {
+ "type": "string",
+ "description": "Location and ID of the model being copied. The status of model copy is specified in the status property at the model location."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/CopyAuthorizationResult"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Copy custom model": {
+ "$ref": "./examples/CopyModelAuthorization.json"
+ }
+ }
+ }
+ },
+ "/custom/models/compose": {
+ "post": {
+ "tags": [
+ "Form"
+ ],
+ "summary": "Compose trained with labels models into one composed model.",
+ "description": "Compose request would include list of models ids.\r\nIt would validate what all models either trained with labels model or composed model.\r\nIt would validate limit of models put together.",
+ "operationId": "CustomModelsComposePost",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "text/json"
+ ],
+ "parameters": [
+ {
+ "name": "composeRequest",
+ "in": "body",
+ "description": "Compose models",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ComposeRequest"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Success",
+ "schema": {
+ "type": "string"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "BadArgument",
+ "innerError": {
+ "requestId": "00000000-0000-0000-0000-000000000000"
+ },
+ "message": "Request body is invalid."
+ }
+ }
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Compose custom models": {
+ "$ref": "./examples/ComposeModels.json"
+ }
+ }
+ }
+ },
+ "/prebuilt/businessCard/analyze": {
+ "post": {
+ "summary": "Analyze Business Card",
+ "description": "Extract field text and semantic values from a given business card document. The input document must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local path) of the document to be analyzed.",
+ "operationId": "AnalyzeBusinessCardAsync",
+ "consumes": [
+ "application/pdf",
+ "application/json",
+ "image/jpeg",
+ "image/png",
+ "image/tiff"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "includeTextDetails",
+ "in": "query",
+ "description": "Include text lines and element references in the result.",
+ "required": false,
+ "default": false,
+ "type": "boolean",
+ "x-nullable": false
+ },
+ {
+ "name": "locale",
+ "in": "query",
+ "description": "Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/FileStream"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Request is queued successfully.",
+ "headers": {
+ "Operation-Location": {
+ "type": "string",
+ "description": "URL containing the resultId used to track the progress and obtain the result of the analyze operation."
+ }
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Analyze receipt": {
+ "$ref": "./examples/BusinessCardBatch.json"
+ }
+ }
+ }
+ },
+ "/prebuilt/businessCard/analyzeResults/{resultId}": {
+ "get": {
+ "summary": "Get Analyze Business Card Result",
+ "description": "Track the progress and obtain the result of the analyze business card operation.",
+ "operationId": "GetAnalyzeBusinessCardResult",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "resultId",
+ "in": "path",
+ "description": "Analyze operation result identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeOperationResult"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get analyze receipt result": {
+ "$ref": "./examples/BusinessCardBatchResult.json"
+ }
+ }
+ }
+ },
+ "/prebuilt/invoice/analyze": {
+ "post": {
+ "summary": "Analyze Business Card",
+ "description": "Extract field text and semantic values from a given business card document. The input document must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local path) of the document to be analyzed.",
+ "operationId": "AnalyzeBusinessCardAsync",
+ "consumes": [
+ "application/pdf",
+ "application/json",
+ "image/jpeg",
+ "image/png",
+ "image/tiff"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "includeTextDetails",
+ "in": "query",
+ "description": "Include text lines and element references in the result.",
+ "required": false,
+ "default": false,
+ "type": "boolean",
+ "x-nullable": false
+ },
+ {
+ "name": "locale",
+ "in": "query",
+ "description": "Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/FileStream"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Request is queued successfully.",
+ "headers": {
+ "Operation-Location": {
+ "type": "string",
+ "description": "URL containing the resultId used to track the progress and obtain the result of the analyze operation."
+ }
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Analyze receipt": {
+ "$ref": "./examples/BusinessCardBatch.json"
+ }
+ }
+ }
+ },
+ "/prebuilt/invoice/analyzeResults/{resultId}": {
+ "get": {
+ "summary": "Get Analyze Business Card Result",
+ "description": "Track the progress and obtain the result of the analyze business card operation.",
+ "operationId": "GetAnalyzeBusinessCardResult",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "resultId",
+ "in": "path",
+ "description": "Analyze operation result identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeOperationResult"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get analyze receipt result": {
+ "$ref": "./examples/BusinessCardBatchResult.json"
+ }
+ }
+ }
+ },
+ "/prebuilt/receipt/analyze": {
+ "post": {
+ "summary": "Analyze Receipt",
+ "description": "Extract field text and semantic values from a given receipt document. The input document must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local path) of the document to be analyzed.",
+ "operationId": "AnalyzeReceiptAsync",
+ "consumes": [
+ "application/pdf",
+ "application/json",
+ "image/jpeg",
+ "image/png",
+ "image/tiff"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "includeTextDetails",
+ "in": "query",
+ "description": "Include text lines and element references in the result.",
+ "required": false,
+ "default": false,
+ "type": "boolean",
+ "x-nullable": false
+ },
+ {
+ "name": "locale",
+ "in": "query",
+ "description": "Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/FileStream"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Request is queued successfully.",
+ "headers": {
+ "Operation-Location": {
+ "type": "string",
+ "description": "URL containing the resultId used to track the progress and obtain the result of the analyze operation."
+ }
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Analyze receipt": {
+ "$ref": "./examples/ReceiptsBatch.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/prebuilt/receipt/analyzeResults/{resultId}": {
+ "get": {
+ "summary": "Get Analyze Receipt Result",
+ "description": "Track the progress and obtain the result of the analyze receipt operation.",
+ "operationId": "GetAnalyzeReceiptResult",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "resultId",
+ "in": "path",
+ "description": "Analyze operation result identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeOperationResult"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get analyze receipt result": {
+ "$ref": "./examples/ReceiptsBatchResult.json"
+ }
+ }
+ }
+ },
+ "/layout/analyze": {
+ "post": {
+ "summary": "Analyze Layout",
+ "description": "Extract text and layout information from a given document. The input document must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local path) of the document to be analyzed.",
+ "operationId": "AnalyzeLayoutAsync",
+ "consumes": [
+ "application/pdf",
+ "application/json",
+ "image/jpeg",
+ "image/png",
+ "image/tiff"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/FileStream"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Request is queued successfully.",
+ "headers": {
+ "Operation-Location": {
+ "type": "string",
+ "description": "URL containing the resultId used to track the progress and obtain the result of the analyze operation."
+ }
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Analyze layout": {
+ "$ref": "./examples/LayoutBatch.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/layout/analyzeResults/{resultId}": {
+ "get": {
+ "summary": "Get Analyze Layout Result",
+ "description": "Track the progress and obtain the result of the analyze layout operation",
+ "operationId": "GetAnalyzeLayoutResult",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "resultId",
+ "in": "path",
+ "description": "Analyze operation result identifier.",
+ "required": true,
+ "type": "string",
+ "format": "uuid"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeOperationResult"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get analyze layout result": {
+ "$ref": "./examples/LayoutBatchResult.json"
+ }
+ }
+ }
+ }
+ },
+ "x-ms-paths": {
+ "/custom/models?op=full": {
+ "get": {
+ "summary": "List Custom Models",
+ "description": "Get information about all custom models",
+ "operationId": "ListCustomModels",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "op",
+ "in": "query",
+ "description": "Specify whether to return summary or full list of models.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "full"
+ ]
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/Models"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink",
+ "itemName": "modelList"
+ },
+ "x-ms-examples": {
+ "List custom models": {
+ "$ref": "./examples/GetModels.json"
+ }
+ }
+ }
+ },
+ "/custom/models?op=summary": {
+ "get": {
+ "summary": "Get Custom Models",
+ "description": "Get information about all custom models",
+ "operationId": "GetCustomModels",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "op",
+ "in": "query",
+ "description": "Specify whether to return summary or full list of models.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "summary"
+ ]
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/Models"
+ }
+ },
+ "default": {
+ "description": "Response entity accompanying non-successful responses containing additional details about the error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get models summary": {
+ "$ref": "./examples/GetModelsSummary.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "OperationStatus": {
+ "type": "string",
+ "description": "Status of the queued operation.",
+ "enum": [
+ "notStarted",
+ "running",
+ "succeeded",
+ "failed"
+ ],
+ "x-ms-enum": {
+ "name": "OperationStatus",
+ "modelAsString": false
+ },
+ "x-nullable": false
+ },
+ "CopyAuthorizationResult": {
+ "description": "Request parameter that contains authorization claims for copy operation.",
+ "required": [
+ "modelId",
+ "accessToken",
+ "expirationDateTimeTicks"
+ ],
+ "type": "object",
+ "properties": {
+ "modelId": {
+ "description": "Model identifier.",
+ "type": "string"
+ },
+ "accessToken": {
+ "description": "Token claim used to authorize the request.",
+ "type": "string"
+ },
+ "expirationDateTimeTicks": {
+ "description": "The time when the access token expires. The date is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time.",
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ },
+ "CopyRequest": {
+ "description": "Request parameter to copy an existing custom model from the source resource to a target resource referenced by the resource ID.",
+ "required": [
+ "targetResourceId",
+ "targetResourceRegion",
+ "copyAuthorization"
+ ],
+ "type": "object",
+ "properties": {
+ "targetResourceId": {
+ "description": "Azure Resource Id of the target Form Recognizer resource where the model is copied to.",
+ "maxLength": 1024,
+ "type": "string",
+ "pattern": "^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.CognitiveServices/accounts/[^/]*$",
+ "x-ms-azure-resource": true
+ },
+ "targetResourceRegion": {
+ "description": "Location of the target Azure resource. A valid Azure region name supported by Cognitive Services.",
+ "type": "string",
+ "pattern": "^[a-z0-9]+$",
+ "minLength": 1,
+ "maxLength": 24
+ },
+ "copyAuthorization": {
+ "description": "Entity that encodes claims to authorize the copy request.",
+ "$ref": "#/definitions/CopyAuthorizationResult"
+ }
+ }
+ },
+ "CopyOperationResult": {
+ "description": "Status and result of the queued copy operation.",
+ "type": "object",
+ "required": [
+ "status",
+ "createdDateTime",
+ "lastUpdatedDateTime"
+ ],
+ "properties": {
+ "status": {
+ "description": "Operation status.",
+ "$ref": "#/definitions/OperationStatus"
+ },
+ "createdDateTime": {
+ "format": "date-time",
+ "description": "Date and time (UTC) when the copy operation was submitted.",
+ "type": "string",
+ "x-nullable": false
+ },
+ "lastUpdatedDateTime": {
+ "format": "date-time",
+ "description": "Date and time (UTC) when the status was last updated.",
+ "type": "string",
+ "x-nullable": false
+ },
+ "copyResult": {
+ "description": "Results of the copy operation.",
+ "$ref": "#/definitions/CopyResult"
+ }
+ }
+ },
+ "CopyResult": {
+ "description": "Custom model copy result.",
+ "type": "object",
+ "required": [
+ "modelId"
+ ],
+ "properties": {
+ "modelId": {
+ "description": "Identifier of the target model.",
+ "type": "string",
+ "format": "uuid"
+ },
+ "errors": {
+ "description": "Errors returned during the copy operation.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorInformation"
+ }
+ }
+ }
+ },
+ "AnalyzeOperationResult": {
+ "description": "Status and result of the queued analyze operation.",
+ "type": "object",
+ "required": [
+ "status",
+ "createdDateTime",
+ "lastUpdatedDateTime"
+ ],
+ "properties": {
+ "status": {
+ "description": "Operation status.",
+ "$ref": "#/definitions/OperationStatus"
+ },
+ "createdDateTime": {
+ "format": "date-time",
+ "description": "Date and time (UTC) when the analyze operation was submitted.",
+ "type": "string",
+ "x-nullable": false
+ },
+ "lastUpdatedDateTime": {
+ "format": "date-time",
+ "description": "Date and time (UTC) when the status was last updated.",
+ "type": "string",
+ "x-nullable": false
+ },
+ "analyzeResult": {
+ "description": "Results of the analyze operation.",
+ "$ref": "#/definitions/AnalyzeResult"
+ }
+ }
+ },
+ "TrainRequest": {
+ "description": "Request parameter to train a new custom model.",
+ "required": [
+ "source"
+ ],
+ "type": "object",
+ "properties": {
+ "source": {
+ "description": "Source path containing the training documents.",
+ "maxLength": 2048,
+ "minLength": 0,
+ "type": "string"
+ },
+ "sourceFilter": {
+ "$ref": "#/definitions/TrainSourceFilter",
+ "description": "Filter to apply to the documents in the source path for training."
+ },
+ "useLabelFile": {
+ "description": "Use label file for training a model.",
+ "type": "boolean",
+ "default": false
+ },
+ "modelName": {
+ "description": "Optional user defined model name.",
+ "maxLength": 100,
+ "type": "string"
+ }
+ }
+ },
+ "TrainSourceFilter": {
+ "description": "Filter to apply to the documents in the source path for training.",
+ "type": "object",
+ "properties": {
+ "prefix": {
+ "description": "A case-sensitive prefix string to filter documents in the source path for training. For example, when using a Azure storage blob Uri, use the prefix to restrict sub folders for training.",
+ "maxLength": 1024,
+ "minLength": 0,
+ "type": "string"
+ },
+ "includeSubFolders": {
+ "description": "A flag to indicate if sub folders within the set of prefix folders will also need to be included when searching for content to be preprocessed.",
+ "type": "boolean",
+ "default": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "TrainResult": {
+ "description": "Custom model training result.",
+ "type": "object",
+ "required": [
+ "trainingDocuments"
+ ],
+ "properties": {
+ "trainingDocuments": {
+ "description": "List of the documents used to train the model and any errors reported in each document.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TrainingDocumentInfo"
+ }
+ },
+ "fields": {
+ "description": "List of fields used to train the model and the train operation error reported by each.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/FormFieldsReport"
+ }
+ },
+ "averageModelAccuracy": {
+ "description": "Average accuracy.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "errors": {
+ "description": "Errors returned during the training operation.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorInformation"
+ }
+ }
+ }
+ },
+ "SourcePath": {
+ "description": "Uri or local path to source data.",
+ "type": "object",
+ "properties": {
+ "source": {
+ "description": "File source path.",
+ "maxLength": 2048,
+ "minLength": 0,
+ "type": "string"
+ }
+ }
+ },
+ "ModelInfo": {
+ "description": "Basic custom model information.",
+ "type": "object",
+ "required": [
+ "modelId",
+ "status",
+ "createdDateTime",
+ "lastUpdatedDateTime"
+ ],
+ "properties": {
+ "modelId": {
+ "description": "Model identifier.",
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "status": {
+ "description": "Status of the model.",
+ "enum": [
+ "creating",
+ "ready",
+ "invalid"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ModelStatus",
+ "modelAsString": false
+ },
+ "x-nullable": false
+ },
+ "createdDateTime": {
+ "format": "date-time",
+ "description": "Date and time (UTC) when the model was created.",
+ "type": "string",
+ "x-nullable": false
+ },
+ "lastUpdatedDateTime": {
+ "format": "date-time",
+ "description": "Date and time (UTC) when the status was last updated.",
+ "type": "string",
+ "x-nullable": false
+ },
+ "modelName": {
+ "type": "string",
+ "description": "Optional user defined model name."
+ }
+ }
+ },
+ "Models": {
+ "description": "Response to the list custom models operation.",
+ "type": "object",
+ "properties": {
+ "summary": {
+ "description": "Summary of all trained custom models.",
+ "type": "object",
+ "required": [
+ "count",
+ "limit",
+ "lastUpdatedDateTime"
+ ],
+ "properties": {
+ "count": {
+ "description": "Current count of trained custom models.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "limit": {
+ "description": "Max number of models that can be trained for this account.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "lastUpdatedDateTime": {
+ "format": "date-time",
+ "description": "Date and time (UTC) when the summary was last updated.",
+ "type": "string",
+ "x-nullable": false
+ }
+ }
+ },
+ "modelList": {
+ "description": "Collection of trained custom models.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ModelInfo"
+ }
+ },
+ "nextLink": {
+ "description": "Link to the next page of custom models.",
+ "type": "string"
+ }
+ }
+ },
+ "Model": {
+ "description": "Response to the get custom model operation.",
+ "type": "object",
+ "required": [
+ "modelInfo"
+ ],
+ "properties": {
+ "modelInfo": {
+ "$ref": "#/definitions/ModelInfo"
+ },
+ "keys": {
+ "$ref": "#/definitions/KeysResult"
+ },
+ "trainResult": {
+ "$ref": "#/definitions/TrainResult"
+ },
+ "composedTrainedResults": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/TrainResult"
+ }
+ }
+ }
+ },
+ "KeysResult": {
+ "description": "Keys extracted by the custom model.",
+ "type": "object",
+ "required": [
+ "clusters"
+ ],
+ "properties": {
+ "clusters": {
+ "description": "Object mapping clusterIds to a list of keys.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "array",
+ "uniqueItems": true,
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "TrainingDocumentInfo": {
+ "description": "Report for a custom model training document.",
+ "type": "object",
+ "required": [
+ "documentName",
+ "pages",
+ "errors",
+ "status"
+ ],
+ "properties": {
+ "documentName": {
+ "description": "Training document name.",
+ "type": "string"
+ },
+ "pages": {
+ "format": "int32",
+ "description": "Total number of pages trained.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "errors": {
+ "description": "List of errors.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorInformation"
+ }
+ },
+ "status": {
+ "description": "Status of the training operation.",
+ "enum": [
+ "succeeded",
+ "partiallySucceeded",
+ "failed"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "TrainStatus",
+ "modelAsString": false
+ },
+ "x-nullable": false
+ }
+ }
+ },
+ "FormFieldsReport": {
+ "description": "Report for a custom model training field.",
+ "type": "object",
+ "required": [
+ "fieldName",
+ "accuracy"
+ ],
+ "properties": {
+ "fieldName": {
+ "description": "Training field name.",
+ "type": "string"
+ },
+ "accuracy": {
+ "description": "Estimated extraction accuracy for this field.",
+ "type": "number",
+ "x-nullable": false
+ }
+ }
+ },
+ "ErrorResponse": {
+ "type": "object",
+ "required": [
+ "error"
+ ],
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/ErrorInformation"
+ }
+ }
+ },
+ "ErrorInformation": {
+ "type": "object",
+ "required": [
+ "code",
+ "message"
+ ],
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ },
+ "ComposeRequest": {
+ "description": "Request contract for compose operation.",
+ "required": [
+ "modelIds"
+ ],
+ "type": "object",
+ "properties": {
+ "modelIds": {
+ "description": "List of model ids to compose.",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "modelName": {
+ "description": "Optional user-defined model name.",
+ "type": "string"
+ }
+ }
+ },
+ "AnalyzeResult": {
+ "description": "Analyze operation result.",
+ "type": "object",
+ "required": [
+ "version",
+ "readResults"
+ ],
+ "properties": {
+ "version": {
+ "description": "Version of schema used for this result.",
+ "type": "string"
+ },
+ "readResults": {
+ "description": "Text extracted from the input.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReadResult"
+ }
+ },
+ "pageResults": {
+ "description": "Page-level information extracted from the input.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PageResult"
+ }
+ },
+ "documentResults": {
+ "description": "Document-level information extracted from the input.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ },
+ "errors": {
+ "description": "List of errors reported during the analyze operation.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorInformation"
+ }
+ }
+ }
+ },
+ "ReadResult": {
+ "description": "Text extracted from a page in the input document.",
+ "type": "object",
+ "required": [
+ "page",
+ "angle",
+ "width",
+ "height",
+ "unit"
+ ],
+ "properties": {
+ "page": {
+ "description": "The 1-based page number in the input document.",
+ "type": "integer",
+ "minimum": 1,
+ "x-nullable": false
+ },
+ "angle": {
+ "description": "The general orientation of the text in clockwise direction, measured in degrees between (-180, 180].",
+ "type": "number",
+ "minimum": -180,
+ "maximum": 180,
+ "exclusiveMinimum": true,
+ "x-nullable": false
+ },
+ "width": {
+ "description": "The width of the image/PDF in pixels/inches, respectively.",
+ "type": "number",
+ "minimum": 0,
+ "x-nullable": false
+ },
+ "height": {
+ "description": "The height of the image/PDF in pixels/inches, respectively.",
+ "type": "number",
+ "minimum": 0,
+ "x-nullable": false
+ },
+ "unit": {
+ "description": "The unit used by the width, height and boundingBox properties. For images, the unit is \"pixel\". For PDF, the unit is \"inch\".",
+ "type": "string",
+ "enum": [
+ "pixel",
+ "inch"
+ ],
+ "x-ms-enum": {
+ "name": "LengthUnit",
+ "modelAsString": false
+ },
+ "x-nullable": false
+ },
+ "language": {
+ "description": "The detected language on the page overall.",
+ "$ref": "#/definitions/Language"
+ },
+ "lines": {
+ "description": "When includeTextDetails is set to true, a list of recognized text lines. The maximum number of lines returned is 300 per page. The lines are sorted top to bottom, left to right, although in certain cases proximity is treated with higher priority. As the sorting order depends on the detected text, it may change across images and OCR version updates. Thus, business logic should be built upon the actual line location instead of order.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TextLine"
+ }
+ }
+ }
+ },
+ "Language": {
+ "description": "Language code",
+ "type": "string",
+ "enum": [
+ "en",
+ "es"
+ ],
+ "x-ms-enum": {
+ "name": "Language",
+ "modelAsString": true
+ },
+ "x-nullable": false
+ },
+ "TextLine": {
+ "description": "An object representing an extracted text line.",
+ "type": "object",
+ "required": [
+ "text",
+ "boundingBox",
+ "words"
+ ],
+ "properties": {
+ "text": {
+ "description": "The text content of the line.",
+ "type": "string"
+ },
+ "boundingBox": {
+ "description": "Bounding box of an extracted line.",
+ "$ref": "#/definitions/BoundingBox"
+ },
+ "language": {
+ "description": "The detected language of this line, if different from the overall page language.",
+ "$ref": "#/definitions/Language"
+ },
+ "words": {
+ "description": "List of words in the text line.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TextWord"
+ }
+ }
+ }
+ },
+ "TextWord": {
+ "description": "An object representing a word.",
+ "type": "object",
+ "required": [
+ "boundingBox",
+ "text"
+ ],
+ "properties": {
+ "text": {
+ "description": "The text content of the word.",
+ "type": "string"
+ },
+ "boundingBox": {
+ "description": "Bounding box of an extracted word.",
+ "$ref": "#/definitions/BoundingBox"
+ },
+ "confidence": {
+ "description": "Confidence value.",
+ "$ref": "#/definitions/Confidence"
+ }
+ }
+ },
+ "BoundingBox": {
+ "description": "Quadrangle bounding box, with coordinates specified relative to the top-left of the original image. The eight numbers represent the four points, clockwise from the top-left corner relative to the text orientation. For image, the (x, y) coordinates are measured in pixels. For PDF, the (x, y) coordinates are measured in inches.",
+ "type": "array",
+ "minItems": 8,
+ "maxItems": 8,
+ "items": {
+ "type": "number",
+ "x-nullable": false
+ }
+ },
+ "PageResult": {
+ "description": "Extracted information from a single page.",
+ "type": "object",
+ "required": [
+ "page"
+ ],
+ "properties": {
+ "page": {
+ "description": "Page number.",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "x-nullable": false
+ },
+ "clusterId": {
+ "description": "Cluster identifier.",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "x-nullable": false
+ },
+ "keyValuePairs": {
+ "description": "List of key-value pairs extracted from the page.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/KeyValuePair"
+ }
+ },
+ "tables": {
+ "description": "List of data tables extracted from the page.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DataTable"
+ }
+ },
+ "SelectionMarks": {
+ "description": "List of selection marks extracted from the page.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SelectionMark"
+ }
+ }
+ }
+ },
+ "KeyValuePair": {
+ "description": "Information about the extracted key-value pair.",
+ "type": "object",
+ "required": [
+ "key",
+ "value",
+ "confidence"
+ ],
+ "properties": {
+ "label": {
+ "description": "A user defined label for the key/value pair entry.",
+ "type": "string"
+ },
+ "key": {
+ "description": "Information about the extracted key in a key-value pair.",
+ "$ref": "#/definitions/KeyValueElement"
+ },
+ "value": {
+ "description": "Information about the extracted value in a key-value pair.",
+ "$ref": "#/definitions/KeyValueElement"
+ },
+ "confidence": {
+ "description": "Confidence value.",
+ "$ref": "#/definitions/Confidence"
+ }
+ }
+ },
+ "KeyValueElement": {
+ "description": "Information about the extracted key or value in a key-value pair.",
+ "type": "object",
+ "required": [
+ "text"
+ ],
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/KeyValueType"
+ },
+ "text": {
+ "description": "The text content of the key or value.",
+ "type": "string"
+ },
+ "boundingBox": {
+ "description": "Bounding box of the key or value.",
+ "$ref": "#/definitions/BoundingBox"
+ },
+ "elements": {
+ "description": "When includeTextDetails is set to true, a list of references to the text elements constituting this key or value.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ElementReference"
+ }
+ }
+ }
+ },
+ "KeyValueType": {
+ "type": "string",
+ "description": "Semantic data type of the key value element.",
+ "enum": [
+ "selectionMark"
+ ],
+ "x-ms-enum": {
+ "name": "KeyValueType",
+ "modelAsString": true
+ },
+ "x-nullable": false
+ },
+ "ElementReference": {
+ "description": "Reference to a line or word.",
+ "type": "string"
+ },
+ "SelectionMark": {
+ "description": "Information about the extracted selection mark.",
+ "type": "object",
+ "required": [
+ "boundingBox",
+ "confidence",
+ "state"
+ ],
+ "properties": {
+ "boundingBox": {
+ "description": "Bounding box of the selection mark.",
+ "$ref": "#/definitions/BoundingBox"
+ },
+ "confidence": {
+ "description": "Confidence value.",
+ "$ref": "#/definitions/Confidence"
+ },
+ "state": {
+ "description": "State of the selection mark.",
+ "type": "string",
+ "enum": [
+ "selected",
+ "unselected"
+ ]
+ }
+ }
+ },
+ "DataTable": {
+ "description": "Information about the extracted table contained in a page.",
+ "type": "object",
+ "required": [
+ "rows",
+ "columns",
+ "cells"
+ ],
+ "properties": {
+ "rows": {
+ "description": "Number of rows.",
+ "type": "integer",
+ "minimum": 1,
+ "x-nullable": false
+ },
+ "columns": {
+ "description": "Number of columns.",
+ "type": "integer",
+ "minimum": 1,
+ "x-nullable": false
+ },
+ "cells": {
+ "description": "List of cells contained in the table.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DataTableCell"
+ }
+ }
+ }
+ },
+ "DataTableCell": {
+ "description": "Information about the extracted cell in a table.",
+ "type": "object",
+ "required": [
+ "rowIndex",
+ "columnIndex",
+ "text",
+ "boundingBox",
+ "confidence"
+ ],
+ "properties": {
+ "rowIndex": {
+ "description": "Row index of the cell.",
+ "type": "integer",
+ "minimum": 0,
+ "x-nullable": false
+ },
+ "columnIndex": {
+ "description": "Column index of the cell.",
+ "type": "integer",
+ "minimum": 0,
+ "x-nullable": false
+ },
+ "rowSpan": {
+ "description": "Number of rows spanned by this cell.",
+ "type": "integer",
+ "minimum": 1,
+ "default": 1,
+ "x-nullable": false
+ },
+ "columnSpan": {
+ "description": "Number of columns spanned by this cell.",
+ "type": "integer",
+ "minimum": 1,
+ "default": 1,
+ "x-nullable": false
+ },
+ "text": {
+ "description": "Text content of the cell.",
+ "type": "string"
+ },
+ "boundingBox": {
+ "description": "Bounding box of the cell.",
+ "$ref": "#/definitions/BoundingBox"
+ },
+ "confidence": {
+ "description": "Confidence value.",
+ "$ref": "#/definitions/Confidence"
+ },
+ "elements": {
+ "description": "When includeTextDetails is set to true, a list of references to the text elements constituting this table cell.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ElementReference"
+ }
+ },
+ "isHeader": {
+ "description": "Is the current cell a header cell?",
+ "type": "boolean",
+ "default": false,
+ "x-nullable": false
+ },
+ "isFooter": {
+ "description": "Is the current cell a footer cell?",
+ "type": "boolean",
+ "default": false,
+ "x-nullable": false
+ }
+ }
+ },
+ "DocumentResult": {
+ "description": "A set of extracted fields corresponding to the input document.",
+ "type": "object",
+ "required": [
+ "docType",
+ "pageRange",
+ "fields"
+ ],
+ "properties": {
+ "docType": {
+ "description": "Document type.",
+ "type": "string"
+ },
+ "modelId": {
+ "description": "Model identifier.",
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "pageRange": {
+ "description": "First and last page number where the document is found.",
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2,
+ "items": {
+ "type": "integer",
+ "minimum": 1,
+ "x-nullable": false
+ }
+ },
+ "docTypeConfidence": {
+ "description": "Confidence score.",
+ "$ref": "#/definitions/Confidence"
+ },
+ "fields": {
+ "description": "Dictionary of named field values.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/FieldValue"
+ }
+ }
+ }
+ },
+ "FieldValue": {
+ "description": "Recognized field value.",
+ "type": "object",
+ "required": [
+ "type"
+ ],
+ "properties": {
+ "type": {
+ "description": "Type of field value.",
+ "$ref": "#/definitions/FieldValueType"
+ },
+ "valueString": {
+ "description": "String value.",
+ "type": "string"
+ },
+ "valueDate": {
+ "description": "Date value.",
+ "format": "date",
+ "type": "string",
+ "x-nullable": false
+ },
+ "valueTime": {
+ "description": "Time value.",
+ "format": "time",
+ "type": "string",
+ "x-nullable": false
+ },
+ "valuePhoneNumber": {
+ "description": "Phone number value.",
+ "type": "string"
+ },
+ "valueNumber": {
+ "description": "Floating point value.",
+ "type": "number",
+ "x-nullable": false
+ },
+ "valueInteger": {
+ "description": "Integer value.",
+ "type": "integer",
+ "x-nullable": false
+ },
+ "valueArray": {
+ "description": "Array of field values.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/FieldValue"
+ }
+ },
+ "valueObject": {
+ "description": "Dictionary of named field values.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/FieldValue"
+ }
+ },
+ "valueSelectionMark": {
+ "description": "Selection mark value.",
+ "type": "string",
+ "enum": [
+ "selected",
+ "unselected"
+ ]
+ },
+ "text": {
+ "description": "Text content of the extracted field.",
+ "type": "string"
+ },
+ "boundingBox": {
+ "description": "Bounding box of the field value, if appropriate.",
+ "$ref": "#/definitions/BoundingBox"
+ },
+ "confidence": {
+ "description": "Confidence score.",
+ "$ref": "#/definitions/Confidence"
+ },
+ "elements": {
+ "description": "When includeTextDetails is set to true, a list of references to the text elements constituting this field.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ElementReference"
+ }
+ },
+ "page": {
+ "description": "The 1-based page number in the input document.",
+ "type": "integer",
+ "minimum": 1,
+ "x-nullable": false
+ }
+ }
+ },
+ "FieldValueType": {
+ "type": "string",
+ "description": "Semantic data type of the field value.",
+ "enum": [
+ "string",
+ "date",
+ "time",
+ "phoneNumber",
+ "number",
+ "integer",
+ "array",
+ "object",
+ "selectionMark"
+ ],
+ "x-ms-enum": {
+ "name": "FieldValueType",
+ "modelAsString": false
+ },
+ "x-nullable": false
+ },
+ "Confidence": {
+ "description": "Confidence value.",
+ "type": "number",
+ "minimum": 0,
+ "maximum": 1,
+ "x-nullable": false
+ }
+ },
+ "parameters": {
+ "Endpoint": {
+ "name": "endpoint",
+ "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).",
+ "x-ms-parameter-location": "client",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true
+ },
+ "FileStream": {
+ "name": "fileStream",
+ "description": ".json, .pdf, .jpg, .png or .tiff type file stream.",
+ "x-ms-parameter-location": "method",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/SourcePath"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/AnalyzeBatch.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/AnalyzeBatch.json
new file mode 100644
index 000000000000..82886aff5613
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/AnalyzeBatch.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{Model Id}",
+ "body": {}
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Operation-Location": "{endpoint}/formrecognizer/v2.0-preview/custom/models/{modelId}/analyzeResults/{resultId}"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/AnalyzeOperationResult.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/AnalyzeOperationResult.json
new file mode 100644
index 000000000000..ac3e01056b61
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/AnalyzeOperationResult.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{model Id}",
+ "resultId": "{result Id}",
+ "body": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "running",
+ "createdDateTime": "2019-05-01T10:53:21Z",
+ "lastUpdatedDateTime": "2019-05-01T10:53:23Z",
+ "analyzeResult": {
+ "version": "v2.0",
+ "readResults": [],
+ "pageResults": [],
+ "documentResults": [],
+ "errors": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/BusinessCardBatch.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/BusinessCardBatch.json
new file mode 100644
index 000000000000..8db1fdf4db68
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/BusinessCardBatch.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "body": {}
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Operation-Location": "{endpoint}/formrecognizer/v2.0-preview/prebuilt/businessCard/analyzeResults/{resultId}"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/BusinessCardBatchResult.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/BusinessCardBatchResult.json
new file mode 100644
index 000000000000..8336d6d559ad
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/BusinessCardBatchResult.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{model Id}",
+ "resultId": "{result Id}",
+ "body": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "running",
+ "createdDateTime": "2019-05-01T10:53:21Z",
+ "lastUpdatedDateTime": "2019-05-01T10:53:23Z",
+ "analyzeResult": {
+ "version": "v2.0",
+ "readResults": [],
+ "pageResults": [],
+ "documentResults": [],
+ "errors": []
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ComposeModels.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ComposeModels.json
new file mode 100644
index 000000000000..93d91e1a445a
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ComposeModels.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "body": {},
+ "composeRequest": {
+ "ModelsIds": ["ModelA", "ModelB"]
+ }
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Location": "{endpoint}/formrecognizer/v2.0-preview/custom/models/{modelId}"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyModel.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyModel.json
new file mode 100644
index 000000000000..8aa25dbc1094
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyModel.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{modelId}",
+ "body": {},
+ "copyRequest": {
+ "targetResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{resourceName}",
+ "targetResourceRegion": "westus2",
+ "copyAuthorization": {
+ "modelId": "{modelId}",
+ "accessToken": "{accessToken}",
+ "expirationDateTimeTicks": 637190189980000000
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Operation-Location": "{endpoint}/formrecognizer/v2.0-preview/custom/models/{modelId}/copyResults/{resultId}"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyModelAuthorization.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyModelAuthorization.json
new file mode 100644
index 000000000000..b5b0b9de3323
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyModelAuthorization.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "body": {}
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Location": "{endpoint}/formrecognizer/v2.0-preview/custom/models/{modelId}"
+ },
+ "body": {
+ "modelId": "{modelId}",
+ "accessToken": "{accessToken}",
+ "expirationDateTimeTicks": 637190189980000000
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyOperationResult.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyOperationResult.json
new file mode 100644
index 000000000000..2ffdb6f52b19
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyOperationResult.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{modelId}",
+ "resultId": "{resultId}",
+ "body": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "succeeded",
+ "createdDateTime": "2020-01-01T00:00:00Z",
+ "lastUpdatedDateTime": "2020-01-01T00:01:00Z",
+ "copyResult": {
+ "modelId": "{modelId}",
+ "errors": []
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyOperationResultWithErrors.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyOperationResultWithErrors.json
new file mode 100644
index 000000000000..5072aa1dff25
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/CopyOperationResultWithErrors.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{modelId}",
+ "resultId": "{resultId}",
+ "body": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "failed",
+ "createdDateTime": "2020-01-01T00:00:00Z",
+ "lastUpdatedDateTime": "2020-01-01T00:01:00Z",
+ "copyResult": {
+ "modelId": "{modelId}",
+ "errors": [
+ {
+ "code": "ResourceResolverError",
+ "message": "{ErrorMessage}"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/DeleteModel.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/DeleteModel.json
new file mode 100644
index 000000000000..8033b6772479
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/DeleteModel.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{Model Id}",
+ "body": {}
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModel.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModel.json
new file mode 100644
index 000000000000..eb3b852903e0
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModel.json
@@ -0,0 +1,51 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{Model Id}",
+ "body": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "modelInfo": {
+ "modelId": "f973e3c1-1148-43bb-bea8-49d0603ab3a8",
+ "status": "ready",
+ "createdDateTime": "2019-05-01T10:53:21Z",
+ "lastUpdatedDateTime": "2019-05-01T10:53:23Z"
+ },
+ "keys": {
+ "clusters": {
+ "0": [
+ "Invoice",
+ "123112313"
+ ],
+ "1": [
+ "Please remit payment to:",
+ "Microsoft"
+ ]
+ }
+ },
+ "trainResult": {
+ "trainingDocuments": [],
+ "fields": [],
+ "averageModelAccuracy": 0,
+ "errors": []
+ },
+ "composedTrainResults": [
+ {
+ "trainResult": {
+ "trainingDocuments": [],
+ "fields": [],
+ "averageModelAccuracy": 0,
+ "errors": []
+ }
+ }
+ ]
+
+ }
+ }
+ }
+}
+
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModels.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModels.json
new file mode 100644
index 000000000000..1ebb45e86268
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModels.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "op": "full",
+ "body": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "summary": {
+ "count": 5,
+ "limit": 5000,
+ "lastUpdatedDateTime": "2019-05-01T10:53:21Z"
+ },
+ "modelList": [
+ {
+ "modelId": "f973e3c1-1148-43bb-bea8-49d0603ab3a8",
+ "status": "ready",
+ "createdDateTime": "2019-05-01T10:53:21Z",
+ "lastUpdatedDateTime": "2019-05-01T10:53:23Z"
+ },
+ {
+ "modelId": "f973e3c1-0001-43bb-bea8-49d0603ab3a8",
+ "status": "ready",
+ "createdDateTime": "2019-05-01T10:53:21Z",
+ "lastUpdatedDateTime": "2019-05-01T10:53:23Z"
+ }
+ ],
+ "nextLink": ""
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModelsSummary.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModelsSummary.json
new file mode 100644
index 000000000000..507495b78206
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/GetModelsSummary.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "op": "summary",
+ "body": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "summary": {
+ "count": 5,
+ "limit": 5000,
+ "lastUpdatedDateTime": "2019-05-01T10:53:21Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/LayoutBatch.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/LayoutBatch.json
new file mode 100644
index 000000000000..653d97348f96
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/LayoutBatch.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "language": "en",
+ "body": {}
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Operation-Location": "{endpoint}/formrecognizer/v2.0-preview/layout/analyzeResults/{resultId}"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/LayoutBatchResult.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/LayoutBatchResult.json
new file mode 100644
index 000000000000..099b8a2df49a
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/LayoutBatchResult.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{model Id}",
+ "resultId": "{result Id}",
+ "body": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "succeeded",
+ "createdDateTime": "2019-05-01T10:53:21Z",
+ "lastUpdatedDateTime": "2019-05-01T10:53:23Z",
+ "analyzeResult": {
+ "version": "v2.0",
+ "readResults": [],
+ "pageResults": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ReceiptsBatch.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ReceiptsBatch.json
new file mode 100644
index 000000000000..9b5b2ba0f8dd
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ReceiptsBatch.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "body": {}
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Operation-Location": "{endpoint}/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/{resultId}"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ReceiptsBatchResult.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ReceiptsBatchResult.json
new file mode 100644
index 000000000000..ac3e01056b61
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/ReceiptsBatchResult.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "modelId": "{model Id}",
+ "resultId": "{result Id}",
+ "body": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "running",
+ "createdDateTime": "2019-05-01T10:53:21Z",
+ "lastUpdatedDateTime": "2019-05-01T10:53:23Z",
+ "analyzeResult": {
+ "version": "v2.0",
+ "readResults": [],
+ "pageResults": [],
+ "documentResults": [],
+ "errors": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/TrainBatch.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/TrainBatch.json
new file mode 100644
index 000000000000..e46593143196
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/TrainBatch.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "body": {},
+ "trainRequest": {
+ "source": "/input/data1"
+ }
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Location": "{endpoint}/formrecognizer/v2.0-preview/custom/models/{modelId}"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/TrainBatchWithSubFolders.json b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/TrainBatchWithSubFolders.json
new file mode 100644
index 000000000000..d802556456f5
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.2/examples/TrainBatchWithSubFolders.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "endpoint": "{endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "body": {},
+ "trainRequest": {
+ "source": "/input/data1",
+ "sourceFilter": {
+ "prefix": "",
+ "includeSubFolders": false
+ },
+ "useLabelFile": false
+ }
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Location": "{endpoint}/formrecognizer/v2.0-preview/custom/models/{modelId}"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/FormRecognizer/readme.md b/specification/cognitiveservices/data-plane/FormRecognizer/readme.md
index 969d24a80c96..6cf863de25a5 100644
--- a/specification/cognitiveservices/data-plane/FormRecognizer/readme.md
+++ b/specification/cognitiveservices/data-plane/FormRecognizer/readme.md
@@ -64,7 +64,7 @@ csharp:
license-header: MICROSOFT_MIT_NO_VERSION
azure-arm: false
namespace: Microsoft.Azure.CognitiveServices.FormRecognizer
- output-folder: $(csharp-sdks-folder)/CognitiveServices/Vision.FormRecognizer/src/Generated
+ output-folder: $(csharp-sdks-folder)/CognitiveServices/FormRecognizer/src/Generated
title: "FormRecognizerClient"
clear-output-folder: true
```
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/LUIS-Authoring.json
index a7335b87f6b5..02fe2bdb6ec7 100644
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/LUIS-Authoring.json
+++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/LUIS-Authoring.json
@@ -303,6 +303,9 @@
{
"$ref": "#/parameters/VersionIdInPath"
},
+ {
+ "$ref": "#/parameters/EnableNestedChildren"
+ },
{
"name": "exampleLabelObject",
"in": "body",
@@ -351,6 +354,9 @@
{
"$ref": "#/parameters/VersionIdInPath"
},
+ {
+ "$ref": "#/parameters/EnableNestedChildren"
+ },
{
"name": "exampleLabelObjectArray",
"in": "body",
@@ -408,6 +414,9 @@
},
{
"$ref": "#/parameters/TakeInPath"
+ },
+ {
+ "$ref": "#/parameters/EnableNestedChildren"
}
],
"responses": {
@@ -2342,6 +2351,9 @@
},
{
"$ref": "#/parameters/TakeInPath"
+ },
+ {
+ "$ref": "#/parameters/EnableNestedChildren"
}
],
"responses": {
@@ -2389,6 +2401,9 @@
},
{
"$ref": "#/parameters/TakeInPath"
+ },
+ {
+ "$ref": "#/parameters/EnableNestedChildren"
}
],
"responses": {
@@ -3413,168 +3428,6 @@
}
}
},
- "/apps/{appId}/permissions": {
- "get": {
- "description": "Gets the list of user emails that have permissions to access your application.",
- "operationId": "Permissions_List",
- "parameters": [
- {
- "$ref": "#/parameters/AppIdInPath"
- }
- ],
- "responses": {
- "200": {
- "description": "The list includes a single owner. All collaborators are listed in the emails array.",
- "schema": {
- "$ref": "#/definitions/UserAccessList"
- }
- },
- "default": {
- "description": "Error Response.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- }
- },
- "produces": [
- "application/json"
- ],
- "x-ms-examples": {
- "Successful Get Application User Access List": {
- "$ref": "./examples/permissions/SuccessfulGetApplicationUserAccessListRequest.json"
- }
- }
- },
- "post": {
- "description": "Adds a user to the allowed list of users to access this LUIS application. Users are added using their email address.",
- "operationId": "Permissions_Add",
- "parameters": [
- {
- "$ref": "#/parameters/AppIdInPath"
- },
- {
- "name": "userToAdd",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/UserCollaborator"
- },
- "description": "A model containing the user's email address."
- }
- ],
- "consumes": [
- "application/json"
- ],
- "responses": {
- "200": {
- "description": "Successful operation.",
- "schema": {
- "$ref": "#/definitions/OperationStatus"
- }
- },
- "default": {
- "description": "Error Response.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- }
- },
- "produces": [
- "application/json"
- ],
- "x-ms-examples": {
- "Successful Add User To Access List": {
- "$ref": "./examples/permissions/SuccessfulAddUserToAccessListRequest.json"
- }
- }
- },
- "delete": {
- "description": "Removes a user from the allowed list of users to access this LUIS application. Users are removed using their email address.",
- "operationId": "Permissions_Delete",
- "parameters": [
- {
- "$ref": "#/parameters/AppIdInPath"
- },
- {
- "name": "userToDelete",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/UserCollaborator"
- },
- "description": "A model containing the user's email address."
- }
- ],
- "consumes": [
- "application/json"
- ],
- "responses": {
- "200": {
- "description": "Successful operation.",
- "schema": {
- "$ref": "#/definitions/OperationStatus"
- }
- },
- "default": {
- "description": "Error Response.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- }
- },
- "produces": [
- "application/json"
- ],
- "x-ms-examples": {
- "Successful Remove User From Access List": {
- "$ref": "./examples/permissions/SuccessfulRemoveUserFromAccessListRequest.json"
- }
- }
- },
- "put": {
- "description": "Replaces the current user access list with the new list sent in the body. If an empty list is sent, all access to other users will be removed.",
- "operationId": "Permissions_Update",
- "parameters": [
- {
- "$ref": "#/parameters/AppIdInPath"
- },
- {
- "name": "collaborators",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CollaboratorsArray"
- },
- "description": "A model containing a list of user email addresses."
- }
- ],
- "consumes": [
- "application/json"
- ],
- "responses": {
- "200": {
- "description": "Successful operation.",
- "schema": {
- "$ref": "#/definitions/OperationStatus"
- }
- },
- "default": {
- "description": "Error Response.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- }
- },
- "produces": [
- "application/json"
- ],
- "x-ms-examples": {
- "Successful Replaces Users From Access List": {
- "$ref": "./examples/permissions/SuccessfulReplacesUsersFromAccessListRequest.json"
- }
- }
- }
- },
"/apps/{appId}/endpoints": {
"get": {
"description": "Returns the available endpoint deployment regions and URLs.",
@@ -8149,6 +8002,22 @@
"role": {
"description": "The role the entity plays in the utterance.",
"type": "string"
+ },
+ "children": {
+ "description": "The identified entities within the example utterance.",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/EntityLabelObject"
+ },
+ "type": "array",
+ "example": [
+ {
+ "entityName": "child",
+ "startCharIndex": 0,
+ "endCharIndex": 0,
+ "children": []
+ }
+ ]
}
}
},
@@ -8319,6 +8188,21 @@
"role": {
"description": "The role the entity plays in the utterance.",
"type": "string"
+ },
+ "children": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/JSONEntity"
+ },
+ "example": [
+ {
+ "entity": "child1",
+ "startPos": 0,
+ "endPos": 0,
+ "children": []
+ }
+ ]
}
}
},
@@ -9278,6 +9162,21 @@
"type": "string",
"format": "uuid",
"description": "The role id for the predicted entity."
+ },
+ "children": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/EntityLabel"
+ },
+ "example": [
+ {
+ "entityName": "child",
+ "startTokenIndex": 0,
+ "endTokenIndex": 0,
+ "children": []
+ }
+ ]
}
},
"required": [
@@ -9325,6 +9224,21 @@
"phrase": {
"type": "string",
"description": "The actual token(s) that comprise the entity."
+ },
+ "children": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "$ref": "#/definitions/EntityPrediction"
+ },
+ "example": [
+ {
+ "entityName": "child",
+ "startTokenIndex": 0,
+ "endTokenIndex": 0,
+ "phrase": "string"
+ }
+ ]
}
}
},
@@ -10604,6 +10518,9 @@
"featureName": {
"type": "string",
"description": "The name of the feature used."
+ },
+ "isRequired": {
+ "type": "boolean"
}
}
},
@@ -10847,6 +10764,14 @@
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true
+ },
+ "EnableNestedChildren": {
+ "name": "enableNestedChildren",
+ "in": "query",
+ "type": "boolean",
+ "default": false,
+ "description": "Toggles nested/flat format",
+ "x-ms-parameter-location": "method"
}
}
}
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulAddLabelRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulAddLabelRequest.json
index 9a7220daa4e3..5512edd005fc 100644
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulAddLabelRequest.json
+++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulAddLabelRequest.json
@@ -4,6 +4,7 @@
"Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
"appId": "86226c53-b7a6-416f-876b-226b2b5ab07b",
"versionId": "0.1",
+ "enableNestedChildren": false,
"exampleLabelObject": {
"text": "whats the weather in buenos aires?",
"intentName": "WeatherInPlace",
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulBatchAddLabelsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulBatchAddLabelsRequest.json
index bc2a357b807a..516369be8a7c 100644
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulBatchAddLabelsRequest.json
+++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulBatchAddLabelsRequest.json
@@ -4,6 +4,7 @@
"Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
"appId": "2370fb9d-7dbc-4898-a361-a742cf290766",
"versionId": "0.1",
+ "enableNestedChildren": false,
"exampleLabelObjectArray": [
{
"text": "whats the weather in seattle?",
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulReviewLabeledExamplesRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulReviewLabeledExamplesRequest.json
index a0a43d373b31..49071d052202 100644
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulReviewLabeledExamplesRequest.json
+++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/examples/SuccessfulReviewLabeledExamplesRequest.json
@@ -3,7 +3,8 @@
"Endpoint": "{Endpoint}",
"Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
"appId": "86226c53-b7a6-416f-876b-226b2b5ab07b",
- "versionId": "0.1"
+ "versionId": "0.1",
+ "enableNestedChildren": false
},
"responses": {
"200": {
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/model/SuccessfulGetEntitySuggestionExamples.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/model/SuccessfulGetEntitySuggestionExamples.json
index 0c103cc44e24..f6605ccf44e3 100644
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/model/SuccessfulGetEntitySuggestionExamples.json
+++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/model/SuccessfulGetEntitySuggestionExamples.json
@@ -4,7 +4,8 @@
"Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
"appId": "86226c53-b7a6-416f-876b-226b2b5ab07b",
"versionId": "0.1",
- "entityId": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73"
+ "entityId": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73",
+ "enableNestedChildren": false
},
"responses": {
"200": {
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/model/SuccessfulGetIntentsSuggestionExamples.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/model/SuccessfulGetIntentsSuggestionExamples.json
index a0cd5f3a1bbc..260784bda5d1 100644
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/model/SuccessfulGetIntentsSuggestionExamples.json
+++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/model/SuccessfulGetIntentsSuggestionExamples.json
@@ -4,7 +4,8 @@
"Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
"appId": "86226c53-b7a6-416f-876b-226b2b5ab07b",
"versionId": "0.1",
- "intentId": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73"
+ "intentId": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73",
+ "enableNestedChildren": false
},
"responses": {
"200": {
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulAddUserToAccessListRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulAddUserToAccessListRequest.json
deleted file mode 100644
index 868818ea0bda..000000000000
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulAddUserToAccessListRequest.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "parameters": {
- "Endpoint": "{Endpoint}",
- "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
- "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e",
- "userToAdd": {
- "email": "guest@outlook.com"
- }
- },
- "responses": {
- "200": {
- "headers": {},
- "body": {
- "code": "Success",
- "message": "Operation Successful"
- }
- }
- }
-}
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulGetApplicationUserAccessListRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulGetApplicationUserAccessListRequest.json
deleted file mode 100644
index bca79c6b986c..000000000000
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulGetApplicationUserAccessListRequest.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "parameters": {
- "Endpoint": "{Endpoint}",
- "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
- "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e"
- },
- "responses": {
- "200": {
- "headers": {},
- "body": {
- "owner": "owner@email.com",
- "emails": [
- "yourname@outlook.com"
- ]
- }
- }
- }
-}
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulRemoveUserFromAccessListRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulRemoveUserFromAccessListRequest.json
deleted file mode 100644
index e07a94cd0393..000000000000
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulRemoveUserFromAccessListRequest.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "parameters": {
- "Endpoint": "{Endpoint}",
- "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
- "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e",
- "userToDelete": {
- "email": "guest@outlook.com"
- }
- },
- "responses": {
- "200": {
- "headers": {},
- "body": {
- "code": "Success",
- "message": "Operation Successful"
- }
- }
- }
-}
diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulReplacesUsersFromAccessListRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulReplacesUsersFromAccessListRequest.json
deleted file mode 100644
index 34444826b73b..000000000000
--- a/specification/cognitiveservices/data-plane/LUIS/Authoring/preview/v3.0/examples/permissions/SuccessfulReplacesUsersFromAccessListRequest.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "parameters": {
- "Endpoint": "{Endpoint}",
- "Ocp-Apim-Subscription-Key": "00000000000000000000000000000000",
- "appId": "363187f1-c573-46b3-bc4c-ae01d686e68e",
- "collaborators": {
- "emails": [
- "guest@outlook.com",
- "invited.user@live.com"
- ]
- }
- },
- "responses": {
- "200": {
- "headers": {},
- "body": {
- "code": "Success",
- "message": "Operation Successful"
- }
- }
- }
-}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/Identification.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/Identification.json
new file mode 100644
index 000000000000..d5476d4178cc
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/Identification.json
@@ -0,0 +1,831 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Speaker Identification API",
+ "version": "2.0",
+ "description": "This API is currently available in:\n\n* West US - westus.api.cognitive.microsoft.com"
+ },
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{Endpoint}/speaker/identification/v2.0",
+ "useSchemePrefix": false,
+ "parameters": [
+ {
+ "$ref": "#/parameters/Endpoint"
+ }
+ ]
+ },
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "securityDefinitions": {
+ "apiKeyHeader": {
+ "type": "apiKey",
+ "name": "Ocp-Apim-Subscription-Key",
+ "in": "header"
+ }
+ },
+ "security": [
+ {
+ "apiKeyHeader": []
+ }
+ ],
+ "parameters": {
+ "Endpoint": {
+ "name": "Endpoint",
+ "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).",
+ "x-ms-parameter-location": "client",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true
+ },
+ "profileIdParam": {
+ "in": "path",
+ "name": "profileId",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false,
+ "pattern": "^([0-9a-fA-F]){8}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){12}$",
+ "description": "Unique identifier for profile id (guid).",
+ "x-ms-parameter-location": "method"
+ },
+ "localeParam": {
+ "in": "path",
+ "name": "locale",
+ "required": true,
+ "type": "string",
+ "x-nullable": false,
+ "pattern": "^[a-zA-Z]{2}-?[a-zA-Z]{2}$",
+ "description": "A combination of language code and country code.",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "definitions": {
+ "ProfileId": {
+ "type": "string",
+ "pattern": "^([0-9a-fA-F]){8}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){12}$",
+ "description": "Unique identifier for profile id (guid).",
+ "example": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "Locale": {
+ "type": "string",
+ "pattern": "^[a-zA-Z]{2}-?[a-zA-Z]{2}$",
+ "x-nullable": false,
+ "description": "Language identifier consisting of a combination of language code and country code.",
+ "example": "en-US"
+ },
+ "EnrollmentStatus": {
+ "type": "string",
+ "description": "Status representing the current state of the profile. Available values are:\n* Enrolling: profile has no voice print and not ready for recognition requests.\n* Training: voice print of profile is being created and can’t be used for recognition at the moment.\n* Enrolled: profile has a voice print and ready for recognition requests.",
+ "enum": [
+ "Enrolling",
+ "Training",
+ "Enrolled"
+ ],
+ "x-ms-enum": {
+ "name": "TrainingStatusType",
+ "modelAsString": false
+ },
+ "example": "Enrolling"
+ },
+ "CreatedDateTime": {
+ "type": "string",
+ "description": "Profile creation datetime.",
+ "example": "2015-04-23T18:25:43.41Z"
+ },
+ "LastUpdatedDateTime": {
+ "type": "string",
+ "description": "Last datetime when the profile was updated.",
+ "example": "2015-04-23T19:34:51.52Z"
+ },
+ "EnrollmentsCount": {
+ "type": "integer",
+ "description": "Number of enrolment audios accepted for this profile.",
+ "example": 1
+ },
+ "EnrollmentsLength": {
+ "type": "number",
+ "description": "Total length of enrollment audios accepted for this profile in seconds.",
+ "example": 1.83
+ },
+ "EnrollmentsSpeechLength": {
+ "type": "number",
+ "description": "Summation of pure speech (which is the amount of audio after removing silence and non-speech segments) across all profile enrollments in seconds.",
+ "example": 1.35
+ },
+ "RemainingEnrollmentsSpeechLength": {
+ "type": "number",
+ "description": "Amount of pure speech (which is the amount of audio after removing silence and non-speech segments) needed to complete profile enrollment in seconds.",
+ "example": 18.65
+ },
+ "ModelVersion": {
+ "type": "string",
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
+ "description": "Date specifying the model assigned to this profile. Format is yyyy-mm-dd. If profile has no enrollments, this value will be empty.",
+ "example": "2019-12-05"
+ },
+ "LocaleInfo": {
+ "description": "Speaker profile locale",
+ "required": [
+ "locale"
+ ],
+ "properties": {
+ "locale": {
+ "$ref": "#/definitions/Locale"
+ }
+ }
+ },
+ "TiProfileInfoList": {
+ "description": "Text-Independent Speaker profile info list",
+ "properties": {
+ "profiles": {
+ "items": {
+ "$ref": "#/definitions/TiProfileInfo"
+ }
+ },
+ "@nextLink": {
+ "type": "string",
+ "example": "https://{Endpoint}/text-independent/profiles?$top=35&$continuationToken=U21pdGg1QmVuOTk5"
+ }
+ }
+ },
+ "TiProfileInfo": {
+ "description": "Text-Independent Speaker profile info",
+ "properties": {
+ "profileId": {
+ "$ref": "#/definitions/ProfileId"
+ },
+ "locale": {
+ "$ref": "#/definitions/Locale"
+ },
+ "enrollmentStatus": {
+ "$ref": "#/definitions/EnrollmentStatus"
+ },
+ "createdDateTime": {
+ "$ref": "#/definitions/CreatedDateTime"
+ },
+ "lastUpdatedDateTime": {
+ "$ref": "#/definitions/LastUpdatedDateTime"
+ },
+ "enrollmentsCount": {
+ "$ref": "#/definitions/EnrollmentsCount"
+ },
+ "enrollmentsLength": {
+ "$ref": "#/definitions/EnrollmentsLength"
+ },
+ "enrollmentsSpeechLength": {
+ "$ref": "#/definitions/EnrollmentsSpeechLength"
+ },
+ "remainingEnrollmentsSpeechLength": {
+ "$ref": "#/definitions/RemainingEnrollmentsSpeechLength"
+ },
+ "modelVersion": {
+ "$ref": "#/definitions/ModelVersion"
+ }
+ }
+ },
+ "TiEnrollmentInfo": {
+ "description": "Speaker profile enrollment info",
+ "properties": {
+ "profileId": {
+ "$ref": "#/definitions/ProfileId"
+ },
+ "enrollmentStatus": {
+ "$ref": "#/definitions/EnrollmentStatus"
+ },
+ "enrollmentsCount": {
+ "$ref": "#/definitions/EnrollmentsCount"
+ },
+ "enrollmentsLength": {
+ "$ref": "#/definitions/EnrollmentsLength"
+ },
+ "enrollmentsSpeechLength": {
+ "$ref": "#/definitions/EnrollmentsSpeechLength"
+ },
+ "remainingEnrollmentsSpeechLength": {
+ "$ref": "#/definitions/RemainingEnrollmentsSpeechLength"
+ },
+ "audioLength": {
+ "type": "number",
+ "description": "This enrolment audio length in seconds.",
+ "example": 1.83
+ },
+ "audioSpeechLength": {
+ "type": "number",
+ "description": "This enrollment audio pure speech (which is the amount of audio after removing silence and non-speech segments) length in seconds.",
+ "example": 1.35
+ }
+ }
+ },
+ "IdentifiedSingleSpeakerInfo": {
+ "properties": {
+ "identifiedProfile": {
+ "description": "Object containing data of identified profile.",
+ "$ref": "#/definitions/IdentifyInfo"
+ },
+ "profilesRanking": {
+ "description": "Object containing data of the top 5 profiles (including identified profile) sorted in descending order by score.",
+ "items": {
+ "$ref": "#/definitions/IdentifyInfo"
+ },
+ "example": [
+ {
+ "profileId": "111f427c-3791-468f-b709-fcef7660fff9",
+ "score": 0.63
+ },
+ {
+ "profileId": "3669fa29-1bf3-45ad-beea-6b348d058d7e",
+ "score": 0.49
+ },
+ {
+ "profileId": "0e196cd9-32d5-4883-8631-54a0e7c7cb3d",
+ "score": 0.4
+ },
+ {
+ "profileId": "726e57d9-04e0-4214-b482-7f786fa83560",
+ "score": 0.1
+ },
+ {
+ "profileId": "f95189fd-1bf5-4485-9c2e-e5897e0c98ca",
+ "score": 0.03
+ }
+ ]
+ }
+ }
+ },
+ "IdentifyInfo": {
+ "description": "Identified speaker info",
+ "properties": {
+ "profileId": {
+ "type": "string",
+ "pattern": "^([0-9a-fA-F]){8}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){12}$",
+ "description": "ID of identified of profile. If no candidate is identified as the right speaker, the value is set to empty GUID.",
+ "example": "111f427c-3791-468f-b709-fcef7660fff9",
+ "format": "uuid",
+ "x-nullable": false
+ },
+ "score": {
+ "type": "number",
+ "description": "A float number indicating the similarity between input audio and targeted voice print. This number must be between 0 and 1. A higher number means higher similarity.",
+ "example": 0.63
+ }
+ }
+ },
+ "Error": {
+ "required": [
+ "error"
+ ],
+ "properties": {
+ "error": {
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "NotFound": {
+ "description": "NotFound - Requested profile doesn't exist",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "Unauthorized": {
+ "description": "Request is not authorized. Make sure subscription key is included and valid.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "RateLimit": {
+ "description": "Rate limit is exceeded.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "ServerError": {
+ "description": "Internal Server Error.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ }
+ },
+ "paths": {
+ "/text-independent/profiles": {
+ "post": {
+ "description": "Creates a new speaker profile with specified locale.\nOne subscription can create 10,000 speaker profiles at most.",
+ "operationId": "TextIndependent_CreateProfile",
+ "summary": "Create Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/createProfile.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "profileInfo",
+ "description": "Provide following detail info when creating a new profile.\nFields | Description\n------- | ------------\nlocale | Locale for the language of this speaker profile. A complete supported locale list is here: - **en-US**
- **es-ES**
- **fr-FR**
- **zh-CN**
- **de-DE**
- **en-GB**
- **en-AU**
- **en-CA**
- **fr-CA**
- **it-IT**
- **es-MX**
- **ja-JP**
- **pt-BR**
- **en-IN**
",
+ "schema": {
+ "$ref": "#/definitions/LocaleInfo"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Speaker profile created successfully. GUID is returned to reference the created profile.",
+ "headers": {
+ "Location": {
+ "type": "string",
+ "description": "url location of new resource"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TiProfileInfo"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Request body is missing.\n* InvalidRequest - Invalid JSON format.\n* InvalidRequest - Locale parameter is missing.\n* InvalidArgument - Invalid locale value. Supported locales are {comma-separated list of locales}.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Request body is missing."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden - Maximum allowed number of profiles is 10,000.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Forbidden",
+ "message": "Maximum allowed number of profiles is 10,000."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "415": {
+ "description": "UnsupportedMediaType - Unsupported media type. Only 'application/JSON' is accepted.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'application/JSON' is accepted."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ },
+ "get": {
+ "x-ms-pageable": {
+ "nextLinkName": "@nextLink",
+ "itemName": "profiles"
+ },
+ "description": "Retrieves a set of profiles.\nProfiles are sorted alphabetically by ProfileId",
+ "operationId": "TextIndependent_ListProfiles",
+ "summary": "List Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/listProfiles.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "$top",
+ "description": "The number of profiles to return. Default is 100 and the maximum is 500",
+ "type": "integer"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TiProfileInfoList"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidArgument - Invalid $top parameter value. Value should be positive integer in the range [1, 500].\n* InvalidArgument - Invalid $continuationToken value. $continuationToken must be generated form a prior API call.\n* InvalidArgument - $filter parameter is not supported.\n* InvalidArgument - $skip parameter is not supported.\n* InvalidArgument - $orderBy parameter is not supported.\n* InvalidArgument - $delta parameter is not supported.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidArgument",
+ "message": "Invalid $top parameter value. Value should be positive integer in the range [1, 500]"
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-independent/profiles/{profileId}": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "get": {
+ "description": "Retrieves a single profile by ID.",
+ "operationId": "TextIndependent_GetProfile",
+ "summary": "Retrieve Single Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/fetchProfile.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TiProfileInfo"
+ }
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ },
+ "delete": {
+ "description": "Deletes an existing profile.",
+ "operationId": "TextIndependent_DeleteProfile",
+ "summary": "Delete Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/deleteProfile.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "responses": {
+ "204": {
+ "description": "OK"
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-independent/profiles/{profileId}/reset": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "post": {
+ "description": "Resets existing profile to its original creation state. The reset operation does the following:\n* Updates enrollmentStatus to Enrolling.\n* Updates lastUpdatedDateTime.\n* Updates enrollmentsCount to 0.\n* Updates enrollmentsLength to 0.\n* Updates enrollmentsSpeechLength to 0.\n* Updates remainingEnrollmentsSpeechLength to the required number.\n* Removes all associated enrollments from storage.\n* Removes chosen passphrase association.\n* Resets value of modelVersion.",
+ "operationId": "TextIndependent_ResetProfile",
+ "summary": "Reset Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/resetProfile.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "responses": {
+ "204": {
+ "description": "OK"
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-independent/profiles/{profileId}/enrollments": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "post": {
+ "description": "Adds an enrollment to existing profile.\nIf the minimum number of requested enrollment audios is reached, a voice print is created.\nIf the voice print was created before, it gets recreated from all existing enrollment audios including the new one.\n\nLimitations:\n* Minimum audio input length per request is **1 second**\n* Maximum audio input length per request is **120 seconds**\n* Minimum total effective speech length (excluding silence and other non-speech frames) for creating a voiceprint is **20 seconds**\n This limitation can be disabled by setting ignoreMinLength to **true**.\n\n* Maximum total audio input length allowed for creating a voiceprint is **300 seconds**\n* Minimum audio Signal-to-noise ratio (SNR) is **0dB**",
+ "operationId": "TextIndependent_CreateEnrollment",
+ "summary": "Enroll Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/createEnrollment.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "consumes": [
+ "audio/wav; codecs=audio/pcm"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "ignoreMinLength",
+ "type": "boolean",
+ "description": "If true, a voice print will be created immediately for this profile regardless of how much speech is supplied or stored. Default is false."
+ },
+ {
+ "name": "audioData",
+ "in": "body",
+ "description": "Binary audio file. Supported formats are audio/wav; codecs=audio/pcm. Supports audio up to 5MB.",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "format": "file"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/TiEnrollmentInfo"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Invalid audio length. Maximum allowed length per enrollment request is 120 seconds.\n* InvalidRequest - Invalid audio length. Minimum allowed length per enrollment request is 1 second.\n* InvalidRequest - Invalid audio format. Supported format is 16Khz 16bit Mono PCM.\n* InvalidArgument - Invalid ignoreMinLength parameter value. Valid values are \"true\" and \"false\".\n* InvalidRequest - Minimum audio Signal-to-noise ratio (SNR) is 0dB\n* InvalidRequest - Audio is too noisy. The minimum allowed Signal-to-noise ratio (SNR) is 0dB.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Audio is too noisy."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden\n* InvalidRequest - Maximum allowed length across all profile enrollments is 300 seconds.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Maximum allowed length across all profile enrollments is 300 seconds."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "409": {
+ "description": "Conflict\n* Conflict - Sending concurrent requests on same profile is not allowed.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Conflict",
+ "message": "Sending concurrent requests on same profile is not allowed."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "415": {
+ "description": "UnsupportedMediaType - Unsupported media type. Only \"audio/wav; codecs=audio/pcm\" is accepted.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-independent/profiles/identifySingleSpeaker": {
+ "post": {
+ "description": "Identifies who is speaking in input audio among a list of candidate profiles.\n\nLimitations:\n* Minimum audio input length is **1 second**\n* Maximum audio input length is **120 seconds**\n* Minimum candidate speakers count is **1**\n* Maximum candidate speakers count is **50**\n* Minimum effective speech length (excluding silence and other non-speech frames) is **4 seconds**\n This limitation can be disabled by setting \"ignoreMinLength\" to **true**.\n\n* Minimum audio Signal-to-noise ratio (SNR) is **0dB**",
+ "operationId": "TextIndependent_IdentifySingleSpeaker",
+ "summary": "Identify Single Speaker Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/identifySingleSpeaker.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "consumes": [
+ "audio/wav; codecs=audio/pcm"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "profileIds",
+ "type": "string",
+ "required": true,
+ "description": "Comma-delimited profile IDs. Maximum supported number is 50 IDs."
+ },
+ {
+ "in": "query",
+ "name": "ignoreMinLength",
+ "type": "boolean",
+ "description": "If true, the minimum amount of speech needed for identification is skipped. Default is false."
+ },
+ {
+ "name": "audioData",
+ "in": "body",
+ "description": "Binary audio file. Supported formats are audio/wav; codecs=audio/pcm. Supports audio up to 5MB.",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "format": "file"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/IdentifiedSingleSpeakerInfo"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Invalid audio length. Maximum allowed length per recognition request is 120 seconds.\n* InvalidRequest - Invalid audio length. Minimum allowed length per recognition request is 1 second.\n* InvalidRequest - Invalid audio format. Supported format is 16Khz 16bit Mono PCM.\n* InvalidArgument - Invalid ignoreMinLength parameter value. Valid values are \"true\" and \"false\".\n* InvalidArgument - Invalid profileIds parameter value. It should be comma-delimited list of IDs containing at least one ID.\n* InvalidRequest - profileIds parameter is missing. It should be comma-delimited list of IDs containing at least one ID.\n* InvalidRequest - Invalid group of profiles. Profiles must have the same locale.\n* InvalidRequest - Maximum number of profiles allowed per request is 50.\n* InvalidRequest - Minimum audio Signal-to-noise ratio (SNR) is 0dB\n* InvalidRequest - Profile is not enrolled.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Profile is not enrolled."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "415": {
+ "description": "UnsupportedMediaType - Unsupported media type. Only \"audio/wav; codecs=audio/pcm\" is accepted.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ }
+ },
+ "tags": []
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/createEnrollment.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/createEnrollment.json
new file mode 100644
index 000000000000..b7eb28955a51
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/createEnrollment.json
@@ -0,0 +1,114 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "audio/wav; codecs=audio/pcm",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "audioData": "{binary file date}"
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "enrollmentStatus": "Enrolling",
+ "enrollmentsCount": 1,
+ "enrollmentsLength": 1.83,
+ "enrollmentsSpeechLength": 1.35,
+ "remainingEnrollmentsSpeechLength": 18.65,
+ "audioLength": 1.83,
+ "audioSpeechLength": 1.35
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Audio is too noisy."
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "403": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Maximum allowed length across all profile enrollments is 300 seconds."
+ }
+ }
+ },
+ "404": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "409": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Conflict",
+ "message": "Sending concurrent requests on same profile is not allowed."
+ }
+ }
+ },
+ "415": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/createProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/createProfile.json
new file mode 100644
index 000000000000..f20460a77a87
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/createProfile.json
@@ -0,0 +1,95 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileInfo": {
+ "locale": "en-us"
+ }
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "locale": "en-US",
+ "enrollmentStatus": "Enrolling",
+ "createdDateTime": "2015-04-23T18:25:43.41Z",
+ "lastUpdatedDateTime": "2015-04-23T18:25:43.41Z",
+ "enrollmentsCount": 0,
+ "enrollmentsLength": 0,
+ "enrollmentsSpeechLength": 0,
+ "remainingEnrollmentsSpeechLength": 20,
+ "modelVersion": "2019-12-05"
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Request body is missing."
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "403": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Forbidden",
+ "message": "Maximum allowed number of profiles is 10,000."
+ }
+ }
+ },
+ "415": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'application/JSON' is accepted."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/deleteProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/deleteProfile.json
new file mode 100644
index 000000000000..1af07b0b1a4f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/deleteProfile.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f"
+ },
+ "responses": {
+ "204": {
+ "headers": {
+ "Content-Type": "application/json"
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/fetchProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/fetchProfile.json
new file mode 100644
index 000000000000..5ab27b08d95f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/fetchProfile.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "locale": "en-US",
+ "enrollmentStatus": "Enrolling",
+ "createdDateTime": "2015-04-23T18:25:43.41Z",
+ "lastUpdatedDateTime": "2015-04-23T19:34:51.52Z",
+ "enrollmentsCount": 1,
+ "enrollmentsLength": 1.83,
+ "enrollmentsSpeechLength": 1.35,
+ "remainingEnrollmentsSpeechLength": 18.65,
+ "modelVersion": "2019-12-05"
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "404": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/identifySingleSpeaker.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/identifySingleSpeaker.json
new file mode 100644
index 000000000000..927ec1be8ab0
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/identifySingleSpeaker.json
@@ -0,0 +1,99 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "audio/wav; codecs=audio/pcm",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileIds": "3669fa29-1bf3-45ad-beea-6b348d058d7e,111f427c-3791-468f-b709-fcef7660fff9,0e196cd9-32d5-4883-8631-54a0e7c7cb3d,0e196cd9-32d5-4883-8631-54a0e7c7cb3d,726e57d9-04e0-4214-b482-7f786fa83560,f95189fd-1bf5-4485-9c2e-e5897e0c98ca",
+ "audioData": "{binary file date}"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "identifiedProfile": {
+ "profileId": "111f427c-3791-468f-b709-fcef7660fff9",
+ "score": 0.63
+ },
+ "profilesRanking": [
+ {
+ "profileId": "111f427c-3791-468f-b709-fcef7660fff9",
+ "score": 0.63
+ },
+ {
+ "profileId": "3669fa29-1bf3-45ad-beea-6b348d058d7e",
+ "score": 0.49
+ },
+ {
+ "profileId": "0e196cd9-32d5-4883-8631-54a0e7c7cb3d",
+ "score": 0.4
+ },
+ {
+ "profileId": "726e57d9-04e0-4214-b482-7f786fa83560",
+ "score": 0.1
+ },
+ {
+ "profileId": "f95189fd-1bf5-4485-9c2e-e5897e0c98ca",
+ "score": 0.03
+ }
+ ]
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Profile is not enrolled."
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "415": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/listProfiles.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/listProfiles.json
new file mode 100644
index 000000000000..1e6916cfd8e0
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/listProfiles.json
@@ -0,0 +1,75 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profiles": [
+ {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "locale": "en-US",
+ "enrollmentStatus": "Enrolling",
+ "createdDateTime": "2015-04-23T18:25:43.41Z",
+ "lastUpdatedDateTime": "2015-04-23T19:34:51.52Z",
+ "enrollmentsCount": 1,
+ "enrollmentsLength": 1.83,
+ "enrollmentsSpeechLength": 1.35,
+ "remainingEnrollmentsSpeechLength": 18.65,
+ "modelVersion": "2019-12-05"
+ }
+ ],
+ "@nextLink": "https://{Endpoint}/text-independent/profiles?$top=35&$continuationToken=U21pdGg1QmVuOTk5"
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidArgument",
+ "message": "Invalid $top parameter value. Value should be positive integer in the range [1, 500]"
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/resetProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/resetProfile.json
new file mode 100644
index 000000000000..83389ad8eb82
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/preview/v2.0/examples/resetProfile.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f"
+ },
+ "responses": {
+ "204": {
+ "headers": {
+ "Content-Type": "application/json"
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "404": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.md b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.md
new file mode 100644
index 000000000000..3b3cb7393249
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.md
@@ -0,0 +1,92 @@
+# Cognitive Services Speaker Recognition SDKs
+
+> see https://aka.ms/autorest
+
+Configuration for generating Speaker Verification SDK.
+
+``` yaml
+tag: identification_2_0_preview
+add-credentials: true
+openapi-type: data-plane
+```
+
+The current release for the Authoring Endpoint is `identification_2_0_preview`.
+
+# Releases
+
+## Identification 2.0
+These settings apply only when `--tag=identification_2_0_preview` is specified on the command line.
+
+``` yaml $(tag) == 'identification_2_0_preview'
+input-file: preview/v2.0/Identification.json
+```
+
+---
+
+# Code Generation
+
+
+## Swagger to SDK
+
+This section describes what SDK should be generated by the automatic system.
+This is not used by Autorest itself.
+
+``` yaml $(swagger-to-sdk)
+swagger-to-sdk:
+ - repo: azure-sdk-for-python
+ - repo: azure-sdk-for-js
+ - repo: azure-sdk-for-node
+```
+
+### CSharp Settings
+These settings apply only when `--csharp` is specified on the command line.
+``` yaml $(csharp)
+csharp:
+ sync-methods: None
+ license-header: MICROSOFT_MIT_NO_VERSION
+ azure-arm: false
+ namespace: Microsoft.Azure.CognitiveServices.speech.speaker.identification
+ output-folder: $(csharp-sdks-folder)/CognitiveServices/speech.speaker.identification/src/Generated
+ clear-output-folder: true
+```
+
+## Java
+
+These settings apply only when `--java` is specified on the command line.
+Please also specify `--azure-libraries-for-java-folder=`.
+
+``` yaml $(java)
+java:
+ azure-arm: true
+ namespace: com.microsoft.azure.cognitiveservices.speech.speaker.identification
+ license-header: MICROSOFT_MIT_NO_CODEGEN
+ payload-flattening-threshold: 1
+ output-folder: $(azure-libraries-for-java-folder)/cognitiveservices/data-plane/speech/speaker/identification
+ with-optional-parameters: true
+ with-single-async-method: true
+```
+
+## Multi-API/Profile support for AutoRest v3 generators
+
+AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
+
+This block is updated by an automatic script. Edits may be lost!
+
+``` yaml $(tag) == 'all-api-versions' /* autogenerated */
+# include the azure profile definitions from the standard location
+require: $(this-folder)/../../../../../profiles/readme.md
+
+# all the input files across all versions
+input-file:
+ - $(this-folder)/preview/v2.0/Identification.json
+
+```
+
+If there are files that should not be in the `all-api-versions` set,
+uncomment the `exclude-file` section below and add the file paths.
+
+``` yaml $(tag) == 'all-api-versions'
+#exclude-file:
+# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
+```
+
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.nodejs.md b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.nodejs.md
new file mode 100644
index 000000000000..8e7f4305b148
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.nodejs.md
@@ -0,0 +1,14 @@
+## Node.js
+
+These settings apply only when `--nodejs` is specified on the command line.
+Please also specify `--node-sdks-folder=`.
+
+``` yaml $(nodejs)
+nodejs:
+ package-name: azure-cognitiveservices-speech-speaker-identification
+ output-folder: $(node-sdks-folder)/lib/services/speech/speaker/identification
+ azure-arm: false
+ generate-license-txt: true
+ generate-package-json: true
+ generate-readme-md: true
+```
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.python.md b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.python.md
new file mode 100644
index 000000000000..f80705467b9c
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.python.md
@@ -0,0 +1,26 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
+
+``` yaml $(python)
+python-mode: create
+python:
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: azure.cognitiveservices.speech.speaker.identification
+ package-name: azure-cognitiveservices-speech-speaker
+ clear-output-folder: true
+
+```
+``` yaml $(python) && $(python-mode) == 'update'
+python:
+ no-namespace-folders: true
+ output-folder: $(python-sdks-folder)/cognitiveservices/speech/speaker/identification
+```
+``` yaml $(python) && $(python-mode) == 'create'
+python:
+ basic-setup-py: true
+ output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-speech-speaker
+```
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.typescript.md b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.typescript.md
new file mode 100644
index 000000000000..f7fae2db4c68
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.typescript.md
@@ -0,0 +1,12 @@
+## TypeScript
+
+These settings apply only when `--typescript` is specified on the command line.
+Please also specify `--typescript-sdks-folder=`.
+
+``` yaml $(typescript)
+typescript:
+ package-name: "@azure/cognitiveservices-speaker-identification"
+ output-folder: "$(typescript-sdks-folder)/sdk/cognitiveservices/cognitiveservices-speaker-identification"
+ azure-arm: false
+ generate-metadata: true
+```
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/Verification.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/Verification.json
new file mode 100644
index 000000000000..2530e8f3ea1c
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/Verification.json
@@ -0,0 +1,1408 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Speaker Verification API",
+ "version": "2.0",
+ "description": "This API is currently available in:\n\n* West US - westus.api.cognitive.microsoft.com"
+ },
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{Endpoint}/speaker/verification/v2.0",
+ "useSchemePrefix": false,
+ "parameters": [
+ {
+ "$ref": "#/parameters/Endpoint"
+ }
+ ]
+ },
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "securityDefinitions": {
+ "apiKeyHeader": {
+ "type": "apiKey",
+ "name": "Ocp-Apim-Subscription-Key",
+ "in": "header"
+ }
+ },
+ "security": [
+ {
+ "apiKeyHeader": []
+ }
+ ],
+ "parameters": {
+ "Endpoint": {
+ "name": "Endpoint",
+ "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).",
+ "x-ms-parameter-location": "client",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true
+ },
+ "profileIdParam": {
+ "in": "path",
+ "name": "profileId",
+ "required": true,
+ "type": "string",
+ "format": "uuid",
+ "x-nullable": false,
+ "pattern": "^([0-9a-fA-F]){8}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){12}$",
+ "description": "Unique identifier for profile id (guid).",
+ "x-ms-parameter-location": "method"
+ },
+ "localeParam": {
+ "in": "path",
+ "name": "locale",
+ "required": true,
+ "type": "string",
+ "x-nullable": false,
+ "pattern": "^[a-zA-Z]{2}-?[a-zA-Z]{2}$",
+ "description": "A combination of language code and country code.",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "definitions": {
+ "ProfileId": {
+ "type": "string",
+ "pattern": "^([0-9a-fA-F]){8}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){4}-?([0-9a-fA-F]){12}$",
+ "description": "Unique identifier for profile id (guid).",
+ "format": "uuid",
+ "x-nullable": false,
+ "example": "49a36324-fc4b-4387-aa06-090cfbf0064f"
+ },
+ "Locale": {
+ "type": "string",
+ "pattern": "^[a-zA-Z]{2}-?[a-zA-Z]{2}$",
+ "description": "Language identifier consisting of a combination of language code and country code.",
+ "x-nullable": false,
+ "example": "en-US"
+ },
+ "EnrollmentStatus": {
+ "type": "string",
+ "description": "Status representing the current state of the profile. Available values are:\n* Enrolling: profile has no voice print and not ready for recognition requests.\n* Training: voice print of profile is being created and can’t be used for recognition at the moment.\n* Enrolled: profile has a voice print and ready for recognition requests.",
+ "enum": [
+ "Enrolling",
+ "Training",
+ "Enrolled"
+ ],
+ "x-ms-enum": {
+ "name": "TrainingStatusType",
+ "modelAsString": false
+ },
+ "example": "Enrolling"
+ },
+ "CreatedDateTime": {
+ "type": "string",
+ "description": "Profile creation datetime.",
+ "example": "2015-04-23T18:25:43.41Z"
+ },
+ "LastUpdatedDateTime": {
+ "type": "string",
+ "description": "Last datetime when the profile was updated.",
+ "example": "2015-04-23T19:34:51.52Z"
+ },
+ "EnrollmentsCount": {
+ "type": "integer",
+ "description": "Number of enrolment audios accepted for this profile.",
+ "example": 1
+ },
+ "EnrollmentsLength": {
+ "type": "number",
+ "description": "Total length of enrollment audios accepted for this profile in seconds.",
+ "example": 1.83
+ },
+ "EnrollmentsSpeechLength": {
+ "type": "number",
+ "description": "Summation of pure speech (which is the amount of audio after removing silence and non-speech segments) across all profile enrollments in seconds.",
+ "example": 1.35
+ },
+ "RemainingEnrollmentsCount": {
+ "type": "integer",
+ "description": "Number of enrollment audios needed to complete profile enrollment.",
+ "example": 2
+ },
+ "RemainingEnrollmentsSpeechLength": {
+ "type": "number",
+ "description": "Amount of pure speech (which is the amount of audio after removing silence and non-speech segments) needed to complete profile enrollment in seconds.",
+ "example": 18.65
+ },
+ "ModelVersion": {
+ "type": "string",
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
+ "description": "Date specifying the model assigned to this profile. Format is yyyy-mm-dd. If profile has no enrollments, this value will be empty.",
+ "example": "2019-12-05"
+ },
+ "LocaleInfo": {
+ "description": "Speaker profile locale",
+ "properties": {
+ "locale": {
+ "$ref": "#/definitions/Locale"
+ }
+ }
+ },
+ "TdProfileInfoList": {
+ "description": "Text-Dependent Speaker profile info list",
+ "properties": {
+ "profiles": {
+ "items": {
+ "$ref": "#/definitions/TdProfileInfo"
+ }
+ },
+ "@nextLink": {
+ "type": "string",
+ "example": "https://{Endpoint}/text-dependent/profiles?$top=35&$continuationToken=U21pdGg1QmVuOTk5"
+ }
+ }
+ },
+ "TdProfileInfo": {
+ "description": "Text-Dependent Speaker profile info",
+ "properties": {
+ "profileId": {
+ "$ref": "#/definitions/ProfileId"
+ },
+ "locale": {
+ "$ref": "#/definitions/Locale"
+ },
+ "enrollmentStatus": {
+ "$ref": "#/definitions/EnrollmentStatus"
+ },
+ "createdDateTime": {
+ "$ref": "#/definitions/CreatedDateTime"
+ },
+ "lastUpdatedDateTime": {
+ "$ref": "#/definitions/LastUpdatedDateTime"
+ },
+ "enrollmentsCount": {
+ "$ref": "#/definitions/EnrollmentsCount"
+ },
+ "enrollmentsLength": {
+ "$ref": "#/definitions/EnrollmentsLength"
+ },
+ "enrollmentsSpeechLength": {
+ "$ref": "#/definitions/EnrollmentsSpeechLength"
+ },
+ "remainingEnrollmentsCount": {
+ "$ref": "#/definitions/RemainingEnrollmentsCount"
+ },
+ "modelVersion": {
+ "$ref": "#/definitions/ModelVersion"
+ }
+ }
+ },
+ "TdEnrollmentInfo": {
+ "description": "Text-Dependent Speaker profile enrollment info",
+ "properties": {
+ "profileId": {
+ "$ref": "#/definitions/ProfileId"
+ },
+ "enrollmentStatus": {
+ "$ref": "#/definitions/EnrollmentStatus"
+ },
+ "enrollmentsCount": {
+ "$ref": "#/definitions/EnrollmentsCount"
+ },
+ "enrollmentsLength": {
+ "$ref": "#/definitions/EnrollmentsLength"
+ },
+ "enrollmentsSpeechLength": {
+ "$ref": "#/definitions/EnrollmentsSpeechLength"
+ },
+ "remainingEnrollmentsCount": {
+ "$ref": "#/definitions/RemainingEnrollmentsCount"
+ },
+ "passPhrase": {
+ "type": "string",
+ "description": "Passphrase associated with this enrollment.",
+ "example": "my voice is my passport verify me"
+ },
+ "audioLength": {
+ "type": "number",
+ "description": "This enrolment audio length in seconds.",
+ "example": 1.83
+ },
+ "audioSpeechLength": {
+ "type": "number",
+ "description": "This enrollment audio pure speech (which is the amount of audio after removing silence and non-speech segments) length in seconds.",
+ "example": 1.35
+ }
+ }
+ },
+ "TiProfileInfoList": {
+ "description": "Text-Independent Speaker profile info list",
+ "properties": {
+ "profiles": {
+ "items": {
+ "$ref": "#/definitions/TiProfileInfo"
+ }
+ },
+ "@nextLink": {
+ "type": "string",
+ "example": "https://{Endpoint}/text-independent/profiles?$top=35&$continuationToken=U21pdGg1QmVuOTk5"
+ }
+ }
+ },
+ "TiProfileInfo": {
+ "description": "Text-Independent Speaker profile info",
+ "properties": {
+ "profileId": {
+ "$ref": "#/definitions/ProfileId"
+ },
+ "locale": {
+ "$ref": "#/definitions/Locale"
+ },
+ "enrollmentStatus": {
+ "$ref": "#/definitions/EnrollmentStatus"
+ },
+ "createdDateTime": {
+ "$ref": "#/definitions/CreatedDateTime"
+ },
+ "lastUpdatedDateTime": {
+ "$ref": "#/definitions/LastUpdatedDateTime"
+ },
+ "enrollmentsCount": {
+ "$ref": "#/definitions/EnrollmentsCount"
+ },
+ "enrollmentsLength": {
+ "$ref": "#/definitions/EnrollmentsLength"
+ },
+ "enrollmentsSpeechLength": {
+ "$ref": "#/definitions/EnrollmentsSpeechLength"
+ },
+ "remainingEnrollmentsSpeechLength": {
+ "$ref": "#/definitions/RemainingEnrollmentsSpeechLength"
+ },
+ "modelVersion": {
+ "$ref": "#/definitions/ModelVersion"
+ }
+ }
+ },
+ "TiEnrollmentInfo": {
+ "description": "Text-Independent Speaker profile enrollment info",
+ "properties": {
+ "profileId": {
+ "$ref": "#/definitions/ProfileId"
+ },
+ "enrollmentStatus": {
+ "$ref": "#/definitions/EnrollmentStatus"
+ },
+ "enrollmentsCount": {
+ "$ref": "#/definitions/EnrollmentsCount"
+ },
+ "enrollmentsLength": {
+ "$ref": "#/definitions/EnrollmentsLength"
+ },
+ "enrollmentsSpeechLength": {
+ "$ref": "#/definitions/EnrollmentsSpeechLength"
+ },
+ "remainingEnrollmentsSpeechLength": {
+ "$ref": "#/definitions/RemainingEnrollmentsSpeechLength"
+ },
+ "audioLength": {
+ "type": "number",
+ "description": "This enrolment audio length in seconds.",
+ "example": 1.83
+ },
+ "audioSpeechLength": {
+ "type": "number",
+ "description": "This enrollment audio pure speech (which is the amount of audio after removing silence and non-speech segments) length in seconds.",
+ "example": 1.35
+ }
+ }
+ },
+ "RecognitionInfo": {
+ "description": "Speaker recognition result",
+ "properties": {
+ "recognitionResult": {
+ "type": "string",
+ "description": "Does audio belong to targeted profile?",
+ "enum": [
+ "accept",
+ "reject"
+ ],
+ "x-ms-enum": {
+ "name": "ResultType",
+ "modelAsString": false
+ },
+ "example": "Accept"
+ },
+ "score": {
+ "type": "number",
+ "description": "A float number indicating the similarity between input audio and targeted voice print. This number must be between 0 and 1. A higher number means higher similarity.",
+ "example": 0.63
+ }
+ }
+ },
+ "Error": {
+ "description": "Speaker error message",
+ "required": [
+ "error"
+ ],
+ "properties": {
+ "error": {
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "NotFound": {
+ "description": "NotFound - Requested profile doesn't exist",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "Unauthorized": {
+ "description": "Request is not authorized. Make sure subscription key is included and valid.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "RateLimit": {
+ "description": "Rate limit is exceeded.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "ServerError": {
+ "description": "Internal Server Error.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ }
+ },
+ "paths": {
+ "/text-dependent/profiles": {
+ "post": {
+ "description": "Create a new speaker profile with specified locale.\nOne subscription can create 10,000 speaker profiles at most.",
+ "operationId": "TextDependent_CreateProfile",
+ "summary": "Create Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/textDependentCreateProfile.json"
+ }
+ },
+ "tags": [
+ "text-dependent"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "profileInfo",
+ "description": "Provide following detail info when creating a new profile.\nFields | Description\n------- | ------------\nlocale | Locale for the language of this speaker profile. A complete supported locale list is here: ",
+ "schema": {
+ "required": [
+ "locale"
+ ],
+ "$ref": "#/definitions/LocaleInfo"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Speaker profile created successfully. GUID is returned to reference the created profile.",
+ "headers": {
+ "Location": {
+ "type": "string",
+ "description": "url location of new resource"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TdProfileInfo"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Request body is missing.\n* InvalidRequest - Invalid JSON format.\n* InvalidRequest - Locale parameter is missing.\n* InvalidArgument - Invalid locale value. Supported locales are {comma-separated list of locales}.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Request body is missing."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden - Maximum allowed number of profiles is 10,000.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Forbidden",
+ "message": "Maximum allowed number of profiles is 10,000."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "415": {
+ "description": "UnsupportedMediaType - Unsupported media type. Only 'application/JSON' is accepted.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'application/JSON' is accepted."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ },
+ "get": {
+ "x-ms-pageable": {
+ "nextLinkName": "@nextLink",
+ "itemName": "profiles"
+ },
+ "description": "Retrieves a set of profiles.\nProfiles are sorted alphabetically by ProfileId",
+ "operationId": "TextDependent_ListProfiles",
+ "summary": "List Profiles",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/textDependentListProfiles.json"
+ }
+ },
+ "tags": [
+ "text-dependent"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "$top",
+ "description": "The number of profiles to return. Default is 100 and the maximum is 500",
+ "type": "integer"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TdProfileInfoList"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidArgument - Invalid $top parameter value. Value should be positive integer in the range [1, 500].\n* InvalidArgument - Invalid $continuationToken value. $continuationToken must be generated form a prior API call.\n* InvalidArgument - $filter parameter is not supported.\n* InvalidArgument - $skip parameter is not supported.\n* InvalidArgument - $orderBy parameter is not supported.\n* InvalidArgument - $delta parameter is not supported.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidArgument",
+ "message": "Invalid $top parameter value. Value should be positive integer in the range [1, 500]"
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-dependent/profiles/{profileId}": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "get": {
+ "description": "Retrieves a single profile by ID.",
+ "operationId": "TextDependent_GetProfile",
+ "summary": "Retrieve Single Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/textDependentFetchProfile.json"
+ }
+ },
+ "tags": [
+ "text-dependent"
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TdProfileInfo"
+ }
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ },
+ "delete": {
+ "description": "Deletes an existing profile.",
+ "operationId": "TextDependent_DeleteProfile",
+ "summary": "Delete Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/deleteProfile.json"
+ }
+ },
+ "tags": [
+ "text-dependent"
+ ],
+ "responses": {
+ "204": {
+ "description": "OK"
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-dependent/profiles/{profileId}/reset": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "post": {
+ "description": "Resets existing profile to its original creation state. The reset operation does the following:\n* Updates enrollmentStatus to Enrolling.\n* Updates lastUpdatedDateTime.\n* Updates enrollmentsCount to 0.\n* Updates enrollmentsLength to 0.\n* Updates enrollmentsSpeechLength to 0.\n* Updates remainingEnrollmentsCount to the initial required number.\n* Removes all associated enrollments from storage.\n* Removes chosen passphrase association.\n* Resets value of modelVersion.",
+ "operationId": "TextDependent_ResetProfile",
+ "summary": "Reset Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/resetProfile.json"
+ }
+ },
+ "tags": [
+ "text-dependent"
+ ],
+ "responses": {
+ "204": {
+ "description": "OK"
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-dependent/profiles/{profileId}/enrollments": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "post": {
+ "description": "Adds an enrollment to existing profile.\nIf the minimum number of requested enrollment audios is reached, a voice print is created.\nIf the voice print was created before, it gets recreated from all existing enrollment audios including the new one.\n\nLimitations:\n* Minimum audio input length per request is **1 second**\n* Maximum audio input length per request is **10 seconds**\n* Minimum number of enrollments for creating a voiceprint is **3**\n* Maximum number of enrollments for creating a voiceprint is **50**\n* Minimum audio Signal-to-noise ratio (SNR) is **10dB**\n\nConstraints:\n* First enrollment must match an existing passphrase.\n* All enrollments after the first one, must use the same passphrase used in the first enrollment.",
+ "operationId": "TextDependent_CreateEnrollment",
+ "summary": "Enroll Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/textDependentCreateEnrollment.json"
+ }
+ },
+ "tags": [
+ "text-dependent"
+ ],
+ "consumes": [
+ "audio/wav; codecs=audio/pcm"
+ ],
+ "parameters": [
+ {
+ "name": "audioData",
+ "in": "body",
+ "description": "Binary audio file. Supported formats are audio/wav; codecs=audio/pcm. Supports audio up to 5MB.",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "format": "file"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/TdEnrollmentInfo"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Invalid audio length. Maximum allowed length is 10 seconds.\n* InvalidRequest - Invalid audio length. Minimum allowed length is 1 second.\n* InvalidRequest - Invalid audio format. Supported format is WAV 16Khz 16bit Mono PCM.\n* InvalidRequest - Invalid passphrase.\n* InvalidRequest - Audio is too noisy. The minimum allowed Signal-to-noise ratio (SNR) is 10dB.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Audio is too noisy."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden\n* InvalidOperation - Maximum allowed number of enrollments per profile is 50.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidOperation",
+ "message": "Maximum allowed number of enrollments per profile is 50."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "409": {
+ "description": "Conflict\n* Conflict - Sending concurrent requests on same profile is not allowed.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Conflict",
+ "message": "Sending concurrent requests on same profile is not allowed."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "415": {
+ "description": "UnsupportedMediaType - Unsupported media type. Only \"audio/wav; codecs=audio/pcm\" is accepted.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-dependent/profiles/{profileId}/verify": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "post": {
+ "description": "Verifies existing profiles against input audio.\n\nLimitations:\n* Minimum audio input length per request is **1 second**\n* Maximum audio input length per request is **10 seconds**\n* Minimum audio Signal-to-noise ratio (SNR) is **10 dB**",
+ "operationId": "TextDependent_VerifyProfile",
+ "summary": "Verify Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/verify.json"
+ }
+ },
+ "tags": [
+ "text-dependent"
+ ],
+ "consumes": [
+ "audio/wav; codecs=audio/pcm"
+ ],
+ "parameters": [
+ {
+ "name": "audioData",
+ "in": "body",
+ "description": "Binary audio file. Supported formats are audio/wav; codecs=audio/pcm. Supports audio up to 5MB.",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "format": "file"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/RecognitionInfo"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Invalid audio length. Maximum allowed length is 10 seconds.\n* InvalidRequest - Invalid audio length. Minimum allowed length is 1 second.\n* InvalidRequest - Invalid audio format. Supported format is 16Khz 16bit Mono PCM.\n* InvalidRequest - Audio is too noisy. The minimum allowed Signal-to-noise ratio (SNR) is 10dB.\n* InvalidRequest - Profile is not enrolled.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Profile is not enrolled."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "415": {
+ "description": "UnsupportedMediaType - Unsupported media type. Only \"audio/wav; codecs=audio/pcm\" is accepted.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-dependent/phrases/{locale}": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/localeParam"
+ }
+ ],
+ "get": {
+ "description": "Retrieves list of supported passphrases for a specific locale.",
+ "operationId": "TextDependent_ListPhrases",
+ "summary": "Pass Phrases",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/phrases.json"
+ }
+ },
+ "tags": [
+ "text-dependent"
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "items": {
+ "type": "string"
+ },
+ "example": [
+ "my voice is my passport verify me",
+ "my voice is stronger than passwords"
+ ]
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Locale parameter is missing.\n* InvalidArgument - Invalid locale value. Supported locales are {comma-separated list of locales}.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Locale parameter is missing."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-independent/profiles": {
+ "post": {
+ "description": "Creates a new speaker profile with specified locale.\nOne subscription can create 10,000 speaker profiles at most.",
+ "operationId": "TextIndependent_CreateProfile",
+ "summary": "Create Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/textIndependentCreateProfile.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "profileInfo",
+ "description": "Provide following detail info when creating a new profile.\nFields | Description\n------- | ------------\nlocale | Locale for the language of this speaker profile. A complete supported locale list is here: - **en-US**
- **es-ES**
- **fr-FR**
- **zh-CN**
- **de-DE**
- **en-GB**
- **en-AU**
- **en-CA**
- **fr-CA**
- **it-IT**
- **es-MX**
- **ja-JP**
- **pt-BR**
- **en-IN**
",
+ "schema": {
+ "required": [
+ "locale"
+ ],
+ "$ref": "#/definitions/LocaleInfo"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Speaker profile created successfully. GUID is returned to reference the created profile.",
+ "headers": {
+ "Location": {
+ "type": "string",
+ "description": "url location of new resource"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TiProfileInfo"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Request body is missing.\n* InvalidRequest - Invalid JSON format.\n* InvalidRequest - Locale parameter is missing.\n* InvalidArgument - Invalid locale value. Supported locales are {comma-separated list of locales}.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Request body is missing."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden - Maximum allowed number of profiles is 10,000.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Forbidden",
+ "message": "Maximum allowed number of profiles is 10,000."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "415": {
+ "description": "UnsupportedMediaType - Unsupported media type. Only 'application/JSON' is accepted.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'application/JSON' is accepted."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ },
+ "get": {
+ "x-ms-pageable": {
+ "nextLinkName": "@nextLink"
+ },
+ "description": "Retrieves a set of profiles.\nProfiles are sorted alphabetically by ProfileId",
+ "operationId": "TextIndependent_ListProfiles",
+ "summary": "List Profiles",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/textIndependentListProfiles.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "$top",
+ "description": "The number of profiles to return. Default is 100 and the maximum is 500",
+ "type": "integer"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TiProfileInfoList"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidArgument - Invalid $top parameter value. Value should be positive integer in the range [1, 500].\n* InvalidArgument - Invalid $continuationToken value. $continuationToken must be generated form a prior API call.\n* InvalidArgument - $filter parameter is not supported.\n* InvalidArgument - $skip parameter is not supported.\n* InvalidArgument - $orderBy parameter is not supported.\n* InvalidArgument - $delta parameter is not supported.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidArgument",
+ "message": "Invalid $top parameter value. Value should be positive integer in the range [1, 500]"
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-independent/profiles/{profileId}": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "get": {
+ "description": "Retrieves a single profile by ID.",
+ "operationId": "TextIndependent_GetProfile",
+ "summary": "Retrieve Single Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/textIndependentFetchProfile.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TiProfileInfo"
+ }
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ },
+ "delete": {
+ "description": "Deletes an existing profile.",
+ "operationId": "TextIndependent_DeleteProfile",
+ "summary": "Delete Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/deleteProfile.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "responses": {
+ "204": {
+ "description": "OK"
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-independent/profiles/{profileId}/reset": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "post": {
+ "description": "Resets existing profile to its original creation state. The reset operation does the following:\n* Updates enrollmentStatus to Enrolling.\n* Updates lastUpdatedDateTime.\n* Updates enrollmentsCount to 0.\n* Updates enrollmentsLength to 0.\n* Updates enrollmentsSpeechLength to 0.\n* Updates remainingEnrollmentsSpeechLength to the required number.\n* Removes all associated enrollments from storage.\n* Removes chosen passphrase association.\n* Resets value of modelVersion.",
+ "operationId": "TextIndependent_ResetProfile",
+ "summary": "Reset Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/resetProfile.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "responses": {
+ "204": {
+ "description": "OK"
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-independent/profiles/{profileId}/enrollments": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "post": {
+ "description": "Adds enrollments to existing profile.\nIf the minimum number of requested enrollment audios is reached, a voice print is created.\nIf the voice print was created before, it gets recreated from all existing enrollment including the new one.\n\nLimitations:\n* Minimum audio input length per request is **1 second**\n* Maximum audio input length per request is **120 seconds**\n* Minimum total effective speech length (excluding silence and other non-speech frames) for creating a voiceprint is **20 seconds**\n This limitation can be disabled by setting \"ignoreMinLength\" to **true**.\n\n* Maximum total audio input length allowed for creating a voiceprint is **300 seconds**\n* Minimum audio Signal-to-noise ratio (SNR) is **0dB**",
+ "operationId": "TextIndependent_CreateEnrollment",
+ "summary": "Enroll Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/textIndependentCreateEnrollment.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "consumes": [
+ "audio/wav; codecs=audio/pcm"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "ignoreMinLength",
+ "type": "boolean",
+ "description": "If true, a voice print will be created immediately for this profile regardless of how much speech is supplied or stored. Default is false."
+ },
+ {
+ "name": "audioData",
+ "in": "body",
+ "description": "Binary audio file. Supported formats are audio/wav; codecs=audio/pcm. Supports audio up to 5MB.",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "format": "file"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/TiEnrollmentInfo"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Invalid audio length. Maximum allowed length per enrollment request is 120 seconds.\n* InvalidRequest - Invalid audio length. Minimum allowed length per enrollment request is 1 second.\n* InvalidRequest - Invalid audio format. Supported format is 16Khz 16bit Mono PCM.\n* InvalidArgument - Invalid ignoreMinLength parameter value. Valid values are \"true\" and \"false\".\n* InvalidRequest - Audio is too noisy. The minimum allowed Signal-to-noise ratio (SNR) is 0dB.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Audio is too noisy."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden\n* InvalidRequest - Maximum allowed length across all profile enrollments is 300 seconds.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Maximum allowed length across all profile enrollments is 300 seconds."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "409": {
+ "description": "Conflict\n* Conflict - Sending concurrent requests on same profile is not allowed.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "Conflict",
+ "message": "Sending concurrent requests on same profile is not allowed."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "415": {
+ "description": "UnsupportedMediaType - Unsupported media type. Only \"audio/wav; codecs=audio/pcm\" is accepted.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ },
+ "/text-independent/profiles/{profileId}/verify": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/profileIdParam"
+ }
+ ],
+ "post": {
+ "description": "Verifies existing profiles against input audio.\n\nLimitations:\n* Minimum audio input length is **1 second**\n* Maximum audio input length is **120 seconds**\n* Minimum effective speech length (excluding silence and other \"non-speech\" frames) is **4 seconds**\n This limitation can be disabled by setting \"ignoreMinLength\" to **true**.\n* Minimum audio Signal-to-noise ratio (SNR) is **0dB**",
+ "operationId": "TextIndependent_VerifyProfile",
+ "summary": "Verify Profile",
+ "x-ms-examples": {
+ "Successful Query": {
+ "$ref": "./examples/verify.json"
+ }
+ },
+ "tags": [
+ "text-independent"
+ ],
+ "consumes": [
+ "audio/wav; codecs=audio/pcm"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "ignoreMinLength",
+ "type": "boolean",
+ "description": "If true, a voice print will be created immediately for this profile regardless of how much speech is supplied or stored. Default is false."
+ },
+ {
+ "name": "audioData",
+ "in": "body",
+ "description": "Binary audio file. Supported formats are audio/wav; codecs=audio/pcm. Supports audio up to 5MB.",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "format": "file"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/RecognitionInfo"
+ }
+ },
+ "400": {
+ "description": "Bad Request\n* InvalidRequest - Invalid audio length. Maximum allowed length per recognition request is 120 seconds.\n* InvalidRequest - Invalid audio length. Minimum allowed length per recognition request is 1 second.\n* InvalidRequest - Invalid audio format. Supported format is 16Khz 16bit Mono PCM.\n* InvalidArgument - Invalid ignoreMinLength parameter value. Valid values are \"true\" and \"false\".\n* InvalidRequest - Profile is not enrolled.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Profile is not enrolled."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "401": {
+ "$ref": "#/responses/Unauthorized"
+ },
+ "404": {
+ "$ref": "#/responses/NotFound"
+ },
+ "415": {
+ "description": "UnsupportedMediaType - Unsupported media type. Only \"audio/wav; codecs=audio/pcm\" is accepted.",
+ "schema": {
+ "$ref": "#/definitions/Error"
+ },
+ "examples": {
+ "application/json": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "x-ms-error-response": true
+ },
+ "429": {
+ "$ref": "#/responses/RateLimit"
+ },
+ "500": {
+ "$ref": "#/responses/ServerError"
+ }
+ }
+ }
+ }
+ },
+ "tags": []
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/deleteProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/deleteProfile.json
new file mode 100644
index 000000000000..1af07b0b1a4f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/deleteProfile.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f"
+ },
+ "responses": {
+ "204": {
+ "headers": {
+ "Content-Type": "application/json"
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/phrases.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/phrases.json
new file mode 100644
index 000000000000..5bfd15a05c0d
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/phrases.json
@@ -0,0 +1,63 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "locale": "en-US",
+ "Ocp-Apim-Subscription-Key": "{API key}"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": [
+ "my voice is my passport verify me",
+ "my voice is stronger than passwords"
+ ]
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Locale parameter is missing."
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/resetProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/resetProfile.json
new file mode 100644
index 000000000000..83389ad8eb82
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/resetProfile.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f"
+ },
+ "responses": {
+ "204": {
+ "headers": {
+ "Content-Type": "application/json"
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "404": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentCreateEnrollment.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentCreateEnrollment.json
new file mode 100644
index 000000000000..6208e8e8a0d3
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentCreateEnrollment.json
@@ -0,0 +1,115 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "audio/wav; codecs=audio/pcm",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "audioData": "{binary file date}"
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "enrollmentStatus": "Enrolling",
+ "enrollmentsCount": 1,
+ "enrollmentsLength": 1.83,
+ "enrollmentsSpeechLength": 1.35,
+ "remainingEnrollmentsCount": 2,
+ "passPhrase": "my voice is my passport verify me",
+ "audioLength": 1.83,
+ "audioSpeechLength": 1.35
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Audio is too noisy."
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "403": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Maximum allowed length across all profile enrollments is 300 seconds."
+ }
+ }
+ },
+ "404": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "409": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Conflict",
+ "message": "Sending concurrent requests on same profile is not allowed."
+ }
+ }
+ },
+ "415": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentCreateProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentCreateProfile.json
new file mode 100644
index 000000000000..823a2804f5ee
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentCreateProfile.json
@@ -0,0 +1,95 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileInfo": {
+ "locale": "en-us"
+ }
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "locale": "en-US",
+ "enrollmentStatus": "Enrolling",
+ "createdDateTime": "2015-04-23T18:25:43.41Z",
+ "lastUpdatedDateTime": "2015-04-23T18:25:43.41Z",
+ "enrollmentsCount": 0,
+ "enrollmentsLength": 0,
+ "enrollmentsSpeechLength": 0,
+ "remainingEnrollmentsCount": 3,
+ "modelVersion": "2019-12-05"
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Request body is missing."
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "403": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Forbidden",
+ "message": "Maximum allowed number of profiles is 10,000."
+ }
+ }
+ },
+ "415": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'application/JSON' is accepted."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentFetchProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentFetchProfile.json
new file mode 100644
index 000000000000..a21e8bdf6c5a
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentFetchProfile.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "locale": "en-US",
+ "enrollmentStatus": "Enrolling",
+ "createdDateTime": "2015-04-23T18:25:43.41Z",
+ "lastUpdatedDateTime": "2015-04-23T19:34:51.52Z",
+ "enrollmentsCount": 1,
+ "enrollmentsLength": 1.83,
+ "enrollmentsSpeechLength": 1.35,
+ "remainingEnrollmentsCount": 2,
+ "modelVersion": "2019-12-05"
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "404": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentListProfiles.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentListProfiles.json
new file mode 100644
index 000000000000..7126a6fc2a2b
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textDependentListProfiles.json
@@ -0,0 +1,75 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profiles": [
+ {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "locale": "en-US",
+ "enrollmentStatus": "Enrolling",
+ "createdDateTime": "2015-04-23T18:25:43.41Z",
+ "lastUpdatedDateTime": "2015-04-23T19:34:51.52Z",
+ "enrollmentsCount": 1,
+ "enrollmentsLength": 1.83,
+ "enrollmentsSpeechLength": 1.35,
+ "remainingEnrollmentsCount": 2,
+ "modelVersion": "2019-12-05"
+ }
+ ],
+ "@nextLink": "https://{Endpoint}/text-independent/profiles?$top=35&$continuationToken=U21pdGg1QmVuOTk5"
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidArgument",
+ "message": "Invalid $top parameter value. Value should be positive integer in the range [1, 500]"
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentCreateEnrollment.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentCreateEnrollment.json
new file mode 100644
index 000000000000..b7eb28955a51
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentCreateEnrollment.json
@@ -0,0 +1,114 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "audio/wav; codecs=audio/pcm",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "audioData": "{binary file date}"
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "enrollmentStatus": "Enrolling",
+ "enrollmentsCount": 1,
+ "enrollmentsLength": 1.83,
+ "enrollmentsSpeechLength": 1.35,
+ "remainingEnrollmentsSpeechLength": 18.65,
+ "audioLength": 1.83,
+ "audioSpeechLength": 1.35
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Audio is too noisy."
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "403": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Maximum allowed length across all profile enrollments is 300 seconds."
+ }
+ }
+ },
+ "404": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "409": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Conflict",
+ "message": "Sending concurrent requests on same profile is not allowed."
+ }
+ }
+ },
+ "415": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentCreateProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentCreateProfile.json
new file mode 100644
index 000000000000..f20460a77a87
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentCreateProfile.json
@@ -0,0 +1,95 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileInfo": {
+ "locale": "en-us"
+ }
+ },
+ "responses": {
+ "201": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "locale": "en-US",
+ "enrollmentStatus": "Enrolling",
+ "createdDateTime": "2015-04-23T18:25:43.41Z",
+ "lastUpdatedDateTime": "2015-04-23T18:25:43.41Z",
+ "enrollmentsCount": 0,
+ "enrollmentsLength": 0,
+ "enrollmentsSpeechLength": 0,
+ "remainingEnrollmentsSpeechLength": 20,
+ "modelVersion": "2019-12-05"
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Request body is missing."
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "403": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Forbidden",
+ "message": "Maximum allowed number of profiles is 10,000."
+ }
+ }
+ },
+ "415": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'application/JSON' is accepted."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentFetchProfile.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentFetchProfile.json
new file mode 100644
index 000000000000..5ab27b08d95f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentFetchProfile.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "locale": "en-US",
+ "enrollmentStatus": "Enrolling",
+ "createdDateTime": "2015-04-23T18:25:43.41Z",
+ "lastUpdatedDateTime": "2015-04-23T19:34:51.52Z",
+ "enrollmentsCount": 1,
+ "enrollmentsLength": 1.83,
+ "enrollmentsSpeechLength": 1.35,
+ "remainingEnrollmentsSpeechLength": 18.65,
+ "modelVersion": "2019-12-05"
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "404": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentListProfiles.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentListProfiles.json
new file mode 100644
index 000000000000..1e6916cfd8e0
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/textIndependentListProfiles.json
@@ -0,0 +1,75 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "application/json",
+ "Ocp-Apim-Subscription-Key": "{API key}"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "profiles": [
+ {
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "locale": "en-US",
+ "enrollmentStatus": "Enrolling",
+ "createdDateTime": "2015-04-23T18:25:43.41Z",
+ "lastUpdatedDateTime": "2015-04-23T19:34:51.52Z",
+ "enrollmentsCount": 1,
+ "enrollmentsLength": 1.83,
+ "enrollmentsSpeechLength": 1.35,
+ "remainingEnrollmentsSpeechLength": 18.65,
+ "modelVersion": "2019-12-05"
+ }
+ ],
+ "@nextLink": "https://{Endpoint}/text-independent/profiles?$top=35&$continuationToken=U21pdGg1QmVuOTk5"
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidArgument",
+ "message": "Invalid $top parameter value. Value should be positive integer in the range [1, 500]"
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/verify.json b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/verify.json
new file mode 100644
index 000000000000..5a1bf239e46e
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/preview/v2.0/examples/verify.json
@@ -0,0 +1,86 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Content-Type": "audio/wav; codecs=audio/pcm",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "profileId": "49a36324-fc4b-4387-aa06-090cfbf0064f",
+ "audioData": "{binary file date}"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "recognitionResult": "accept",
+ "score": 0.63
+ }
+ },
+ "400": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InvalidRequest",
+ "message": "Profile is not enrolled."
+ }
+ }
+ },
+ "401": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized. Make sure subscription key is included and valid."
+ }
+ }
+ },
+ "404": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "Not Found",
+ "message": "Requested profile doesn't exist"
+ }
+ }
+ },
+ "415": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "UnsupportedMediaType",
+ "message": "Unsupported media type. Only 'audio/wav; codecs=audio/pcm' is accepted."
+ }
+ }
+ },
+ "429": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "RateLimit",
+ "message": "Rate limit is exceeded."
+ }
+ }
+ },
+ "500": {
+ "headers": {
+ "Content-Type": "application/json"
+ },
+ "body": {
+ "error": {
+ "code": "InternalServerError",
+ "message": "Internal Server Error."
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.md b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.md
new file mode 100644
index 000000000000..4a6dcd91654b
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.md
@@ -0,0 +1,92 @@
+# Cognitive Services Speaker Recognition SDKs
+
+> see https://aka.ms/autorest
+
+Configuration for generating Speaker Verification SDK.
+
+``` yaml
+tag: verification_2_0_preview
+add-credentials: true
+openapi-type: data-plane
+```
+
+The current release for the Authoring Endpoint is `verification_2_0_preview`.
+
+# Releases
+
+## verification 2.0
+These settings apply only when `--tag=verification_2_0_preview` is specified on the command line.
+
+``` yaml $(tag) == 'verification_2_0_preview'
+input-file: preview/v2.0/Verification.json
+```
+
+---
+
+# Code Generation
+
+
+## Swagger to SDK
+
+This section describes what SDK should be generated by the automatic system.
+This is not used by Autorest itself.
+
+``` yaml $(swagger-to-sdk)
+swagger-to-sdk:
+ - repo: azure-sdk-for-python
+ - repo: azure-sdk-for-js
+ - repo: azure-sdk-for-node
+```
+
+### CSharp Settings
+These settings apply only when `--csharp` is specified on the command line.
+``` yaml $(csharp)
+csharp:
+ sync-methods: None
+ license-header: MICROSOFT_MIT_NO_VERSION
+ azure-arm: false
+ namespace: Microsoft.Azure.CognitiveServices.speech.speaker.verification
+ output-folder: $(csharp-sdks-folder)/CognitiveServices/speech.speaker.verification/src/Generated
+ clear-output-folder: true
+```
+
+## Java
+
+These settings apply only when `--java` is specified on the command line.
+Please also specify `--azure-libraries-for-java-folder=`.
+
+``` yaml $(java)
+java:
+ azure-arm: true
+ namespace: com.microsoft.azure.cognitiveservices.speech.speaker.verification
+ license-header: MICROSOFT_MIT_NO_CODEGEN
+ payload-flattening-threshold: 1
+ output-folder: $(azure-libraries-for-java-folder)/cognitiveservices/data-plane/speech/speaker/verification
+ with-optional-parameters: true
+ with-single-async-method: true
+```
+
+## Multi-API/Profile support for AutoRest v3 generators
+
+AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
+
+This block is updated by an automatic script. Edits may be lost!
+
+``` yaml $(tag) == 'all-api-versions' /* autogenerated */
+# include the azure profile definitions from the standard location
+require: $(this-folder)/../../../../../profiles/readme.md
+
+# all the input files across all versions
+input-file:
+ - $(this-folder)/preview/v2.0/Verification.json
+
+```
+
+If there are files that should not be in the `all-api-versions` set,
+uncomment the `exclude-file` section below and add the file paths.
+
+``` yaml $(tag) == 'all-api-versions'
+#exclude-file:
+# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
+```
+
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.nodejs.md b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.nodejs.md
new file mode 100644
index 000000000000..d9965af29de6
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.nodejs.md
@@ -0,0 +1,14 @@
+## Node.js
+
+These settings apply only when `--nodejs` is specified on the command line.
+Please also specify `--node-sdks-folder=`.
+
+``` yaml $(nodejs)
+nodejs:
+ package-name: azure-cognitiveservices-speech-speaker-verification
+ output-folder: $(node-sdks-folder)/lib/services/speech/speaker/verification
+ azure-arm: false
+ generate-license-txt: true
+ generate-package-json: true
+ generate-readme-md: true
+```
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.python.md b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.python.md
new file mode 100644
index 000000000000..b5418a87b8b1
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.python.md
@@ -0,0 +1,26 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
+
+``` yaml $(python)
+python-mode: create
+python:
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: azure.cognitiveservices.speech.speaker.verification
+ package-name: azure-cognitiveservices-speech-speaker
+ clear-output-folder: true
+
+```
+``` yaml $(python) && $(python-mode) == 'update'
+python:
+ no-namespace-folders: true
+ output-folder: $(python-sdks-folder)/cognitiveservices/speech/speaker/verification
+```
+``` yaml $(python) && $(python-mode) == 'create'
+python:
+ basic-setup-py: true
+ output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-speech-speaker
+```
diff --git a/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.typescript.md b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.typescript.md
new file mode 100644
index 000000000000..40bebe3609bd
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/SpeakerRecognition/Verification/readme.typescript.md
@@ -0,0 +1,12 @@
+## TypeScript
+
+These settings apply only when `--typescript` is specified on the command line.
+Please also specify `--typescript-sdks-folder=`.
+
+``` yaml $(typescript)
+typescript:
+ package-name: "@azure/cognitiveservices-speaker-verification"
+ output-folder: "$(typescript-sdks-folder)/sdk/cognitiveservices/cognitiveservices-speaker-verification"
+ azure-arm: false
+ generate-metadata: true
+```
diff --git a/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json b/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json
index 675210bab169..0ff15eff3ba9 100644
--- a/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json
+++ b/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json
@@ -734,9 +734,7 @@
"sentiment",
"confidenceScores",
"offset",
- "length",
- "aspects",
- "opinions"
+ "length"
],
"properties": {
"text": {
diff --git a/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json
index c15a98cfd812..6fafff2877ff 100644
--- a/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json
+++ b/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json
@@ -939,9 +939,9 @@
"readOnly": true,
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/definitions/SkuCapability"
},
- "description": "Gets the capabilities of the cognitive services account. Each item indicates a specific feature is supported by this account. The value is read only and for reference only."
+ "description": "Gets the capabilities of the cognitive services account. Each item indicates the capability of a specific feature. The values are read-only and for reference only."
},
"customSubDomainName": {
"type": "string",
@@ -1321,6 +1321,19 @@
}
}
},
+ "SkuCapability": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the SkuCapability."
+ },
+ "value": {
+ "type": "string",
+ "description": "The value of the SkuCapability."
+ }
+ },
+ "description": "SkuCapability indicates the capability of a certain feature."
+ },
"CheckDomainAvailabilityParameter": {
"description": "Check Domain availability parameter.",
"properties": {
diff --git a/specification/common-types/resource-management/v1/privatelinks.json b/specification/common-types/resource-management/v1/privatelinks.json
new file mode 100644
index 000000000000..d6cb94988421
--- /dev/null
+++ b/specification/common-types/resource-management/v1/privatelinks.json
@@ -0,0 +1,174 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "1.0",
+ "title": "Common types"
+ },
+ "paths": {},
+ "definitions": {
+ "PrivateEndpoint": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ARM identifier for Private Endpoint"
+ }
+ },
+ "description": "The Private Endpoint resource."
+ },
+ "PrivateEndpointConnection": {
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProperties",
+ "x-ms-client-flatten": true,
+ "description": "Resource properties."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./types.json#/definitions/Resource"
+ }
+ ],
+ "description": "The Private Endpoint Connection resource."
+ },
+ "PrivateEndpointConnectionProperties": {
+ "properties": {
+ "privateEndpoint": {
+ "$ref": "#/definitions/PrivateEndpoint",
+ "description": "The resource of private end point."
+ },
+ "privateLinkServiceConnectionState": {
+ "$ref": "#/definitions/PrivateLinkServiceConnectionState",
+ "description": "A collection of information about the state of the connection between service consumer and provider."
+ },
+ "provisioningState": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState",
+ "description": "The provisioning state of the private endpoint connection resource."
+ }
+ },
+ "required": [
+ "privateLinkServiceConnectionState"
+ ],
+ "description": "Properties of the PrivateEndpointConnectProperties."
+ },
+ "PrivateLinkServiceConnectionState": {
+ "properties": {
+ "status": {
+ "$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
+ "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
+ },
+ "description": {
+ "type": "string",
+ "description": "The reason for approval/rejection of the connection."
+ },
+ "actionRequired": {
+ "type": "string",
+ "description": "A message indicating if changes on the service provider require any updates on the consumer."
+ }
+ },
+ "description": "A collection of information about the state of the connection between service consumer and provider."
+ },
+ "PrivateEndpointServiceConnectionStatus": {
+ "type": "string",
+ "description": "The private endpoint connection status.",
+ "enum": [
+ "Pending",
+ "Approved",
+ "Rejected"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateEndpointServiceConnectionStatus",
+ "modelAsString": true
+ }
+ },
+ "PrivateEndpointConnectionProvisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The current provisioning state.",
+ "enum": [
+ "Succeeded",
+ "Creating",
+ "Deleting",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateEndpointConnectionProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "PrivateLinkResource": {
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateLinkResourceProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./types.json#/definitions/Resource"
+ }
+ ],
+ "description": "A private link resource"
+ },
+ "PrivateLinkResourceProperties": {
+ "properties": {
+ "groupId": {
+ "description": "The private link resource group id.",
+ "type": "string",
+ "readOnly": true
+ },
+ "requiredMembers": {
+ "description": "The private link resource required member names.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true
+ },
+ "requiredZoneNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The private link resource Private link DNS zone name."
+ }
+ },
+ "description": "Properties of a private link resource."
+ },
+ "PrivateEndpointConnectionListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of private endpoint connections",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ }
+ },
+ "description": "List of private endpoint connection associated with the specified storage account"
+ },
+ "PrivateLinkResourceListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of private link resources",
+ "items": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ }
+ }
+ },
+ "description": "A list of private link resources"
+ }
+ },
+ "parameters": {
+ "PrivateEndpointConnectionName": {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the private endpoint connection associated with the Azure resource",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2015-06-15/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2015-06-15/compute.json
index 66735a54b30d..27547d5699c5 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2015-06-15/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2015-06-15/compute.json
@@ -2460,21 +2460,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2016-03-30/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2016-03-30/compute.json
index 939d08a0e931..83dd89c98d6b 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2016-03-30/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2016-03-30/compute.json
@@ -179,7 +179,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
}
],
"responses": {
@@ -2541,21 +2541,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/compute.json
index 9cb759885ebe..9fbeb9bcab70 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/compute.json
@@ -183,7 +183,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
}
],
"responses": {
@@ -3562,21 +3562,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/ListAvailabilitySetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/ListAvailabilitySetsInASubscription.json
index 996c3b390765..8184ebca23ed 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/ListAvailabilitySetsInASubscription.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-03-30/examples/ListAvailabilitySetsInASubscription.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2017-03-30",
- "$expand": "virtualMachines\\$ref"
+ "$expand": "instanceView"
},
"responses": {
"200": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/compute.json
index 0cb61c92bf74..02566cf61a71 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/compute.json
@@ -254,7 +254,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
}
],
"responses": {
@@ -3968,21 +3968,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/ListAvailabilitySetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/ListAvailabilitySetsInASubscription.json
index d5bb9e943b6d..1d999ce5a8fa 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/ListAvailabilitySetsInASubscription.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2017-12-01/examples/ListAvailabilitySetsInASubscription.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2017-12-01",
- "$expand": "virtualMachines\\$ref"
+ "$expand": "instanceView"
},
"responses": {
"200": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/compute.json
index e0f8125e5df8..9f7169f58aaa 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/compute.json
@@ -251,7 +251,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
}
],
"responses": {
@@ -4079,21 +4079,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/ListAvailabilitySetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/ListAvailabilitySetsInASubscription.json
index 29bb119ff690..c97c80fff2f5 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/ListAvailabilitySetsInASubscription.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-04-01/examples/ListAvailabilitySetsInASubscription.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2018-04-01",
- "$expand": "virtualMachines\\$ref"
+ "$expand": "instanceView"
},
"responses": {
"200": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json
index 6ec3b585ce05..acdb3a9dc59d 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json
@@ -251,7 +251,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
}
],
"responses": {
@@ -4198,21 +4198,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListAvailabilitySetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListAvailabilitySetsInASubscription.json
index 217c0f707840..fc595d9a5ab8 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListAvailabilitySetsInASubscription.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListAvailabilitySetsInASubscription.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2018-06-01",
- "$expand": "virtualMachines\\$ref"
+ "$expand": "instanceView"
},
"responses": {
"200": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json
index 11aeaedc3244..429401d44d5f 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json
@@ -251,7 +251,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
}
],
"responses": {
@@ -4201,21 +4201,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailabilitySetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailabilitySetsInASubscription.json
index bd9cb9e4e140..cb52806da595 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailabilitySetsInASubscription.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailabilitySetsInASubscription.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2018-10-01",
- "$expand": "virtualMachines\\$ref"
+ "$expand": "instanceView"
},
"responses": {
"200": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json
index 6ab37f15f568..d7d39de3f591 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json
@@ -251,7 +251,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
}
],
"responses": {
@@ -4405,6 +4405,9 @@
},
"description": "The input object for ConvertToSinglePlacementGroup API."
},
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
@@ -4807,21 +4810,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListAvailabilitySetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListAvailabilitySetsInASubscription.json
index d7c2558571ef..f7b93ed9e9b9 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListAvailabilitySetsInASubscription.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListAvailabilitySetsInASubscription.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2019-03-01",
- "$expand": "virtualMachines\\$ref"
+ "$expand": "instanceView"
},
"responses": {
"200": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-04-01/skus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-04-01/skus.json
index e579007e9eaa..c568990135eb 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-04-01/skus.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-04-01/skus.json
@@ -54,7 +54,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply on the operation."
+ "description": "The filter to apply on the operation. Only **location** filter is supported currently."
}
],
"responses": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/compute.json
index b125a7a590f1..f0df5077fd9c 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/compute.json
@@ -251,7 +251,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
}
],
"responses": {
@@ -4560,6 +4560,9 @@
},
"description": "The input object for ConvertToSinglePlacementGroup API."
},
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
@@ -5313,21 +5316,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListAvailabilitySetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListAvailabilitySetsInASubscription.json
index 719e9496ee1e..a76d7a10ce71 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListAvailabilitySetsInASubscription.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListAvailabilitySetsInASubscription.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2019-07-01",
- "$expand": "virtualMachines\\$ref"
+ "$expand": "instanceView"
},
"responses": {
"200": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json
index 271186b61e9a..ad40111669f1 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json
@@ -2223,9 +2223,6 @@
"description": "The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user image."
}
},
- "required": [
- "id"
- ],
"description": "The gallery artifact version source."
},
"GalleryOSDiskImage": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/compute.json
index dbeecd29ccce..8cc4586990f8 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/compute.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/compute.json
@@ -251,7 +251,7 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
}
],
"responses": {
@@ -4902,6 +4902,9 @@
},
"description": "The input object for ConvertToSinglePlacementGroup API."
},
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
@@ -5704,21 +5707,21 @@
"in": "query",
"required": false,
"type": "string",
- "description": "The filter to apply to the operation."
+ "description": "The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'."
},
{
"name": "$select",
"in": "query",
"required": false,
"type": "string",
- "description": "The list parameters."
+ "description": "The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'."
},
{
"name": "$expand",
"in": "query",
"required": false,
"type": "string",
- "description": "The expand expression to apply to the operation."
+ "description": "The expand expression to apply to the operation. Allowed values are 'instanceView'."
},
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -9233,14 +9236,14 @@
"items": {
"$ref": "#/definitions/SubResource"
},
- "description": "Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer."
+ "description": "Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer."
},
"loadBalancerInboundNatPools": {
"type": "array",
"items": {
"$ref": "#/definitions/SubResource"
},
- "description": "Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer"
+ "description": "Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer."
}
},
"description": "Describes a virtual machine scale set network profile's IP configuration properties."
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/ListAvailabilitySetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/ListAvailabilitySetsInASubscription.json
index 8a8af8f9e5d2..cd51b4aa7948 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/ListAvailabilitySetsInASubscription.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/ListAvailabilitySetsInASubscription.json
@@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"api-version": "2019-12-01",
- "$expand": "virtualMachines\\$ref"
+ "$expand": "instanceView"
},
"responses": {
"200": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/gallery.json
index e9364862f12f..870eff714f3d 100644
--- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/gallery.json
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/gallery.json
@@ -2278,9 +2278,6 @@
"description": "The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user image."
}
},
- "required": [
- "id"
- ],
"description": "The gallery artifact version source."
},
"GalleryOSDiskImage": {
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/disk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/disk.json
new file mode 100644
index 000000000000..8871f4d6f77e
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/disk.json
@@ -0,0 +1,2641 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "DiskResourceProviderClient",
+ "description": "The Disk Resource Provider Client.",
+ "version": "2020-05-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}": {
+ "put": {
+ "tags": [
+ "Disks"
+ ],
+ "operationId": "Disks_CreateOrUpdate",
+ "description": "Creates or updates a disk.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "disk",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Disk"
+ },
+ "description": "Disk object supplied in the body of the Put disk operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Disk"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "schema": {
+ "$ref": "#/definitions/Disk"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create an empty managed disk.": {
+ "$ref": "./examples/CreateAnEmptyManagedDisk.json"
+ },
+ "Create a managed disk from a platform image.": {
+ "$ref": "./examples/CreateAManagedDiskFromAPlatformImage.json"
+ },
+ "Create a managed disk from an existing managed disk in the same or different subscription.": {
+ "$ref": "./examples/CreateAManagedDiskFromAnExistingManagedDisk.json"
+ },
+ "Create a managed disk by importing an unmanaged blob from the same subscription.": {
+ "$ref": "./examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.json"
+ },
+ "Create a managed disk by importing an unmanaged blob from a different subscription.": {
+ "$ref": "./examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.json"
+ },
+ "Create a managed disk by copying a snapshot.": {
+ "$ref": "./examples/CreateAManagedDiskByCopyingASnapshot.json"
+ },
+ "Create a managed upload disk.": {
+ "$ref": "./examples/CreateAManagedUploadDisk.json"
+ },
+ "Create a managed disk and associate with disk access resource.": {
+ "$ref": "./examples/CreateAManagedDiskWithDiskAccess.json"
+ },
+ "Create a managed disk and associate with disk encryption set.": {
+ "$ref": "./examples/CreateAManagedDiskWithDiskEncryptionSet.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "Disks"
+ ],
+ "operationId": "Disks_Update",
+ "description": "Updates (patches) a disk.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "disk",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DiskUpdate"
+ },
+ "description": "Disk object supplied in the body of the Patch disk operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Disk"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "schema": {
+ "$ref": "#/definitions/Disk"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Update managed disk to remove disk access resource association.": {
+ "$ref": "./examples/UpdateAManagedDiskToRemoveDiskAccess.json"
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "Disks"
+ ],
+ "operationId": "Disks_Get",
+ "description": "Gets information about a disk.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Disk"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get information about a managed disk.": {
+ "$ref": "./examples/GetInformationAboutAManagedDisk.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Disks"
+ ],
+ "operationId": "Disks_Delete",
+ "description": "Deletes a disk.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "If the disk is deleted, this is an expected error code."
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks": {
+ "get": {
+ "tags": [
+ "Disks"
+ ],
+ "operationId": "Disks_ListByResourceGroup",
+ "description": "Lists all the disks under a resource group.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskList"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all managed disks in a resource group.": {
+ "$ref": "./examples/ListManagedDisksInAResourceGroup.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks": {
+ "get": {
+ "tags": [
+ "Disks"
+ ],
+ "operationId": "Disks_List",
+ "description": "Lists all the disks under a subscription.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskList"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all managed disks in a subscription.": {
+ "$ref": "./examples/ListManagedDisksInASubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess": {
+ "post": {
+ "tags": [
+ "Disks"
+ ],
+ "operationId": "Disks_GrantAccess",
+ "description": "Grants access to a disk.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "grantAccessData",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GrantAccessData"
+ },
+ "description": "Access data object supplied in the body of the get disk access operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AccessUri"
+ }
+ },
+ "202": {
+ "description": "Accepted"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess": {
+ "post": {
+ "tags": [
+ "Disks"
+ ],
+ "operationId": "Disks_RevokeAccess",
+ "description": "Revokes access to a disk.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}": {
+ "put": {
+ "tags": [
+ "Snapshots"
+ ],
+ "operationId": "Snapshots_CreateOrUpdate",
+ "description": "Creates or updates a snapshot.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SnapshotNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "snapshot",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Snapshot"
+ },
+ "description": "Snapshot object supplied in the body of the Put disk operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Snapshot"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "schema": {
+ "$ref": "#/definitions/Snapshot"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create a snapshot from an existing snapshot in the same or a different subscription.": {
+ "$ref": "./examples/CreateASnapshotFromAnExistingSnapshot.json"
+ },
+ "Create a snapshot by importing an unmanaged blob from the same subscription.": {
+ "$ref": "./examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json"
+ },
+ "Create a snapshot by importing an unmanaged blob from a different subscription.": {
+ "$ref": "./examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "Snapshots"
+ ],
+ "operationId": "Snapshots_Update",
+ "description": "Updates (patches) a snapshot.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SnapshotNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "snapshot",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SnapshotUpdate"
+ },
+ "description": "Snapshot object supplied in the body of the Patch snapshot operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Snapshot"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "schema": {
+ "$ref": "#/definitions/Snapshot"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "Snapshots"
+ ],
+ "operationId": "Snapshots_Get",
+ "description": "Gets information about a snapshot.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SnapshotNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Snapshot"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get information about a snapshot.": {
+ "$ref": "./examples/GetInformationAboutASnapshot.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Snapshots"
+ ],
+ "operationId": "Snapshots_Delete",
+ "description": "Deletes a snapshot.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SnapshotNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "If the snapshot is deleted, this is an expected error code."
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots": {
+ "get": {
+ "tags": [
+ "Snapshots"
+ ],
+ "operationId": "Snapshots_ListByResourceGroup",
+ "description": "Lists snapshots under a resource group.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SnapshotList"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all snapshots in a resource group.": {
+ "$ref": "./examples/ListSnapshotsInAResourceGroup.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots": {
+ "get": {
+ "tags": [
+ "Snapshots"
+ ],
+ "operationId": "Snapshots_List",
+ "description": "Lists snapshots under a subscription.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SnapshotList"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all snapshots in a subscription.": {
+ "$ref": "./examples/ListSnapshotsInASubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess": {
+ "post": {
+ "tags": [
+ "Snapshots"
+ ],
+ "operationId": "Snapshots_GrantAccess",
+ "description": "Grants access to a snapshot.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SnapshotNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "grantAccessData",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GrantAccessData"
+ },
+ "description": "Access data object supplied in the body of the get snapshot access operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AccessUri"
+ }
+ },
+ "202": {
+ "description": "Accepted"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess": {
+ "post": {
+ "tags": [
+ "Snapshots"
+ ],
+ "operationId": "Snapshots_RevokeAccess",
+ "description": "Revokes access to a snapshot.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/SnapshotNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}": {
+ "put": {
+ "tags": [
+ "DiskEncryptionSets"
+ ],
+ "operationId": "DiskEncryptionSets_CreateOrUpdate",
+ "description": "Creates or updates a disk encryption set",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskEncryptionSetNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "diskEncryptionSet",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DiskEncryptionSet"
+ },
+ "description": "disk encryption set object supplied in the body of the Put disk encryption set operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskEncryptionSet"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "schema": {
+ "$ref": "#/definitions/DiskEncryptionSet"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create a disk encryption set.": {
+ "$ref": "./examples/CreateADiskEncryptionSet.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "DiskEncryptionSets"
+ ],
+ "operationId": "DiskEncryptionSets_Update",
+ "description": "Updates (patches) a disk encryption set.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskEncryptionSetNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "diskEncryptionSet",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DiskEncryptionSetUpdate"
+ },
+ "description": "disk encryption set object supplied in the body of the Patch disk encryption set operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskEncryptionSet"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "schema": {
+ "$ref": "#/definitions/DiskEncryptionSet"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update a disk encryption set.": {
+ "$ref": "./examples/UpdateADiskEncryptionSet.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "DiskEncryptionSets"
+ ],
+ "operationId": "DiskEncryptionSets_Get",
+ "description": "Gets information about a disk encryption set.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskEncryptionSetNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskEncryptionSet"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get information about a disk encryption set.": {
+ "$ref": "./examples/GetInformationAboutADiskEncryptionSet.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "DiskEncryptionSets"
+ ],
+ "operationId": "DiskEncryptionSets_Delete",
+ "description": "Deletes a disk encryption set.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskEncryptionSetNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "If the disk encryption set is already deleted, this is an expected error code."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete a disk encryption set.": {
+ "$ref": "./examples/DeleteADiskEncryptionSet.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets": {
+ "get": {
+ "tags": [
+ "DiskEncryptionSets"
+ ],
+ "operationId": "DiskEncryptionSets_ListByResourceGroup",
+ "description": "Lists all the disk encryption sets under a resource group.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskEncryptionSetList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all disk encryption sets in a resource group.": {
+ "$ref": "./examples/ListDiskEncryptionSetsInAResourceGroup.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets": {
+ "get": {
+ "tags": [
+ "DiskEncryptionSets"
+ ],
+ "operationId": "DiskEncryptionSets_List",
+ "description": "Lists all the disk encryption sets under a subscription.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskEncryptionSetList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all disk encryption sets in a subscription.": {
+ "$ref": "./examples/ListDiskEncryptionSetsInASubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}": {
+ "put": {
+ "tags": [
+ "DiskAccesses"
+ ],
+ "operationId": "DiskAccesses_CreateOrUpdate",
+ "description": "Creates or updates a disk access resource",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskAccessNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "diskAccess",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DiskAccess"
+ },
+ "description": "disk access object supplied in the body of the Put disk access operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskAccess"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "schema": {
+ "$ref": "#/definitions/DiskAccess"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create a disk access resource.": {
+ "$ref": "./examples/CreateADiskAccess.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "DiskAccesses"
+ ],
+ "operationId": "DiskAccesses_Update",
+ "description": "Updates (patches) a disk access resource.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskAccessNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "diskAccess",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DiskAccessUpdate"
+ },
+ "description": "disk access object supplied in the body of the Patch disk access operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskAccess"
+ }
+ },
+ "202": {
+ "description": "Accepted",
+ "schema": {
+ "$ref": "#/definitions/DiskAccess"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update a disk access resource.": {
+ "$ref": "./examples/UpdateADiskAccess.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "DiskAccesses"
+ ],
+ "operationId": "DiskAccesses_Get",
+ "description": "Gets information about a disk access resource.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskAccessNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskAccess"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get information about a disk access resource.": {
+ "$ref": "./examples/GetInformationAboutADiskAccess.json"
+ },
+ "Get information about a disk access resource with private endpoints.": {
+ "$ref": "./examples/GetInformationAboutADiskAccessWithPrivateEndpoints.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "DiskAccesses"
+ ],
+ "operationId": "DiskAccesses_Delete",
+ "description": "Deletes a disk access resource.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskAccessNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "If the disk access resource is already deleted, this is an expected error code."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete a disk access resource.": {
+ "$ref": "./examples/DeleteADiskAccess.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses": {
+ "get": {
+ "tags": [
+ "DiskAccesses"
+ ],
+ "operationId": "DiskAccesses_ListByResourceGroup",
+ "description": "Lists all the disk access resources under a resource group.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskAccessList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all disk access resources in a resource group.": {
+ "$ref": "./examples/ListDiskAccessesInAResourceGroup.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses": {
+ "get": {
+ "tags": [
+ "DiskAccesses"
+ ],
+ "operationId": "DiskAccesses_List",
+ "description": "Lists all the disk access resources under a subscription.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiskAccessList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all disk access resources in a subscription.": {
+ "$ref": "./examples/ListDiskAccessesInASubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources": {
+ "get": {
+ "tags": [
+ "DiskAccesses"
+ ],
+ "operationId": "DiskAccesses_GetPrivateLinkResources",
+ "description": "Gets the private link resources possible under disk access resource",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/DiskAccessNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PrivateLinkResourceListResult"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all possible private link resources under disk access resource.": {
+ "$ref": "./examples/GetDiskAccessPrivateLinkResources.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"
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "required": [
+ "location"
+ ],
+ "x-ms-azure-resource": true
+ },
+ "Disk": {
+ "properties": {
+ "managedBy": {
+ "readOnly": true,
+ "type": "string",
+ "description": "A relative URI containing the ID of the VM that has the disk attached."
+ },
+ "managedByExtended": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of relative URIs containing the IDs of the VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs."
+ },
+ "sku": {
+ "$ref": "#/definitions/DiskSku"
+ },
+ "zones": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The Logical zone list for Disk."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DiskProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "description": "Disk resource."
+ },
+ "DiskUpdate": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DiskUpdateProperties"
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ },
+ "sku": {
+ "$ref": "#/definitions/DiskSku"
+ }
+ },
+ "description": "Disk update resource."
+ },
+ "DiskList": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Disk"
+ },
+ "description": "A list of disks."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The uri to fetch the next page of disks. Call ListNext() with this to fetch the next page of disks."
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "description": "The List Disks operation response."
+ },
+ "DiskSku": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "enum": [
+ "Standard_LRS",
+ "Premium_LRS",
+ "StandardSSD_LRS",
+ "UltraSSD_LRS"
+ ],
+ "x-ms-enum": {
+ "name": "DiskStorageAccountTypes",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Standard_LRS",
+ "description": "Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access."
+ },
+ {
+ "value": "Premium_LRS",
+ "description": "Premium SSD locally redundant storage. Best for production and performance sensitive workloads."
+ },
+ {
+ "value": "StandardSSD_LRS",
+ "description": "Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test."
+ },
+ {
+ "value": "UltraSSD_LRS",
+ "description": "Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads."
+ }
+ ]
+ },
+ "description": "The sku name."
+ },
+ "tier": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The sku tier."
+ }
+ },
+ "description": "The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or UltraSSD_LRS."
+ },
+ "SnapshotSku": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "enum": [
+ "Standard_LRS",
+ "Premium_LRS",
+ "Standard_ZRS"
+ ],
+ "x-ms-enum": {
+ "name": "SnapshotStorageAccountTypes",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Standard_LRS",
+ "description": "Standard HDD locally redundant storage"
+ },
+ {
+ "value": "Premium_LRS",
+ "description": "Premium SSD locally redundant storage"
+ },
+ {
+ "value": "Standard_ZRS",
+ "description": "Standard zone redundant storage"
+ }
+ ]
+ },
+ "description": "The sku name."
+ },
+ "tier": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The sku tier."
+ }
+ },
+ "description": "The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS."
+ },
+ "DiskProperties": {
+ "properties": {
+ "timeCreated": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the disk was created."
+ },
+ "osType": {
+ "type": "string",
+ "description": "The Operating System type.",
+ "enum": [
+ "Windows",
+ "Linux"
+ ],
+ "x-ms-enum": {
+ "name": "OperatingSystemTypes",
+ "modelAsString": false
+ }
+ },
+ "hyperVGeneration": {
+ "type": "string",
+ "description": "The hypervisor generation of the Virtual Machine. Applicable to OS disks only.",
+ "enum": [
+ "V1",
+ "V2"
+ ],
+ "x-ms-enum": {
+ "name": "HyperVGeneration",
+ "modelAsString": true
+ }
+ },
+ "creationData": {
+ "$ref": "#/definitions/CreationData",
+ "description": "Disk source information. CreationData information cannot be changed after the disk has been created."
+ },
+ "diskSizeGB": {
+ "type": "integer",
+ "format": "int32",
+ "description": "If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size."
+ },
+ "diskSizeBytes": {
+ "type": "integer",
+ "format": "int64",
+ "readOnly": true,
+ "description": "The size of the disk in bytes. This field is read only."
+ },
+ "uniqueId": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Unique Guid identifying the resource."
+ },
+ "encryptionSettingsCollection": {
+ "$ref": "#/definitions/EncryptionSettingsCollection",
+ "description": "Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot."
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The disk provisioning state."
+ },
+ "diskIOPSReadWrite": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes."
+ },
+ "diskMBpsReadWrite": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10."
+ },
+ "diskIOPSReadOnly": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes."
+ },
+ "diskMBpsReadOnly": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10."
+ },
+ "diskState": {
+ "type": "string",
+ "description": "The state of the disk.",
+ "readOnly": true,
+ "enum": [
+ "Unattached",
+ "Attached",
+ "Reserved",
+ "ActiveSAS",
+ "ReadyToUpload",
+ "ActiveUpload"
+ ],
+ "x-ms-enum": {
+ "name": "DiskState",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Unattached",
+ "description": "The disk is not being used and can be attached to a VM."
+ },
+ {
+ "value": "Attached",
+ "description": "The disk is currently mounted to a running VM."
+ },
+ {
+ "value": "Reserved",
+ "description": "The disk is mounted to a stopped-deallocated VM"
+ },
+ {
+ "value": "ActiveSAS",
+ "description": "The disk currently has an Active SAS Uri associated with it."
+ },
+ {
+ "value": "ReadyToUpload",
+ "description": "A disk is ready to be created by upload by requesting a write token."
+ },
+ {
+ "value": "ActiveUpload",
+ "description": "A disk is created for upload and a write token has been issued for uploading to it."
+ }
+ ]
+ }
+ },
+ "encryption": {
+ "$ref": "#/definitions/Encryption",
+ "description": "Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys."
+ },
+ "maxShares": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time."
+ },
+ "shareInfo": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ShareInfoElement"
+ },
+ "description": "Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs."
+ },
+ "networkAccessPolicy": {
+ "$ref": "#/definitions/NetworkAccessPolicy"
+ },
+ "diskAccessId": {
+ "type": "string",
+ "description": "ARM id of the DiskAccess resource for using private endpoints on disks."
+ }
+ },
+ "required": [
+ "creationData"
+ ],
+ "description": "Disk resource properties."
+ },
+ "SnapshotProperties": {
+ "properties": {
+ "timeCreated": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the snapshot was created."
+ },
+ "osType": {
+ "type": "string",
+ "description": "The Operating System type.",
+ "enum": [
+ "Windows",
+ "Linux"
+ ],
+ "x-ms-enum": {
+ "name": "OperatingSystemTypes",
+ "modelAsString": false
+ }
+ },
+ "hyperVGeneration": {
+ "type": "string",
+ "description": "The hypervisor generation of the Virtual Machine. Applicable to OS disks only.",
+ "enum": [
+ "V1",
+ "V2"
+ ],
+ "x-ms-enum": {
+ "name": "HyperVGeneration",
+ "modelAsString": true
+ }
+ },
+ "creationData": {
+ "$ref": "#/definitions/CreationData",
+ "description": "Disk source information. CreationData information cannot be changed after the disk has been created."
+ },
+ "diskSizeGB": {
+ "type": "integer",
+ "format": "int32",
+ "description": "If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size."
+ },
+ "diskSizeBytes": {
+ "type": "integer",
+ "format": "int64",
+ "readOnly": true,
+ "description": "The size of the disk in bytes. This field is read only."
+ },
+ "uniqueId": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Unique Guid identifying the resource."
+ },
+ "encryptionSettingsCollection": {
+ "$ref": "#/definitions/EncryptionSettingsCollection",
+ "description": "Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot."
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The disk provisioning state."
+ },
+ "incremental": {
+ "type": "boolean",
+ "description": "Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed."
+ },
+ "encryption": {
+ "$ref": "#/definitions/Encryption",
+ "description": "Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys."
+ },
+ "networkAccessPolicy": {
+ "$ref": "#/definitions/NetworkAccessPolicy"
+ },
+ "diskAccessId": {
+ "type": "string",
+ "description": "ARM id of the DiskAccess resource for using private endpoints on disks."
+ }
+ },
+ "required": [
+ "creationData"
+ ],
+ "description": "Snapshot resource properties."
+ },
+ "ShareInfoElement": {
+ "properties": {
+ "vmUri": {
+ "readOnly": true,
+ "type": "string",
+ "description": "A relative URI containing the ID of the VM that has the disk attached."
+ }
+ }
+ },
+ "EncryptionSetProperties": {
+ "properties": {
+ "encryptionType": {
+ "$ref": "#/definitions/EncryptionType"
+ },
+ "activeKey": {
+ "$ref": "#/definitions/KeyVaultAndKeyReference",
+ "description": "The key vault key which is currently used by this disk encryption set."
+ },
+ "previousKeys": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/KeyVaultAndKeyReference"
+ },
+ "description": "A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is in progress. It will be empty if there is no ongoing key rotation."
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The disk encryption set provisioning state."
+ }
+ }
+ },
+ "EncryptionSettingsCollection": {
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "description": "Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged."
+ },
+ "encryptionSettings": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EncryptionSettingsElement"
+ },
+ "description": "A collection of encryption settings, one for each disk volume."
+ },
+ "encryptionSettingsVersion": {
+ "type": "string",
+ "description": "Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption."
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "description": "Encryption settings for disk or snapshot"
+ },
+ "EncryptionSettingsElement": {
+ "properties": {
+ "diskEncryptionKey": {
+ "$ref": "#/definitions/KeyVaultAndSecretReference",
+ "description": "Key Vault Secret Url and vault id of the disk encryption key"
+ },
+ "keyEncryptionKey": {
+ "$ref": "#/definitions/KeyVaultAndKeyReference",
+ "description": "Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key."
+ }
+ },
+ "description": "Encryption settings for one disk volume."
+ },
+ "KeyVaultAndSecretReference": {
+ "properties": {
+ "sourceVault": {
+ "$ref": "#/definitions/SourceVault",
+ "description": "Resource id of the KeyVault containing the key or secret"
+ },
+ "secretUrl": {
+ "type": "string",
+ "description": "Url pointing to a key or secret in KeyVault"
+ }
+ },
+ "required": [
+ "secretUrl",
+ "sourceVault"
+ ],
+ "description": "Key Vault Secret Url and vault id of the encryption key "
+ },
+ "KeyVaultAndKeyReference": {
+ "properties": {
+ "sourceVault": {
+ "$ref": "#/definitions/SourceVault",
+ "description": "Resource id of the KeyVault containing the key or secret"
+ },
+ "keyUrl": {
+ "type": "string",
+ "description": "Url pointing to a key or secret in KeyVault"
+ }
+ },
+ "required": [
+ "keyUrl",
+ "sourceVault"
+ ],
+ "description": "Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey"
+ },
+ "SourceVault": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource Id"
+ }
+ },
+ "description": "The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"
+ },
+ "EncryptionType": {
+ "type": "string",
+ "description": "The type of key used to encrypt the data of the disk.",
+ "enum": [
+ "EncryptionAtRestWithPlatformKey",
+ "EncryptionAtRestWithCustomerKey",
+ "EncryptionAtRestWithPlatformAndCustomerKeys"
+ ],
+ "x-ms-enum": {
+ "name": "EncryptionType",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "EncryptionAtRestWithPlatformKey",
+ "description": "Disk is encrypted at rest with Platform managed key. It is the default encryption type."
+ },
+ {
+ "value": "EncryptionAtRestWithCustomerKey",
+ "description": "Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer."
+ },
+ {
+ "value": "EncryptionAtRestWithPlatformAndCustomerKeys",
+ "description": "Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed."
+ }
+ ]
+ }
+ },
+ "Encryption": {
+ "properties": {
+ "diskEncryptionSetId": {
+ "type": "string",
+ "description": "ResourceId of the disk encryption set to use for enabling encryption at rest."
+ },
+ "type": {
+ "$ref": "#/definitions/EncryptionType"
+ }
+ },
+ "description": "Encryption at rest settings for disk or snapshot"
+ },
+ "NetworkAccessPolicy": {
+ "type": "string",
+ "description": "Policy for accessing the disk via network.",
+ "enum": [
+ "AllowAll",
+ "AllowPrivate",
+ "DenyAll"
+ ],
+ "x-ms-enum": {
+ "name": "NetworkAccessPolicy",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "AllowAll",
+ "description": "The disk can be exported or uploaded to from any network."
+ },
+ {
+ "value": "AllowPrivate",
+ "description": "The disk can be exported or uploaded to using a DiskAccess resource's private endpoints."
+ },
+ {
+ "value": "DenyAll",
+ "description": "The disk cannot be exported."
+ }
+ ]
+ }
+ },
+ "DiskUpdateProperties": {
+ "properties": {
+ "osType": {
+ "type": "string",
+ "description": "the Operating System type.",
+ "enum": [
+ "Windows",
+ "Linux"
+ ],
+ "x-ms-enum": {
+ "name": "OperatingSystemTypes",
+ "modelAsString": false
+ }
+ },
+ "diskSizeGB": {
+ "type": "integer",
+ "format": "int32",
+ "description": "If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size."
+ },
+ "encryptionSettingsCollection": {
+ "$ref": "#/definitions/EncryptionSettingsCollection",
+ "description": "Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot."
+ },
+ "diskIOPSReadWrite": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes."
+ },
+ "diskMBpsReadWrite": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10."
+ },
+ "diskIOPSReadOnly": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes."
+ },
+ "diskMBpsReadOnly": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10."
+ },
+ "maxShares": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time."
+ },
+ "encryption": {
+ "$ref": "#/definitions/Encryption",
+ "description": "Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys."
+ },
+ "networkAccessPolicy": {
+ "$ref": "#/definitions/NetworkAccessPolicy"
+ },
+ "diskAccessId": {
+ "type": "string",
+ "description": "ARM id of the DiskAccess resource for using private endpoints on disks."
+ }
+ },
+ "description": "Disk resource update properties."
+ },
+ "SnapshotUpdateProperties": {
+ "properties": {
+ "osType": {
+ "type": "string",
+ "description": "the Operating System type.",
+ "enum": [
+ "Windows",
+ "Linux"
+ ],
+ "x-ms-enum": {
+ "name": "OperatingSystemTypes",
+ "modelAsString": false
+ }
+ },
+ "diskSizeGB": {
+ "type": "integer",
+ "format": "int32",
+ "description": "If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size."
+ },
+ "encryptionSettingsCollection": {
+ "$ref": "#/definitions/EncryptionSettingsCollection",
+ "description": "Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot."
+ },
+ "encryption": {
+ "$ref": "#/definitions/Encryption",
+ "description": "Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys."
+ },
+ "networkAccessPolicy": {
+ "$ref": "#/definitions/NetworkAccessPolicy"
+ },
+ "diskAccessId": {
+ "type": "string",
+ "description": "ARM id of the DiskAccess resource for using private endpoints on disks."
+ }
+ },
+ "description": "Snapshot resource update properties."
+ },
+ "DiskEncryptionSetUpdateProperties": {
+ "properties": {
+ "activeKey": {
+ "$ref": "#/definitions/KeyVaultAndKeyReference"
+ }
+ },
+ "description": "disk encryption set resource update properties."
+ },
+ "CreationData": {
+ "properties": {
+ "createOption": {
+ "type": "string",
+ "enum": [
+ "Empty",
+ "Attach",
+ "FromImage",
+ "Import",
+ "Copy",
+ "Restore",
+ "Upload"
+ ],
+ "x-ms-enum": {
+ "name": "DiskCreateOption",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Empty",
+ "description": "Create an empty data disk of a size given by diskSizeGB."
+ },
+ {
+ "value": "Attach",
+ "description": "Disk will be attached to a VM."
+ },
+ {
+ "value": "FromImage",
+ "description": "Create a new disk from a platform image specified by the given imageReference or galleryImageReference."
+ },
+ {
+ "value": "Import",
+ "description": "Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId."
+ },
+ {
+ "value": "Copy",
+ "description": "Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId."
+ },
+ {
+ "value": "Restore",
+ "description": "Create a new disk by copying from a backup recovery point."
+ },
+ {
+ "value": "Upload",
+ "description": "Create a new disk by obtaining a write token and using it to directly upload the contents of the disk."
+ }
+ ]
+ },
+ "description": "This enumerates the possible sources of a disk's creation."
+ },
+ "storageAccountId": {
+ "type": "string",
+ "description": "Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk."
+ },
+ "imageReference": {
+ "$ref": "#/definitions/ImageDiskReference",
+ "description": "Disk source information."
+ },
+ "galleryImageReference": {
+ "$ref": "#/definitions/ImageDiskReference",
+ "description": "Required if creating from a Gallery Image. The id of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk."
+ },
+ "sourceUri": {
+ "type": "string",
+ "description": "If createOption is Import, this is the URI of a blob to be imported into a managed disk."
+ },
+ "sourceResourceId": {
+ "type": "string",
+ "description": "If createOption is Copy, this is the ARM id of the source snapshot or disk."
+ },
+ "sourceUniqueId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "If this field is set, this is the unique id identifying the source of this resource."
+ },
+ "uploadSizeBytes": {
+ "type": "integer",
+ "format": "int64",
+ "description": "If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer)."
+ }
+ },
+ "required": [
+ "createOption"
+ ],
+ "description": "Data used when creating a disk."
+ },
+ "ImageDiskReference": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "A relative uri containing either a Platform Image Repository or user image reference."
+ },
+ "lun": {
+ "type": "integer",
+ "format": "int32",
+ "description": "If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null."
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "description": "The source image used for creating the disk."
+ },
+ "GrantAccessData": {
+ "properties": {
+ "access": {
+ "type": "string",
+ "enum": [
+ "None",
+ "Read",
+ "Write"
+ ],
+ "x-ms-enum": {
+ "name": "AccessLevel",
+ "modelAsString": true
+ }
+ },
+ "durationInSeconds": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Time duration in seconds until the SAS access expires."
+ }
+ },
+ "required": [
+ "access",
+ "durationInSeconds"
+ ],
+ "description": "Data used for requesting a SAS."
+ },
+ "AccessUri": {
+ "properties": {
+ "accessSAS": {
+ "readOnly": true,
+ "type": "string",
+ "description": "A SAS uri for accessing a disk."
+ }
+ },
+ "description": "A disk access SAS uri."
+ },
+ "Snapshot": {
+ "properties": {
+ "managedBy": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Unused. Always Null."
+ },
+ "sku": {
+ "$ref": "#/definitions/SnapshotSku"
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/SnapshotProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "description": "Snapshot resource."
+ },
+ "SnapshotUpdate": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/SnapshotUpdateProperties"
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ },
+ "sku": {
+ "$ref": "#/definitions/SnapshotSku"
+ }
+ },
+ "description": "Snapshot update resource."
+ },
+ "SnapshotList": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Snapshot"
+ },
+ "description": "A list of snapshots."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots."
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "description": "The List Snapshots operation response."
+ },
+ "EncryptionSetIdentity": {
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "SystemAssigned"
+ ],
+ "x-ms-enum": {
+ "name": "DiskEncryptionSetIdentityType",
+ "modelAsString": true
+ },
+ "description": "The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported."
+ },
+ "principalId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity"
+ },
+ "tenantId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity"
+ }
+ },
+ "description": "The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks."
+ },
+ "DiskEncryptionSet": {
+ "properties": {
+ "identity": {
+ "$ref": "#/definitions/EncryptionSetIdentity"
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/EncryptionSetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "description": "disk encryption set resource."
+ },
+ "DiskEncryptionSetUpdate": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DiskEncryptionSetUpdateProperties"
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "description": "disk encryption set update resource."
+ },
+ "DiskEncryptionSetList": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DiskEncryptionSet"
+ },
+ "description": "A list of disk encryption sets."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The uri to fetch the next page of disk encryption sets. Call ListNext() with this to fetch the next page of disk encryption sets."
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "description": "The List disk encryption set operation response."
+ },
+ "PrivateEndpoint": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ARM identifier for Private Endpoint"
+ }
+ },
+ "description": "The Private Endpoint resource."
+ },
+ "PrivateEndpointServiceConnectionStatus": {
+ "type": "string",
+ "description": "The private endpoint connection status.",
+ "enum": [
+ "Pending",
+ "Approved",
+ "Rejected"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateEndpointServiceConnectionStatus",
+ "modelAsString": true
+ }
+ },
+ "PrivateEndpointConnectionProvisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The current provisioning state.",
+ "enum": [
+ "Succeeded",
+ "Creating",
+ "Deleting",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateEndpointConnectionProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "PrivateLinkServiceConnectionState": {
+ "properties": {
+ "status": {
+ "$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
+ "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
+ },
+ "description": {
+ "type": "string",
+ "description": "The reason for approval/rejection of the connection."
+ },
+ "actionsRequired": {
+ "type": "string",
+ "description": "A message indicating if changes on the service provider require any updates on the consumer."
+ }
+ },
+ "description": "A collection of information about the state of the connection between service consumer and provider."
+ },
+ "PrivateEndpointConnectionProperties": {
+ "properties": {
+ "privateEndpoint": {
+ "$ref": "#/definitions/PrivateEndpoint",
+ "description": "The resource of private end point."
+ },
+ "privateLinkServiceConnectionState": {
+ "$ref": "#/definitions/PrivateLinkServiceConnectionState",
+ "description": "A collection of information about the state of the connection between DiskAccess and Virtual Network."
+ },
+ "provisioningState": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState",
+ "description": "The provisioning state of the private endpoint connection resource."
+ }
+ },
+ "required": [
+ "privateLinkServiceConnectionState"
+ ],
+ "description": "Properties of the PrivateEndpointConnectProperties."
+ },
+ "PrivateEndpointConnection": {
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProperties",
+ "x-ms-client-flatten": true,
+ "description": "Resource properties."
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "private endpoint connection Id"
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "private endpoint connection name"
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "private endpoint connection type"
+ }
+ },
+ "description": "The Private Endpoint Connection resource."
+ },
+ "DiskAccessProperties": {
+ "properties": {
+ "privateEndpointConnections": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ },
+ "description": "A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported."
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The disk access resource provisioning state."
+ },
+ "timeCreated": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The time when the disk access was created."
+ }
+ }
+ },
+ "DiskAccess": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DiskAccessProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "description": "disk access resource."
+ },
+ "DiskAccessList": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DiskAccess"
+ },
+ "description": "A list of disk access resources."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch the next page of disk access resources."
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "description": "The List disk access operation response."
+ },
+ "DiskAccessUpdate": {
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "description": "Used for updating a disk access resource."
+ },
+ "PrivateLinkResource": {
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateLinkResourceProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "private link resource Id"
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "private link resource name"
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "private link resource type"
+ }
+ },
+ "description": "A private link resource"
+ },
+ "PrivateLinkResourceProperties": {
+ "properties": {
+ "groupId": {
+ "description": "The private link resource group id.",
+ "type": "string",
+ "readOnly": true
+ },
+ "requiredMembers": {
+ "description": "The private link resource required member names.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true
+ },
+ "requiredZoneNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The private link resource DNS zone name."
+ }
+ },
+ "description": "Properties of a private link resource."
+ },
+ "PrivateLinkResourceListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of private link resources",
+ "items": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ }
+ }
+ },
+ "description": "A list of private link resources"
+ },
+ "CloudError": {
+ "x-ms-external": true,
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/ApiError"
+ }
+ },
+ "description": "An error response from the Compute service."
+ },
+ "ApiError": {
+ "properties": {
+ "details": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ApiErrorBase"
+ },
+ "description": "The Api error details"
+ },
+ "innererror": {
+ "$ref": "#/definitions/InnerError",
+ "description": "The Api inner error"
+ },
+ "code": {
+ "type": "string",
+ "description": "The error code."
+ },
+ "target": {
+ "type": "string",
+ "description": "The target of the particular error."
+ },
+ "message": {
+ "type": "string",
+ "description": "The error message."
+ }
+ },
+ "description": "Api error."
+ },
+ "ApiErrorBase": {
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "The error code."
+ },
+ "target": {
+ "type": "string",
+ "description": "The target of the particular error."
+ },
+ "message": {
+ "type": "string",
+ "description": "The error message."
+ }
+ },
+ "description": "Api error base."
+ },
+ "InnerError": {
+ "properties": {
+ "exceptiontype": {
+ "type": "string",
+ "description": "The exception type."
+ },
+ "errordetail": {
+ "type": "string",
+ "description": "The internal error message or exception dump."
+ }
+ },
+ "description": "Inner error details."
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Subscription credentials which uniquely identify 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.",
+ "x-ms-parameter-location": "method"
+ },
+ "DiskNameParameter": {
+ "name": "diskName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.",
+ "x-ms-parameter-location": "method"
+ },
+ "SnapshotNameParameter": {
+ "name": "snapshotName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.",
+ "x-ms-parameter-location": "method"
+ },
+ "DiskEncryptionSetNameParameter": {
+ "name": "diskEncryptionSetName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.",
+ "x-ms-parameter-location": "method"
+ },
+ "DiskAccessNameParameter": {
+ "name": "diskAccessName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateADiskAccess.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateADiskAccess.json
new file mode 100644
index 000000000000..8258083a4243
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateADiskAccess.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskAccessName": "myDiskAccess",
+ "diskAccess": {
+ "location": "West US"
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "name": "myDiskAccess",
+ "location": "West US",
+ "type": "Microsoft.Compute/diskAccesses"
+ }
+ },
+ "200": {
+ "body": {
+ "name": "myDiskAccess",
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourcegroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess",
+ "type": "Microsoft.Compute/diskAccesses",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "timeCreated": "2020-05-01T04:41:35.079872+00:00"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateADiskEncryptionSet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateADiskEncryptionSet.json
new file mode 100644
index 000000000000..00889e9835be
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateADiskEncryptionSet.json
@@ -0,0 +1,60 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskEncryptionSetName": "myDiskEncryptionSet",
+ "diskEncryptionSet": {
+ "location": "West US",
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "name": "myDiskEncryptionSet",
+ "location": "West US",
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ },
+ "previousKeys": []
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "name": "myDiskEncryptionSet",
+ "location": "West US",
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ },
+ "previousKeys": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByCopyingASnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByCopyingASnapshot.json
new file mode 100644
index 000000000000..a803786c3a74
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByCopyingASnapshot.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk",
+ "disk": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "name": "myDisk",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
+ }
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "name": "myDisk",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.json
new file mode 100644
index 000000000000..04099033b89b
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk",
+ "disk": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Import",
+ "storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "name": "myDisk",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "creationData": {
+ "createOption": "Import",
+ "storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ }
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "name": "myDisk",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "creationData": {
+ "createOption": "Import",
+ "storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.json
new file mode 100644
index 000000000000..c27fa7a173f7
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk",
+ "disk": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Import",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "name": "myDisk",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "creationData": {
+ "createOption": "Import",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ }
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "name": "myDisk",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "creationData": {
+ "createOption": "Import",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskFromAPlatformImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskFromAPlatformImage.json
new file mode 100644
index 000000000000..a08c744382c5
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskFromAPlatformImage.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk",
+ "disk": {
+ "location": "West US",
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "FromImage",
+ "imageReference": {
+ "id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "name": "myDisk",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "FromImage",
+ "imageReference": {
+ "id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"
+ }
+ }
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "name": "myDisk",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "FromImage",
+ "imageReference": {
+ "id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskFromAnExistingManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskFromAnExistingManagedDisk.json
new file mode 100644
index 000000000000..77e9a0f63a2f
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskFromAnExistingManagedDisk.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk2",
+ "disk": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1"
+ },
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "myDisk2"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1"
+ },
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "myDisk2"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskWithDiskAccess.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskWithDiskAccess.json
new file mode 100644
index 000000000000..e84d4ad3d972
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskWithDiskAccess.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk",
+ "disk": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "networkAccessPolicy": "AllowPrivate",
+ "diskAccessId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}"
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "provisioningState": "Succeeded",
+ "networkAccessPolicy": "AllowPrivate",
+ "diskAccessId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}"
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskWithDiskEncryptionSet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskWithDiskEncryptionSet.json
new file mode 100644
index 000000000000..1d5673635ef0
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedDiskWithDiskEncryptionSet.json
@@ -0,0 +1,51 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk",
+ "disk": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "encryption": {
+ "diskEncryptionSetId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "provisioningState": "Succeeded",
+ "encryption": {
+ "diskEncryptionSetId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"
+ }
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedUploadDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedUploadDisk.json
new file mode 100644
index 000000000000..6e4e296a8203
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAManagedUploadDisk.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk",
+ "disk": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Upload",
+ "uploadSizeBytes": 10737418752
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Upload",
+ "uploadSizeBytes": 10737418752
+ },
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Upload",
+ "uploadSizeBytes": 10737418752
+ },
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json
new file mode 100644
index 000000000000..2b3f867bf38f
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "snapshotName": "mySnapshot1",
+ "snapshot": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Import",
+ "storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Import",
+ "storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ },
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "mySnapshot1"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Import",
+ "storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ },
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "mySnapshot1"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json
new file mode 100644
index 000000000000..01d02842d7ef
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "snapshotName": "mySnapshot1",
+ "snapshot": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Import",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Import",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ },
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "mySnapshot1"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Import",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ },
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "mySnapshot1"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotFromAnExistingSnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotFromAnExistingSnapshot.json
new file mode 100644
index 000000000000..da2e8f151dce
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateASnapshotFromAnExistingSnapshot.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "snapshotName": "mySnapshot2",
+ "snapshot": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
+ }
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "name": "mySnapshot2",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
+ }
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "name": "mySnapshot2",
+ "location": "West US",
+ "properties": {
+ "provisioningState": "Updating",
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAnEmptyManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAnEmptyManagedDisk.json
new file mode 100644
index 000000000000..ce8be10e624c
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/CreateAnEmptyManagedDisk.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk",
+ "disk": {
+ "location": "West US",
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "provisioningState": "Updating"
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/DeleteADiskAccess.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/DeleteADiskAccess.json
new file mode 100644
index 000000000000..cd138298f526
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/DeleteADiskAccess.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "diskAccessName": "myDiskAccess",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {},
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/DeleteADiskEncryptionSet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/DeleteADiskEncryptionSet.json
new file mode 100644
index 000000000000..5b3569467275
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/DeleteADiskEncryptionSet.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "diskEncryptionSetName": "myDiskEncryptionSet",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {},
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetDiskAccessPrivateLinkResources.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetDiskAccessPrivateLinkResources.json
new file mode 100644
index 000000000000..03ffff09b0ff
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetDiskAccessPrivateLinkResources.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskAccessName": "myDiskAccess"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess/privateLinkResources/disks",
+ "name": "disks",
+ "type": "Microsoft.Compute/diskAccesses/privateLinkResources",
+ "properties": {
+ "groupId": "disks",
+ "requiredMembers": [
+ "diskAccess_1"
+ ],
+ "requiredZoneNames": [
+ "privatelink.blob.core.windows.net"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskAccess.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskAccess.json
new file mode 100644
index 000000000000..085ca9beb839
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskAccess.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskAccessName": "myDiskAccess"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "timeCreated": "2020-05-01T04:41:35.079872+00:00"
+ },
+ "type": "Microsoft.Compute/diskAccesses",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "PrivateEndpoints"
+ },
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess",
+ "name": "myDiskAccess"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskAccessWithPrivateEndpoints.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskAccessWithPrivateEndpoints.json
new file mode 100644
index 000000000000..64b76c11afb0
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskAccessWithPrivateEndpoints.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskAccessName": "myDiskAccess"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "timeCreated": "2020-05-01T04:41:35.079872+00:00",
+ "privateEndpointConnections": [
+ {
+ "name": "myDiskAccess.d4914cfa-6bc2-4049-a57c-3d1f622d8eef",
+ "type": "Microsoft.Compute/diskAccesses/PrivateEndpointConnections",
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess/privateEndpoinConnections/myDiskAccess.d4914cfa-6bc2-4049-a57c-3d1f622d8eef",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "actionsRequired": "None",
+ "description": "Auto-Approved",
+ "status": "Approved"
+ }
+ }
+ }
+ ]
+ },
+ "type": "Microsoft.Compute/diskAccesses",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "PrivateEndpoints"
+ },
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess",
+ "name": "myDiskAccess"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskEncryptionSet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskEncryptionSet.json
new file mode 100644
index 000000000000..79dd5a069b1e
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutADiskEncryptionSet.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskEncryptionSetName": "myDiskEncryptionSet"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ },
+ "previousKeys": [],
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/diskEncryptionSets",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "Encryption"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/myDiskEncryptionSet",
+ "name": "myDiskEncryptionSet"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutAManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutAManagedDisk.json
new file mode 100644
index 000000000000..c0d091d9d798
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutAManagedDisk.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myManagedDisk"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "managedBy": "/subscriptions/123caaa-123v-v211-a49f-f88ccac5bf88/resourceGroups/ResourceGroupName/providers/Microsoft.Compute/virtualMachines/TestVM414689371c88843d65ec",
+ "sku": {
+ "name": "Standard_LRS"
+ },
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 10,
+ "encryptionSettingsCollection": {
+ "enabled": true,
+ "encryptionSettings": [
+ {
+ "diskEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
+ },
+ "keyEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ ]
+ },
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:41:35.079872+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/disks",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "ManagedDisks"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk",
+ "name": "myManagedDisk"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutASnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutASnapshot.json
new file mode 100644
index 000000000000..c3ec32fa4a7e
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/GetInformationAboutASnapshot.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "snapshotName": "mySnapshot"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 100,
+ "encryptionSettingsCollection": {
+ "enabled": true,
+ "encryptionSettings": [
+ {
+ "diskEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
+ },
+ "keyEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ ]
+ },
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:41:35.079872+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/snapshots",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "Snapshots"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
+ "name": "mySnapshot"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskAccessesInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskAccessesInAResourceGroup.json
new file mode 100644
index 000000000000..d6b8dada0e9a
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskAccessesInAResourceGroup.json
@@ -0,0 +1,62 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "timeCreated": "2020-05-01T04:41:35.079872+00:00"
+ },
+ "type": "Microsoft.Compute/diskAccesses",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "PrivateEndpoints"
+ },
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess",
+ "name": "myDiskAccess"
+ },
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "timeCreated": "2020-05-01T04:41:35.079872+00:00",
+ "privateEndpointConnections": [
+ {
+ "name": "myDiskAccess.d4914cfa-6bc2-4049-a57c-3d1f622d8eef",
+ "type": "Microsoft.Compute/diskAccesses/PrivateEndpointConnections",
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess2/privateEndpoinConnections/myDiskAccess2.d4914cfa-6bc2-4049-a57c-3d1f622d8eef",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint2"
+ },
+ "privateLinkServiceConnectionState": {
+ "actionsRequired": "None",
+ "description": "Auto-Approved",
+ "status": "Approved"
+ }
+ }
+ }
+ ]
+ },
+ "type": "Microsoft.Compute/diskAccesses",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "PrivateEndpoints"
+ },
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess2",
+ "name": "myDiskAccess2"
+ }
+ ],
+ "nextLink": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses?$skiptoken={token}"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskAccessesInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskAccessesInASubscription.json
new file mode 100644
index 000000000000..85db06c39cb5
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskAccessesInASubscription.json
@@ -0,0 +1,61 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "timeCreated": "2020-05-01T04:41:35.079872+00:00"
+ },
+ "type": "Microsoft.Compute/diskAccesses",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "PrivateEndpoints"
+ },
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess",
+ "name": "myDiskAccess"
+ },
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "timeCreated": "2020-05-01T04:41:35.079872+00:00",
+ "privateEndpointConnections": [
+ {
+ "name": "myDiskAccess.d4914cfa-6bc2-4049-a57c-3d1f622d8eef",
+ "type": "Microsoft.Compute/diskAccesses/PrivateEndpointConnections",
+ "id": "/subscriptions/{subscription-id}/resourceGroups/mySecondResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess2/privateEndpoinConnections/myDiskAccess2.d4914cfa-6bc2-4049-a57c-3d1f622d8eef",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/mySecondResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint2"
+ },
+ "privateLinkServiceConnectionState": {
+ "actionsRequired": "None",
+ "description": "Auto-Approved",
+ "status": "Approved"
+ }
+ }
+ }
+ ]
+ },
+ "type": "Microsoft.Compute/diskAccesses",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "PrivateEndpoints"
+ },
+ "id": "/subscriptions/{subscription-id}/resourceGroups/mySecondResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess2",
+ "name": "myDiskAccess2"
+ }
+ ],
+ "nextLink": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses?$skiptoken={token}"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskEncryptionSetsInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskEncryptionSetsInAResourceGroup.json
new file mode 100644
index 000000000000..fc267bdcfc29
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskEncryptionSetsInAResourceGroup.json
@@ -0,0 +1,62 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ },
+ "previousKeys": [],
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/diskEncryptionSets",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "Encryption"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/myDiskEncryptionSet",
+ "name": "myDiskEncryptionSet"
+ },
+ {
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault2"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ },
+ "previousKeys": [],
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/diskEncryptionSets",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "Encryption"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/myDiskEncryptionSet2",
+ "name": "myDiskEncryptionSet2"
+ }
+ ],
+ "nextLink": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets?$skiptoken={token}"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskEncryptionSetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskEncryptionSetsInASubscription.json
new file mode 100644
index 000000000000..4680795b13c8
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListDiskEncryptionSetsInASubscription.json
@@ -0,0 +1,61 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ },
+ "previousKeys": [],
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/diskEncryptionSets",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "Encryption"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/myDiskEncryptionSet",
+ "name": "myDiskEncryptionSet"
+ },
+ {
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/mySecondResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault2"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ },
+ "previousKeys": [],
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/diskEncryptionSets",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "Encryption"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/mySecondResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/myDiskEncryptionSet2",
+ "name": "myDiskEncryptionSet2"
+ }
+ ],
+ "nextLink": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets?$skiptoken={token}"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListManagedDisksInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListManagedDisksInAResourceGroup.json
new file mode 100644
index 000000000000..99577d2019b5
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListManagedDisksInAResourceGroup.json
@@ -0,0 +1,120 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"
+ },
+ "diskSizeGB": 200,
+ "encryptionSettingsCollection": {
+ "enabled": true,
+ "encryptionSettings": [
+ {
+ "diskEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
+ },
+ "keyEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ ]
+ },
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:41:35.9278721+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/disks",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "ManagedDisks"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk",
+ "name": "myManagedDisk1"
+ },
+ {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 10,
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:41:36.872242+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/disks",
+ "location": "westus",
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk",
+ "name": "myManagedDisk2"
+ },
+ {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "FromImage",
+ "imageReference": {
+ "id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"
+ }
+ },
+ "diskSizeGB": 200,
+ "encryptionSettingsCollection": {
+ "enabled": true,
+ "encryptionSettings": [
+ {
+ "diskEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
+ },
+ "keyEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ ]
+ },
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:41:36.3973934+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/disks",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "ManagedDisks"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk",
+ "name": "myManagedDisk3"
+ }
+ ],
+ "nextLink": "http://disksvchost:99/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/Disks/myManagedDisk"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListManagedDisksInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListManagedDisksInASubscription.json
new file mode 100644
index 000000000000..7a11120324f5
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListManagedDisksInASubscription.json
@@ -0,0 +1,119 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk1"
+ },
+ "diskSizeGB": 200,
+ "encryptionSettingsCollection": {
+ "enabled": true,
+ "encryptionSettings": [
+ {
+ "diskEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
+ },
+ "keyEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ ]
+ },
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:41:35.9278721+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/disks",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "ManagedDisks"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk1",
+ "name": "myManagedDisk1"
+ },
+ {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 10,
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:41:36.872242+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/disks",
+ "location": "westus",
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2",
+ "name": "myManagedDisk2"
+ },
+ {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "FromImage",
+ "imageReference": {
+ "id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}"
+ }
+ },
+ "diskSizeGB": 200,
+ "encryptionSettingsCollection": {
+ "enabled": true,
+ "encryptionSettings": [
+ {
+ "diskEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
+ },
+ "keyEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ ]
+ },
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:41:36.3973934+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/disks",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "ManagedDisks"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk3",
+ "name": "myManagedDisk3"
+ }
+ ],
+ "nextLink": "http://disksvchost:99/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/Disks/myManagedDisk"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListSnapshotsInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListSnapshotsInAResourceGroup.json
new file mode 100644
index 000000000000..2731bf774cf2
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListSnapshotsInAResourceGroup.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
+ },
+ "diskSizeGB": 200,
+ "encryptionSettingsCollection": {
+ "enabled": true,
+ "encryptionSettings": [
+ {
+ "diskEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
+ },
+ "keyEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ ]
+ },
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:41:35.9278721+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/snapshots",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "Snapshots"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
+ "name": "mySnapshot"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListSnapshotsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListSnapshotsInASubscription.json
new file mode 100644
index 000000000000..1a4bd0559f34
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/ListSnapshotsInASubscription.json
@@ -0,0 +1,99 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "Copy",
+ "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"
+ },
+ "diskSizeGB": 200,
+ "encryptionSettingsCollection": {
+ "enabled": true,
+ "encryptionSettings": [
+ {
+ "diskEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
+ },
+ "keyEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ ]
+ },
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:47:30.6630569+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/snapshots",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "Snapshots"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1",
+ "name": "mySnapshot1"
+ },
+ {
+ "properties": {
+ "osType": "Windows",
+ "creationData": {
+ "createOption": "Import",
+ "storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
+ "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
+ },
+ "diskSizeGB": 200,
+ "encryptionSettingsCollection": {
+ "enabled": true,
+ "encryptionSettings": [
+ {
+ "diskEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
+ },
+ "keyEncryptionKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ }
+ ]
+ },
+ "encryption": {
+ "type": "EncryptionAtRestWithPlatformKey"
+ },
+ "timeCreated": "2016-12-28T04:47:30.3247198+00:00",
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.Compute/snapshots",
+ "location": "westus",
+ "tags": {
+ "department": "Development",
+ "project": "Snapshots"
+ },
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2",
+ "name": "mySnapshot2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateADiskAccess.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateADiskAccess.json
new file mode 100644
index 000000000000..fa0d26f53b12
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateADiskAccess.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskAccessName": "myDiskAccess",
+ "diskAccess": {
+ "tags": {
+ "department": "Development",
+ "project": "PrivateEndpoints"
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "name": "myDiskAccess",
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourcegroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess",
+ "type": "Microsoft.Compute/diskAccesses",
+ "location": "West US",
+ "tags": {
+ "department": "Development",
+ "project": "PrivateEndpoints"
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "name": "myDiskAccess",
+ "id": "/subscriptions/{subscription-id}/resourceGroups/myResourcegroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess",
+ "type": "Microsoft.Compute/diskAccesses",
+ "location": "West US",
+ "tags": {
+ "department": "Development",
+ "project": "PrivateEndpoints"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateADiskEncryptionSet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateADiskEncryptionSet.json
new file mode 100644
index 000000000000..31573f1e0edf
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateADiskEncryptionSet.json
@@ -0,0 +1,68 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskEncryptionSetName": "myDiskEncryptionSet",
+ "diskEncryptionSet": {
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ }
+ },
+ "tags": {
+ "department": "Development",
+ "project": "Encryption"
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "name": "myDiskEncryptionSet",
+ "location": "West US",
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ },
+ "previousKeys": []
+ },
+ "tags": {
+ "department": "Development",
+ "project": "Encryption"
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "name": "myDiskEncryptionSet",
+ "location": "West US",
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "activeKey": {
+ "sourceVault": {
+ "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
+ },
+ "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
+ },
+ "previousKeys": []
+ },
+ "tags": {
+ "department": "Development",
+ "project": "Encryption"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateAManagedDiskToRemoveDiskAccess.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateAManagedDiskToRemoveDiskAccess.json
new file mode 100644
index 000000000000..a9cbcf115a87
--- /dev/null
+++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-05-01/examples/UpdateAManagedDiskToRemoveDiskAccess.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-05-01",
+ "diskName": "myDisk",
+ "disk": {
+ "properties": {
+ "networkAccessPolicy": "AllowAll"
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "provisioningState": "Updating",
+ "networkAccessPolicy": "AllowAll"
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "creationData": {
+ "createOption": "Empty"
+ },
+ "diskSizeGB": 200,
+ "provisioningState": "Succeeded",
+ "networkAccessPolicy": "AllowAll"
+ },
+ "location": "West US",
+ "name": "myDisk"
+ }
+ }
+ }
+}
diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md
index fd00318c0fe8..46f7bb57354b 100644
--- a/specification/compute/resource-manager/readme.md
+++ b/specification/compute/resource-manager/readme.md
@@ -34,7 +34,7 @@ These are the global settings for the Compute API.
title: ComputeManagementClient
description: Compute Client
openapi-type: arm
-tag: package-2019-12-01
+tag: package-2020-05-01
directive:
- where:
@@ -215,6 +215,29 @@ directive:
```
+### Tag: package-2020-05-01
+
+These settings apply only when `--tag=package-2020-05-01` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-05-01'
+input-file:
+- Microsoft.Compute/stable/2019-12-01/compute.json
+- Microsoft.Compute/stable/2019-12-01/runCommands.json
+- Microsoft.Compute/stable/2019-04-01/skus.json
+- Microsoft.Compute/stable/2020-05-01/disk.json
+- Microsoft.Compute/stable/2019-12-01/gallery.json
+- Microsoft.ContainerService/stable/2017-01-31/containerService.json
+```
+
+### Tag: package-2020-05-01-only
+
+These settings apply only when `--tag=package-2020-05-01-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-05-01-only'
+input-file:
+- Microsoft.Compute/stable/2020-05-01/disk.json
+```
+
### Tag: package-2019-12-01
These settings apply only when `--tag=package-2019-12-01` is specified on the command line.
@@ -774,6 +797,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.Compute/stable/2020-05-01/disk.json
- $(this-folder)/Microsoft.Compute/stable/2019-12-01/compute.json
- $(this-folder)/Microsoft.Compute/stable/2019-12-01/runCommands.json
- $(this-folder)/Microsoft.Compute/stable/2019-04-01/skus.json
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/consumption.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/consumption.json
index 95bb524fa902..cd3415b062d5 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/consumption.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/consumption.json
@@ -1070,6 +1070,54 @@
}
}
},
+ "/{scope}/providers/Microsoft.Consumption/reservationRecommendationDetails": {
+ "get": {
+ "tags": [
+ "ReservationRecommendationDetails"
+ ],
+ "operationId": "ReservationRecommendationDetails_Get",
+ "description": "Details of a reservation recommendation for what-if analysis of reserved instances.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/consumption/"
+ },
+ "x-ms-examples": {
+ "ReservationRecommendationsBySubscription-Legacy": {
+ "$ref": "./examples/ReservationRecommendationDetailsBySubscription.json"
+ },
+ "ReservationRecommendationsByBillingAccount-Legacy": {
+ "$ref": "./examples/ReservationRecommendationDetailsByBillingAccount.json"
+ },
+ "ReservationRecommendationsByBillingProfile-Modern": {
+ "$ref": "./examples/ReservationRecommendationDetailsByBillingProfile.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/scopeReservationRecommendationDetailsParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ReservationRecommendationDetailsModel"
+ }
+ },
+ "204": {
+ "description": "An empty response is sent when there are no recommendation details."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/reservationTransactions": {
"get": {
"tags": [
@@ -2817,6 +2865,200 @@
}
}
},
+ "ReservationRecommendationDetailsModel": {
+ "description": "Reservation recommendation details.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ReservationRecommendationDetailsProperties",
+ "title": "Reservation Recommendation details properties"
+ }
+ }
+ },
+ "ReservationRecommendationDetailsProperties": {
+ "description": "The properties of the reservation recommendation.",
+ "properties": {
+ "currency": {
+ "description": "An ISO 4217 currency code identifier for the costs and savings ",
+ "type": "string",
+ "readOnly": true
+ },
+ "resource": {
+ "description": "Resource specific properties.",
+ "$ref": "#/definitions/ReservationRecommendationDetailsResourceProperties",
+ "readOnly": true
+ },
+ "resourceGroup": {
+ "description": "Resource Group.",
+ "type": "string",
+ "readOnly": true
+ },
+ "savings": {
+ "description": "Savings information for the recommendation.",
+ "$ref": "#/definitions/ReservationRecommendationDetailsSavingsProperties",
+ "readOnly": true
+ },
+ "scope": {
+ "description": "Scope of the reservation, ex: Single or Shared.",
+ "type": "string",
+ "readOnly": true
+ },
+ "usage": {
+ "description": "Historical usage details used to calculate the estimated savings.",
+ "$ref": "#/definitions/ReservationRecommendationDetailsUsageProperties",
+ "readOnly": true
+ }
+ }
+ },
+ "ReservationRecommendationDetailsCalculatedSavingsProperties": {
+ "description": "Details of estimated savings.",
+ "properties": {
+ "onDemandCost": {
+ "description": "The cost without reservation.",
+ "type": "number",
+ "readOnly": true
+ },
+ "overageCost": {
+ "description": "The difference between total reservation cost and reservation cost.",
+ "type": "number",
+ "readOnly": true
+ },
+ "quantity": {
+ "description": "The quantity for calculated savings.",
+ "type": "number",
+ "readOnly": true
+ },
+ "reservationCost": {
+ "description": "The exact cost of the estimated usage using reservation.",
+ "type": "number",
+ "readOnly": true
+ },
+ "totalReservationCost": {
+ "description": "The cost of the suggested quantity.",
+ "type": "number",
+ "readOnly": true
+ },
+ "savings": {
+ "description": "The amount saved by purchasing the recommended quantity of reservation.",
+ "type": "number",
+ "readOnly": true
+ }
+ }
+ },
+ "ReservationRecommendationDetailsResourceProperties": {
+ "description": "Details of the resource.",
+ "properties": {
+ "appliedScopes": {
+ "description": "List of subscriptions for which the reservation is applied.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true
+ },
+ "onDemandRate": {
+ "description": "On demand rate of the resource.",
+ "type": "number",
+ "readOnly": true
+ },
+ "product": {
+ "description": "Azure product ex: Standard_E8s_v3 etc.",
+ "type": "string",
+ "readOnly": true
+ },
+ "region": {
+ "description": "Azure resource region ex:EastUS, WestUS etc.",
+ "type": "string",
+ "readOnly": true
+ },
+ "reservationRate": {
+ "description": "Reservation rate of the resource.",
+ "type": "number",
+ "readOnly": true
+ },
+ "resourceType": {
+ "description": "The azure resource type.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "ReservationRecommendationDetailsSavingsProperties": {
+ "description": "Details of the estimated savings.",
+ "properties": {
+ "calculatedSavings": {
+ "description": "List of calculated savings.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReservationRecommendationDetailsCalculatedSavingsProperties"
+ }
+ },
+ "lookBackPeriod": {
+ "description": "Number of days of usage to look back used for computing the recommendation.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "recommendedQuantity": {
+ "description": "Number of recommended units of the resource.",
+ "type": "number",
+ "readOnly": true
+ },
+ "reservationOrderTerm": {
+ "description": "Term period of the reservation, ex: P1Y or P3Y.",
+ "type": "string",
+ "readOnly": true
+ },
+ "savingsType": {
+ "description": "Type of savings, ex: instance.",
+ "type": "string",
+ "readOnly": true
+ },
+ "unitOfMeasure": {
+ "description": "Measurement unit ex: hour etc.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "ReservationRecommendationDetailsUsageProperties": {
+ "description": "Details about historical usage data that has been used for computing the recommendation.",
+ "properties": {
+ "firstConsumptionDate": {
+ "description": "The first usage date used for looking back for computing the recommendation.",
+ "type": "string",
+ "readOnly": true
+ },
+ "lastConsumptionDate": {
+ "description": "The last usage date used for looking back for computing the recommendation.",
+ "type": "string",
+ "readOnly": true
+ },
+ "lookBackUnitType": {
+ "description": "What the usage data values represent ex: virtual machine instance.",
+ "type": "string",
+ "readOnly": true
+ },
+ "usageData": {
+ "description": "The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate.",
+ "type": "array",
+ "items": {
+ "type": "number"
+ },
+ "readOnly": true
+ },
+ "usageGrain": {
+ "description": "The grain of the values represented in the usage data ex: hourly.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
"ReservationRecommendationsListResult": {
"description": "Result of listing reservation recommendations.",
"properties": {
@@ -3306,8 +3548,7 @@
"description": "The category of the budget, whether the budget tracks cost or usage.",
"type": "string",
"enum": [
- "Cost",
- "Usage"
+ "Cost"
],
"x-ms-enum": {
"name": "CategoryType",
@@ -3320,7 +3561,7 @@
"format": "decimal"
},
"timeGrain": {
- "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.",
+ "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers",
"type": "string",
"enum": [
"Monthly",
@@ -3336,13 +3577,13 @@
}
},
"timePeriod": {
- "description": "Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than three months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.",
+ "description": "Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.",
"$ref": "#/definitions/BudgetTimePeriod"
},
- "filters": {
+ "filter": {
"description": "May be used to filter budgets by resource group, resource, or meter.",
"type": "object",
- "$ref": "#/definitions/Filters"
+ "$ref": "#/definitions/BudgetFilter"
},
"currentSpend": {
"description": "The current amount of cost which is being tracked for a budget.",
@@ -3384,51 +3625,64 @@
"startDate"
]
},
- "Filters": {
+ "BudgetFilter": {
"description": "May be used to filter budgets by resource group, resource, or meter.",
"properties": {
- "resourceGroups": {
- "description": "The list of filters on resource groups, allowed at subscription level only.",
+ "and": {
+ "description": "The logical \"AND\" expression. Must have at least 2 items.",
"type": "array",
"items": {
- "type": "string"
+ "$ref": "#/definitions/BudgetFilter"
},
- "minItems": 0,
- "maxItems": 10
+ "minItems": 2
},
- "resources": {
- "description": "The list of filters on resources.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "minItems": 0,
- "maxItems": 10
+ "not": {
+ "description": "The logical \"NOT\" expression.",
+ "$ref": "#/definitions/BudgetFilter"
},
- "meters": {
- "description": "The list of filters on meters (GUID), mandatory for budgets of usage category. ",
- "type": "array",
- "items": {
- "type": "string",
- "format": "uuid"
- },
- "minItems": 0,
- "maxItems": 10
+ "dimensions": {
+ "description": "Has comparison expression for a dimension",
+ "$ref": "#/definitions/BudgetComparisonExpression"
},
"tags": {
- "type": "object",
- "description": "The dictionary of filters on tags.",
- "additionalProperties": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "minItems": 0,
- "maxItems": 10
+ "description": "Has comparison expression for a tag",
+ "$ref": "#/definitions/BudgetComparisonExpression"
}
}
},
+ "BudgetComparisonExpression": {
+ "description": "The comparison expression to be used in the budgets.",
+ "properties": {
+ "name": {
+ "description": "The name of the column to use in comparison.",
+ "type": "string"
+ },
+ "operator": {
+ "description": "The operator to use for comparison.",
+ "type": "string",
+ "enum": [
+ "In"
+ ],
+ "x-ms-enum": {
+ "name": "BudgetOperatorType",
+ "modelAsString": true
+ }
+ },
+ "values": {
+ "description": "Array of values to use for comparison",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1
+ }
+ },
+ "required": [
+ "name",
+ "operator",
+ "values"
+ ]
+ },
"CurrentSpend": {
"description": "The current amount of cost which is being tracked for a budget.",
"properties": {
@@ -3494,6 +3748,17 @@
},
"minItems": 0,
"maxItems": 50
+ },
+ "thresholdType": {
+ "description": "The type of threshold",
+ "type": "string",
+ "enum": [
+ "Actual"
+ ],
+ "x-ms-enum": {
+ "name": "ThresholdType",
+ "modelAsString": true
+ }
}
},
"required": [
@@ -4465,6 +4730,15 @@
"x-ms-parameter-location": "method",
"x-ms-skip-url-encoding": true
},
+ "scopeReservationRecommendationDetailsParameter": {
+ "name": "scope",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The scope associated with reservation recommendation details operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}', /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope",
+ "x-ms-parameter-location": "method",
+ "x-ms-skip-url-encoding": true
+ },
"apiVersionParameter": {
"name": "api-version",
"in": "query",
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/Budget.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/Budget.json
index 8471ee227283..7772ab159833 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/Budget.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/Budget.json
@@ -9,7 +9,7 @@
"responses": {
"200": {
"body": {
- "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget",
+ "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.Consumption/budgets",
"eTag": "\"1d34d012214157f\"",
@@ -21,27 +21,39 @@
"startDate": "2017-10-01T00:00:00Z",
"endDate": "2018-10-31T00:00:00Z"
},
- "filters": {
- "resourceGroups": [
- "MPDEVTESTRG"
- ],
- "resources": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
- ],
- "meters": [
- "00000000-0000-0000-0000-000000000000"
- ],
- "tags": {
- "category": [
- "Dev",
- "Prod"
- ],
- "department": [
- "engineering",
- "sales"
- ]
- }
+ "filter": {
+ "and": [
+ {
+ "dimensions": {
+ "name": "ResourceId",
+ "operator": "In",
+ "values": [
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "category",
+ "operator": "In",
+ "values": [
+ "Dev",
+ "Prod"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "department",
+ "operator": "In",
+ "values": [
+ "engineering",
+ "sales"
+ ]
+ }
+ }
+ ]
},
"currentSpend": {
"amount": 80.89,
@@ -61,8 +73,9 @@
"Reader"
],
"contactGroups": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
- ]
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
+ ],
+ "thresholdType": "Actual"
}
}
}
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/BudgetsList.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/BudgetsList.json
index 28b3c2a85f87..3a2bef0fc12e 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/BudgetsList.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/BudgetsList.json
@@ -10,7 +10,7 @@
"body": {
"value": [
{
- "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget",
+ "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.Consumption/budgets",
"eTag": "\"1d34d012214157f\"",
@@ -22,27 +22,39 @@
"startDate": "2017-10-01T00:00:00Z",
"endDate": "2018-10-31T00:00:00Z"
},
- "filters": {
- "resourceGroups": [
- "MYDEVTESTRG"
- ],
- "resources": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MYVM2",
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
- ],
- "meters": [
- "00000000-0000-0000-0000-000000000000"
- ],
- "tags": {
- "category": [
- "Dev",
- "Prod"
- ],
- "department": [
- "engineering",
- "sales"
- ]
- }
+ "filter": {
+ "and": [
+ {
+ "dimensions": {
+ "name": "ResourceId",
+ "operator": "In",
+ "values": [
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "category",
+ "operator": "In",
+ "values": [
+ "Dev",
+ "Prod"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "department",
+ "operator": "In",
+ "values": [
+ "engineering",
+ "sales"
+ ]
+ }
+ }
+ ]
},
"currentSpend": {
"amount": 80.89,
@@ -75,14 +87,15 @@
"Reader"
],
"contactGroups": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
]
- }
+ },
+ "thresholdType": "Actual"
}
}
},
{
- "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget",
+ "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.Consumption/budgets",
"eTag": "\"1d34d012214157f\"",
@@ -94,27 +107,39 @@
"startDate": "2017-10-01T00:00:00Z",
"endDate": "2018-10-31T00:00:00Z"
},
- "filters": {
- "resourceGroups": [
- "MYDEVTESTRG"
- ],
- "resources": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MYVM2",
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
- ],
- "meters": [
- "00000000-0000-0000-0000-000000000000"
- ],
- "tags": {
- "category": [
- "Dev",
- "Prod"
- ],
- "department": [
- "engineering",
- "sales"
- ]
- }
+ "filter": {
+ "and": [
+ {
+ "dimensions": {
+ "name": "ResourceId",
+ "operator": "In",
+ "values": [
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "category",
+ "operator": "In",
+ "values": [
+ "Dev",
+ "Prod"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "department",
+ "operator": "In",
+ "values": [
+ "engineering",
+ "sales"
+ ]
+ }
+ }
+ ]
},
"currentSpend": {
"amount": 120.89,
@@ -147,8 +172,9 @@
"Reader"
],
"contactGroups": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
- ]
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
+ ],
+ "thresholdType": "Actual"
}
}
}
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/CreateOrUpdateBudget.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/CreateOrUpdateBudget.json
index d527262295e6..e7316c36d43e 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/CreateOrUpdateBudget.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/CreateOrUpdateBudget.json
@@ -15,27 +15,39 @@
"startDate": "2017-10-01T00:00:00Z",
"endDate": "2018-10-31T00:00:00Z"
},
- "filters": {
- "resourceGroups": [
- "MYDEVTESTRG"
- ],
- "resources": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MYVM2",
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
- ],
- "meters": [
- "00000000-0000-0000-0000-000000000000"
- ],
- "tags": {
- "category": [
- "Dev",
- "Prod"
- ],
- "department": [
- "engineering",
- "sales"
- ]
- }
+ "filter": {
+ "and": [
+ {
+ "dimensions": {
+ "name": "ResourceId",
+ "operator": "In",
+ "values": [
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "category",
+ "operator": "In",
+ "values": [
+ "Dev",
+ "Prod"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "department",
+ "operator": "In",
+ "values": [
+ "engineering",
+ "sales"
+ ]
+ }
+ }
+ ]
},
"notifications": {
"Actual_GreaterThan_80_Percent": {
@@ -51,8 +63,9 @@
"Reader"
],
"contactGroups": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
- ]
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
+ ],
+ "thresholdType": "Actual"
}
}
}
@@ -61,7 +74,7 @@
"responses": {
"201": {
"body": {
- "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget",
+ "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.Consumption/budgets",
"eTag": "\"1d34d012214157f\"",
@@ -73,27 +86,39 @@
"startDate": "2017-10-01T00:00:00Z",
"endDate": "2018-10-31T00:00:00Z"
},
- "filters": {
- "resourceGroups": [
- "MPDEVTESTRG"
- ],
- "resources": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MYVM2",
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
- ],
- "meters": [
- "00000000-0000-0000-0000-000000000000"
- ],
- "tags": {
- "category": [
- "Dev",
- "Prod"
- ],
- "department": [
- "engineering",
- "sales"
- ]
- }
+ "filter": {
+ "and": [
+ {
+ "dimensions": {
+ "name": "ResourceId",
+ "operator": "In",
+ "values": [
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "category",
+ "operator": "In",
+ "values": [
+ "Dev",
+ "Prod"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "department",
+ "operator": "In",
+ "values": [
+ "engineering",
+ "sales"
+ ]
+ }
+ }
+ ]
},
"currentSpend": {
"amount": 80.89,
@@ -113,8 +138,9 @@
"Reader"
],
"contactGroups": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
- ]
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
+ ],
+ "thresholdType": "Actual"
}
}
}
@@ -122,7 +148,7 @@
},
"200": {
"body": {
- "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget",
+ "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption/budgets/TestBudget",
"name": "TestBudget",
"type": "Microsoft.Consumption/budgets",
"eTag": "\"1d34d012214157f\"",
@@ -134,27 +160,39 @@
"startDate": "2017-10-01T00:00:00Z",
"endDate": "2018-10-31T00:00:00Z"
},
- "filters": {
- "resourceGroups": [
- "MPDEVTESTRG"
- ],
- "resources": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MYVM2",
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
- ],
- "meters": [
- "00000000-0000-0000-0000-000000000000"
- ],
- "tags": {
- "category": [
- "Dev",
- "Prod"
- ],
- "department": [
- "engineering",
- "sales"
- ]
- }
+ "filter": {
+ "and": [
+ {
+ "dimensions": {
+ "name": "ResourceId",
+ "operator": "In",
+ "values": [
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "category",
+ "operator": "In",
+ "values": [
+ "Dev",
+ "Prod"
+ ]
+ }
+ },
+ {
+ "tags": {
+ "name": "department",
+ "operator": "In",
+ "values": [
+ "engineering",
+ "sales"
+ ]
+ }
+ }
+ ]
},
"currentSpend": {
"amount": 80.89,
@@ -174,8 +212,9 @@
"Reader"
],
"contactGroups": [
- "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
- ]
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"
+ ],
+ "thresholdType": "Actual"
}
}
}
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetails.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetails.json
index f759fea1fafe..f13960fdaeeb 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetails.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetails.json
@@ -2,7 +2,7 @@
"parameters": {
"api-version": "2019-10-01",
"reservationOrderId": "00000000-0000-0000-0000-000000000000",
- "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-12-05'"
+ "$filter": "properties/usageDate ge 2017-10-01 AND properties/usageDate le 2017-12-05"
},
"responses": {
"200": {
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetailsByBillingAccountId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetailsByBillingAccountId.json
index 3fab16efdadb..9554289c19d0 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetailsByBillingAccountId.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetailsByBillingAccountId.json
@@ -2,7 +2,7 @@
"parameters": {
"api-version": "2019-10-01",
"scope": "providers/Microsoft.Billing/billingAccounts/12345",
- "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-12-05'"
+ "$filter": "properties/usageDate ge 2017-10-01 AND properties/usageDate le 2017-12-05"
},
"responses": {
"200": {
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetailsWithReservationId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetailsWithReservationId.json
index e8f3dd2d970d..b947faae5e6b 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetailsWithReservationId.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationDetailsWithReservationId.json
@@ -3,7 +3,7 @@
"api-version": "2019-10-01",
"reservationOrderId": "00000000-0000-0000-0000-000000000000",
"reservationId": "00000000-0000-0000-0000-000000000000",
- "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-12-05'"
+ "$filter": "properties/usageDate ge 2017-10-01 AND properties/usageDate le 2017-12-05"
},
"responses": {
"200": {
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsByBillingAccount.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsByBillingAccount.json
new file mode 100644
index 000000000000..3349a95990bd
--- /dev/null
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsByBillingAccount.json
@@ -0,0 +1,99 @@
+{
+ "parameters": {
+ "api-version": "2019-10-01",
+ "scope": "providers/Microsoft.Billing/billingAccounts/000000"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "providers/Microsoft.Billing/billingAccounts/00000000/providers/microsoft.consumption/reservationrecommendationdetails",
+ "name": "reservationRecommendationDetails",
+ "type": "Microsoft.Consumption/ReservationRecommendationDetails",
+ "properties": {
+ "currency": "USD",
+ "resource": {
+ "appliedScopes": [
+ "00000000-0000-0000-0000-00000000",
+ "00000000-0000-0000-0000-00000000"
+ ],
+ "onDemandRate": 1.482,
+ "product": "Standard_DS14_v2",
+ "region": "eastus",
+ "reservationRate": 0.70570776255707,
+ "resourceType": "virtualmachines"
+ },
+ "resourceGroup": null,
+ "savings": {
+ "calculatedSavings": [
+ {
+ "onDemandCost": 529550.326618951,
+ "overageCost": 63253.5935111345,
+ "quantity": 220,
+ "reservationCost": 223102.452054792,
+ "totalReservationCost": 286356.045565927,
+ "savings": 243194.281053024
+ },
+ {
+ "onDemandCost": 529550.326618950,
+ "overageCost": 149335.025050147,
+ "quantity": 179,
+ "reservationCost": 181524.267808217,
+ "totalReservationCost": 330859.292858364,
+ "savings": 198691.033760586
+ },
+ {
+ "onDemandCost": 529550.326618950,
+ "overageCost": 195942.319606957,
+ "quantity": 157,
+ "reservationCost": 159214.022602738,
+ "totalReservationCost": 355156.342209695,
+ "savings": 174393.984409255
+ },
+ {
+ "onDemandCost": 529550.326618950,
+ "overageCost": 30975.2311896299,
+ "quantity": 241,
+ "reservationCost": 244398.595205477,
+ "totalReservationCost": 275373.826395107,
+ "savings": 254176.500223843
+ }
+ ],
+ "lookBackPeriod": 60,
+ "recommendedQuantity": 253.0,
+ "reservationOrderTerm": "P1Y",
+ "savingsType": "instance",
+ "unitOfMeasure": "hour"
+ },
+ "scope": "Shared",
+ "usage": {
+ "firstConsumptionDate": "2019-11-27T00:00:00",
+ "lastConsumptionDate": "2020-01-25T21:00:00",
+ "lookBackUnitType": "virtualMachine quantity",
+ "usageData": [
+ 275.95003899999995,
+ 275.916705,
+ 276.0,
+ 276.0,
+ 275.916725,
+ 275.916705,
+ 275.98335299999997,
+ 276.0,
+ 276.0,
+ 276.0,
+ 276.0,
+ 276.0,
+ 275.98335299999997,
+ 276.0,
+ 276.0,
+ 276.0,
+ 276.0,
+ 275.933352
+ ],
+ "usageGrain": "hourly"
+ }
+ }
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsByBillingProfile.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsByBillingProfile.json
new file mode 100644
index 000000000000..235b489b818b
--- /dev/null
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsByBillingProfile.json
@@ -0,0 +1,66 @@
+{
+ "parameters": {
+ "api-version": "2019-10-01",
+ "scope": "providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-00000000:00000000-0000-0000-0000-00000000/billingProfiles/00000000-0000-0000-0000-00000000"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-00000000:00000000-0000-0000-0000-00000000/billingProfiles/00000000-0000-0000-0000-00000000/providers/microsoft.consumption/reservationrecommendationdetails",
+ "name": "reservationRecommendationDetails",
+ "type": "Microsoft.Consumption/ReservationRecommendationDetails",
+ "properties": {
+ "currency": "AUD",
+ "resource": {
+ "appliedScopes": [
+ "00000000-0000-0000-0000-00000000"
+ ],
+ "onDemandRate": 0.0725,
+ "product": "Standard_B2s",
+ "region": "australiaeast",
+ "reservationRate": 0.044141665317880413,
+ "resourceType": "virtualmachines"
+ },
+ "resourceGroup": null,
+ "savings": {
+ "calculatedSavings": [
+ {
+ "onDemandCost": 632.884472049689441,
+ "overageCost": 0.0,
+ "quantity": 1,
+ "reservationCost": 387.740388152261739,
+ "totalReservationCost": 387.740388152261739,
+ "savings": 245.144083897427702
+ }
+ ],
+ "lookBackPeriod": 7,
+ "recommendedQuantity": 1.0,
+ "reservationOrderTerm": "P1Y",
+ "savingsType": "instance",
+ "unitOfMeasure": "hour"
+ },
+ "scope": "Shared",
+ "usage": {
+ "firstConsumptionDate": "2020-01-19T00:00:00",
+ "lastConsumptionDate": "2020-01-25T17:00:00",
+ "lookBackUnitType": "virtualMachine quantity",
+ "usageData": [
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 0.0
+ ],
+ "usageGrain": "hourly"
+ }
+ }
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsBySubscription.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsBySubscription.json
new file mode 100644
index 000000000000..81401cfe5622
--- /dev/null
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationRecommendationDetailsBySubscription.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "api-version": "2019-10-01",
+ "scope": "subscriptions/00000000-0000-0000-0000-00000000"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "subscriptions/00000000-0000-0000-0000-00000000/providers/microsoft.consumption/reservationrecommendationdetails",
+ "name": "reservationRecommendationDetails",
+ "type": "Microsoft.Consumption/ReservationRecommendationDetails",
+ "properties": {
+ "currency": "USD",
+ "resource": {
+ "appliedScopes": [
+ "00000000-0000-0000-0000-00000000"
+ ],
+ "onDemandRate": 0.519,
+ "product": "Standard_DS13_v2",
+ "region": "westus",
+ "reservationRate": 0.302549467275493,
+ "resourceType": "virtualmachines"
+ },
+ "resourceGroup": null,
+ "savings": {
+ "calculatedSavings": [
+ {
+ "onDemandCost": 368.4813602070006,
+ "overageCost": 0.0,
+ "quantity": 2,
+ "reservationCost": 429.01514459665,
+ "totalReservationCost": 429.01514459665,
+ "savings": -60.5337843896494
+ },
+ {
+ "onDemandCost": 368.481360207000,
+ "overageCost": 1.557,
+ "quantity": 1,
+ "reservationCost": 214.507572298325,
+ "totalReservationCost": 216.064572298325,
+ "savings": 152.416787908675
+ }
+ ],
+ "lookBackPeriod": 30,
+ "recommendedQuantity": 1.0,
+ "reservationOrderTerm": "P3Y",
+ "savingsType": "instance",
+ "unitOfMeasure": "hour"
+ },
+ "scope": "Single",
+ "usage": {
+ "firstConsumptionDate": "2020-02-03T00:00:00",
+ "lastConsumptionDate": "2020-03-03T13:00:00",
+ "lookBackUnitType": "virtualMachine quantity",
+ "usageData": [
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0
+ ],
+ "usageGrain": "hourly"
+ }
+ }
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDaily.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDaily.json
index 89cabe7ebef4..419293c3cb94 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDaily.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDaily.json
@@ -3,7 +3,7 @@
"api-version": "2019-10-01",
"reservationOrderId": "00000000-0000-0000-0000-000000000000",
"grain": "daily",
- "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-11-20'"
+ "$filter": "properties/usageDate ge 2017-10-01 AND properties/usageDate le 2017-11-20"
},
"responses": {
"200": {
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDailyWithBillingAccountId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDailyWithBillingAccountId.json
index 05d17eec72c4..b0ccf6bbbe00 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDailyWithBillingAccountId.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDailyWithBillingAccountId.json
@@ -3,7 +3,7 @@
"api-version": "2019-10-01",
"scope": "providers/Microsoft.Billing/billingAccounts/12345",
"grain": "daily",
- "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-11-20'"
+ "$filter": "properties/usageDate ge 2017-10-01 AND properties/usageDate le 2017-11-20"
},
"responses": {
"200": {
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDailyWithReservationId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDailyWithReservationId.json
index 197a751de0b1..218830e01808 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDailyWithReservationId.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationSummariesDailyWithReservationId.json
@@ -4,7 +4,7 @@
"reservationOrderId": "00000000-0000-0000-0000-000000000000",
"reservationId": "00000000-0000-0000-0000-000000000000",
"grain": "daily",
- "$filter": "properties/usageDate ge '2017-10-01' AND properties/usageDate le '2017-11-20'"
+ "$filter": "properties/usageDate ge 2017-10-01 AND properties/usageDate le 2017-11-20"
},
"responses": {
"200": {
diff --git a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationTransactionsListByBillingAccountId.json b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationTransactionsListByBillingAccountId.json
index 6ce54b6b472a..7770a224b060 100644
--- a/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationTransactionsListByBillingAccountId.json
+++ b/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-10-01/examples/ReservationTransactionsListByBillingAccountId.json
@@ -2,7 +2,7 @@
"parameters": {
"api-version": "2019-10-01",
"billingAccountId": "123456",
- "$filter": "properties/eventDate ge '2019-09-09' AND properties/eventDate le '2019-09-10'"
+ "$filter": "properties/eventDate ge 2019-09-09 AND properties/eventDate le 2019-09-10"
},
"responses": {
"200": {
diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-12-01-preview/containerregistry.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-12-01-preview/containerregistry.json
index d2fb550baaf0..6f70e0e72c62 100644
--- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-12-01-preview/containerregistry.json
+++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-12-01-preview/containerregistry.json
@@ -3376,6 +3376,11 @@
"$ref": "#/definitions/Status",
"description": "The status of the replication at the time the operation was called.",
"readOnly": true
+ },
+ "regionEndpointEnabled": {
+ "description": "Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.",
+ "default": true,
+ "type": "boolean"
}
}
},
@@ -3389,6 +3394,20 @@
"additionalProperties": {
"type": "string"
}
+ },
+ "properties": {
+ "$ref": "#/definitions/ReplicationUpdateParametersProperties",
+ "description": "The parameters for updating a replication's properties",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "ReplicationUpdateParametersProperties": {
+ "type": "object",
+ "properties": {
+ "regionEndpointEnabled": {
+ "description": "Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.",
+ "type": "boolean"
}
}
},
diff --git a/specification/containerregistry/resource-manager/readme.az.md b/specification/containerregistry/resource-manager/readme.az.md
new file mode 100644
index 000000000000..fab7ce840545
--- /dev/null
+++ b/specification/containerregistry/resource-manager/readme.az.md
@@ -0,0 +1,20 @@
+## AZ
+
+These settings apply only when `--az` is specified on the command line.
+
+``` yaml $(az)
+az:
+ extensions: containerregistry
+ namespace: azure.mgmt.containerregistry
+ package-name: azure-mgmt-containerregistry
+az-output-folder: $(azure-cli-extension-folder)/src/containerregistry
+python-sdk-output-folder: "$(az-output-folder)/azext_containerregistry/vendored_sdks/containerregistry"
+
+#cli:
+# cli-directive:
+# - where:
+# group: MachineLearningCompute
+# op: CreateOrUpdate
+# param: properties
+# poly-resource: true
+```
diff --git a/specification/containerregistry/resource-manager/readme.cli.md b/specification/containerregistry/resource-manager/readme.cli.md
new file mode 100644
index 000000000000..c88be4f1c90e
--- /dev/null
+++ b/specification/containerregistry/resource-manager/readme.cli.md
@@ -0,0 +1,9 @@
+ CLI
+
+These settings apply only when `--cli` is specified on the command line.
+
+``` yaml $(cli)
+#cli:
+# test-scenario:
+# - name: Example_CreateOrUpdate
+```
\ No newline at end of file
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2019-11-01/examples/AgentPools_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2019-11-01/examples/AgentPools_Update.json
new file mode 100644
index 000000000000..cf4d40d62ade
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2019-11-01/examples/AgentPools_Update.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "api-version": "2019-11-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1",
+ "parameters": {
+ "properties": {
+ "orchestratorVersion": "",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Updating",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2019-11-01/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2019-11-01/managedClusters.json
index 3a873962adcd..8282d9264ca7 100644
--- a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2019-11-01/managedClusters.json
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2019-11-01/managedClusters.json
@@ -719,6 +719,9 @@
"x-ms-examples": {
"Create/Update Agent Pool": {
"$ref": "./examples/AgentPoolsCreate_Update.json"
+ },
+ "Update Agent Pool": {
+ "$ref": "./examples/AgentPools_Update.json"
}
}
},
@@ -1423,10 +1426,7 @@
"count": {
"type": "integer",
"format": "int32",
- "maximum": 100,
- "minimum": 1,
- "description": "Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. ",
- "default": 1
+ "description": "Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1."
},
"vmSize": {
"$ref": "#/definitions/ContainerServiceVMSize",
@@ -1517,10 +1517,6 @@
"description": "Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule."
}
},
- "required": [
- "vmSize",
- "count"
- ],
"description": "Properties for the container service agent pool profile."
},
"ManagedClusterAgentPoolProfile": {
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-01-01/examples/AgentPools_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-01-01/examples/AgentPools_Update.json
new file mode 100644
index 000000000000..ed54e42a197a
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-01-01/examples/AgentPools_Update.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1",
+ "parameters": {
+ "properties": {
+ "orchestratorVersion": "",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Updating",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-01-01/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-01-01/managedClusters.json
index 4e21f399e3b1..dea09d26dea6 100644
--- a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-01-01/managedClusters.json
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-01-01/managedClusters.json
@@ -719,6 +719,9 @@
"x-ms-examples": {
"Create/Update Agent Pool": {
"$ref": "./examples/AgentPoolsCreate_Update.json"
+ },
+ "Update Agent Pool": {
+ "$ref": "./examples/AgentPools_Update.json"
}
}
},
@@ -1423,10 +1426,7 @@
"count": {
"type": "integer",
"format": "int32",
- "maximum": 100,
- "minimum": 1,
- "description": "Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. ",
- "default": 1
+ "description": "Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1."
},
"vmSize": {
"$ref": "#/definitions/ContainerServiceVMSize",
@@ -1517,10 +1517,6 @@
"description": "Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule."
}
},
- "required": [
- "vmSize",
- "count"
- ],
"description": "Properties for the container service agent pool profile."
},
"ManagedClusterAgentPoolProfile": {
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-02-01/examples/AgentPools_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-02-01/examples/AgentPools_Update.json
new file mode 100644
index 000000000000..e80f903f7305
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-02-01/examples/AgentPools_Update.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "api-version": "2020-02-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1",
+ "parameters": {
+ "properties": {
+ "orchestratorVersion": "",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Updating",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-02-01/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-02-01/managedClusters.json
index 09a127a07480..4c23040f7b7a 100644
--- a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-02-01/managedClusters.json
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-02-01/managedClusters.json
@@ -720,6 +720,9 @@
"Create/Update Agent Pool": {
"$ref": "./examples/AgentPoolsCreate_Update.json"
},
+ "Update Agent Pool": {
+ "$ref": "./examples/AgentPools_Update.json"
+ },
"Create Spot Agent Pool": {
"$ref": "./examples/AgentPoolsCreate_Spot.json"
}
@@ -1426,10 +1429,7 @@
"count": {
"type": "integer",
"format": "int32",
- "maximum": 100,
- "minimum": 1,
- "description": "Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. ",
- "default": 1
+ "description": "Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1."
},
"vmSize": {
"$ref": "#/definitions/ContainerServiceVMSize",
@@ -1524,10 +1524,6 @@
"description": "Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule."
}
},
- "required": [
- "vmSize",
- "count"
- ],
"description": "Properties for the container service agent pool profile."
},
"ManagedClusterAgentPoolProfile": {
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/examples/AgentPools_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/examples/AgentPools_Update.json
new file mode 100644
index 000000000000..8bd933ab157b
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/examples/AgentPools_Update.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1",
+ "parameters": {
+ "properties": {
+ "orchestratorVersion": "",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Updating",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Low",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/managedClusters.json
index 28cee03f5637..894a1ab3fb3b 100644
--- a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/managedClusters.json
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/managedClusters.json
@@ -720,6 +720,9 @@
"Create/Update Agent Pool": {
"$ref": "./examples/AgentPoolsCreate_Update.json"
},
+ "Update Agent Pool": {
+ "$ref": "./examples/AgentPools_Update.json"
+ },
"Create Spot Agent Pool": {
"$ref": "./examples/AgentPoolsCreate_Spot.json"
}
@@ -1426,10 +1429,7 @@
"count": {
"type": "integer",
"format": "int32",
- "maximum": 100,
- "minimum": 0,
- "description": "Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 100 (inclusive). The default value is 1. ",
- "default": 1
+ "description": "Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 100 (inclusive) for user pools and in the range of 1 to 100 (inclusive) for system pools. The default value is 1."
},
"vmSize": {
"$ref": "#/definitions/ContainerServiceVMSize",
@@ -1528,10 +1528,6 @@
"description": "Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule."
}
},
- "required": [
- "vmSize",
- "count"
- ],
"description": "Properties for the container service agent pool profile."
},
"ManagedClusterAgentPoolProfile": {
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsCreate_Spot.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsCreate_Spot.json
new file mode 100644
index 000000000000..bee43cf83fe6
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsCreate_Spot.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1",
+ "parameters": {
+ "properties": {
+ "orchestratorVersion": "",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "osType": "Linux",
+ "tags": {
+ "name1": "val1"
+ },
+ "nodeLabels": {
+ "key1": "val1"
+ },
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Spot",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "tags": {
+ "name1": "val1"
+ },
+ "nodeLabels": {
+ "key1": "val1"
+ },
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Spot",
+ "scaleSetEvictionPolicy": "Delete",
+ "spotMaxPrice": -1
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Creating",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "tags": {
+ "name1": "val1"
+ },
+ "nodeLabels": {
+ "key1": "val1"
+ },
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Spot",
+ "scaleSetEvictionPolicy": "Delete",
+ "spotMaxPrice": -1
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsCreate_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsCreate_Update.json
new file mode 100644
index 000000000000..e651a428325f
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsCreate_Update.json
@@ -0,0 +1,86 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1",
+ "parameters": {
+ "properties": {
+ "orchestratorVersion": "",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "osType": "Linux",
+ "tags": {
+ "name1": "val1"
+ },
+ "nodeLabels": {
+ "key1": "val1"
+ },
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Spot",
+ "scaleSetEvictionPolicy": "Delete",
+ "mode": "User"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "tags": {
+ "name1": "val1"
+ },
+ "nodeLabels": {
+ "key1": "val1"
+ },
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Spot",
+ "scaleSetEvictionPolicy": "Delete",
+ "mode": "User",
+ "nodeImageVersion": "AKSUbuntu:1604:2020.03.11"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Creating",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "tags": {
+ "name1": "val1"
+ },
+ "nodeLabels": {
+ "key1": "val1"
+ },
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Spot",
+ "scaleSetEvictionPolicy": "Delete",
+ "mode": "User"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsDelete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsDelete.json
new file mode 100644
index 000000000000..b1cc407c97ef
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGet.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGet.json
new file mode 100644
index 000000000000..5f45d3a1d359
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGet.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "orchestratorVersion": "1.9.6",
+ "nodeImageVersion": "AKSUbuntu:1604:2020.03.11",
+ "upgradeSettings": {
+ "maxSurge": "33%"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json
new file mode 100644
index 000000000000..f5030d56cbe8
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/availableagentpoolversions",
+ "name": "default",
+ "properties": {
+ "agentPoolVersions": [
+ {
+ "kubernetesVersion": "1.12.7"
+ },
+ {
+ "kubernetesVersion": "1.12.8"
+ },
+ {
+ "default": true,
+ "kubernetesVersion": "1.13.5",
+ "isPreview": true
+ }
+ ]
+ },
+ "type": "Microsoft.ContainerService/managedClusters/availableAgentpoolVersions"
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGetUpgradeProfile.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGetUpgradeProfile.json
new file mode 100644
index 000000000000..fdddcbaf8d98
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsGetUpgradeProfile.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1/upgradeprofiles/default",
+ "name": "default",
+ "properties": {
+ "kubernetesVersion": "1.12.8",
+ "osType": "Linux",
+ "upgrades": [
+ {
+ "kubernetesVersion": "1.13.5"
+ }
+ ],
+ "latestNodeImageVersion": "AKSUbuntu:1604:2020.03.11"
+ },
+ "type": "Microsoft.ContainerService/managedClusters/agentPools/upgradeProfiles"
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsList.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsList.json
new file mode 100644
index 000000000000..2790bd1676f8
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPoolsList.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "orchestratorVersion": "1.9.6",
+ "nodeImageVersion": "AKSUbuntu:1604:2020.03.11"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPools_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPools_Update.json
new file mode 100644
index 000000000000..07f907e2c01b
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/AgentPools_Update.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "agentPoolName": "agentpool1",
+ "parameters": {
+ "properties": {
+ "orchestratorVersion": "",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Spot",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Spot",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
+ "type": "Microsoft.ContainerService/managedClusters/agentPools",
+ "name": "agentpool1",
+ "properties": {
+ "provisioningState": "Updating",
+ "orchestratorVersion": "1.9.6",
+ "count": 3,
+ "enableAutoScaling": true,
+ "minCount": 2,
+ "maxCount": 2,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "nodeTaints": [
+ "Key1=Value1:NoSchedule"
+ ],
+ "scaleSetPriority": "Spot",
+ "scaleSetEvictionPolicy": "Delete"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersCreate_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersCreate_Update.json
new file mode 100644
index 000000000000..a0b14bbe8a20
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersCreate_Update.json
@@ -0,0 +1,249 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "parameters": {
+ "location": "location1",
+ "tags": {
+ "tier": "production",
+ "archv2": ""
+ },
+ "sku": {
+ "name": "Basic",
+ "tier": "Free"
+ },
+ "properties": {
+ "kubernetesVersion": "",
+ "dnsPrefix": "dnsprefix1",
+ "agentPoolProfiles": [
+ {
+ "name": "nodepool1",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "osType": "Linux",
+ "type": "VirtualMachineScaleSets",
+ "availabilityZones": [
+ "1",
+ "2",
+ "3"
+ ],
+ "enableNodePublicIP": true,
+ "mode": "System",
+ "nodeImageVersion": "AKSUbuntu:1604:2020.03.11"
+ }
+ ],
+ "linuxProfile": {
+ "adminUsername": "azureuser",
+ "ssh": {
+ "publicKeys": [
+ {
+ "keyData": "keydata"
+ }
+ ]
+ }
+ },
+ "networkProfile": {
+ "loadBalancerSku": "standard",
+ "outboundType": "loadBalancer",
+ "loadBalancerProfile": {
+ "managedOutboundIPs": {
+ "count": 2
+ }
+ }
+ },
+ "autoScalerProfile": {
+ "scan-interval": "20s",
+ "scale-down-delay-after-add": "15m"
+ },
+ "windowsProfile": {
+ "adminUsername": "azureuser",
+ "adminPassword": "replacePassword1234$"
+ },
+ "servicePrincipalProfile": {
+ "clientId": "clientid",
+ "secret": "secret"
+ },
+ "addonProfiles": {},
+ "enableRBAC": true,
+ "diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
+ "enablePodSecurityPolicy": true
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1",
+ "location": "location1",
+ "name": "clustername1",
+ "tags": {
+ "archv2": "",
+ "tier": "production"
+ },
+ "type": "Microsoft.ContainerService/ManagedClusters",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "maxAgentPools": 1,
+ "kubernetesVersion": "1.9.6",
+ "dnsPrefix": "dnsprefix1",
+ "agentPoolProfiles": [
+ {
+ "name": "nodepool1",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6",
+ "type": "VirtualMachineScaleSets",
+ "availabilityZones": [
+ "1",
+ "2",
+ "3"
+ ],
+ "enableNodePublicIP": true,
+ "mode": "System",
+ "nodeImageVersion": "AKSUbuntu:1604:2020.03.11"
+ }
+ ],
+ "linuxProfile": {
+ "adminUsername": "azureuser",
+ "ssh": {
+ "publicKeys": [
+ {
+ "keyData": "keydata"
+ }
+ ]
+ }
+ },
+ "windowsProfile": {
+ "adminUsername": "azureuser"
+ },
+ "servicePrincipalProfile": {
+ "clientId": "clientid"
+ },
+ "nodeResourceGroup": "MC_rg1_clustername1_location1",
+ "enableRBAC": true,
+ "diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
+ "enablePodSecurityPolicy": true,
+ "fqdn": "dnsprefix1-abcd1234.hcp.eastus.azmk8s.io",
+ "networkProfile": {
+ "loadBalancerSku": "basic",
+ "networkPlugin": "kubenet",
+ "podCidr": "10.244.0.0/16",
+ "serviceCidr": "10.0.0.0/16",
+ "dnsServiceIP": "10.0.0.10",
+ "dockerBridgeCidr": "172.17.0.1/16",
+ "outboundType": "loadBalancer",
+ "loadBalancerProfile": {
+ "allocatedOutboundPorts": 2000,
+ "idleTimeoutInMinutes": 10,
+ "managedOutboundIPs": {
+ "count": 2
+ },
+ "effectiveOutboundIPs": [
+ {
+ "id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip1"
+ },
+ {
+ "id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip2"
+ }
+ ]
+ }
+ },
+ "autoScalerProfile": {
+ "scan-interval": "20s",
+ "scale-down-delay-after-add": "15m"
+ }
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1",
+ "location": "location1",
+ "name": "clustername1",
+ "tags": {
+ "archv2": "",
+ "tier": "production"
+ },
+ "type": "Microsoft.ContainerService/ManagedClusters",
+ "properties": {
+ "provisioningState": "Creating",
+ "maxAgentPools": 1,
+ "kubernetesVersion": "1.9.6",
+ "dnsPrefix": "dnsprefix1",
+ "agentPoolProfiles": [
+ {
+ "name": "nodepool1",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "provisioningState": "Creating",
+ "orchestratorVersion": "1.9.6",
+ "type": "VirtualMachineScaleSets",
+ "availabilityZones": [
+ "1",
+ "2",
+ "3"
+ ],
+ "enableNodePublicIP": true,
+ "mode": "System"
+ }
+ ],
+ "linuxProfile": {
+ "adminUsername": "azureuser",
+ "ssh": {
+ "publicKeys": [
+ {
+ "keyData": "keydata"
+ }
+ ]
+ }
+ },
+ "windowsProfile": {
+ "adminUsername": "azureuser"
+ },
+ "servicePrincipalProfile": {
+ "clientId": "clientid"
+ },
+ "nodeResourceGroup": "MC_rg1_clustername1_location1",
+ "enableRBAC": true,
+ "diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
+ "enablePodSecurityPolicy": true,
+ "networkProfile": {
+ "networkPlugin": "kubenet",
+ "podCidr": "10.244.0.0/16",
+ "serviceCidr": "10.0.0.0/16",
+ "dnsServiceIP": "10.0.0.10",
+ "dockerBridgeCidr": "172.17.0.1/16",
+ "loadBalancerSku": "standard",
+ "outboundType": "loadBalancer",
+ "loadBalancerProfile": {
+ "allocatedOutboundPorts": 2000,
+ "idleTimeoutInMinutes": 10,
+ "managedOutboundIPs": {
+ "count": 2
+ },
+ "effectiveOutboundIPs": [
+ {
+ "id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip1"
+ },
+ {
+ "id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip2"
+ }
+ ]
+ }
+ },
+ "autoScalerProfile": {
+ "scan-interval": "20s",
+ "scale-down-delay-after-add": "15m"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersDelete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersDelete.json
new file mode 100644
index 000000000000..d1ca56789c89
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersDelete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGet.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGet.json
new file mode 100644
index 000000000000..51cd895d5dbf
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGet.json
@@ -0,0 +1,96 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1",
+ "location": "location1",
+ "name": "clustername1",
+ "tags": {
+ "archv2": "",
+ "tier": "production"
+ },
+ "type": "Microsoft.ContainerService/ManagedClusters",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "maxAgentPools": 1,
+ "kubernetesVersion": "1.9.6",
+ "dnsPrefix": "dnsprefix1",
+ "fqdn": "dnsprefix1-abcd1234.hcp.eastus.azmk8s.io",
+ "agentPoolProfiles": [
+ {
+ "name": "nodepool1",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6",
+ "availabilityZones": [
+ "1",
+ "2",
+ "3"
+ ],
+ "nodeImageVersion": "AKSUbuntu:1604:2020.03.11",
+ "upgradeSettings": {
+ "maxSurge": "33%"
+ }
+ }
+ ],
+ "linuxProfile": {
+ "adminUsername": "azureuser",
+ "ssh": {
+ "publicKeys": [
+ {
+ "keyData": "keydata"
+ }
+ ]
+ }
+ },
+ "servicePrincipalProfile": {
+ "clientId": "clientid"
+ },
+ "nodeResourceGroup": "MC_rg1_clustername1_location1",
+ "enableRBAC": false,
+ "diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
+ "networkProfile": {
+ "networkPlugin": "kubenet",
+ "podCidr": "10.244.0.0/16",
+ "serviceCidr": "10.0.0.0/16",
+ "dnsServiceIP": "10.0.0.10",
+ "dockerBridgeCidr": "172.17.0.1/16",
+ "loadBalancerSku": "standard",
+ "outboundType": "loadBalancer",
+ "loadBalancerProfile": {
+ "allocatedOutboundPorts": 2000,
+ "idleTimeoutInMinutes": 10,
+ "outboundIPs": {
+ "publicIPs": [
+ {
+ "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/customeroutboundip1"
+ },
+ {
+ "id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/customeroutboundip2"
+ }
+ ]
+ },
+ "effectiveOutboundIPs": [
+ {
+ "id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip1"
+ },
+ {
+ "id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip2"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGetAccessProfile.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGetAccessProfile.json
new file mode 100644
index 000000000000..b8684d2d7adf
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGetAccessProfile.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "roleName": "clusterUser"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/accessProfiles/clusterUser",
+ "location": "location1",
+ "name": "clusterUser",
+ "properties": {
+ "kubeConfig": "kubeConfig1"
+ },
+ "type": "Microsoft.ContainerService/ManagedClusters/AccessProfiles"
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGetUpgradeProfile.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGetUpgradeProfile.json
new file mode 100644
index 000000000000..4bfc5b558f3f
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersGetUpgradeProfile.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/upgradeprofiles/default",
+ "name": "default",
+ "properties": {
+ "agentPoolProfiles": [
+ {
+ "kubernetesVersion": "1.7.7",
+ "name": "agent",
+ "osType": "Linux",
+ "upgrades": [
+ {
+ "kubernetesVersion": "1.7.9"
+ },
+ {
+ "kubernetesVersion": "1.7.11",
+ "isPreview": true
+ }
+ ]
+ }
+ ],
+ "controlPlaneProfile": {
+ "kubernetesVersion": "1.7.7",
+ "name": "master",
+ "osType": "Linux",
+ "upgrades": [
+ {
+ "kubernetesVersion": "1.7.9",
+ "isPreview": true
+ },
+ {
+ "kubernetesVersion": "1.7.11"
+ }
+ ]
+ }
+ },
+ "type": "Microsoft.ContainerService/managedClusters/upgradeprofiles"
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersList.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersList.json
new file mode 100644
index 000000000000..2cfd288fc78e
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersList.json
@@ -0,0 +1,65 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid1/providers/Microsoft.ContainerService/managedClusters",
+ "location": "location1",
+ "name": "clustername1",
+ "tags": {
+ "archv2": "",
+ "tier": "production"
+ },
+ "type": "Microsoft.ContainerService/ManagedClusters",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "kubernetesVersion": "1.9.6",
+ "maxAgentPools": 1,
+ "dnsPrefix": "dnsprefix1",
+ "fqdn": "dnsprefix1-abcd1234.hcp.eastus.azmk8s.io",
+ "agentPoolProfiles": [
+ {
+ "name": "nodepool1",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6"
+ }
+ ],
+ "linuxProfile": {
+ "adminUsername": "azureuser",
+ "ssh": {
+ "publicKeys": [
+ {
+ "keyData": "keydata"
+ }
+ ]
+ }
+ },
+ "servicePrincipalProfile": {
+ "clientId": "clientid"
+ },
+ "nodeResourceGroup": "MC_rg1_clustername1_location1",
+ "enableRBAC": false,
+ "diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
+ "networkProfile": {
+ "networkPlugin": "kubenet",
+ "podCidr": "10.244.0.0/16",
+ "serviceCidr": "10.0.0.0/16",
+ "dnsServiceIP": "10.0.0.10",
+ "dockerBridgeCidr": "172.17.0.1/16"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersListByResourceGroup.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersListByResourceGroup.json
new file mode 100644
index 000000000000..ff5aa73e5873
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersListByResourceGroup.json
@@ -0,0 +1,66 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters",
+ "location": "location1",
+ "name": "clustername1",
+ "tags": {
+ "archv2": "",
+ "tier": "production"
+ },
+ "type": "Microsoft.ContainerService/ManagedClusters",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "kubernetesVersion": "1.9.6",
+ "maxAgentPools": 1,
+ "dnsPrefix": "dnsprefix1",
+ "fqdn": "dnsprefix1-abcd1234.hcp.eastus.azmk8s.io",
+ "agentPoolProfiles": [
+ {
+ "name": "nodepool1",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6"
+ }
+ ],
+ "linuxProfile": {
+ "adminUsername": "azureuser",
+ "ssh": {
+ "publicKeys": [
+ {
+ "keyData": "keydata"
+ }
+ ]
+ }
+ },
+ "servicePrincipalProfile": {
+ "clientId": "clientid"
+ },
+ "nodeResourceGroup": "MC_rg1_clustername1_location1",
+ "enableRBAC": false,
+ "diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
+ "networkProfile": {
+ "networkPlugin": "kubenet",
+ "podCidr": "10.244.0.0/16",
+ "serviceCidr": "10.0.0.0/16",
+ "dnsServiceIP": "10.0.0.10",
+ "dockerBridgeCidr": "172.17.0.1/16"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersListClusterCredentialResult.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersListClusterCredentialResult.json
new file mode 100644
index 000000000000..875612fc19b0
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersListClusterCredentialResult.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "kubeconfigs": [
+ {
+ "name": "credentialName1",
+ "value": "credentialValue1"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersResetAADProfile.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersResetAADProfile.json
new file mode 100644
index 000000000000..53ea2a956c86
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersResetAADProfile.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "parameters": {
+ "clientAppID": "clientappid",
+ "serverAppID": "serverappid",
+ "serverAppSecret": "serverappsecret",
+ "tenantID": "tenantid"
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersResetServicePrincipalProfile.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersResetServicePrincipalProfile.json
new file mode 100644
index 000000000000..b360bdbfc241
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersResetServicePrincipalProfile.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "parameters": {
+ "clientId": "clientid",
+ "secret": "secret"
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersRotateClusterCertificates.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersRotateClusterCertificates.json
new file mode 100644
index 000000000000..d1ca56789c89
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersRotateClusterCertificates.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersUpdateTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersUpdateTags.json
new file mode 100644
index 000000000000..8e4bd9677042
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/examples/ManagedClustersUpdateTags.json
@@ -0,0 +1,68 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid1",
+ "resourceGroupName": "rg1",
+ "resourceName": "clustername1",
+ "parameters": {
+ "tags": {
+ "tier": "testing",
+ "archv3": ""
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1",
+ "location": "location1",
+ "name": "clustername1",
+ "tags": {
+ "archv3": "",
+ "tier": "testing"
+ },
+ "type": "Microsoft.ContainerService/ManagedClusters",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "kubernetesVersion": "1.9.6",
+ "dnsPrefix": "dnsprefix1",
+ "agentPoolProfiles": [
+ {
+ "name": "nodepool1",
+ "count": 3,
+ "vmSize": "Standard_DS1_v2",
+ "maxPods": 110,
+ "osType": "Linux",
+ "provisioningState": "Succeeded",
+ "orchestratorVersion": "1.9.6"
+ }
+ ],
+ "linuxProfile": {
+ "adminUsername": "azureuser",
+ "ssh": {
+ "publicKeys": [
+ {
+ "keyData": "keydata"
+ }
+ ]
+ }
+ },
+ "servicePrincipalProfile": {
+ "clientId": "clientid"
+ },
+ "nodeResourceGroup": "MC_rg1_clustername1_location1",
+ "enableRBAC": false,
+ "diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des",
+ "fqdn": "dnsprefix1-abcd1234.hcp.eastus.azmk8s.io",
+ "networkProfile": {
+ "networkPlugin": "kubenet",
+ "podCidr": "10.244.0.0/16",
+ "serviceCidr": "10.0.0.0/16",
+ "dnsServiceIP": "10.0.0.10",
+ "dockerBridgeCidr": "172.17.0.1/16"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/managedClusters.json
new file mode 100644
index 000000000000..83b5e9e30cbb
--- /dev/null
+++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-04-01/managedClusters.json
@@ -0,0 +1,2609 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "ContainerServiceClient",
+ "description": "The Container Service Client.",
+ "version": "2020-04-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.ContainerService/operations": {
+ "get": {
+ "tags": [
+ "managedClusters"
+ ],
+ "operationId": "Operations_List",
+ "description": "Gets a list of compute operations.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters": {
+ "get": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_List",
+ "summary": "Gets a list of managed clusters in the specified subscription.",
+ "description": "Gets a list of managed clusters in the specified subscription. The operation returns properties of each managed cluster.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedClusterListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Managed Clusters": {
+ "$ref": "./examples/ManagedClustersList.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters": {
+ "get": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_ListByResourceGroup",
+ "summary": "Lists managed clusters in the specified subscription and resource group.",
+ "description": "Lists managed clusters in the specified subscription and resource group. The operation returns properties of each managed cluster.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedClusterListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Get Managed Clusters by Resource Group": {
+ "$ref": "./examples/ManagedClustersListByResourceGroup.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default": {
+ "get": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_GetUpgradeProfile",
+ "summary": "Gets upgrade profile for a managed cluster.",
+ "description": "Gets the details of the upgrade profile for a managed cluster with a specified resource group and name.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedClusterUpgradeProfile"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Upgrade Profile for Managed Cluster": {
+ "$ref": "./examples/ManagedClustersGetUpgradeProfile.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential": {
+ "post": {
+ "deprecated": true,
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_GetAccessProfile",
+ "summary": "Gets an access profile of a managed cluster.",
+ "description": "Gets the accessProfile for the specified role name of the managed cluster with a specified resource group and name. **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/en-us/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/en-us/rest/api/aks/managedclusters/listclusteradmincredentials) .",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "roleName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the role for managed cluster accessProfile resource."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedClusterAccessProfile"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Managed Cluster": {
+ "$ref": "./examples/ManagedClustersGetAccessProfile.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential": {
+ "post": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_ListClusterAdminCredentials",
+ "summary": "Gets cluster admin credential of a managed cluster.",
+ "description": "Gets cluster admin credential of the managed cluster with a specified resource group and name.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CredentialResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Managed Cluster": {
+ "$ref": "./examples/ManagedClustersListClusterCredentialResult.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential": {
+ "post": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_ListClusterUserCredentials",
+ "summary": "Gets cluster user credential of a managed cluster.",
+ "description": "Gets cluster user credential of the managed cluster with a specified resource group and name.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CredentialResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Managed Cluster": {
+ "$ref": "./examples/ManagedClustersListClusterCredentialResult.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential": {
+ "post": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_ListClusterMonitoringUserCredentials",
+ "summary": "Gets cluster monitoring user credential of a managed cluster.",
+ "description": "Gets cluster monitoring user credential of the managed cluster with a specified resource group and name.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CredentialResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Managed Cluster": {
+ "$ref": "./examples/ManagedClustersListClusterCredentialResult.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}": {
+ "get": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_Get",
+ "summary": "Gets a managed cluster.",
+ "description": "Gets the details of the managed cluster with a specified resource group and name.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedCluster"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Managed Cluster": {
+ "$ref": "./examples/ManagedClustersGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_CreateOrUpdate",
+ "summary": "Creates or updates a managed cluster.",
+ "description": "Creates or updates a managed cluster with the specified configuration for agents and Kubernetes version.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ManagedCluster"
+ },
+ "description": "Parameters supplied to the Create or Update a Managed Cluster operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedCluster"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/ManagedCluster"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create/Update Managed Cluster": {
+ "$ref": "./examples/ManagedClustersCreate_Update.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_UpdateTags",
+ "summary": "Updates tags on a managed cluster.",
+ "description": "Updates a managed cluster with the specified tags.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TagsObject"
+ },
+ "description": "Parameters supplied to the Update Managed Cluster Tags operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ManagedCluster"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Update Managed Cluster Tags": {
+ "$ref": "./examples/ManagedClustersUpdateTags.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_Delete",
+ "summary": "Deletes a managed cluster.",
+ "description": "Deletes the managed cluster with a specified resource group and name.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Delete Managed Cluster": {
+ "$ref": "./examples/ManagedClustersDelete.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools": {
+ "get": {
+ "tags": [
+ "AgentPools"
+ ],
+ "operationId": "AgentPools_List",
+ "summary": "Gets a list of agent pools in the specified managed cluster.",
+ "description": "Gets a list of agent pools in the specified managed cluster. The operation returns properties of each agent pool.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AgentPoolListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Agent Pools by Managed Cluster": {
+ "$ref": "./examples/AgentPoolsList.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}": {
+ "get": {
+ "tags": [
+ "AgentPools"
+ ],
+ "operationId": "AgentPools_Get",
+ "summary": "Gets the agent pool.",
+ "description": "Gets the details of the agent pool by managed cluster and resource group.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "agentPoolName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the agent pool."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AgentPool"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Agent Pool": {
+ "$ref": "./examples/AgentPoolsGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "AgentPools"
+ ],
+ "operationId": "AgentPools_CreateOrUpdate",
+ "summary": "Creates or updates an agent pool.",
+ "description": "Creates or updates an agent pool in the specified managed cluster.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "agentPoolName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the agent pool."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/AgentPool"
+ },
+ "description": "Parameters supplied to the Create or Update an agent pool operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AgentPool"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/AgentPool"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create/Update Agent Pool": {
+ "$ref": "./examples/AgentPoolsCreate_Update.json"
+ },
+ "Update Agent Pool": {
+ "$ref": "./examples/AgentPools_Update.json"
+ },
+ "Create Spot Agent Pool": {
+ "$ref": "./examples/AgentPoolsCreate_Spot.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "AgentPools"
+ ],
+ "operationId": "AgentPools_Delete",
+ "summary": "Deletes an agent pool.",
+ "description": "Deletes the agent pool in the specified managed cluster.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "agentPoolName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the agent pool."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Delete Agent Pool": {
+ "$ref": "./examples/AgentPoolsDelete.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default": {
+ "get": {
+ "tags": [
+ "AgentPools"
+ ],
+ "operationId": "AgentPools_GetUpgradeProfile",
+ "summary": "Gets upgrade profile for an agent pool.",
+ "description": "Gets the details of the upgrade profile for an agent pool with a specified resource group and managed cluster name.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "agentPoolName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the agent pool."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AgentPoolUpgradeProfile"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Upgrade Profile for Agent Pool": {
+ "$ref": "./examples/AgentPoolsGetUpgradeProfile.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions": {
+ "get": {
+ "tags": [
+ "AgentPools"
+ ],
+ "operationId": "AgentPools_GetAvailableAgentPoolVersions",
+ "summary": "Gets a list of supported versions for the specified agent pool.",
+ "description": "Gets a list of supported versions for the specified agent pool.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AgentPoolAvailableVersions"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get available versions for agent pool": {
+ "$ref": "./examples/AgentPoolsGetAgentPoolAvailableVersions.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile": {
+ "post": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_ResetServicePrincipalProfile",
+ "summary": "Reset Service Principal Profile of a managed cluster.",
+ "description": "Update the service principal Profile for a managed cluster.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ManagedClusterServicePrincipalProfile"
+ },
+ "description": "Parameters supplied to the Reset Service Principal Profile operation for a Managed Cluster."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed. If the cluster doesn't exist, 404 (Not found) is returned.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Reset Service Principal Profile": {
+ "$ref": "./examples/ManagedClustersResetServicePrincipalProfile.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile": {
+ "post": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_ResetAADProfile",
+ "summary": "Reset AAD Profile of a managed cluster.",
+ "description": "Update the AAD Profile for a managed cluster.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ManagedClusterAADProfile"
+ },
+ "description": "Parameters supplied to the Reset AAD Profile operation for a Managed Cluster."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed. If the cluster doesn't exist, 404 (Not found) is returned.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Reset AAD Profile": {
+ "$ref": "./examples/ManagedClustersResetAADProfile.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates": {
+ "post": {
+ "tags": [
+ "ManagedClusters"
+ ],
+ "operationId": "ManagedClusters_RotateClusterCertificates",
+ "summary": "Rotate certificates of a managed cluster.",
+ "description": "Rotate certificates of a managed cluster.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed. If the cluster doesn't exist, 404 (Not found) is returned.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Rotate Cluster Certificates": {
+ "$ref": "./examples/ManagedClustersRotateClusterCertificates.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "OperationListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/OperationValue"
+ },
+ "description": "The list of compute operations"
+ }
+ },
+ "description": "The List Compute Operation operation response."
+ },
+ "OperationValue": {
+ "properties": {
+ "origin": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The origin of the compute operation."
+ },
+ "name": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The name of the compute operation."
+ },
+ "display": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/OperationValueDisplay",
+ "description": "Describes the properties of a Compute Operation Value Display."
+ }
+ },
+ "description": "Describes the properties of a Compute Operation value."
+ },
+ "OperationValueDisplay": {
+ "properties": {
+ "operation": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The display name of the compute operation."
+ },
+ "resource": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The display name of the resource the operation applies to."
+ },
+ "description": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The description of the operation."
+ },
+ "provider": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The resource provider for the operation."
+ }
+ },
+ "description": "Describes the properties of a Compute Operation Value Display."
+ },
+ "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"
+ }
+ },
+ "required": [
+ "location"
+ ],
+ "x-ms-azure-resource": true
+ },
+ "SubResource": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Resource ID."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the resource that is unique within a resource group. This name can be used to access the resource."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Resource type"
+ }
+ },
+ "description": "Reference to another subresource.",
+ "x-ms-azure-resource": true
+ },
+ "TagsObject": {
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags."
+ }
+ },
+ "description": "Tags object for patch operations."
+ },
+ "ContainerServiceOSDisk": {
+ "type": "integer",
+ "format": "int32",
+ "maximum": 1023,
+ "minimum": 0,
+ "description": "OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified."
+ },
+ "ContainerServiceStorageProfile": {
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ContainerServiceStorageProfileTypes",
+ "modelAsString": true
+ },
+ "enum": [
+ "StorageAccount",
+ "ManagedDisks"
+ ],
+ "description": "Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice."
+ },
+ "ContainerServiceVnetSubnetID": {
+ "type": "string",
+ "description": "VNet SubnetID specifies the VNet's subnet identifier."
+ },
+ "ContainerServiceVMSize": {
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ContainerServiceVMSizeTypes",
+ "modelAsString": true
+ },
+ "description": "Size of agent VMs.",
+ "enum": [
+ "Standard_A1",
+ "Standard_A10",
+ "Standard_A11",
+ "Standard_A1_v2",
+ "Standard_A2",
+ "Standard_A2_v2",
+ "Standard_A2m_v2",
+ "Standard_A3",
+ "Standard_A4",
+ "Standard_A4_v2",
+ "Standard_A4m_v2",
+ "Standard_A5",
+ "Standard_A6",
+ "Standard_A7",
+ "Standard_A8",
+ "Standard_A8_v2",
+ "Standard_A8m_v2",
+ "Standard_A9",
+ "Standard_B2ms",
+ "Standard_B2s",
+ "Standard_B4ms",
+ "Standard_B8ms",
+ "Standard_D1",
+ "Standard_D11",
+ "Standard_D11_v2",
+ "Standard_D11_v2_Promo",
+ "Standard_D12",
+ "Standard_D12_v2",
+ "Standard_D12_v2_Promo",
+ "Standard_D13",
+ "Standard_D13_v2",
+ "Standard_D13_v2_Promo",
+ "Standard_D14",
+ "Standard_D14_v2",
+ "Standard_D14_v2_Promo",
+ "Standard_D15_v2",
+ "Standard_D16_v3",
+ "Standard_D16s_v3",
+ "Standard_D1_v2",
+ "Standard_D2",
+ "Standard_D2_v2",
+ "Standard_D2_v2_Promo",
+ "Standard_D2_v3",
+ "Standard_D2s_v3",
+ "Standard_D3",
+ "Standard_D32_v3",
+ "Standard_D32s_v3",
+ "Standard_D3_v2",
+ "Standard_D3_v2_Promo",
+ "Standard_D4",
+ "Standard_D4_v2",
+ "Standard_D4_v2_Promo",
+ "Standard_D4_v3",
+ "Standard_D4s_v3",
+ "Standard_D5_v2",
+ "Standard_D5_v2_Promo",
+ "Standard_D64_v3",
+ "Standard_D64s_v3",
+ "Standard_D8_v3",
+ "Standard_D8s_v3",
+ "Standard_DS1",
+ "Standard_DS11",
+ "Standard_DS11_v2",
+ "Standard_DS11_v2_Promo",
+ "Standard_DS12",
+ "Standard_DS12_v2",
+ "Standard_DS12_v2_Promo",
+ "Standard_DS13",
+ "Standard_DS13-2_v2",
+ "Standard_DS13-4_v2",
+ "Standard_DS13_v2",
+ "Standard_DS13_v2_Promo",
+ "Standard_DS14",
+ "Standard_DS14-4_v2",
+ "Standard_DS14-8_v2",
+ "Standard_DS14_v2",
+ "Standard_DS14_v2_Promo",
+ "Standard_DS15_v2",
+ "Standard_DS1_v2",
+ "Standard_DS2",
+ "Standard_DS2_v2",
+ "Standard_DS2_v2_Promo",
+ "Standard_DS3",
+ "Standard_DS3_v2",
+ "Standard_DS3_v2_Promo",
+ "Standard_DS4",
+ "Standard_DS4_v2",
+ "Standard_DS4_v2_Promo",
+ "Standard_DS5_v2",
+ "Standard_DS5_v2_Promo",
+ "Standard_E16_v3",
+ "Standard_E16s_v3",
+ "Standard_E2_v3",
+ "Standard_E2s_v3",
+ "Standard_E32-16s_v3",
+ "Standard_E32-8s_v3",
+ "Standard_E32_v3",
+ "Standard_E32s_v3",
+ "Standard_E4_v3",
+ "Standard_E4s_v3",
+ "Standard_E64-16s_v3",
+ "Standard_E64-32s_v3",
+ "Standard_E64_v3",
+ "Standard_E64s_v3",
+ "Standard_E8_v3",
+ "Standard_E8s_v3",
+ "Standard_F1",
+ "Standard_F16",
+ "Standard_F16s",
+ "Standard_F16s_v2",
+ "Standard_F1s",
+ "Standard_F2",
+ "Standard_F2s",
+ "Standard_F2s_v2",
+ "Standard_F32s_v2",
+ "Standard_F4",
+ "Standard_F4s",
+ "Standard_F4s_v2",
+ "Standard_F64s_v2",
+ "Standard_F72s_v2",
+ "Standard_F8",
+ "Standard_F8s",
+ "Standard_F8s_v2",
+ "Standard_G1",
+ "Standard_G2",
+ "Standard_G3",
+ "Standard_G4",
+ "Standard_G5",
+ "Standard_GS1",
+ "Standard_GS2",
+ "Standard_GS3",
+ "Standard_GS4",
+ "Standard_GS4-4",
+ "Standard_GS4-8",
+ "Standard_GS5",
+ "Standard_GS5-16",
+ "Standard_GS5-8",
+ "Standard_H16",
+ "Standard_H16m",
+ "Standard_H16mr",
+ "Standard_H16r",
+ "Standard_H8",
+ "Standard_H8m",
+ "Standard_L16s",
+ "Standard_L32s",
+ "Standard_L4s",
+ "Standard_L8s",
+ "Standard_M128-32ms",
+ "Standard_M128-64ms",
+ "Standard_M128ms",
+ "Standard_M128s",
+ "Standard_M64-16ms",
+ "Standard_M64-32ms",
+ "Standard_M64ms",
+ "Standard_M64s",
+ "Standard_NC12",
+ "Standard_NC12s_v2",
+ "Standard_NC12s_v3",
+ "Standard_NC24",
+ "Standard_NC24r",
+ "Standard_NC24rs_v2",
+ "Standard_NC24rs_v3",
+ "Standard_NC24s_v2",
+ "Standard_NC24s_v3",
+ "Standard_NC6",
+ "Standard_NC6s_v2",
+ "Standard_NC6s_v3",
+ "Standard_ND12s",
+ "Standard_ND24rs",
+ "Standard_ND24s",
+ "Standard_ND6s",
+ "Standard_NV12",
+ "Standard_NV24",
+ "Standard_NV6"
+ ]
+ },
+ "ManagedClusterServicePrincipalProfile": {
+ "properties": {
+ "clientId": {
+ "type": "string",
+ "description": "The ID for the service principal."
+ },
+ "secret": {
+ "type": "string",
+ "description": "The secret password associated with the service principal in plain text."
+ }
+ },
+ "description": "Information about a service principal identity for the cluster to use for manipulating Azure APIs.",
+ "required": [
+ "clientId"
+ ]
+ },
+ "ContainerServiceMasterProfile": {
+ "properties": {
+ "count": {
+ "type": "integer",
+ "format": "int32",
+ "enum": [
+ 1,
+ 3,
+ 5
+ ],
+ "x-ms-enum": {
+ "name": "Count",
+ "modelAsString": false
+ },
+ "description": "Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default value is 1.",
+ "default": 1
+ },
+ "dnsPrefix": {
+ "type": "string",
+ "description": "DNS prefix to be used to create the FQDN for the master pool."
+ },
+ "vmSize": {
+ "$ref": "#/definitions/ContainerServiceVMSize",
+ "description": "Size of agent VMs."
+ },
+ "osDiskSizeGB": {
+ "$ref": "#/definitions/ContainerServiceOSDisk",
+ "description": "OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified."
+ },
+ "vnetSubnetID": {
+ "$ref": "#/definitions/ContainerServiceVnetSubnetID",
+ "description": "VNet SubnetID specifies the VNet's subnet identifier."
+ },
+ "firstConsecutiveStaticIP": {
+ "type": "string",
+ "description": "FirstConsecutiveStaticIP used to specify the first static ip of masters.",
+ "default": "10.240.255.5"
+ },
+ "storageProfile": {
+ "$ref": "#/definitions/ContainerServiceStorageProfile",
+ "description": "Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice."
+ },
+ "fqdn": {
+ "readOnly": true,
+ "type": "string",
+ "description": "FQDN for the master pool."
+ }
+ },
+ "required": [
+ "dnsPrefix",
+ "vmSize"
+ ],
+ "description": "Profile for the container service master."
+ },
+ "ManagedClusterAgentPoolProfileProperties": {
+ "properties": {
+ "count": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 100 (inclusive) for user pools and in the range of 1 to 100 (inclusive) for system pools. The default value is 1."
+ },
+ "vmSize": {
+ "$ref": "#/definitions/ContainerServiceVMSize",
+ "description": "Size of agent VMs."
+ },
+ "osDiskSizeGB": {
+ "$ref": "#/definitions/ContainerServiceOSDisk",
+ "description": "OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified."
+ },
+ "vnetSubnetID": {
+ "$ref": "#/definitions/ContainerServiceVnetSubnetID",
+ "description": "VNet SubnetID specifies the VNet's subnet identifier."
+ },
+ "maxPods": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Maximum number of pods that can run on a node."
+ },
+ "osType": {
+ "$ref": "#/definitions/OSType",
+ "description": "OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux."
+ },
+ "maxCount": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Maximum number of nodes for auto-scaling"
+ },
+ "minCount": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Minimum number of nodes for auto-scaling"
+ },
+ "enableAutoScaling": {
+ "type": "boolean",
+ "description": "Whether to enable auto-scaler"
+ },
+ "type": {
+ "$ref": "#/definitions/AgentPoolType",
+ "description": "AgentPoolType represents types of an agent pool"
+ },
+ "mode": {
+ "$ref": "#/definitions/AgentPoolMode",
+ "description": "AgentPoolMode represents mode of an agent pool"
+ },
+ "orchestratorVersion": {
+ "type": "string",
+ "description": "Version of orchestrator specified when creating the managed cluster."
+ },
+ "nodeImageVersion": {
+ "type": "string",
+ "description": "Version of node image"
+ },
+ "upgradeSettings": {
+ "$ref": "#/definitions/AgentPoolUpgradeSettings",
+ "description": "Settings for upgrading the agentpool"
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The current deployment or provisioning state, which only appears in the response."
+ },
+ "availabilityZones": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType."
+ },
+ "enableNodePublicIP": {
+ "type": "boolean",
+ "description": "Enable public IP for nodes"
+ },
+ "scaleSetPriority": {
+ "$ref": "#/definitions/ScaleSetPriority",
+ "description": "ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular."
+ },
+ "scaleSetEvictionPolicy": {
+ "$ref": "#/definitions/ScaleSetEvictionPolicy",
+ "description": "ScaleSetEvictionPolicy to be used to specify eviction policy for Spot virtual machine scale set. Default to Delete."
+ },
+ "spotMaxPrice": {
+ "$ref": "#/definitions/SpotMaxPrice",
+ "description": "SpotMaxPrice to be used to specify the maximum price you are willing to pay in US Dollars. Possible values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Agent pool tags to be persisted on the agent pool virtual machine scale set."
+ },
+ "nodeLabels": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Agent pool node labels to be persisted across all nodes in agent pool."
+ },
+ "nodeTaints": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule."
+ }
+ },
+ "description": "Properties for the container service agent pool profile."
+ },
+ "ManagedClusterAgentPoolProfile": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/ManagedClusterAgentPoolProfileProperties"
+ },
+ {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Unique name of the agent pool profile in the context of the subscription and resource group.",
+ "pattern": "^[a-z][a-z0-9]{0,11}$"
+ }
+ }
+ }
+ ],
+ "required": [
+ "name"
+ ],
+ "description": "Profile for the container service agent pool."
+ },
+ "AgentPoolType": {
+ "type": "string",
+ "enum": [
+ "VirtualMachineScaleSets",
+ "AvailabilitySet"
+ ],
+ "x-ms-enum": {
+ "name": "AgentPoolType",
+ "modelAsString": true
+ },
+ "description": "AgentPoolType represents types of an agent pool."
+ },
+ "AgentPoolMode": {
+ "type": "string",
+ "enum": [
+ "System",
+ "User"
+ ],
+ "x-ms-enum": {
+ "name": "AgentPoolMode",
+ "modelAsString": true
+ },
+ "description": "AgentPoolMode represents mode of an agent pool."
+ },
+ "AgentPoolListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AgentPool"
+ },
+ "description": "The list of agent pools."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The URL to get the next set of agent pool results.",
+ "readOnly": true
+ }
+ },
+ "description": "The response from the List Agent Pools operation."
+ },
+ "AgentPoolUpgradeSettings": {
+ "properties": {
+ "maxSurge": {
+ "type": "string",
+ "description": "Count or percentage of additional nodes to be added during upgrade. If empty uses AKS default"
+ }
+ },
+ "description": "Settings for upgrading an agentpool"
+ },
+ "AgentPool": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/SubResource"
+ },
+ {
+ "properties": {
+ "properties": {
+ "description": "Properties of an agent pool.",
+ "$ref": "#/definitions/ManagedClusterAgentPoolProfileProperties",
+ "x-ms-client-flatten": true
+ }
+ }
+ }
+ ],
+ "description": "Agent Pool."
+ },
+ "ManagedClusterWindowsProfile": {
+ "properties": {
+ "adminUsername": {
+ "type": "string",
+ "description": "The administrator username to use for Windows VMs.",
+ "pattern": "^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$"
+ },
+ "adminPassword": {
+ "type": "string",
+ "description": "The administrator password to use for Windows VMs.",
+ "pattern": "^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\\^&\\*\\(\\)])[a-zA-Z\\d!@#$%\\^&\\*\\(\\)]{12,123}$"
+ }
+ },
+ "required": [
+ "adminUsername"
+ ],
+ "description": "Profile for Windows VMs in the container service cluster."
+ },
+ "ContainerServiceLinuxProfile": {
+ "properties": {
+ "adminUsername": {
+ "type": "string",
+ "description": "The administrator username to use for Linux VMs.",
+ "pattern": "^[A-Za-z][-A-Za-z0-9_]*$"
+ },
+ "ssh": {
+ "$ref": "#/definitions/ContainerServiceSshConfiguration",
+ "description": "SSH configuration for Linux-based VMs running on Azure."
+ }
+ },
+ "required": [
+ "adminUsername",
+ "ssh"
+ ],
+ "description": "Profile for Linux VMs in the container service cluster."
+ },
+ "ContainerServiceNetworkProfile": {
+ "properties": {
+ "networkPlugin": {
+ "type": "string",
+ "enum": [
+ "azure",
+ "kubenet"
+ ],
+ "default": "kubenet",
+ "x-ms-enum": {
+ "name": "NetworkPlugin",
+ "modelAsString": true
+ },
+ "description": "Network plugin used for building Kubernetes network."
+ },
+ "networkPolicy": {
+ "type": "string",
+ "enum": [
+ "calico",
+ "azure"
+ ],
+ "x-ms-enum": {
+ "name": "NetworkPolicy",
+ "modelAsString": true
+ },
+ "description": "Network policy used for building Kubernetes network."
+ },
+ "networkMode": {
+ "type": "string",
+ "enum": [
+ "transparent",
+ "bridge"
+ ],
+ "x-ms-enum": {
+ "name": "networkMode",
+ "modelAsString": true
+ },
+ "description": "Network mode used for building Kubernetes network."
+ },
+ "podCidr": {
+ "type": "string",
+ "pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
+ "default": "10.244.0.0/16",
+ "description": "A CIDR notation IP range from which to assign pod IPs when kubenet is used."
+ },
+ "serviceCidr": {
+ "type": "string",
+ "pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
+ "default": "10.0.0.0/16",
+ "description": "A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges."
+ },
+ "dnsServiceIP": {
+ "type": "string",
+ "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
+ "default": "10.0.0.10",
+ "description": "An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr."
+ },
+ "dockerBridgeCidr": {
+ "type": "string",
+ "pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
+ "default": "172.17.0.1/16",
+ "description": "A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range."
+ },
+ "outboundType": {
+ "type": "string",
+ "enum": [
+ "loadBalancer",
+ "userDefinedRouting"
+ ],
+ "x-ms-enum": {
+ "name": "outboundType",
+ "modelAsString": true
+ },
+ "default": "loadBalancer",
+ "description": "The outbound (egress) routing method."
+ },
+ "loadBalancerSku": {
+ "type": "string",
+ "enum": [
+ "standard",
+ "basic"
+ ],
+ "x-ms-enum": {
+ "name": "loadBalancerSku",
+ "modelAsString": true
+ },
+ "description": "The load balancer sku for the managed cluster."
+ },
+ "loadBalancerProfile": {
+ "$ref": "#/definitions/ManagedClusterLoadBalancerProfile",
+ "description": "Profile of the cluster load balancer."
+ }
+ },
+ "description": "Profile of network configuration."
+ },
+ "ManagedClusterLoadBalancerProfile": {
+ "properties": {
+ "managedOutboundIPs": {
+ "properties": {
+ "count": {
+ "type": "integer",
+ "format": "int32",
+ "maximum": 100,
+ "minimum": 1,
+ "description": "Desired number of outbound IP created/managed by Azure for the cluster load balancer. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. ",
+ "default": 1
+ }
+ },
+ "description": "Desired managed outbound IPs for the cluster load balancer."
+ },
+ "outboundIPPrefixes": {
+ "properties": {
+ "publicIPPrefixes": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceReference"
+ },
+ "description": "A list of public IP prefix resources."
+ }
+ },
+ "description": "Desired outbound IP Prefix resources for the cluster load balancer."
+ },
+ "outboundIPs": {
+ "properties": {
+ "publicIPs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceReference"
+ },
+ "description": "A list of public IP resources."
+ }
+ },
+ "description": "Desired outbound IP resources for the cluster load balancer."
+ },
+ "effectiveOutboundIPs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceReference"
+ },
+ "description": "The effective outbound IP resources of the cluster load balancer."
+ },
+ "allocatedOutboundPorts": {
+ "type": "integer",
+ "format": "int32",
+ "maximum": 64000,
+ "minimum": 0,
+ "description": "Desired number of allocated SNAT ports per VM. Allowed values must be in the range of 0 to 64000 (inclusive). The default value is 0 which results in Azure dynamically allocating ports.",
+ "default": 0
+ },
+ "idleTimeoutInMinutes": {
+ "type": "integer",
+ "format": "int32",
+ "maximum": 120,
+ "minimum": 4,
+ "description": "Desired outbound flow idle timeout in minutes. Allowed values must be in the range of 4 to 120 (inclusive). The default value is 30 minutes.",
+ "default": 30
+ }
+ },
+ "description": "Profile of the managed cluster load balancer."
+ },
+ "ResourceReference": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The fully qualified Azure resource id."
+ }
+ },
+ "description": "A reference to an Azure resource."
+ },
+ "ContainerServiceSshConfiguration": {
+ "properties": {
+ "publicKeys": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ContainerServiceSshPublicKey"
+ },
+ "description": "The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key specified."
+ }
+ },
+ "description": "SSH configuration for Linux-based VMs running on Azure.",
+ "required": [
+ "publicKeys"
+ ]
+ },
+ "ContainerServiceSshPublicKey": {
+ "properties": {
+ "keyData": {
+ "type": "string",
+ "description": "Certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers."
+ }
+ },
+ "required": [
+ "keyData"
+ ],
+ "description": "Contains information about SSH certificate public key data."
+ },
+ "ContainerServiceDiagnosticsProfile": {
+ "properties": {
+ "vmDiagnostics": {
+ "$ref": "#/definitions/ContainerServiceVMDiagnostics",
+ "description": "Profile for diagnostics on the container service VMs."
+ }
+ },
+ "description": "Profile for diagnostics on the container service cluster.",
+ "required": [
+ "vmDiagnostics"
+ ]
+ },
+ "ContainerServiceVMDiagnostics": {
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "description": "Whether the VM diagnostic agent is provisioned on the VM."
+ },
+ "storageUri": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URI of the storage account where diagnostics are stored."
+ }
+ },
+ "description": "Profile for diagnostics on the container service VMs.",
+ "required": [
+ "enabled"
+ ]
+ },
+ "ManagedClusterListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedCluster"
+ },
+ "description": "The list of managed clusters."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The URL to get the next set of managed cluster results.",
+ "readOnly": true
+ }
+ },
+ "description": "The response from the List Managed Clusters operation."
+ },
+ "ManagedCluster": {
+ "properties": {
+ "sku": {
+ "$ref": "#/definitions/ManagedClusterSKU",
+ "description": "The managed cluster SKU."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ },
+ {
+ "properties": {
+ "properties": {
+ "description": "Properties of a managed cluster.",
+ "$ref": "#/definitions/ManagedClusterProperties",
+ "x-ms-client-flatten": true
+ },
+ "identity": {
+ "$ref": "#/definitions/ManagedClusterIdentity",
+ "description": "The identity of the managed cluster, if configured."
+ }
+ }
+ }
+ ],
+ "description": "Managed cluster."
+ },
+ "ManagedClusterProperties": {
+ "properties": {
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The current deployment or provisioning state, which only appears in the response."
+ },
+ "maxAgentPools": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "description": "The max number of agent pools for the managed cluster."
+ },
+ "kubernetesVersion": {
+ "type": "string",
+ "description": "Version of Kubernetes specified when creating the managed cluster."
+ },
+ "dnsPrefix": {
+ "type": "string",
+ "description": "DNS prefix specified when creating the managed cluster."
+ },
+ "fqdn": {
+ "readOnly": true,
+ "type": "string",
+ "description": "FQDN for the master pool."
+ },
+ "privateFQDN": {
+ "readOnly": true,
+ "type": "string",
+ "description": "FQDN of private cluster."
+ },
+ "agentPoolProfiles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedClusterAgentPoolProfile"
+ },
+ "description": "Properties of the agent pool."
+ },
+ "linuxProfile": {
+ "$ref": "#/definitions/ContainerServiceLinuxProfile",
+ "description": "Profile for Linux VMs in the container service cluster."
+ },
+ "windowsProfile": {
+ "$ref": "#/definitions/ManagedClusterWindowsProfile",
+ "description": "Profile for Windows VMs in the container service cluster."
+ },
+ "servicePrincipalProfile": {
+ "$ref": "#/definitions/ManagedClusterServicePrincipalProfile",
+ "description": "Information about a service principal identity for the cluster to use for manipulating Azure APIs."
+ },
+ "addonProfiles": {
+ "additionalProperties": {
+ "$ref": "#/definitions/ManagedClusterAddonProfile"
+ },
+ "description": "Profile of managed cluster add-on."
+ },
+ "nodeResourceGroup": {
+ "type": "string",
+ "description": "Name of the resource group containing agent pool nodes."
+ },
+ "enableRBAC": {
+ "type": "boolean",
+ "description": "Whether to enable Kubernetes Role-Based Access Control."
+ },
+ "enablePodSecurityPolicy": {
+ "type": "boolean",
+ "description": "(PREVIEW) Whether to enable Kubernetes Pod security policy."
+ },
+ "networkProfile": {
+ "$ref": "#/definitions/ContainerServiceNetworkProfile",
+ "description": "Profile of network configuration."
+ },
+ "aadProfile": {
+ "$ref": "#/definitions/ManagedClusterAADProfile",
+ "description": "Profile of Azure Active Directory configuration."
+ },
+ "autoScalerProfile": {
+ "type": "object",
+ "properties": {
+ "balance-similar-node-groups": {
+ "type": "string"
+ },
+ "scan-interval": {
+ "type": "string"
+ },
+ "scale-down-delay-after-add": {
+ "type": "string"
+ },
+ "scale-down-delay-after-delete": {
+ "type": "string"
+ },
+ "scale-down-delay-after-failure": {
+ "type": "string"
+ },
+ "scale-down-unneeded-time": {
+ "type": "string"
+ },
+ "scale-down-unready-time": {
+ "type": "string"
+ },
+ "scale-down-utilization-threshold": {
+ "type": "string"
+ },
+ "max-graceful-termination-sec": {
+ "type": "string"
+ }
+ },
+ "description": "Parameters to be applied to the cluster-autoscaler when enabled"
+ },
+ "apiServerAccessProfile": {
+ "$ref": "#/definitions/ManagedClusterAPIServerAccessProfile",
+ "description": "Access profile for managed cluster API server."
+ },
+ "diskEncryptionSetID": {
+ "type": "string",
+ "description": "ResourceId of the disk encryption set to use for enabling encryption at rest."
+ },
+ "identityProfile": {
+ "additionalProperties": {
+ "readOnly": true,
+ "allOf": [
+ {
+ "$ref": "#/definitions/UserAssignedIdentity"
+ }
+ ]
+ },
+ "description": "Identities associated with the cluster."
+ }
+ },
+ "description": "Properties of the managed cluster."
+ },
+ "ManagedClusterAPIServerAccessProfile": {
+ "properties": {
+ "authorizedIPRanges": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Authorized IP Ranges to kubernetes API server."
+ },
+ "enablePrivateCluster": {
+ "type": "boolean",
+ "description": "Whether to create the cluster as a private cluster or not."
+ }
+ },
+ "description": "Access profile for managed cluster API server."
+ },
+ "ManagedClusterIdentity": {
+ "properties": {
+ "principalId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The principal id of the system assigned identity which is used by master components."
+ },
+ "tenantId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The tenant id of the system assigned identity which is used by master components."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of identity used for the managed cluster. Type 'SystemAssigned' will use an implicitly created identity in master components and an auto-created user assigned identity in MC_ resource group in agent nodes. Type 'None' will not use MSI for the managed cluster, service principal will be used instead.",
+ "enum": [
+ "SystemAssigned",
+ "None"
+ ],
+ "x-ms-enum": {
+ "name": "ResourceIdentityType",
+ "modelAsString": false
+ }
+ }
+ },
+ "description": "Identity for the managed cluster."
+ },
+ "UserAssignedIdentity": {
+ "properties": {
+ "resourceId": {
+ "type": "string",
+ "description": "The resource id of the user assigned identity."
+ },
+ "clientId": {
+ "type": "string",
+ "description": "The client id of the user assigned identity."
+ },
+ "objectId": {
+ "type": "string",
+ "description": "The object id of the user assigned identity."
+ }
+ }
+ },
+ "ManagedClusterAccessProfile": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ },
+ {
+ "properties": {
+ "properties": {
+ "description": "AccessProfile of a managed cluster.",
+ "$ref": "#/definitions/AccessProfile",
+ "x-ms-client-flatten": true
+ }
+ }
+ }
+ ],
+ "description": "Managed cluster Access Profile.",
+ "x-ms-azure-resource": false
+ },
+ "AccessProfile": {
+ "type": "object",
+ "properties": {
+ "kubeConfig": {
+ "type": "string",
+ "format": "byte",
+ "description": "Base64-encoded Kubernetes configuration file."
+ }
+ },
+ "description": "Profile for enabling a user to access a managed cluster."
+ },
+ "ManagedClusterPoolUpgradeProfile": {
+ "properties": {
+ "kubernetesVersion": {
+ "type": "string",
+ "description": "Kubernetes version (major, minor, patch)."
+ },
+ "name": {
+ "type": "string",
+ "description": "Pool name."
+ },
+ "osType": {
+ "$ref": "#/definitions/OSType",
+ "enum": [
+ "Linux",
+ "Windows"
+ ],
+ "x-ms-enum": {
+ "name": "ContainerServiceOSTypes",
+ "modelAsString": true
+ },
+ "description": "OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux."
+ },
+ "upgrades": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "kubernetesVersion": {
+ "type": "string",
+ "description": "Kubernetes version (major, minor, patch)."
+ },
+ "isPreview": {
+ "type": "boolean",
+ "description": "Whether Kubernetes version is currently in preview."
+ }
+ }
+ },
+ "description": "List of orchestrator types and versions available for upgrade."
+ }
+ },
+ "required": [
+ "kubernetesVersion",
+ "osType"
+ ],
+ "description": "The list of available upgrade versions."
+ },
+ "ManagedClusterUpgradeProfileProperties": {
+ "properties": {
+ "controlPlaneProfile": {
+ "$ref": "#/definitions/ManagedClusterPoolUpgradeProfile",
+ "description": "The list of available upgrade versions for the control plane."
+ },
+ "agentPoolProfiles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedClusterPoolUpgradeProfile"
+ },
+ "description": "The list of available upgrade versions for agent pools."
+ }
+ },
+ "required": [
+ "controlPlaneProfile",
+ "agentPoolProfiles"
+ ],
+ "description": "Control plane and agent pool upgrade profiles."
+ },
+ "ManagedClusterAADProfile": {
+ "properties": {
+ "managed": {
+ "type": "boolean",
+ "description": "Whether to enable managed AAD."
+ },
+ "adminGroupObjectIDs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "AAD group object IDs that will have admin role of the cluster."
+ },
+ "clientAppID": {
+ "type": "string",
+ "description": "The client AAD application ID."
+ },
+ "serverAppID": {
+ "type": "string",
+ "description": "The server AAD application ID."
+ },
+ "serverAppSecret": {
+ "type": "string",
+ "description": "The server AAD application secret."
+ },
+ "tenantID": {
+ "type": "string",
+ "description": "The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription."
+ }
+ },
+ "description": "AADProfile specifies attributes for Azure Active Directory integration."
+ },
+ "ManagedClusterAddonProfile": {
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "description": "Whether the add-on is enabled or not."
+ },
+ "config": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Key-value pairs for configuring an add-on."
+ },
+ "identity": {
+ "readOnly": true,
+ "description": "Information of user assigned identity used by this add-on.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/UserAssignedIdentity"
+ }
+ ]
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "description": "A Kubernetes add-on profile for a managed cluster."
+ },
+ "ManagedClusterUpgradeProfile": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Id of upgrade profile."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of upgrade profile."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Type of upgrade profile."
+ },
+ "properties": {
+ "$ref": "#/definitions/ManagedClusterUpgradeProfileProperties",
+ "description": "Properties of upgrade profile.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "description": "The list of available upgrades for compute pools."
+ },
+ "AgentPoolUpgradeProfile": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Id of the agent pool upgrade profile."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the agent pool upgrade profile."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Type of the agent pool upgrade profile."
+ },
+ "properties": {
+ "$ref": "#/definitions/AgentPoolUpgradeProfileProperties",
+ "description": "Properties of agent pool upgrade profile.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "description": "The list of available upgrades for an agent pool."
+ },
+ "AgentPoolUpgradeProfileProperties": {
+ "properties": {
+ "kubernetesVersion": {
+ "type": "string",
+ "description": "Kubernetes version (major, minor, patch)."
+ },
+ "osType": {
+ "$ref": "#/definitions/OSType",
+ "enum": [
+ "Linux",
+ "Windows"
+ ],
+ "x-ms-enum": {
+ "name": "ContainerServiceOSTypes",
+ "modelAsString": true
+ },
+ "description": "OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux."
+ },
+ "upgrades": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "kubernetesVersion": {
+ "type": "string",
+ "description": "Kubernetes version (major, minor, patch)."
+ },
+ "isPreview": {
+ "type": "boolean",
+ "description": "Whether Kubernetes version is currently in preview."
+ }
+ }
+ },
+ "description": "List of orchestrator types and versions available for upgrade."
+ },
+ "latestNodeImageVersion": {
+ "type": "string",
+ "description": "LatestNodeImageVersion is the latest AKS supported node image version."
+ }
+ },
+ "required": [
+ "kubernetesVersion",
+ "osType"
+ ],
+ "description": "The list of available upgrade versions."
+ },
+ "AgentPoolAvailableVersions": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Id of the agent pool available versions."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the agent pool available versions."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Type of the agent pool available versions."
+ },
+ "properties": {
+ "$ref": "#/definitions/AgentPoolAvailableVersionsProperties",
+ "description": "Properties of agent pool available versions.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "description": "The list of available versions for an agent pool."
+ },
+ "AgentPoolAvailableVersionsProperties": {
+ "properties": {
+ "agentPoolVersions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "type": "boolean",
+ "description": "Whether this version is the default agent pool version."
+ },
+ "kubernetesVersion": {
+ "type": "string",
+ "description": "Kubernetes version (major, minor, patch)."
+ },
+ "isPreview": {
+ "type": "boolean",
+ "description": "Whether Kubernetes version is currently in preview."
+ }
+ }
+ },
+ "description": "List of versions available for agent pool."
+ }
+ },
+ "description": "The list of available agent pool versions."
+ },
+ "OSType": {
+ "type": "string",
+ "default": "Linux",
+ "enum": [
+ "Linux",
+ "Windows"
+ ],
+ "x-ms-enum": {
+ "name": "OSType",
+ "modelAsString": true
+ },
+ "description": "OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux."
+ },
+ "ScaleSetPriority": {
+ "type": "string",
+ "default": "Regular",
+ "enum": [
+ "Spot",
+ "Regular"
+ ],
+ "x-ms-enum": {
+ "name": "ScaleSetPriority",
+ "modelAsString": true
+ },
+ "description": "ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular."
+ },
+ "ScaleSetEvictionPolicy": {
+ "type": "string",
+ "default": "Delete",
+ "enum": [
+ "Delete",
+ "Deallocate"
+ ],
+ "x-ms-enum": {
+ "name": "ScaleSetEvictionPolicy",
+ "modelAsString": true
+ },
+ "description": "ScaleSetEvictionPolicy to be used to specify eviction policy for Spot virtual machine scale set. Default to Delete."
+ },
+ "SpotMaxPrice": {
+ "type": "number",
+ "default": -1,
+ "description": "SpotMaxPrice to be used to specify the maximum price you are willing to pay in US Dollars. Possible values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand."
+ },
+ "CredentialResults": {
+ "properties": {
+ "kubeconfigs": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/CredentialResult"
+ },
+ "description": "Base64-encoded Kubernetes configuration file."
+ }
+ },
+ "description": "The list of credential result response."
+ },
+ "CredentialResult": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The name of the credential."
+ },
+ "value": {
+ "type": "string",
+ "format": "byte",
+ "readOnly": true,
+ "description": "Base64-encoded Kubernetes configuration file."
+ }
+ },
+ "description": "The credential result response."
+ },
+ "CloudError": {
+ "x-ms-external": true,
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/CloudErrorBody",
+ "description": "Details about the error."
+ }
+ },
+ "description": "An error response from the Container service."
+ },
+ "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 Container service."
+ },
+ "ManagedClusterSKU": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name of a managed cluster SKU.",
+ "enum": [
+ "Basic"
+ ],
+ "x-ms-enum": {
+ "name": "ManagedClusterSKUName",
+ "modelAsString": true
+ }
+ },
+ "tier": {
+ "type": "string",
+ "description": "Tier of a managed cluster SKU.",
+ "enum": [
+ "Paid",
+ "Free"
+ ],
+ "x-ms-enum": {
+ "name": "ManagedClusterSKUTier",
+ "modelAsString": true
+ }
+ }
+ }
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
+ "x-ms-parameter-location": "client"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "Client Api Version.",
+ "x-ms-parameter-location": "client"
+ },
+ "ResourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "minLength": 1,
+ "description": "The name of the resource group.",
+ "x-ms-parameter-location": "method"
+ },
+ "ResourceNameParameter": {
+ "name": "resourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 63,
+ "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$",
+ "description": "The name of the managed cluster resource.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/containerservice/resource-manager/readme.go.md b/specification/containerservice/resource-manager/readme.go.md
index abc52e7c79b7..0e97d488f974 100644
--- a/specification/containerservice/resource-manager/readme.go.md
+++ b/specification/containerservice/resource-manager/readme.go.md
@@ -12,6 +12,7 @@ go:
``` yaml $(go) && $(multiapi)
batch:
+ - tag: package-2020-04
- tag: package-2020-03
- tag: package-2020-02
- tag: package-2020-01
@@ -31,6 +32,16 @@ batch:
- tag: package-2017-07
```
+### Tag: package-2020-04 and go
+
+These settings apply only when `--package-2020-04 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag)=='package-2020-04' && $(go)
+namespace: containerservice
+output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-04-01/$(namespace)
+```
+
### Tag: package-2020-03 and go
These settings apply only when `--package-2020-03 --go` is specified on the command line.
diff --git a/specification/containerservice/resource-manager/readme.java.md b/specification/containerservice/resource-manager/readme.java.md
index bbb60e7a0feb..4f496925aa45 100644
--- a/specification/containerservice/resource-manager/readme.java.md
+++ b/specification/containerservice/resource-manager/readme.java.md
@@ -23,6 +23,20 @@ batch:
- tag: package-2020-01
- tag: package-2020-02
- tag: package-2020-03
+ - tag: package-2020-04
+```
+
+### Tag: package-2020-04 and java
+
+These settings apply only when `--tag=package-2020-04` is specified on the command line.
+Please also specify `--azure-libraries-for-java-folder=`.
+
+``` yaml $(tag) == 'package-2020-04' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.containerservice.v2020_04_01
+ output-folder: $(azure-libraries-for-java-folder)/sdk/containerservice/mgmt-v2020_04_01
+regenerate-manager: true
+generate-interface: true
```
### Tag: package-2020-03 and java
diff --git a/specification/containerservice/resource-manager/readme.md b/specification/containerservice/resource-manager/readme.md
index aa5d14dc6729..3b25efeec43a 100644
--- a/specification/containerservice/resource-manager/readme.md
+++ b/specification/containerservice/resource-manager/readme.md
@@ -34,10 +34,21 @@ These are the global settings for the ContainerServices API.
``` yaml
openapi-type: arm
-tag: package-2020-03
+tag: package-2020-04
```
+### Tag: package-2020-04
+
+These settings apply only when `--tag=package-2020-04` is specified on the command line.
+
+```yaml $(tag) == 'package-2020-04'
+input-file:
+ - Microsoft.ContainerService/stable/2019-04-30/openShiftManagedClusters.json
+ - Microsoft.ContainerService/stable/2017-07-01/containerService.json
+ - Microsoft.ContainerService/stable/2019-08-01/location.json
+ - Microsoft.ContainerService/stable/2020-04-01/managedClusters.json
+```
### Tag: package-2020-03
These settings apply only when `--tag=package-2020-03` is specified on the command line.
@@ -235,6 +246,19 @@ input-file:
- Microsoft.ContainerService/stable/2017-07-01/containerService.json
```
+### Tag: package-2020-04-01-only
+
+These settings apply only when `--tag=package-2020-04-01-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-04-01-only'
+input-file:
+- Microsoft.ContainerService/stable/2020-04-01/managedClusters.json
+directive:
+ - suppress: DefinitionsPropertiesNamesCamelCase
+ where: $.definitions.ManagedClusterProperties.properties.autoScalerProfile
+ reason: Cluster-autoscaler settings are not camel-cased
+```
+
### Tag: package-2020-03-01-only
These settings apply only when `--tag=package-2020-03-01-only` is specified on the command line.
@@ -511,6 +535,7 @@ input-file:
- $(this-folder)/Microsoft.ContainerService/stable/2019-04-30/openShiftManagedClusters.json
- $(this-folder)/Microsoft.ContainerService/stable/2017-07-01/containerService.json
- $(this-folder)/Microsoft.ContainerService/stable/2019-08-01/location.json
+ - $(this-folder)/Microsoft.ContainerService/stable/2020-04-01/managedClusters.json
- $(this-folder)/Microsoft.ContainerService/stable/2020-03-01/managedClusters.json
- $(this-folder)/Microsoft.ContainerService/stable/2020-02-01/managedClusters.json
- $(this-folder)/Microsoft.ContainerService/stable/2020-01-01/managedClusters.json
diff --git a/specification/containerservice/resource-manager/readme.python.md b/specification/containerservice/resource-manager/readme.python.md
index bd7887b9243c..9b8f710a5632 100644
--- a/specification/containerservice/resource-manager/readme.python.md
+++ b/specification/containerservice/resource-manager/readme.python.md
@@ -18,6 +18,7 @@ Generate all API versions currently shipped for this package
```yaml $(python) && $(multiapi)
batch:
+ - tag: package-2020-04-01-only
- tag: package-2020-03-01-only
- tag: package-2020-02-01-only
- tag: package-2020-01-01-only
@@ -36,6 +37,17 @@ batch:
- tag: package-2017-07-only-extended
```
+### Tag: package-2020-04-01-only and python
+
+These settings apply only when `--tag=package-2020-04-01-only --python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2020-04-01-only' && $(python)
+python:
+ namespace: azure.mgmt.containerservice.v2020_04_01
+ output-folder: $(python-sdks-folder)/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_04_01
+```
+
### Tag: package-2020-03-01-only and python
These settings apply only when `--tag=package-2020-03-01-only --python` is specified on the command line.
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableCreate.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableCreate.json
new file mode 100644
index 000000000000..803e06fd5d20
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableCreate.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "x-ms-version": "2019-02-02",
+ "DataServiceVersion": "3.0",
+ "url": "myaccount.table.core.windows.net",
+ "tableProperties": {
+ "TableName": "mytable"
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "odata.metadata": "https://myaccount.table.core.windows.net/$metadata#Tables/@Element",
+ "odata.type": " myaccount.Tables",
+ "odata.id": "https://myaccount.table.core.windows.net/Tables('mytable')",
+ "odata.editLink": "Tables('mytable')",
+ "TableName": "mytable"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableDelete.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableDelete.json
new file mode 100644
index 000000000000..0cc1f4bb05c7
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableDelete.json
@@ -0,0 +1,10 @@
+{
+ "parameters": {
+ "x-ms-version": "2019-02-02",
+ "url": "myaccount.table.core.windows.net",
+ "table": "mytable"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableDeleteEntity.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableDeleteEntity.json
new file mode 100644
index 000000000000..2d0f7a9a5525
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableDeleteEntity.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "x-ms-version": "2019-02-02",
+ "DataServiceVersion": "3.0",
+ "If-Match": "*",
+ "url": "myaccount.table.core.windows.net",
+ "table": "Customers",
+ "partitionKey": "mypartitionkey",
+ "rowKey": "myrowkey"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableGet.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableGet.json
new file mode 100644
index 000000000000..018859152f5a
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableGet.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "x-ms-version": "2019-02-02",
+ "DataServiceVersion": "3.0",
+ "$top": 1,
+ "url": "myaccount.table.core.windows.net"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "odata.metadata": "https://myaccount.table.core.windows.net/$metadata#Tables",
+ "value": [
+ {
+ "odata.type": "myaccount.Tables",
+ "odata.id": "https://myaccount.table.core.windows.net/Tables('mytable')",
+ "odata.editLink": "Tables('mytable')",
+ "TableName": "mytable"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableInsertEntity.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableInsertEntity.json
new file mode 100644
index 000000000000..749a5ac0a691
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableInsertEntity.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "x-ms-version": "2019-02-02",
+ "DataServiceVersion": "3.0",
+ "table": "Customer",
+ "url": "myaccount.table.core.windows.net",
+ "tableEntityProperties": {
+ "Address": "Mountain View",
+ "Age": 23,
+ "AmountDue": 200.23,
+ "CustomerCode@odata.type": "Edm.Guid",
+ "CustomerCode": "c9da6455-213d-42c9-9a79-3e9149a57833",
+ "CustomerSince@odata.type": "Edm.DateTime",
+ "CustomerSince": "2008-07-10T00:00:00",
+ "IsActive": true,
+ "NumberOfOrders@odata.type": "Edm.Int64",
+ "NumberOfOrders": "255",
+ "PartitionKey": "mypartitionkey",
+ "RowKey": "myrowkey"
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "odata.metadata": "https://myaccount.table.core.windows.net/Customer/$metadata#Customers/@Element",
+ "odata.type": "myaccount.Customers",
+ "odata.id": " https://myaccount.table.core.windows.net/Customers(PartitionKey='mypartitionkey',RowKey='myrowkey')",
+ "odata.etag": "W/\"0x5B168C7B6E589D2\"",
+ "odata.editLink": "Customers(PartitionKey='mypartitionkey',RowKey='myrowkey')",
+ "PartitionKey": "mypartitionkey",
+ "RowKey": "myrowkey",
+ "Timestamp@odata.type": "Edm.DateTime",
+ "Timestamp": "2013-08-22T01:12:06.2608595Z",
+ "Address": "Mountain View",
+ "Age": 23,
+ "AmountDue": 200.23,
+ "CustomerCode@odata.type": "Edm.Guid",
+ "CustomerCode": "c9da6455-213d-42c9-9a79-3e9149a57833",
+ "CustomerSince@odata.type": "Edm.DateTime",
+ "CustomerSince": "2008-07-10T00:00:00",
+ "IsActive": true,
+ "NumberOfOrders@odata.type": "Edm.Int64",
+ "NumberOfOrders": "255"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableMergeEntity.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableMergeEntity.json
new file mode 100644
index 000000000000..24e71afe72fa
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableMergeEntity.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "x-ms-version": "2019-02-02",
+ "DataServiceVersion": "3.0",
+ "url": "myaccount.table.core.windows.net",
+ "table": "Customers",
+ "partitionKey": "mypartitionkey",
+ "rowKey": "myrowkey",
+ "tableEntityProperties": {
+ "Address": "Santa Clara",
+ "Age": 23,
+ "AmountDue": 200.23,
+ "CustomerCode@odata.type": "Edm.Guid",
+ "CustomerCode": "c9da6455-213d-42c9-9a79-3e9149a57833",
+ "CustomerSince@odata.type": "Edm.DateTime",
+ "CustomerSince": "2008-07-10T00:00:00",
+ "IsActive": false,
+ "NumberOfOrders@odata.type": "Edm.Int64",
+ "NumberOfOrders": "255",
+ "PartitionKey": "mypartitionkey",
+ "RowKey": "myrowkey"
+ }
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableQueryEntities.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableQueryEntities.json
new file mode 100644
index 000000000000..2daab5a9feb0
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableQueryEntities.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "x-ms-version": "2019-02-02",
+ "DataServiceVersion": "3.0",
+ "url": "myaccount.table.core.windows.net",
+ "$top": 1,
+ "table": "Customer"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "odata.metadata": " https://myaccount.table.core.windows.net/metadata#Customers",
+ "value": [
+ {
+ "PartitionKey": "Customer",
+ "RowKey": "Name",
+ "odata.type": "myaccount.Customers",
+ "odata.id": "https://myaccount.table.core.windows.net/Customers(PartitionKey=Customer',RowKey='Name')",
+ "odata.etag": "W/\"0x5B168C7B6E589D2\"",
+ "odata.editLink": "Customers(PartitionKey=Customer',RowKey='Name')",
+ "Timestamp@odata.type": "Edm.DateTime",
+ "Timestamp": "2013-08-22T00:20:16.3134645Z",
+ "CustomerSince@odata.type": "Edm.DateTime",
+ "CustomerSince": "2008-10-01T15:25:05.2852025Z"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableQueryEntitiesWithPartitionAndRowKey.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableQueryEntitiesWithPartitionAndRowKey.json
new file mode 100644
index 000000000000..94896182a26b
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableQueryEntitiesWithPartitionAndRowKey.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "x-ms-version": "2019-02-02",
+ "DataServiceVersion": "3.0",
+ "url": "myaccount.table.core.windows.net",
+ "table": "Customers",
+ "partitionKey": "Customer",
+ "rowKey": "Name"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "odata.metadata": " https://myaccount.table.core.windows.net/metadata#Customers",
+ "value": [
+ {
+ "odata.type": "myaccount.Customers",
+ "odata.id": "https://myaccount.table.core.windows.net/Customers(PartitionKey=Customer',RowKey='Name')",
+ "odata.etag": "W/\"0x5B168C7B6E589D2\"",
+ "odata.editLink": "Customers(PartitionKey=Customer',RowKey='Name')",
+ "PartitionKey": "Customer",
+ "RowKey": "Name",
+ "Timestamp@odata.type": "Edm.DateTime",
+ "Timestamp": "2013-08-22T00:20:16.3134645Z",
+ "CustomerSince@odata.type": "Edm.DateTime",
+ "CustomerSince": "2008-10-01T15:25:05.2852025Z"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableUpdateEntity.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableUpdateEntity.json
new file mode 100644
index 000000000000..24e71afe72fa
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/examples/TableUpdateEntity.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "x-ms-version": "2019-02-02",
+ "DataServiceVersion": "3.0",
+ "url": "myaccount.table.core.windows.net",
+ "table": "Customers",
+ "partitionKey": "mypartitionkey",
+ "rowKey": "myrowkey",
+ "tableEntityProperties": {
+ "Address": "Santa Clara",
+ "Age": 23,
+ "AmountDue": 200.23,
+ "CustomerCode@odata.type": "Edm.Guid",
+ "CustomerCode": "c9da6455-213d-42c9-9a79-3e9149a57833",
+ "CustomerSince@odata.type": "Edm.DateTime",
+ "CustomerSince": "2008-07-10T00:00:00",
+ "IsActive": false,
+ "NumberOfOrders@odata.type": "Edm.Int64",
+ "NumberOfOrders": "255",
+ "PartitionKey": "mypartitionkey",
+ "RowKey": "myrowkey"
+ }
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/table.json b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/table.json
new file mode 100644
index 000000000000..abc01960c97c
--- /dev/null
+++ b/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/table.json
@@ -0,0 +1,1913 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Azure Table",
+ "version": "2019-02-02",
+ "x-ms-code-generation-settings": {
+ "header": "MIT",
+ "strictSpecAdherence": false
+ }
+ },
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{url}",
+ "useSchemePrefix": false,
+ "positionInOperation": "first",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Url"
+ }
+ ]
+ },
+ "securityDefinitions": {
+ "table_shared_key": {
+ "type": "apiKey",
+ "name": "Authorization",
+ "in": "header"
+ }
+ },
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json;odata=nometadata"
+ ],
+ "produces": [
+ "application/json;odata=minimalmetadata"
+ ],
+ "paths": {
+ "/Tables": {
+ "get": {
+ "tags": [
+ "table"
+ ],
+ "operationId": "Table_Query",
+ "x-ms-examples": {
+ "TableGet": {
+ "$ref": "./examples/TableGet.json"
+ }
+ },
+ "description": "Queries tables under the given account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/DataServiceVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/formatParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "name": "NextTableName",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "A table query continuation token from a previous call."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success, table query completed.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ },
+ "x-ms-continuation-NextTableName": {
+ "type": "string",
+ "description": "This header contains the continuation token value."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableQueryResponse"
+ }
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "table"
+ ],
+ "operationId": "Table_Create",
+ "x-ms-examples": {
+ "TableCreate": {
+ "$ref": "./examples/TableCreate.json"
+ }
+ },
+ "description": "Creates a new table under the given account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/DataServiceVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/formatParameter"
+ },
+ {
+ "$ref": "#/parameters/TableProperties"
+ },
+ {
+ "$ref": "#/parameters/PreferParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Success, table created.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ },
+ "Preference-Applied": {
+ "type": "string",
+ "description": "Indicates whether the Prefer request header was honored. If the response does not include this header, then the Prefer header was not honored. If this header is returned, its value will either be return-content or return-no-content."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableResponse"
+ }
+ },
+ "204": {
+ "description": "Success, table created.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ },
+ "Preference-Applied": {
+ "type": "string",
+ "description": "Indicates whether the Prefer request header was honored. If the response does not include this header, then the Prefer header was not honored. If this header is returned, its value will either be return-content or return-no-content."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/Tables('{table}')": {
+ "delete": {
+ "tags": [
+ "table"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "operationId": "Table_Delete",
+ "x-ms-examples": {
+ "TableDelete": {
+ "$ref": "./examples/TableDelete.json"
+ }
+ },
+ "description": "Operation permanently deletes the specified table.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/{table}()": {
+ "get": {
+ "tags": [
+ "table"
+ ],
+ "operationId": "Table_QueryEntities",
+ "x-ms-examples": {
+ "TableQueryEntities": {
+ "$ref": "./examples/TableQueryEntities.json"
+ }
+ },
+ "description": "Queries entities in a table.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/DataServiceVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/formatParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "name": "NextPartitionKey",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "An entity query continuation token from a previous call."
+ },
+ {
+ "name": "NextRowKey",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "An entity query continuation token from a previous call."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ },
+ "x-ms-continuation-NextPartitionKey": {
+ "type": "string",
+ "description": "This header contains the continuation token value for partition key."
+ },
+ "x-ms-continuation-NextRowKey": {
+ "type": "string",
+ "description": "This header contains the continuation token value for row key."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableEntityQueryResponse"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/{table}(PartitionKey='{partitionKey}',RowKey='{rowKey}')": {
+ "get": {
+ "tags": [
+ "table"
+ ],
+ "operationId": "Table_QueryEntitiesWithPartitionAndRowKey",
+ "x-ms-examples": {
+ "TableQueryEntitiesWithPartitionAndRowKey": {
+ "$ref": "./examples/TableQueryEntitiesWithPartitionAndRowKey.json"
+ }
+ },
+ "description": "Queries entities in a table.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/DataServiceVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/formatParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "#/parameters/partitionKeyParameter"
+ },
+ {
+ "$ref": "#/parameters/rowKeyParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ },
+ "ETag": {
+ "type": "string",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ },
+ "x-ms-continuation-NextPartitionKey": {
+ "type": "string",
+ "description": "This header contains the continuation token value for partition key."
+ },
+ "x-ms-continuation-NextRowKey": {
+ "type": "string",
+ "description": "This header contains the continuation token value for row key."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableEntityQueryResponse"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "table"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "operationId": "Table_UpdateEntity",
+ "x-ms-examples": {
+ "TableUpdateEntity": {
+ "$ref": "./examples/TableUpdateEntity.json"
+ }
+ },
+ "description": "Update entity in a table.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/DataServiceVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/formatParameter"
+ },
+ {
+ "$ref": "#/parameters/TableEntityProperties"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "#/parameters/partitionKeyParameter"
+ },
+ {
+ "$ref": "#/parameters/rowKeyParameter"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "Match condition for an entity to be updated. If specified and a matching entity is not found, an error will be raised. To force an unconditional update, set to the wildcard character (*). If not specified, an insert will be performed when no existing entity is found to update and a replace will be performed if an existing entity is found.",
+ "x-ms-client-name": "IfMatch"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ },
+ "ETag": {
+ "type": "string",
+ "description": "UTC date/time value generated by the service that indicates the time at which the entity was last updated."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "table"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "operationId": "Table_MergeEntity",
+ "x-ms-examples": {
+ "TableMergeEntity": {
+ "$ref": "./examples/TableMergeEntity.json"
+ }
+ },
+ "description": "Merge entity in a table.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/DataServiceVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/formatParameter"
+ },
+ {
+ "$ref": "#/parameters/TableEntityProperties"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "#/parameters/partitionKeyParameter"
+ },
+ {
+ "$ref": "#/parameters/rowKeyParameter"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "Match condition for an entity to be updated. If specified and a matching entity is not found, an error will be raised. To force an unconditional update, set to the wildcard character (*). If not specified, an insert will be performed when no existing entity is found to update and a merge will be performed if an existing entity is found.",
+ "x-ms-client-name": "IfMatch"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ },
+ "ETag": {
+ "type": "string",
+ "description": "UTC date/time value generated by the service that indicates the time at which the entity was last updated."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "table"
+ ],
+ "operationId": "Table_DeleteEntity",
+ "x-ms-examples": {
+ "TableDeleteEntity": {
+ "$ref": "./examples/TableDeleteEntity.json"
+ }
+ },
+ "description": "Deletes the specified entity in a table.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/DataServiceVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/formatParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "#/parameters/partitionKeyParameter"
+ },
+ {
+ "$ref": "#/parameters/rowKeyParameter"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": true,
+ "type": "string",
+ "description": "Match condition for an entity to be deleted. If specified and a matching entity is not found, an error will be raised. To force an unconditional delete, set to the wildcard character (*).",
+ "x-ms-client-name": "IfMatch"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/{table}": {
+ "post": {
+ "tags": [
+ "table"
+ ],
+ "operationId": "Table_InsertEntity",
+ "x-ms-examples": {
+ "TableInsertEntity": {
+ "$ref": "./examples/TableInsertEntity.json"
+ }
+ },
+ "description": "Insert entity in a table.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/DataServiceVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/formatParameter"
+ },
+ {
+ "$ref": "#/parameters/TableEntityProperties"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PreferParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ },
+ "ETag": {
+ "type": "string",
+ "description": "UTC date/time value generated by the service that indicates the time at which the entity was last updated."
+ },
+ "Preference-Applied": {
+ "type": "string",
+ "description": "Indicates whether the Prefer request header was honored. If the response does not include this header, then the Prefer header was not honored. If this header is returned, its value will either be return-content or return-no-content."
+ },
+ "Content-Type": {
+ "type": "string",
+ "description": "Indicates the content type of the payload. The value depends on the value specified for the Accept request header."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableEntityProperties"
+ }
+ },
+ "204": {
+ "description": "No Content.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ },
+ "ETag": {
+ "type": "string",
+ "description": "UTC date/time value generated by the service that indicates the time at which the entity was last updated."
+ },
+ "Preference-Applied": {
+ "type": "string",
+ "description": "Indicates whether the Prefer request header was honored. If the response does not include this header, then the Prefer header was not honored. If this header is returned, its value will either be return-content or return-no-content."
+ },
+ "Content-Type": {
+ "type": "string",
+ "description": "Indicates the content type of the payload. The value depends on the value specified for the Accept request header."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "table"
+ ],
+ "consumes": [
+ "application/xml"
+ ],
+ "produces": [
+ "application/xml"
+ ],
+ "operationId": "Table_GetAccessPolicy",
+ "description": "Retrieves details about any stored access policies specified on the table that may be used with Shared Access Signatures.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "#/parameters/compAclParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/SignedIdentifiers"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "table"
+ ],
+ "consumes": [
+ "application/xml"
+ ],
+ "produces": [
+ "application/xml"
+ ],
+ "operationId": "Table_SetAccessPolicy",
+ "description": "Sets stored access policies for the table that may be used with Shared Access Signatures.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/TableAcl"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "#/parameters/compAclParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-ms-paths": {
+ "/?ServiceProperties": {
+ "parameters": [
+ {
+ "name": "restype",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "service"
+ ],
+ "description": "Required query string to set the service properties."
+ },
+ {
+ "name": "comp",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "properties"
+ ],
+ "description": "Required query string to set the service properties."
+ }
+ ],
+ "put": {
+ "tags": [
+ "service"
+ ],
+ "consumes": [
+ "application/xml"
+ ],
+ "produces": [
+ "application/xml"
+ ],
+ "operationId": "Service_SetProperties",
+ "description": "Sets properties for an account's Table service endpoint, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/TableServiceProperties"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Success (Accepted)",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "service"
+ ],
+ "consumes": [
+ "application/xml"
+ ],
+ "produces": [
+ "application/xml"
+ ],
+ "operationId": "Service_GetProperties",
+ "description": "Gets the properties of an account's Table service, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceProperties"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/?ServiceStats": {
+ "parameters": [
+ {
+ "name": "restype",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "service"
+ ],
+ "description": "Required query string to get service stats."
+ },
+ {
+ "name": "comp",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "stats"
+ ],
+ "description": "Required query string to get service stats."
+ }
+ ],
+ "get": {
+ "tags": [
+ "service"
+ ],
+ "consumes": [
+ "application/xml"
+ ],
+ "produces": [
+ "application/xml"
+ ],
+ "operationId": "Service_GetStatistics",
+ "description": "Retrieves statistics related to replication for the Table service. It is only available on the secondary location endpoint when read-access geo-redundant replication is enabled for the account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-client-request-id": {
+ "x-ms-client-name": "ClientRequestId",
+ "type": "string",
+ "description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Table service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceStats"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/TableServiceError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "TableServiceError": {
+ "description": "Table Service error.",
+ "type": "object",
+ "xml": {},
+ "properties": {
+ "Message": {
+ "description": "The error message.",
+ "type": "string",
+ "xml": {
+ "name": "Message"
+ }
+ }
+ }
+ },
+ "TableServiceProperties": {
+ "description": "Table Service Properties.",
+ "type": "object",
+ "xml": {
+ "name": "StorageServiceProperties"
+ },
+ "properties": {
+ "Logging": {
+ "description": "Azure Analytics Logging settings.",
+ "$ref": "#/definitions/Logging"
+ },
+ "HourMetrics": {
+ "description": "A summary of request statistics grouped by API in hourly aggregates for tables.",
+ "$ref": "#/definitions/Metrics"
+ },
+ "MinuteMetrics": {
+ "description": "A summary of request statistics grouped by API in minute aggregates for tables.",
+ "$ref": "#/definitions/Metrics"
+ },
+ "Cors": {
+ "description": "The set of CORS rules.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CorsRule"
+ },
+ "xml": {
+ "wrapped": true,
+ "name": "Cors"
+ }
+ }
+ }
+ },
+ "Logging": {
+ "xml": {
+ "name": "Logging"
+ },
+ "description": "Azure Analytics Logging settings.",
+ "type": "object",
+ "required": [
+ "Version",
+ "Delete",
+ "Read",
+ "Write",
+ "RetentionPolicy"
+ ],
+ "properties": {
+ "Version": {
+ "description": "The version of Analytics to configure.",
+ "type": "string",
+ "xml": {
+ "name": "Version"
+ }
+ },
+ "Delete": {
+ "description": "Indicates whether all delete requests should be logged.",
+ "type": "boolean",
+ "xml": {
+ "name": "Delete"
+ }
+ },
+ "Read": {
+ "description": "Indicates whether all read requests should be logged.",
+ "type": "boolean",
+ "xml": {
+ "name": "Read"
+ }
+ },
+ "Write": {
+ "description": "Indicates whether all write requests should be logged.",
+ "type": "boolean",
+ "xml": {
+ "name": "Write"
+ }
+ },
+ "RetentionPolicy": {
+ "$ref": "#/definitions/RetentionPolicy"
+ }
+ }
+ },
+ "Metrics": {
+ "xml": {},
+ "description": "",
+ "required": [
+ "Enabled"
+ ],
+ "properties": {
+ "Version": {
+ "description": "The version of Analytics to configure.",
+ "type": "string",
+ "xml": {
+ "name": "Version"
+ }
+ },
+ "Enabled": {
+ "description": "Indicates whether metrics are enabled for the Table service.",
+ "type": "boolean",
+ "xml": {
+ "name": "Enabled"
+ }
+ },
+ "IncludeAPIs": {
+ "description": "Indicates whether metrics should generate summary statistics for called API operations.",
+ "type": "boolean",
+ "xml": {
+ "name": "IncludeAPIs"
+ }
+ },
+ "RetentionPolicy": {
+ "$ref": "#/definitions/RetentionPolicy"
+ }
+ }
+ },
+ "CorsRule": {
+ "xml": {
+ "name": "CorsRule"
+ },
+ "description": "CORS is an HTTP feature that enables a web application running under one domain to access resources in another domain. Web browsers implement a security restriction known as same-origin policy that prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin domain) to call APIs in another domain.",
+ "type": "object",
+ "required": [
+ "AllowedOrigins",
+ "AllowedMethods",
+ "AllowedHeaders",
+ "ExposedHeaders",
+ "MaxAgeInSeconds"
+ ],
+ "properties": {
+ "AllowedOrigins": {
+ "description": "The origin domains that are permitted to make a request against the service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '*' to allow all origin domains to make requests via CORS.",
+ "type": "string",
+ "xml": {
+ "name": "AllowedOrigins"
+ }
+ },
+ "AllowedMethods": {
+ "description": "The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated)",
+ "type": "string",
+ "xml": {
+ "name": "AllowedMethods"
+ }
+ },
+ "AllowedHeaders": {
+ "description": "The request headers that the origin domain may specify on the CORS request.",
+ "type": "string",
+ "xml": {
+ "name": "AllowedHeaders"
+ }
+ },
+ "ExposedHeaders": {
+ "description": "The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.",
+ "type": "string",
+ "xml": {
+ "name": "ExposedHeaders"
+ }
+ },
+ "MaxAgeInSeconds": {
+ "description": "The maximum amount time that a browser should cache the preflight OPTIONS request.",
+ "type": "integer",
+ "minimum": 0,
+ "xml": {
+ "name": "MaxAgeInSeconds"
+ }
+ }
+ }
+ },
+ "RetentionPolicy": {
+ "xml": {
+ "name": "RetentionPolicy"
+ },
+ "description": "The retention policy.",
+ "type": "object",
+ "required": [
+ "Enabled"
+ ],
+ "properties": {
+ "Enabled": {
+ "description": "Indicates whether a retention policy is enabled for the service.",
+ "type": "boolean",
+ "xml": {
+ "name": "Enabled"
+ }
+ },
+ "Days": {
+ "description": "Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted.",
+ "type": "integer",
+ "minimum": 1,
+ "xml": {
+ "name": "Days"
+ }
+ }
+ }
+ },
+ "TableServiceStats": {
+ "description": "Stats for the service.",
+ "type": "object",
+ "xml": {
+ "name": "StorageServiceStats"
+ },
+ "properties": {
+ "GeoReplication": {
+ "description": "Geo-Replication information for the Secondary Storage Service.",
+ "$ref": "#/definitions/GeoReplication"
+ }
+ }
+ },
+ "GeoReplication": {
+ "xml": {
+ "name": "GeoReplication"
+ },
+ "type": "object",
+ "required": [
+ "Status",
+ "LastSyncTime"
+ ],
+ "properties": {
+ "Status": {
+ "description": "The status of the secondary location.",
+ "type": "string",
+ "enum": [
+ "live",
+ "bootstrap",
+ "unavailable"
+ ],
+ "x-ms-enum": {
+ "name": "GeoReplicationStatusType",
+ "modelAsString": true
+ },
+ "xml": {
+ "name": "Status"
+ }
+ },
+ "LastSyncTime": {
+ "description": "A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads.",
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "xml": {
+ "name": "LastSyncTime"
+ }
+ }
+ }
+ },
+ "TableProperties": {
+ "description": "The properties for creating a table.",
+ "type": "object",
+ "properties": {
+ "TableName": {
+ "description": "The name of the table to create.",
+ "type": "string"
+ }
+ }
+ },
+ "TableResponse": {
+ "description": "The response for a single table.",
+ "type": "object",
+ "properties": {
+ "odata.metadata": {
+ "description": "The metadata response of the table.",
+ "type": "string"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/TableResponseProperties"
+ }
+ ]
+ },
+ "TableQueryResponse": {
+ "description": "The properties for the table query response.",
+ "type": "object",
+ "properties": {
+ "odata.metadata": {
+ "description": "The metadata response of the table.",
+ "type": "string"
+ },
+ "value": {
+ "description": "List of tables.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TableResponseProperties"
+ }
+ }
+ }
+ },
+ "TableResponseProperties": {
+ "description": "The properties for the table response.",
+ "type": "object",
+ "properties": {
+ "TableName": {
+ "description": "The name of the table.",
+ "type": "string"
+ },
+ "odata.type": {
+ "description": "The odata type of the table.",
+ "type": "string"
+ },
+ "odata.id": {
+ "description": "The id of the table.",
+ "type": "string"
+ },
+ "odata.editLink": {
+ "description": "The edit link of the table.",
+ "type": "string"
+ }
+ }
+ },
+ "SignedIdentifier": {
+ "xml": {
+ "name": "SignedIdentifier"
+ },
+ "description": "A signed identifier.",
+ "type": "object",
+ "required": [
+ "Id",
+ "AccessPolicy"
+ ],
+ "properties": {
+ "Id": {
+ "type": "string",
+ "description": "A unique id.",
+ "xml": {
+ "name": "Id"
+ }
+ },
+ "AccessPolicy": {
+ "description": "The access policy.",
+ "$ref": "#/definitions/AccessPolicy"
+ }
+ }
+ },
+ "SignedIdentifiers": {
+ "description": "A collection of signed identifiers.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SignedIdentifier",
+ "xml": {
+ "name": "SignedIdentifier"
+ }
+ },
+ "xml": {
+ "wrapped": true,
+ "name": "SignedIdentifiers"
+ }
+ },
+ "AccessPolicy": {
+ "xml": {
+ "name": "AccessPolicy"
+ },
+ "type": "object",
+ "required": [
+ "Start",
+ "Expiry",
+ "Permission"
+ ],
+ "description": "An Access policy.",
+ "properties": {
+ "Start": {
+ "description": "The start datetime from which the policy is active.",
+ "type": "string",
+ "format": "date-time",
+ "xml": {
+ "name": "Start"
+ }
+ },
+ "Expiry": {
+ "description": "The datetime that the policy expires.",
+ "type": "string",
+ "format": "date-time",
+ "xml": {
+ "name": "Expiry"
+ }
+ },
+ "Permission": {
+ "description": "The permissions for the acl policy.",
+ "type": "string",
+ "xml": {
+ "name": "Permission"
+ }
+ }
+ }
+ },
+ "TableEntityQueryResponse": {
+ "description": "The properties for the table entity query response.",
+ "type": "object",
+ "properties": {
+ "odata.metadata": {
+ "description": "The metadata response of the table.",
+ "type": "string"
+ },
+ "value": {
+ "description": "List of table entities.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TableEntityProperties"
+ }
+ }
+ }
+ },
+ "TableEntityProperties": {
+ "description": "The other properties of the table entity.",
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "parameters": {
+ "Url": {
+ "name": "url",
+ "x-ms-parameter-location": "client",
+ "description": "The URL of the service account or table that is the targe of the desired operation.",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true
+ },
+ "TableServiceProperties": {
+ "name": "tableServiceProperties",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TableServiceProperties"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "The Table Service properties."
+ },
+ "Timeout": {
+ "name": "timeout",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "minimum": 0,
+ "x-ms-parameter-location": "method",
+ "description": "The timeout parameter is expressed in seconds."
+ },
+ "ApiVersionParameter": {
+ "name": "x-ms-version",
+ "x-ms-parameter-location": "client",
+ "x-ms-client-name": "version",
+ "in": "header",
+ "required": true,
+ "type": "string",
+ "description": "Specifies the version of the operation to use for this request.",
+ "enum": [
+ "2019-02-02"
+ ]
+ },
+ "ClientRequestId": {
+ "name": "x-ms-client-request-id",
+ "x-ms-client-name": "requestId",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when analytics logging is enabled."
+ },
+ "DataServiceVersionParameter": {
+ "name": "DataServiceVersion",
+ "in": "header",
+ "required": true,
+ "type": "string",
+ "description": "Specifies the data service version.",
+ "x-ms-parameter-location": "method",
+ "enum": [
+ "3.0"
+ ]
+ },
+ "TableProperties": {
+ "name": "tableProperties",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TableProperties"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "The Table properties."
+ },
+ "formatParameter": {
+ "name": "$format",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Specifies the media type for the response.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "Format",
+ "enum": [
+ "application/json;odata=nometadata",
+ "application/json;odata=minimalmetadata",
+ "application/json;odata=fullmetadata"
+ ],
+ "x-ms-enum": {
+ "name": "OdataMetadataFormat",
+ "modelAsString": true
+ }
+ },
+ "topParameter": {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "description": "Maximum number of records to return.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "Top"
+ },
+ "selectParameter": {
+ "name": "$select",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Select expression using OData notation. Limits the columns on each record to just those requested, e.g. \"$select=PolicyAssignmentId, ResourceId\".",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "Select"
+ },
+ "filterParameter": {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "OData filter expression.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "Filter"
+ },
+ "PreferParameter": {
+ "name": "Prefer",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "Specifies whether the response should include the inserted entity in the payload. Possible values are return-no-content and return-content.",
+ "x-ms-parameter-location": "method",
+ "x-ms-client-name": "ResponsePreference",
+ "enum": [
+ "return-no-content",
+ "return-content"
+ ],
+ "x-ms-enum": {
+ "name": "ResponseFormat",
+ "modelAsString": true
+ }
+ },
+ "compAclParameter": {
+ "name": "comp",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "acl"
+ ],
+ "x-ms-parameter-location": "method",
+ "description": "Required query string to handle stored access policies for the table that may be used with Shared Access Signatures."
+ },
+ "TableAcl": {
+ "name": "tableAcl",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/SignedIdentifiers"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "The acls for the table."
+ },
+ "TableEntityProperties": {
+ "name": "tableEntityProperties",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/TableEntityProperties"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "The properties for the table entity."
+ },
+ "tableNameParameter": {
+ "name": "table",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "The name of the table."
+ },
+ "partitionKeyParameter": {
+ "name": "partitionKey",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "The partition key of the entity."
+ },
+ "rowKeyParameter": {
+ "name": "rowKey",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "The row key of the entity."
+ }
+ }
+}
diff --git a/specification/cosmos-db/data-plane/readme.go.md b/specification/cosmos-db/data-plane/readme.go.md
new file mode 100644
index 000000000000..e8b63caff258
--- /dev/null
+++ b/specification/cosmos-db/data-plane/readme.go.md
@@ -0,0 +1,26 @@
+## Go
+
+These settings apply only when `--go` is specified on the command line.
+
+``` yaml $(go)
+go:
+ license-header: MICROSOFT_APACHE_NO_VERSION
+ namespace: storagetables
+ clear-output-folder: true
+```
+
+### Go multi-api
+
+``` yaml $(go) && $(multiapi)
+batch:
+ - tag: package-2019-02
+```
+
+### Tag: package-2019-02 and go
+
+These settings apply only when `--tag=package-2019-02 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2019-02' && $(go)
+output-folder: $(go-sdk-folder)/services/storage/tables/2019-02-02/$(namespace)
+```
\ No newline at end of file
diff --git a/specification/cosmos-db/data-plane/readme.md b/specification/cosmos-db/data-plane/readme.md
new file mode 100644
index 000000000000..ba1ff2a95e5f
--- /dev/null
+++ b/specification/cosmos-db/data-plane/readme.md
@@ -0,0 +1,248 @@
+# Table Dataplane
+
+> see https://aka.ms/autorest
+
+This is the AutoRest configuration file for Tables.
+
+
+
+---
+## Getting Started
+To build the SDK for Tables, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
+
+> `autorest`
+
+To see additional help and options, run:
+
+> `autorest --help`
+---
+
+## Configuration
+
+
+
+### Basic Information
+These are the global settings for the Tables API.
+
+``` yaml
+azure-validator: true
+openapi-type: data-plane
+tag: package-2019-02
+```
+
+### Tag: package-2019-02
+
+These settings apply only when `--tag=package-2019-02` is specified on the command line.
+
+``` yaml $(tag) == 'package-2019-02'
+input-file:
+- Microsoft.Tables/preview/2019-02-02/table.json
+```
+
+---
+# Suppressions
+
+``` yaml
+directive:
+ - suppress: D5001
+ where: $["x-ms-paths"]["/?ServiceProperties"].put
+ reason: The path only supports XML input/outputm which is not supported
+ - suppress: D5001
+ where: $["x-ms-paths"]["/?ServiceProperties"].get
+ reason: The path only supports XML input/outputm which is not supported
+ - suppress: D5001
+ where: $["x-ms-paths"]["/?ServiceStats"].get
+ reason: The path only supports XML input/outputm which is not supported
+ - suppress: D5001
+ where: $.paths["/{table}"].get
+ reason: The path only supports XML input/outputm which is not supported
+ - suppress: D5001
+ where: $.paths["/{table}"].put
+ reason: The path only supports XML input/outputm which is not supported
+ - suppress: R3016
+ where: $.definitions.TableServiceError.properties.Message
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableServiceProperties.properties.Logging
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableServiceProperties.properties.HourMetrics
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableServiceProperties.properties.MinuteMetrics
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableServiceProperties.properties.Cors
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.Logging.properties.Version
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.Logging.properties.Delete
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.Logging.properties.Read
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.Logging.properties.Write
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.Logging.properties.RetentionPolicy
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.Metrics.properties.Version
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.Metrics.properties.Enabled
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.Metrics.properties.IncludeAPIs
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.Metrics.properties.RetentionPolicy
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.CorsRule.properties.AllowedOrigins
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.CorsRule.properties.AllowedMethods
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.CorsRule.properties.AllowedHeaders
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.CorsRule.properties.ExposedHeaders
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.CorsRule.properties.MaxAgeInSeconds
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.RetentionPolicy.properties.Enabled
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.RetentionPolicy.properties.Days
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableServiceStats.properties.GeoReplication
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.GeoReplication.properties.Status
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.GeoReplication.properties.LastSyncTime
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableProperties.properties.TableName
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableResponse.properties["odata.metadata"]
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableQueryResponse.properties["odata.metadata"]
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableResponseProperties.properties.TableName
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableResponseProperties.properties["odata.type"]
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableResponseProperties.properties["odata.id"]
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableResponseProperties.properties["odata.editLink"]
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.SignedIdentifier.properties.Id
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.SignedIdentifier.properties.AccessPolicy
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.AccessPolicy.properties.Start
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.AccessPolicy.properties.Expiry
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.AccessPolicy.properties.Permission
+ reason: Response from service is not camel case
+ - suppress: R3016
+ where: $.definitions.TableEntityQueryResponse.properties["odata.metadata"]
+ reason: Response from service is not camel case
+ - suppress: R2058
+ where: $["x-ms-paths"]["/?ServiceStats"]
+ reason: Cannot provide operation in "paths"
+ - suppress: R2058
+ where: $["x-ms-paths"]["/?ServiceProperties"]
+ reason: Cannot provide operation in "paths"
+```
+
+---
+# Code Generation
+
+
+## Swagger to SDK
+
+Swagger to SDK has been intentionally disabled for this spec.
+
+## C#
+
+These settings apply only when `--csharp` is specified on the command line.
+Please also specify `--csharp-sdks-folder=`.
+
+``` yaml $(csharp)
+csharp:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ namespace: Microsoft.Azure.Storage.Tables
+ output-folder: $(csharp-sdks-folder)/Storage/Tables/Generated
+ clear-output-folder: true
+```
+
+
+## Python
+
+See configuration in [readme.python.md](./readme.python.md)
+
+## Go
+
+See configuration in [readme.go.md](./readme.go.md)
+
+## Java
+
+These settings apply only when `--java` is specified on the command line.
+Please also specify `--azure-libraries-for-java-folder=`.
+
+``` yaml $(java)
+java:
+ azure-arm: true
+ namespace: com.microsoft.azure.storage.tables
+ license-header: MICROSOFT_MIT_NO_CODEGEN
+ output-folder: $(azure-libraries-for-java-folder)/azure-storage-tables
+```
+
+## Multi-API/Profile support for AutoRest v3 generators
+
+AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
+
+This block is updated by an automatic script. Edits may be lost!
+
+``` yaml $(tag) == 'all-api-versions' /* autogenerated */
+# include the azure profile definitions from the standard location
+require: $(this-folder)/../../../profiles/readme.md
+
+# all the input files across all versions
+input-file:
+ - $(this-folder)/Microsoft.Tables/preview/2019-02-02/table.json
+
+```
+
+If there are files that should not be in the `all-api-versions` set,
+uncomment the `exclude-file` section below and add the file paths.
+
+``` yaml $(tag) == 'all-api-versions'
+#exclude-file:
+# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
+```
+
diff --git a/specification/cosmos-db/data-plane/readme.nodejs.md b/specification/cosmos-db/data-plane/readme.nodejs.md
new file mode 100644
index 000000000000..2e137439952a
--- /dev/null
+++ b/specification/cosmos-db/data-plane/readme.nodejs.md
@@ -0,0 +1,14 @@
+## Node.js
+
+These settings apply only when `--nodejs` is specified on the command line.
+Please also specify `--node-sdks-folder=`.
+
+``` yaml $(nodejs)
+nodejs:
+ azure-arm: true
+ package-name: azure-storage-tables
+ output-folder: $(node-sdks-folder)/lib/services/storageTables
+ generate-license-txt: false
+ generate-package-json: false
+ generate-readme-md: false
+```
\ No newline at end of file
diff --git a/specification/cosmos-db/data-plane/readme.python.md b/specification/cosmos-db/data-plane/readme.python.md
new file mode 100644
index 000000000000..0d182d9db567
--- /dev/null
+++ b/specification/cosmos-db/data-plane/readme.python.md
@@ -0,0 +1,38 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+
+``` yaml $(python)
+python-mode: create
+python:
+ license-header: MICROSOFT_MIT_NO_VERSION
+ namespace: azure.table
+ package-name: azure-table
+ clear-output-folder: true
+ no-namespace-folders: true
+ enable-xml: true
+ vanilla: true
+ output-folder: "$(python-sdks-folder)/sdk/cosmos/azure-cosmos-table/azure/table/_generated"
+ package-version: "2019-02-02"
+```
+
+### Use strings for dates when python doesn't have enough precision
+``` yaml
+directive:
+- from: swagger-document
+ where: $.definitions.AccessPolicy.properties
+ transform: >
+ $.Start.format = "str";
+ $.Expiry.format = "str";
+```
+
+### SignedIdentifier shouldn't require an AccessPolicy, only ID
+``` yaml
+directive:
+- from: swagger-document
+ where: $.definitions.SignedIdentifier
+ transform: >
+ $.required = [ "Id" ];
+```
+
diff --git a/specification/cosmos-db/data-plane/readme.typescript.md b/specification/cosmos-db/data-plane/readme.typescript.md
new file mode 100644
index 000000000000..29266ce43bf5
--- /dev/null
+++ b/specification/cosmos-db/data-plane/readme.typescript.md
@@ -0,0 +1,12 @@
+## TypeScript
+
+These settings apply only when `--typescript` is specified on the command line.
+Please also specify `--typescript-sdks-folder=`.
+
+``` yaml $(typescript)
+typescript:
+ azure-arm: true
+ package-name: "@azure/storage-tables"
+ output-folder: "$(typescript-sdks-folder)/sdk/storage/storage-tables"
+ generate-metadata: true
+```
\ No newline at end of file
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceCreate.json
new file mode 100644
index 000000000000..6b9f0b7786a3
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceCreate.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "api-version": "2019-12-12",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default",
+ "notebookCreateUpdateParameters": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces",
+ "properties": {
+ "notebookServerEndpoint": "endpoint",
+ "status": "Online"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceDelete.json
new file mode 100644
index 000000000000..14e2f6e77d53
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2019-12-12",
+ "subscriptionId": "subid",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceGet.json
new file mode 100644
index 000000000000..97eb46f4c16d
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceGet.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2019-12-12",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces",
+ "properties": {
+ "notebookServerEndpoint": "endpoint",
+ "status": "Online"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceList.json
new file mode 100644
index 000000000000..4c2b95104aed
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceList.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2019-12-12",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces",
+ "properties": {
+ "notebookServerEndpoint": "endpoint",
+ "status": "Online"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json
new file mode 100644
index 000000000000..66993961b4ae
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "api-version": "2019-12-12",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "authToken": "auth-token",
+ "notebookServerEndpoint": "notebook endpoint"
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json
new file mode 100644
index 000000000000..3e456159a011
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-12-12",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceStart.json
new file mode 100644
index 000000000000..3e456159a011
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/examples/CosmosDBNotebookWorkspaceStart.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-12-12",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/notebook.json
new file mode 100644
index 000000000000..495565d8e4f0
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2019-12-12/notebook.json
@@ -0,0 +1,461 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Cosmos DB",
+ "description": "Azure Cosmos DB Database Service Resource Provider REST API",
+ "version": "2019-12-12"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces": {
+ "get": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Gets the notebook workspace resources of an existing Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_ListByDatabaseAccount",
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved notebook workspace resources.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspaceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2019-12-12/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceList": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceList.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}": {
+ "get": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Gets the notebook workspace for a Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved a specified notebook workspace resource.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2019-12-12/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceGet": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Creates the notebook workspace for a Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ },
+ {
+ "name": "notebookCreateUpdateParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspaceCreateUpdateParameters"
+ },
+ "description": "The notebook workspace to create for the current database account."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Creation of notebook workspace will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2019-12-12/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceCreate": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceCreate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Deletes the notebook workspace for a Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_Delete",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The notebook workspace delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The specified notebook workspace does not exist in the database account."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2019-12-12/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceDelete": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceDelete.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/listConnectionInfo": {
+ "post": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "operationId": "NotebookWorkspaces_ListConnectionInfo",
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceListConnectionInfo": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceListConnectionInfo.json"
+ }
+ },
+ "description": "Retrieves the connection info for the notebook workspace",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspaceConnectionInfoResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2019-12-12/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/regenerateAuthToken": {
+ "post": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "operationId": "NotebookWorkspaces_RegenerateAuthToken",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceRegenerateAuthToken": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json"
+ }
+ },
+ "description": "Regenerates the auth token for the notebook workspace",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted. The regenerate auth token operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2019-12-12/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/start": {
+ "post": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "operationId": "NotebookWorkspaces_Start",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceStart": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceStart.json"
+ }
+ },
+ "description": "Starts the notebook workspace",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted. The start operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2019-12-12/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "NotebookWorkspaceCreateUpdateParameters": {
+ "description": "Parameters to create a notebook workspace resource",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../stable/2019-12-12/cosmos-db.json#/definitions/ARMProxyResource"
+ }
+ ]
+ },
+ "NotebookWorkspaceListResult": {
+ "description": "A list of notebook workspace resources",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of notebook workspace resources",
+ "items": {
+ "$ref": "#/definitions/NotebookWorkspace"
+ }
+ }
+ }
+ },
+ "NotebookWorkspace": {
+ "description": "A notebook workspace resource",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/NotebookWorkspaceProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../stable/2019-12-12/cosmos-db.json#/definitions/ARMProxyResource"
+ }
+ ]
+ },
+ "NotebookWorkspaceProperties": {
+ "description": "Properties of a notebook workspace resource.",
+ "type": "object",
+ "properties": {
+ "notebookServerEndpoint": {
+ "description": "Specifies the endpoint of Notebook server.",
+ "type": "string",
+ "readOnly": true
+ },
+ "status": {
+ "description": "Status of the notebook workspace. Possible values are: Creating, Online, Deleting, Failed, Updating.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "NotebookWorkspaceConnectionInfoResult": {
+ "description": "The connection info for the given notebook workspace",
+ "properties": {
+ "authToken": {
+ "type": "string",
+ "description": "Specifies auth token used for connecting to Notebook server (uses token-based auth).",
+ "readOnly": true
+ },
+ "notebookServerEndpoint": {
+ "type": "string",
+ "description": "Specifies the endpoint of Notebook server.",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "accountNameParameter": {
+ "name": "accountName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB database account name.",
+ "minLength": 3,
+ "maxLength": 50,
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*"
+ },
+ "NotebookWorkspaceNameParameter": {
+ "name": "notebookWorkspaceName",
+ "in": "path",
+ "description": "The name of the notebook workspace resource.",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "enum": [
+ "default"
+ ],
+ "x-ms-enum": {
+ "name": "NotebookWorkspaceName",
+ "modelAsString": true
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceCreate.json
new file mode 100644
index 000000000000..c01796bbdb17
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceCreate.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default",
+ "notebookCreateUpdateParameters": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces",
+ "properties": {
+ "notebookServerEndpoint": "endpoint",
+ "status": "Online"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceDelete.json
new file mode 100644
index 000000000000..d2e386ecc31b
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-03-01",
+ "subscriptionId": "subid",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceGet.json
new file mode 100644
index 000000000000..5422c65564bc
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceGet.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces",
+ "properties": {
+ "notebookServerEndpoint": "endpoint",
+ "status": "Online"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceList.json
new file mode 100644
index 000000000000..ac3a39d40c95
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceList.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces",
+ "properties": {
+ "notebookServerEndpoint": "endpoint",
+ "status": "Online"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json
new file mode 100644
index 000000000000..eeb535a3919d
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "authToken": "auth-token",
+ "notebookServerEndpoint": "notebook endpoint"
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json
new file mode 100644
index 000000000000..33fb6777cc06
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceStart.json
new file mode 100644
index 000000000000..33fb6777cc06
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/examples/CosmosDBNotebookWorkspaceStart.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/notebook.json
new file mode 100644
index 000000000000..639a7d9edcf0
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-03-01/notebook.json
@@ -0,0 +1,461 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Cosmos DB",
+ "description": "Azure Cosmos DB Database Service Resource Provider REST API",
+ "version": "2020-03-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces": {
+ "get": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Gets the notebook workspace resources of an existing Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_ListByDatabaseAccount",
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved notebook workspace resources.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspaceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-03-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceList": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceList.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}": {
+ "get": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Gets the notebook workspace for a Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved a specified notebook workspace resource.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-03-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceGet": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Creates the notebook workspace for a Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ },
+ {
+ "name": "notebookCreateUpdateParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspaceCreateUpdateParameters"
+ },
+ "description": "The notebook workspace to create for the current database account."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Creation of notebook workspace will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-03-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceCreate": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceCreate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Deletes the notebook workspace for a Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_Delete",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The notebook workspace delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The specified notebook workspace does not exist in the database account."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-03-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceDelete": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceDelete.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/listConnectionInfo": {
+ "post": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "operationId": "NotebookWorkspaces_ListConnectionInfo",
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceListConnectionInfo": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceListConnectionInfo.json"
+ }
+ },
+ "description": "Retrieves the connection info for the notebook workspace",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspaceConnectionInfoResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-03-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/regenerateAuthToken": {
+ "post": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "operationId": "NotebookWorkspaces_RegenerateAuthToken",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceRegenerateAuthToken": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json"
+ }
+ },
+ "description": "Regenerates the auth token for the notebook workspace",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted. The regenerate auth token operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-03-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/start": {
+ "post": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "operationId": "NotebookWorkspaces_Start",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceStart": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceStart.json"
+ }
+ },
+ "description": "Starts the notebook workspace",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted. The start operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-03-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "NotebookWorkspaceCreateUpdateParameters": {
+ "description": "Parameters to create a notebook workspace resource",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../stable/2020-03-01/cosmos-db.json#/definitions/ARMProxyResource"
+ }
+ ]
+ },
+ "NotebookWorkspaceListResult": {
+ "description": "A list of notebook workspace resources",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of notebook workspace resources",
+ "items": {
+ "$ref": "#/definitions/NotebookWorkspace"
+ }
+ }
+ }
+ },
+ "NotebookWorkspace": {
+ "description": "A notebook workspace resource",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/NotebookWorkspaceProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../stable/2020-03-01/cosmos-db.json#/definitions/ARMProxyResource"
+ }
+ ]
+ },
+ "NotebookWorkspaceProperties": {
+ "description": "Properties of a notebook workspace resource.",
+ "type": "object",
+ "properties": {
+ "notebookServerEndpoint": {
+ "description": "Specifies the endpoint of Notebook server.",
+ "type": "string",
+ "readOnly": true
+ },
+ "status": {
+ "description": "Status of the notebook workspace. Possible values are: Creating, Online, Deleting, Failed, Updating.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "NotebookWorkspaceConnectionInfoResult": {
+ "description": "The connection info for the given notebook workspace",
+ "properties": {
+ "authToken": {
+ "type": "string",
+ "description": "Specifies auth token used for connecting to Notebook server (uses token-based auth).",
+ "readOnly": true
+ },
+ "notebookServerEndpoint": {
+ "type": "string",
+ "description": "Specifies the endpoint of Notebook server.",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "accountNameParameter": {
+ "name": "accountName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB database account name.",
+ "minLength": 3,
+ "maxLength": 50,
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*"
+ },
+ "NotebookWorkspaceNameParameter": {
+ "name": "notebookWorkspaceName",
+ "in": "path",
+ "description": "The name of the notebook workspace resource.",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "enum": [
+ "default"
+ ],
+ "x-ms-enum": {
+ "name": "NotebookWorkspaceName",
+ "modelAsString": true
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json
new file mode 100644
index 000000000000..fac9062ba082
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json
@@ -0,0 +1,7519 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Cosmos DB",
+ "description": "Azure Cosmos DB Database Service Resource Provider REST API",
+ "version": "2020-04-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}": {
+ "get": {
+ "operationId": "DatabaseAccounts_Get",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountGet": {
+ "$ref": "./examples/CosmosDBDatabaseAccountGet.json"
+ }
+ },
+ "description": "Retrieves the properties of an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The database account properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountGetResults"
+ }
+ },
+ "404": {
+ "description": "Not Found. The account name is available and valid."
+ }
+ }
+ },
+ "patch": {
+ "operationId": "DatabaseAccounts_Update",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountPatch": {
+ "$ref": "./examples/CosmosDBDatabaseAccountPatch.json"
+ }
+ },
+ "description": "Updates the properties of an existing Azure Cosmos DB database account.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountUpdateParameters"
+ },
+ "description": "The parameters to provide for the current database account."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The database account update operation will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "DatabaseAccounts_CreateOrUpdate",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountCreateMin": {
+ "$ref": "./examples/CosmosDBDatabaseAccountCreateMin.json"
+ },
+ "CosmosDBDatabaseAccountCreateMax": {
+ "$ref": "./examples/CosmosDBDatabaseAccountCreateMax.json"
+ }
+ },
+ "description": "Creates or updates an Azure Cosmos DB database account. The \"Update\" method is preferred when performing updates on an account.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current database account."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The database account create or update operation will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "DatabaseAccounts_Delete",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountDelete": {
+ "$ref": "./examples/CosmosDBDatabaseAccountDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB database account.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The database account delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The specified account does not exist in the subscription."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/failoverPriorityChange": {
+ "post": {
+ "operationId": "DatabaseAccounts_FailoverPriorityChange",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountFailoverPriorityChange": {
+ "$ref": "./examples/CosmosDBDatabaseAccountFailoverPriorityChange.json"
+ }
+ },
+ "description": "Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "failoverParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/FailoverPolicies"
+ },
+ "description": "The new failover policies for the database account."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted. The failover policy change operation will complete asynchronously."
+ },
+ "204": {
+ "description": "No Content"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/databaseAccounts": {
+ "get": {
+ "operationId": "DatabaseAccounts_List",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountList": {
+ "$ref": "./examples/CosmosDBDatabaseAccountList.json"
+ }
+ },
+ "description": "Lists all the Azure Cosmos DB database accounts available under the subscription.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountsListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts": {
+ "get": {
+ "operationId": "DatabaseAccounts_ListByResourceGroup",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountListByResourceGroup": {
+ "$ref": "./examples/CosmosDBDatabaseAccountListByResourceGroup.json"
+ }
+ },
+ "description": "Lists all the Azure Cosmos DB database accounts available under the given resource group.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountsListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listKeys": {
+ "post": {
+ "operationId": "DatabaseAccounts_ListKeys",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountListKeys": {
+ "$ref": "./examples/CosmosDBDatabaseAccountListKeys.json"
+ }
+ },
+ "description": "Lists the access keys for the specified Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountListKeysResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/listConnectionStrings": {
+ "post": {
+ "operationId": "DatabaseAccounts_ListConnectionStrings",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountListConnectionStrings": {
+ "$ref": "./examples/CosmosDBDatabaseAccountListConnectionStrings.json"
+ },
+ "CosmosDBDatabaseAccountListConnectionStringsMongo": {
+ "$ref": "./examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json"
+ }
+ },
+ "description": "Lists the connection strings for the specified Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountListConnectionStringsResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/offlineRegion": {
+ "post": {
+ "operationId": "DatabaseAccounts_OfflineRegion",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountOfflineRegion": {
+ "$ref": "./examples/CosmosDBDatabaseAccountOfflineRegion.json"
+ }
+ },
+ "description": "Offline the specified region for the specified Azure Cosmos DB database account.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "regionParameterForOffline",
+ "in": "body",
+ "required": true,
+ "description": "Cosmos DB region to offline for the database account.",
+ "schema": {
+ "$ref": "#/definitions/RegionForOnlineOffline"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The offline region operation is completed successfully."
+ },
+ "202": {
+ "description": "Accepted. The offline region operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/onlineRegion": {
+ "post": {
+ "operationId": "DatabaseAccounts_OnlineRegion",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountOnlineRegion": {
+ "$ref": "./examples/CosmosDBDatabaseAccountOnlineRegion.json"
+ }
+ },
+ "description": "Online the specified region for the specified Azure Cosmos DB database account.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "regionParameterForOnline",
+ "in": "body",
+ "required": true,
+ "description": "Cosmos DB region to online for the database account.",
+ "schema": {
+ "$ref": "#/definitions/RegionForOnlineOffline"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The online region operation is completed successfully."
+ },
+ "202": {
+ "description": "Accepted. The online region operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/readonlykeys": {
+ "get": {
+ "operationId": "DatabaseAccounts_GetReadOnlyKeys",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountListReadOnlyKeys": {
+ "$ref": "./examples/CosmosDBDatabaseAccountListReadOnlyKeys.json"
+ }
+ },
+ "description": "Lists the read-only access keys for the specified Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult"
+ }
+ }
+ }
+ },
+ "post": {
+ "operationId": "DatabaseAccounts_ListReadOnlyKeys",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountListReadOnlyKeys": {
+ "$ref": "./examples/CosmosDBDatabaseAccountListReadOnlyKeys.json"
+ }
+ },
+ "description": "Lists the read-only access keys for the specified Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/regenerateKey": {
+ "post": {
+ "operationId": "DatabaseAccounts_RegenerateKey",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountRegenerateKey": {
+ "$ref": "./examples/CosmosDBDatabaseAccountRegenerateKey.json"
+ }
+ },
+ "description": "Regenerates an access key for the specified Azure Cosmos DB database account.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "keyToRegenerate",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DatabaseAccountRegenerateKeyParameters"
+ },
+ "description": "The name of the key to regenerate."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted. The regenerate key operation will complete asynchronously."
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.DocumentDB/databaseAccountNames/{accountName}": {
+ "head": {
+ "operationId": "DatabaseAccounts_CheckNameExists",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountCheckNameExists": {
+ "$ref": "./examples/CosmosDBDatabaseAccountCheckNameExists.json"
+ }
+ },
+ "description": "Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The account name is valid but is already in use."
+ },
+ "404": {
+ "description": "Not Found. The account name is available and valid."
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.DocumentDB/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "description": "Lists all of the available Cosmos DB Resource Provider operations.",
+ "operationId": "Operations_List",
+ "x-ms-examples": {
+ "CosmosDBOperationsList": {
+ "$ref": "./examples/CosmosDBOperationsList.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metrics": {
+ "get": {
+ "operationId": "DatabaseAccounts_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountGetMetrics": {
+ "$ref": "./examples/CosmosDBDatabaseAccountGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The metrics for the database account were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metrics": {
+ "get": {
+ "operationId": "Database_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseGetMetrics": {
+ "$ref": "./examples/CosmosDBDatabaseGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given database account and database.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The metrics for the database account were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metrics": {
+ "get": {
+ "operationId": "Collection_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBCollectionGetMetrics": {
+ "$ref": "./examples/CosmosDBCollectionGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given database account and collection.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The metrics for the database account were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/metrics": {
+ "get": {
+ "operationId": "CollectionRegion_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBRegionCollectionGetMetrics": {
+ "$ref": "./examples/CosmosDBRegionCollectionGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given database account, collection and region.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/regionParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The metrics for the database account were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/metrics": {
+ "get": {
+ "operationId": "DatabaseAccountRegion_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountRegionGetMetrics": {
+ "$ref": "./examples/CosmosDBDatabaseAccountRegionGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given database account and region.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/regionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The metrics for the database account were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sourceRegion/{sourceRegion}/targetRegion/{targetRegion}/percentile/metrics": {
+ "get": {
+ "operationId": "PercentileSourceTarget_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountRegionGetMetrics": {
+ "$ref": "./examples/CosmosDBPercentileSourceTargetGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/sourceRegionParameter"
+ },
+ {
+ "$ref": "#/parameters/targetRegionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The percentile metrics for the account, source and target regions were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/PercentileMetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/targetRegion/{targetRegion}/percentile/metrics": {
+ "get": {
+ "operationId": "PercentileTarget_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountRegionGetMetrics": {
+ "$ref": "./examples/CosmosDBPercentileTargetGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/targetRegionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The percentile metrics for the account and target regions were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/PercentileMetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/percentile/metrics": {
+ "get": {
+ "operationId": "Percentile_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountRegionGetMetrics": {
+ "$ref": "./examples/CosmosDBPercentileGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The percentile metrics for the account were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/PercentileMetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics": {
+ "get": {
+ "operationId": "CollectionPartitionRegion_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountRegionGetMetrics": {
+ "$ref": "./examples/CosmosDBCollectionPartitionRegionGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given collection and region, split by partition.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/regionParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The partition-level metrics for the collection and region were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/PartitionMetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/metrics": {
+ "get": {
+ "operationId": "CollectionPartition_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountRegionGetMetrics": {
+ "$ref": "./examples/CosmosDBCollectionPartitionGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given collection, split by partition.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The partition-level metrics for the collection were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/PartitionMetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics": {
+ "get": {
+ "operationId": "PartitionKeyRangeId_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountRegionGetMetrics": {
+ "$ref": "./examples/CosmosDBPKeyRangeIdGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given partition key range id.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionRidParameter"
+ },
+ {
+ "$ref": "#/parameters/partitionKeyRangeIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The partition-level metrics for the partition key range id were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/PartitionMetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/region/{region}/databases/{databaseRid}/collections/{collectionRid}/partitionKeyRangeId/{partitionKeyRangeId}/metrics": {
+ "get": {
+ "operationId": "PartitionKeyRangeIdRegion_ListMetrics",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountRegionGetMetrics": {
+ "$ref": "./examples/CosmosDBPKeyRangeIdRegionGetMetrics.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "description": "Retrieves the metrics determined by the given filter for the given partition key range id and region.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/regionParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionRidParameter"
+ },
+ {
+ "$ref": "#/parameters/partitionKeyRangeIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The partition-level metrics for the partition key range id and region were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/PartitionMetricListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/usages": {
+ "get": {
+ "operationId": "DatabaseAccounts_ListUsages",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountGetUsages": {
+ "$ref": "./examples/CosmosDBDatabaseAccountGetUsages.json"
+ }
+ },
+ "description": "Retrieves the usages (most recent data) for the given database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/usageFilterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The usages for the database account were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/UsagesResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/usages": {
+ "get": {
+ "operationId": "Database_ListUsages",
+ "x-ms-examples": {
+ "CosmosDBDatabaseGetUsages": {
+ "$ref": "./examples/CosmosDBDatabaseGetUsages.json"
+ }
+ },
+ "description": "Retrieves the usages (most recent data) for the given database.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/usageFilterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The usages for the database were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/UsagesResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/usages": {
+ "get": {
+ "operationId": "Collection_ListUsages",
+ "x-ms-examples": {
+ "CosmosDBCollectionGetUsages": {
+ "$ref": "./examples/CosmosDBCollectionGetUsages.json"
+ }
+ },
+ "description": "Retrieves the usages (most recent storage data) for the given collection.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/usageFilterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The usages for the collection were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/UsagesResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/partitions/usages": {
+ "get": {
+ "operationId": "CollectionPartition_ListUsages",
+ "x-ms-examples": {
+ "CosmosDBCollectionGetUsages": {
+ "$ref": "./examples/CosmosDBCollectionPartitionGetUsages.json"
+ }
+ },
+ "description": "Retrieves the usages (most recent storage data) for the given collection, split by partition.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/usageFilterParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The usages for the collection, per partition were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/PartitionUsagesResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/metricDefinitions": {
+ "get": {
+ "operationId": "Database_ListMetricDefinitions",
+ "x-ms-examples": {
+ "CosmosDBDatabaseGetMetricDefinitions": {
+ "$ref": "./examples/CosmosDBDatabaseGetMetricDefinitions.json"
+ }
+ },
+ "description": "Retrieves metric definitions for the given database.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The metric definitions for the database were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MetricDefinitionsListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/databases/{databaseRid}/collections/{collectionRid}/metricDefinitions": {
+ "get": {
+ "operationId": "Collection_ListMetricDefinitions",
+ "x-ms-examples": {
+ "CosmosDBCollectionGetMetricDefinitions": {
+ "$ref": "./examples/CosmosDBCollectionGetMetricDefinitions.json"
+ }
+ },
+ "description": "Retrieves metric definitions for the given collection.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseRidParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionRidParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The metric definitions for the collection were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MetricDefinitionsListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/metricDefinitions": {
+ "get": {
+ "operationId": "DatabaseAccounts_ListMetricDefinitions",
+ "x-ms-examples": {
+ "CosmosDBDatabaseAccountGetMetricDefinitions": {
+ "$ref": "./examples/CosmosDBDatabaseAccountGetMetricDefinitions.json"
+ }
+ },
+ "description": "Retrieves metric definitions for the given database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The metric definitions for the database account were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MetricDefinitionsListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases": {
+ "get": {
+ "operationId": "SqlResources_ListSqlDatabases",
+ "x-ms-examples": {
+ "CosmosDBSqlDatabaseList": {
+ "$ref": "./examples/CosmosDBSqlDatabaseList.json"
+ }
+ },
+ "description": "Lists the SQL databases under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL database properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlDatabaseListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}": {
+ "get": {
+ "operationId": "SqlResources_GetSqlDatabase",
+ "x-ms-examples": {
+ "CosmosDBSqlDatabaseGet": {
+ "$ref": "./examples/CosmosDBSqlDatabaseGet.json"
+ }
+ },
+ "description": "Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL database property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlDatabaseGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "SqlResources_CreateUpdateSqlDatabase",
+ "x-ms-examples": {
+ "CosmosDBSqlDatabaseCreateUpdate": {
+ "$ref": "./examples/CosmosDBSqlDatabaseCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB SQL database",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateSqlDatabaseParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SqlDatabaseCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current SQL database."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL database create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The SQL database create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlDatabaseGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "SqlResources_DeleteSqlDatabase",
+ "x-ms-examples": {
+ "CosmosDBSqlDatabaseDelete": {
+ "$ref": "./examples/CosmosDBSqlDatabaseDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB SQL database.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL database delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The SQL database delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default": {
+ "get": {
+ "operationId": "SqlResources_GetSqlDatabaseThroughput",
+ "x-ms-examples": {
+ "CosmosDBSqlDatabaseThroughputGet": {
+ "$ref": "./examples/CosmosDBSqlDatabaseThroughputGet.json"
+ }
+ },
+ "description": "Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The RUs per second of the SQL database was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "SqlResources_UpdateSqlDatabaseThroughput",
+ "x-ms-examples": {
+ "CosmosDBSqlDatabaseThroughputUpdate": {
+ "$ref": "./examples/CosmosDBSqlDatabaseThroughputUpdate.json"
+ }
+ },
+ "description": "Update RUs per second of an Azure Cosmos DB SQL database",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateThroughputParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsUpdateParameters"
+ },
+ "description": "The parameters to provide for the RUs per second of the current SQL database."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The RUs per second of the SQL database update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The RUs per second of the SQL database update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers": {
+ "get": {
+ "operationId": "SqlResources_ListSqlContainers",
+ "x-ms-examples": {
+ "CosmosDBSqlContainerList": {
+ "$ref": "./examples/CosmosDBSqlContainerList.json"
+ }
+ },
+ "description": "Lists the SQL container under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL container properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlContainerListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}": {
+ "get": {
+ "operationId": "SqlResources_GetSqlContainer",
+ "x-ms-examples": {
+ "CosmosDBSqlContainerGet": {
+ "$ref": "./examples/CosmosDBSqlContainerGet.json"
+ }
+ },
+ "description": "Gets the SQL container under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL container property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlContainerGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "SqlResources_CreateUpdateSqlContainer",
+ "x-ms-examples": {
+ "CosmosDBSqlContainerCreateUpdate": {
+ "$ref": "./examples/CosmosDBSqlContainerCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB SQL container",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateSqlContainerParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SqlContainerCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current SQL container."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL container create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The SQL container create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlContainerGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "SqlResources_DeleteSqlContainer",
+ "x-ms-examples": {
+ "CosmosDBSqlContainerDelete": {
+ "$ref": "./examples/CosmosDBSqlContainerDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB SQL container.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL container delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The SQL container delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default": {
+ "get": {
+ "operationId": "SqlResources_GetSqlContainerThroughput",
+ "x-ms-examples": {
+ "CosmosDBSqlContainerThroughputGet": {
+ "$ref": "./examples/CosmosDBSqlContainerThroughputGet.json"
+ }
+ },
+ "description": "Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The RUs per second of the SQL container was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "SqlResources_UpdateSqlContainerThroughput",
+ "x-ms-examples": {
+ "CosmosDBSqlContainerThroughputUpdate": {
+ "$ref": "./examples/CosmosDBSqlContainerThroughputUpdate.json"
+ }
+ },
+ "description": "Update RUs per second of an Azure Cosmos DB SQL container",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateThroughputParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsUpdateParameters"
+ },
+ "description": "The parameters to provide for the RUs per second of the current SQL container."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The RUs per second of the SQL container update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The RUs per second of the SQL container update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures": {
+ "get": {
+ "operationId": "SqlResources_ListSqlStoredProcedures",
+ "x-ms-examples": {
+ "CosmosDBSqlStoredProcedureList": {
+ "$ref": "./examples/CosmosDBSqlStoredProcedureList.json"
+ }
+ },
+ "description": "Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL stored procedure properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlStoredProcedureListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}": {
+ "get": {
+ "operationId": "SqlResources_GetSqlStoredProcedure",
+ "x-ms-examples": {
+ "CosmosDBSqlStoredProcedureGet": {
+ "$ref": "./examples/CosmosDBSqlStoredProcedureGet.json"
+ }
+ },
+ "description": "Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/storedProcedureNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL storedProcedure property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlStoredProcedureGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "SqlResources_CreateUpdateSqlStoredProcedure",
+ "x-ms-examples": {
+ "CosmosDBSqlStoredProcedureCreateUpdate": {
+ "$ref": "./examples/CosmosDBSqlStoredProcedureCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB SQL storedProcedure",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/storedProcedureNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateSqlStoredProcedureParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SqlStoredProcedureCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current SQL storedProcedure."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL storedProcedure create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The SQL storedProcedure create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlStoredProcedureGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "SqlResources_DeleteSqlStoredProcedure",
+ "x-ms-examples": {
+ "CosmosDBSqlStoredProcedureDelete": {
+ "$ref": "./examples/CosmosDBSqlStoredProcedureDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB SQL storedProcedure.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/storedProcedureNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL storedProcedure delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The SQL storedProcedure delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions": {
+ "get": {
+ "operationId": "SqlResources_ListSqlUserDefinedFunctions",
+ "x-ms-examples": {
+ "CosmosDBSqlUserDefinedFunctionList": {
+ "$ref": "./examples/CosmosDBSqlUserDefinedFunctionList.json"
+ }
+ },
+ "description": "Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL userDefinedFunction properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlUserDefinedFunctionListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}": {
+ "get": {
+ "operationId": "SqlResources_GetSqlUserDefinedFunction",
+ "x-ms-examples": {
+ "CosmosDBSqlUserDefinedFunctionGet": {
+ "$ref": "./examples/CosmosDBSqlUserDefinedFunctionGet.json"
+ }
+ },
+ "description": "Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/userDefinedFunctionNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL userDefinedFunction property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlUserDefinedFunctionGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "SqlResources_CreateUpdateSqlUserDefinedFunction",
+ "x-ms-examples": {
+ "CosmosDBSqlUserDefinedFunctionCreateUpdate": {
+ "$ref": "./examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB SQL userDefinedFunction",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/userDefinedFunctionNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateSqlUserDefinedFunctionParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SqlUserDefinedFunctionCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current SQL userDefinedFunction."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL userDefinedFunction create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The SQL userDefinedFunction create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlUserDefinedFunctionGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "SqlResources_DeleteSqlUserDefinedFunction",
+ "x-ms-examples": {
+ "CosmosDBSqlUserDefinedFunctionDelete": {
+ "$ref": "./examples/CosmosDBSqlUserDefinedFunctionDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB SQL userDefinedFunction.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/userDefinedFunctionNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL userDefinedFunction delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The SQL userDefinedFunction delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers": {
+ "get": {
+ "operationId": "SqlResources_ListSqlTriggers",
+ "x-ms-examples": {
+ "CosmosDBSqlTriggerList": {
+ "$ref": "./examples/CosmosDBSqlTriggerList.json"
+ }
+ },
+ "description": "Lists the SQL trigger under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL trigger properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlTriggerListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}": {
+ "get": {
+ "operationId": "SqlResources_GetSqlTrigger",
+ "x-ms-examples": {
+ "CosmosDBSqlTriggerGet": {
+ "$ref": "./examples/CosmosDBSqlTriggerGet.json"
+ }
+ },
+ "description": "Gets the SQL trigger under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/triggerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The SQL trigger property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlTriggerGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "SqlResources_CreateUpdateSqlTrigger",
+ "x-ms-examples": {
+ "CosmosDBSqlTriggerCreateUpdate": {
+ "$ref": "./examples/CosmosDBSqlTriggerCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB SQL trigger",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/triggerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateSqlTriggerParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SqlTriggerCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current SQL trigger."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL trigger create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The SQL trigger create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/SqlTriggerGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "SqlResources_DeleteSqlTrigger",
+ "x-ms-examples": {
+ "CosmosDBSqlTriggerDelete": {
+ "$ref": "./examples/CosmosDBSqlTriggerDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB SQL trigger.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/containerNameParameter"
+ },
+ {
+ "$ref": "#/parameters/triggerNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The SQL trigger delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The SQL trigger delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases": {
+ "get": {
+ "operationId": "MongoDBResources_ListMongoDBDatabases",
+ "x-ms-examples": {
+ "CosmosDBMongoDBDatabaseList": {
+ "$ref": "./examples/CosmosDBMongoDBDatabaseList.json"
+ }
+ },
+ "description": "Lists the MongoDB databases under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The MongoDB database properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MongoDBDatabaseListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}": {
+ "get": {
+ "operationId": "MongoDBResources_GetMongoDBDatabase",
+ "x-ms-examples": {
+ "CosmosDBMongoDBDatabaseGet": {
+ "$ref": "./examples/CosmosDBMongoDBDatabaseGet.json"
+ }
+ },
+ "description": "Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The MongoDB database property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MongoDBDatabaseGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "MongoDBResources_CreateUpdateMongoDBDatabase",
+ "x-ms-examples": {
+ "CosmosDBMongoDBDatabaseCreateUpdate": {
+ "$ref": "./examples/CosmosDBMongoDBDatabaseCreateUpdate.json"
+ }
+ },
+ "description": "Create or updates Azure Cosmos DB MongoDB database",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateMongoDBDatabaseParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/MongoDBDatabaseCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current MongoDB database."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The MongoDB database create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The MongoDB database create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/MongoDBDatabaseGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "MongoDBResources_DeleteMongoDBDatabase",
+ "x-ms-examples": {
+ "CosmosDBMongoDBDatabaseDelete": {
+ "$ref": "./examples/CosmosDBMongoDBDatabaseDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB MongoDB database.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The MongoDB database delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The MongoDB database delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default": {
+ "get": {
+ "operationId": "MongoDBResources_GetMongoDBDatabaseThroughput",
+ "x-ms-examples": {
+ "CosmosDBMongoDBDatabaseThroughputGet": {
+ "$ref": "./examples/CosmosDBMongoDBDatabaseThroughputGet.json"
+ }
+ },
+ "description": "Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The RUs per second of the MongoDB database was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "MongoDBResources_UpdateMongoDBDatabaseThroughput",
+ "x-ms-examples": {
+ "CosmosDBMongoDBDatabaseThroughputUpdate": {
+ "$ref": "./examples/CosmosDBMongoDBDatabaseThroughputUpdate.json"
+ }
+ },
+ "description": "Update RUs per second of the an Azure Cosmos DB MongoDB database",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateThroughputParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsUpdateParameters"
+ },
+ "description": "The RUs per second of the parameters to provide for the current MongoDB database."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The RUs per second of the MongoDB database update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The RUs per second of the MongoDB database update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections": {
+ "get": {
+ "operationId": "MongoDBResources_ListMongoDBCollections",
+ "x-ms-examples": {
+ "CosmosDBMongoDBCollectionList": {
+ "$ref": "./examples/CosmosDBMongoDBCollectionList.json"
+ }
+ },
+ "description": "Lists the MongoDB collection under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The MongoDB collection properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MongoDBCollectionListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}": {
+ "get": {
+ "operationId": "MongoDBResources_GetMongoDBCollection",
+ "x-ms-examples": {
+ "CosmosDBMongoDBCollectionGet": {
+ "$ref": "./examples/CosmosDBMongoDBCollectionGet.json"
+ }
+ },
+ "description": "Gets the MongoDB collection under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The MongoDB collection property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/MongoDBCollectionGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "MongoDBResources_CreateUpdateMongoDBCollection",
+ "x-ms-examples": {
+ "CosmosDBMongoDBCollectionCreateUpdate": {
+ "$ref": "./examples/CosmosDBMongoDBCollectionCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB MongoDB Collection",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateMongoDBCollectionParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/MongoDBCollectionCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current MongoDB Collection."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The MongoDB Collection create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The MongoDB Collection create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/MongoDBCollectionGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "MongoDBResources_DeleteMongoDBCollection",
+ "x-ms-examples": {
+ "CosmosDBMongoDBCollectionDelete": {
+ "$ref": "./examples/CosmosDBMongoDBCollectionDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB MongoDB Collection.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The MongoDB collection delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The MongoDB collection delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default": {
+ "get": {
+ "operationId": "MongoDBResources_GetMongoDBCollectionThroughput",
+ "x-ms-examples": {
+ "CosmosDBMongoDBCollectionThroughputGet": {
+ "$ref": "./examples/CosmosDBMongoDBCollectionThroughputGet.json"
+ }
+ },
+ "description": "Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The RUs per second of the MongoDB collection was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "MongoDBResources_UpdateMongoDBCollectionThroughput",
+ "x-ms-examples": {
+ "CosmosDBMongoDBCollectionThroughputUpdate": {
+ "$ref": "./examples/CosmosDBMongoDBCollectionThroughputUpdate.json"
+ }
+ },
+ "description": "Update the RUs per second of an Azure Cosmos DB MongoDB collection",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/collectionNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateThroughputParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsUpdateParameters"
+ },
+ "description": "The RUs per second of the parameters to provide for the current MongoDB collection."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The RUs per second of the MongoDB collection update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The RUs per second of the MongoDB collection update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables": {
+ "get": {
+ "operationId": "TableResources_ListTables",
+ "x-ms-examples": {
+ "CosmosDBTableList": {
+ "$ref": "./examples/CosmosDBTableList.json"
+ }
+ },
+ "description": "Lists the Tables under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Table properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/TableListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}": {
+ "get": {
+ "operationId": "TableResources_GetTable",
+ "x-ms-examples": {
+ "CosmosDBTableGet": {
+ "$ref": "./examples/CosmosDBTableGet.json"
+ }
+ },
+ "description": "Gets the Tables under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Table property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/TableGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "TableResources_CreateUpdateTable",
+ "x-ms-examples": {
+ "CosmosDBTableReplace": {
+ "$ref": "./examples/CosmosDBTableCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB Table",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateTableParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TableCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current Table."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Table create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The Table create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/TableGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "TableResources_DeleteTable",
+ "x-ms-examples": {
+ "CosmosDBTableDelete": {
+ "$ref": "./examples/CosmosDBTableDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB Table.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Table delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The Table delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default": {
+ "get": {
+ "operationId": "TableResources_GetTableThroughput",
+ "x-ms-examples": {
+ "CosmosDBTableThroughputGet": {
+ "$ref": "./examples/CosmosDBTableThroughputGet.json"
+ }
+ },
+ "description": "Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The RUs per second of the Table was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "TableResources_UpdateTableThroughput",
+ "x-ms-examples": {
+ "CosmosDBTableThroughputUpdate": {
+ "$ref": "./examples/CosmosDBTableThroughputUpdate.json"
+ }
+ },
+ "description": "Update RUs per second of an Azure Cosmos DB Table",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateThroughputParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsUpdateParameters"
+ },
+ "description": "The parameters to provide for the RUs per second of the current Table."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The RUs per second of the Table update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The RUs per second of the Table update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces": {
+ "get": {
+ "operationId": "CassandraResources_ListCassandraKeyspaces",
+ "x-ms-examples": {
+ "CosmosDBCassandraKeyspaceList": {
+ "$ref": "./examples/CosmosDBCassandraKeyspaceList.json"
+ }
+ },
+ "description": "Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Cassandra keyspace properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/CassandraKeyspaceListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}": {
+ "get": {
+ "operationId": "CassandraResources_GetCassandraKeyspace",
+ "x-ms-examples": {
+ "CosmosDBCassandraKeyspaceGet": {
+ "$ref": "./examples/CosmosDBCassandraKeyspaceGet.json"
+ }
+ },
+ "description": "Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Cassandra keyspace property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/CassandraKeyspaceGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "CassandraResources_CreateUpdateCassandraKeyspace",
+ "x-ms-examples": {
+ "CosmosDBCassandraKeyspaceCreateUpdate": {
+ "$ref": "./examples/CosmosDBCassandraKeyspaceCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB Cassandra keyspace",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateCassandraKeyspaceParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CassandraKeyspaceCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current Cassandra keyspace."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Cassandra keyspace create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The Cassandra keyspace create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/CassandraKeyspaceGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "CassandraResources_DeleteCassandraKeyspace",
+ "x-ms-examples": {
+ "CosmosDBCassandraKeyspaceDelete": {
+ "$ref": "./examples/CosmosDBCassandraKeyspaceDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB Cassandra keyspace.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Cassandra keyspace delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The Cassandra keyspace delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default": {
+ "get": {
+ "operationId": "CassandraResources_GetCassandraKeyspaceThroughput",
+ "x-ms-examples": {
+ "CosmosDBCassandraKeyspaceThroughputGet": {
+ "$ref": "./examples/CosmosDBCassandraKeyspaceThroughputGet.json"
+ }
+ },
+ "description": "Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The RUs per second of the Cassandra Keyspace was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "CassandraResources_UpdateCassandraKeyspaceThroughput",
+ "x-ms-examples": {
+ "CosmosDBCassandraKeyspaceThroughputUpdate": {
+ "$ref": "./examples/CosmosDBCassandraKeyspaceThroughputUpdate.json"
+ }
+ },
+ "description": "Update RUs per second of an Azure Cosmos DB Cassandra Keyspace",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateThroughputParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsUpdateParameters"
+ },
+ "description": "The RUs per second of the parameters to provide for the current Cassandra Keyspace."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The RUs per second of the Cassandra Keyspace update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The RUs per second of the Cassandra Keyspace update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables": {
+ "get": {
+ "operationId": "CassandraResources_ListCassandraTables",
+ "x-ms-examples": {
+ "CosmosDBCassandraTableList": {
+ "$ref": "./examples/CosmosDBCassandraTableList.json"
+ }
+ },
+ "description": "Lists the Cassandra table under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Cassandra table properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/CassandraTableListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}": {
+ "get": {
+ "operationId": "CassandraResources_GetCassandraTable",
+ "x-ms-examples": {
+ "CosmosDBCassandraTableGet": {
+ "$ref": "./examples/CosmosDBCassandraTableGet.json"
+ }
+ },
+ "description": "Gets the Cassandra table under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Cassandra table property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/CassandraTableGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "CassandraResources_CreateUpdateCassandraTable",
+ "x-ms-examples": {
+ "CosmosDBCassandraTableCreateUpdate": {
+ "$ref": "./examples/CosmosDBCassandraTableCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB Cassandra Table",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateCassandraTableParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CassandraTableCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current Cassandra Table."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Cassandra Table create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The Cassandra Table create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/CassandraTableGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "CassandraResources_DeleteCassandraTable",
+ "x-ms-examples": {
+ "CosmosDBCassandraTableDelete": {
+ "$ref": "./examples/CosmosDBCassandraTableDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB Cassandra table.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Cassandra table delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The Cassandra table delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default": {
+ "get": {
+ "operationId": "CassandraResources_GetCassandraTableThroughput",
+ "x-ms-examples": {
+ "CosmosDBCassandraTableThroughputGet": {
+ "$ref": "./examples/CosmosDBCassandraTableThroughputGet.json"
+ }
+ },
+ "description": "Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The RUs per second of the Cassandra table was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "CassandraResources_UpdateCassandraTableThroughput",
+ "x-ms-examples": {
+ "CosmosDBCassandraTableThroughputUpdate": {
+ "$ref": "./examples/CosmosDBCassandraTableThroughputUpdate.json"
+ }
+ },
+ "description": "Update RUs per second of an Azure Cosmos DB Cassandra table",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/keyspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/tableNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateThroughputParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsUpdateParameters"
+ },
+ "description": "The RUs per second of the parameters to provide for the current Cassandra table."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The RUs per second of the Cassandra table update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The RUs per second of the Cassandra table update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases": {
+ "get": {
+ "operationId": "GremlinResources_ListGremlinDatabases",
+ "x-ms-examples": {
+ "CosmosDBGremlinDatabaseList": {
+ "$ref": "./examples/CosmosDBGremlinDatabaseList.json"
+ }
+ },
+ "description": "Lists the Gremlin databases under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Gremlin database properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/GremlinDatabaseListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}": {
+ "get": {
+ "operationId": "GremlinResources_GetGremlinDatabase",
+ "x-ms-examples": {
+ "CosmosDBGremlinDatabaseGet": {
+ "$ref": "./examples/CosmosDBGremlinDatabaseGet.json"
+ }
+ },
+ "description": "Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Gremlin database property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/GremlinDatabaseGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "GremlinResources_CreateUpdateGremlinDatabase",
+ "x-ms-examples": {
+ "CosmosDBGremlinDatabaseCreateUpdate": {
+ "$ref": "./examples/CosmosDBGremlinDatabaseCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB Gremlin database",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateGremlinDatabaseParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GremlinDatabaseCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current Gremlin database."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Gremlin database create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The Gremlin database create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/GremlinDatabaseGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "GremlinResources_DeleteGremlinDatabase",
+ "x-ms-examples": {
+ "CosmosDBGremlinDatabaseDelete": {
+ "$ref": "./examples/CosmosDBGremlinDatabaseDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB Gremlin database.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Gremlin database delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The Gremlin database delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default": {
+ "get": {
+ "operationId": "GremlinResources_GetGremlinDatabaseThroughput",
+ "x-ms-examples": {
+ "CosmosDBGremlinDatabaseThroughputGet": {
+ "$ref": "./examples/CosmosDBGremlinDatabaseThroughputGet.json"
+ }
+ },
+ "description": "Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The RUs per second of the Gremlin database was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "GremlinResources_UpdateGremlinDatabaseThroughput",
+ "x-ms-examples": {
+ "CosmosDBGremlinDatabaseThroughputUpdate": {
+ "$ref": "./examples/CosmosDBGremlinDatabaseThroughputUpdate.json"
+ }
+ },
+ "description": "Update RUs per second of an Azure Cosmos DB Gremlin database",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateThroughputParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsUpdateParameters"
+ },
+ "description": "The RUs per second of the parameters to provide for the current Gremlin database."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The RUs per second of the Gremlin database update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The RUs per second of the Gremlin database update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs": {
+ "get": {
+ "operationId": "GremlinResources_ListGremlinGraphs",
+ "x-ms-examples": {
+ "CosmosDBGremlinGraphList": {
+ "$ref": "./examples/CosmosDBGremlinGraphList.json"
+ }
+ },
+ "description": "Lists the Gremlin graph under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Gremlin graph properties were retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/GremlinGraphListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}": {
+ "get": {
+ "operationId": "GremlinResources_GetGremlinGraph",
+ "x-ms-examples": {
+ "CosmosDBGremlinGraphGet": {
+ "$ref": "./examples/CosmosDBGremlinGraphGet.json"
+ }
+ },
+ "description": "Gets the Gremlin graph under an existing Azure Cosmos DB database account.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/graphNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The Gremlin graph property was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/GremlinGraphGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "GremlinResources_CreateUpdateGremlinGraph",
+ "x-ms-examples": {
+ "CosmosDBGremlinGraphCreateUpdate": {
+ "$ref": "./examples/CosmosDBGremlinGraphCreateUpdate.json"
+ }
+ },
+ "description": "Create or update an Azure Cosmos DB Gremlin graph",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/graphNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "createUpdateGremlinGraphParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GremlinGraphCreateUpdateParameters"
+ },
+ "description": "The parameters to provide for the current Gremlin graph."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Gremlin graph create or update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The Gremlin graph create or update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/GremlinGraphGetResults"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "GremlinResources_DeleteGremlinGraph",
+ "x-ms-examples": {
+ "CosmosDBGremlinGraphDelete": {
+ "$ref": "./examples/CosmosDBGremlinGraphDelete.json"
+ }
+ },
+ "description": "Deletes an existing Azure Cosmos DB Gremlin graph.",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/graphNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Gremlin graph delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The Gremlin graph delete operation was completed successfully."
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default": {
+ "get": {
+ "operationId": "GremlinResources_GetGremlinGraphThroughput",
+ "x-ms-examples": {
+ "CosmosDBGremlinGraphThroughputGet": {
+ "$ref": "./examples/CosmosDBGremlinGraphThroughputGet.json"
+ }
+ },
+ "description": "Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/graphNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The RUs per second of the Gremlin graph was retrieved successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "GremlinResources_UpdateGremlinGraphThroughput",
+ "x-ms-examples": {
+ "CosmosDBGremlinGraphThroughputUpdate": {
+ "$ref": "./examples/CosmosDBGremlinGraphThroughputUpdate.json"
+ }
+ },
+ "description": "Update RUs per second of an Azure Cosmos DB Gremlin graph",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/databaseNameParameter"
+ },
+ {
+ "$ref": "#/parameters/graphNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "updateThroughputParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsUpdateParameters"
+ },
+ "description": "The RUs per second of the parameters to provide for the current Gremlin graph."
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The RUs per second of the Gremlin graph update operation will complete asynchronously."
+ },
+ "200": {
+ "description": "The RUs per second of the Gremlin graph update operation was completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/ThroughputSettingsGetResults"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "DatabaseAccountsListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DatabaseAccountGetResults"
+ },
+ "description": "List of database account and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the database accounts and their properties."
+ },
+ "SqlDatabaseListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SqlDatabaseGetResults"
+ },
+ "description": "List of SQL databases and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the SQL databases and their properties."
+ },
+ "SqlContainerListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SqlContainerGetResults"
+ },
+ "description": "List of containers and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the containers and their properties."
+ },
+ "SqlStoredProcedureListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SqlStoredProcedureGetResults"
+ },
+ "description": "List of storedProcedures and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the storedProcedures and their properties."
+ },
+ "SqlUserDefinedFunctionListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SqlUserDefinedFunctionGetResults"
+ },
+ "description": "List of userDefinedFunctions and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the userDefinedFunctions and their properties."
+ },
+ "SqlTriggerListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SqlTriggerGetResults"
+ },
+ "description": "List of triggers and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the triggers and their properties."
+ },
+ "MongoDBDatabaseListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MongoDBDatabaseGetResults"
+ },
+ "description": "List of MongoDB databases and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the MongoDB databases and their properties."
+ },
+ "MongoDBCollectionListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MongoDBCollectionGetResults"
+ },
+ "description": "List of MongoDB collections and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the MongoDB collections and their properties."
+ },
+ "TableListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TableGetResults"
+ },
+ "description": "List of Table and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the Table and their properties."
+ },
+ "CassandraKeyspaceListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CassandraKeyspaceGetResults"
+ },
+ "description": "List of Cassandra keyspaces and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the Cassandra keyspaces and their properties."
+ },
+ "CassandraTableListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CassandraTableGetResults"
+ },
+ "description": "List of Cassandra tables and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the Cassandra tables and their properties."
+ },
+ "GremlinDatabaseListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/GremlinDatabaseGetResults"
+ },
+ "description": "List of Gremlin databases and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the Gremlin databases and their properties."
+ },
+ "GremlinGraphListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/GremlinGraphGetResults"
+ },
+ "description": "List of graphs and their properties."
+ }
+ },
+ "description": "The List operation response, that contains the graphs and their properties."
+ },
+ "ErrorResponse": {
+ "properties": {
+ "code": {
+ "description": "Error code.",
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message indicating why the operation failed.",
+ "type": "string"
+ }
+ },
+ "description": "Error Response."
+ },
+ "FailoverPolicies": {
+ "properties": {
+ "failoverPolicies": {
+ "type": "array",
+ "description": "List of failover policies.",
+ "items": {
+ "$ref": "#/definitions/FailoverPolicy"
+ }
+ }
+ },
+ "required": [
+ "failoverPolicies"
+ ],
+ "description": "The list of new failover policies for the failover priority change."
+ },
+ "FailoverPolicy": {
+ "type": "object",
+ "description": "The failover policy for a given region of a database account.",
+ "properties": {
+ "id": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>."
+ },
+ "locationName": {
+ "type": "string",
+ "description": "The name of the region in which the database account exists."
+ },
+ "failoverPriority": {
+ "type": "integer",
+ "minimum": 0,
+ "format": "int32",
+ "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists."
+ }
+ }
+ },
+ "RegionForOnlineOffline": {
+ "properties": {
+ "region": {
+ "type": "string",
+ "description": "Cosmos DB region, with spaces between words and each word capitalized."
+ }
+ },
+ "required": [
+ "region"
+ ],
+ "description": "Cosmos DB region to online or offline."
+ },
+ "Location": {
+ "description": "A region in which the Azure Cosmos DB database account is deployed.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The unique identifier of the region within the database account. Example: <accountName>-<locationName>."
+ },
+ "locationName": {
+ "type": "string",
+ "description": "The name of the region."
+ },
+ "documentEndpoint": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The connection endpoint for the specific region. Example: https://<accountName>-<locationName>.documents.azure.com:443/"
+ },
+ "provisioningState": {
+ "$ref": "#/definitions/ProvisioningState"
+ },
+ "failoverPriority": {
+ "description": "The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.",
+ "format": "int32",
+ "type": "integer",
+ "minimum": 0
+ },
+ "isZoneRedundant": {
+ "type": "boolean",
+ "description": "Flag to indicate whether or not this region is an AvailabilityZone region"
+ }
+ }
+ },
+ "ARMResourceProperties": {
+ "type": "object",
+ "description": "The core properties of ARM resources.",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The unique resource identifier of the ARM resource."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the ARM resource."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of Azure resource."
+ },
+ "location": {
+ "type": "string",
+ "description": "The location of the resource group to which the resource belongs."
+ },
+ "tags": {
+ "$ref": "#/definitions/Tags"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "ARMProxyResource": {
+ "type": "object",
+ "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The unique resource identifier of the database account."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the database account."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of Azure resource."
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "DatabaseAccountGetResults": {
+ "description": "An Azure Cosmos DB database account.",
+ "type": "object",
+ "properties": {
+ "kind": {
+ "description": "Indicates the type of database account. This can only be set at database account creation.",
+ "type": "string",
+ "default": "GlobalDocumentDB",
+ "enum": [
+ "GlobalDocumentDB",
+ "MongoDB",
+ "Parse"
+ ],
+ "x-ms-enum": {
+ "name": "DatabaseAccountKind",
+ "modelAsString": true
+ }
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DatabaseAccountGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "ExtendedResourceProperties": {
+ "description": "The system generated resource properties associated with SQL databases, SQL containers, Gremlin databases and Gremlin graphs.",
+ "type": "object",
+ "properties": {
+ "_rid": {
+ "type": "string",
+ "description": "A system generated property. A unique identifier.",
+ "readOnly": true
+ },
+ "_ts": {
+ "description": "A system generated property that denotes the last updated timestamp of the resource.",
+ "readOnly": true
+ },
+ "_etag": {
+ "type": "string",
+ "description": "A system generated property representing the resource etag required for optimistic concurrency control.",
+ "readOnly": true
+ }
+ }
+ },
+ "ThroughputSettingsGetResults": {
+ "description": "An Azure Cosmos DB resource throughput.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB resource throughput",
+ "$ref": "#/definitions/ThroughputSettingsGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "ThroughputSettingsGetProperties": {
+ "description": "The properties of an Azure Cosmos DB resource throughput",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/ThroughputSettingsResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ }
+ }
+ },
+ "SqlDatabaseGetResults": {
+ "description": "An Azure Cosmos DB SQL database.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB SQL database",
+ "$ref": "#/definitions/SqlDatabaseGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "SqlDatabaseGetProperties": {
+ "description": "The properties of an Azure Cosmos DB SQL database",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "properties": {
+ "_colls": {
+ "type": "string",
+ "description": "A system generated property that specified the addressable path of the collections resource."
+ },
+ "_users": {
+ "type": "string",
+ "description": "A system generated property that specifies the addressable path of the users resource."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/SqlDatabaseResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ },
+ "options": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/OptionsResource"
+ }
+ ]
+ }
+ }
+ },
+ "SqlContainerGetResults": {
+ "description": "An Azure Cosmos DB container.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB container",
+ "$ref": "#/definitions/SqlContainerGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "SqlContainerGetProperties": {
+ "description": "The properties of an Azure Cosmos DB container",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/SqlContainerResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ },
+ "options": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/OptionsResource"
+ }
+ ]
+ }
+ }
+ },
+ "SqlStoredProcedureGetResults": {
+ "description": "An Azure Cosmos DB storedProcedure.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB storedProcedure",
+ "$ref": "#/definitions/SqlStoredProcedureGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "SqlStoredProcedureGetProperties": {
+ "description": "The properties of an Azure Cosmos DB StoredProcedure",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/SqlStoredProcedureResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ }
+ }
+ },
+ "SqlUserDefinedFunctionGetResults": {
+ "description": "An Azure Cosmos DB userDefinedFunction.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB userDefinedFunction",
+ "$ref": "#/definitions/SqlUserDefinedFunctionGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "SqlUserDefinedFunctionGetProperties": {
+ "description": "The properties of an Azure Cosmos DB userDefinedFunction",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/SqlUserDefinedFunctionResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ }
+ }
+ },
+ "SqlTriggerGetResults": {
+ "description": "An Azure Cosmos DB trigger.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB trigger",
+ "$ref": "#/definitions/SqlTriggerGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "SqlTriggerGetProperties": {
+ "description": "The properties of an Azure Cosmos DB trigger",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/SqlTriggerResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ }
+ }
+ },
+ "MongoDBDatabaseGetResults": {
+ "description": "An Azure Cosmos DB MongoDB database.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB MongoDB database",
+ "$ref": "#/definitions/MongoDBDatabaseGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "MongoDBDatabaseGetProperties": {
+ "description": "The properties of an Azure Cosmos DB MongoDB database",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/MongoDBDatabaseResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ },
+ "options": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/OptionsResource"
+ }
+ ]
+ }
+ }
+ },
+ "MongoDBCollectionGetResults": {
+ "description": "An Azure Cosmos DB MongoDB collection.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB MongoDB collection",
+ "$ref": "#/definitions/MongoDBCollectionGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "MongoDBCollectionGetProperties": {
+ "description": "The properties of an Azure Cosmos DB MongoDB collection",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/MongoDBCollectionResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ },
+ "options": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/OptionsResource"
+ }
+ ]
+ }
+ }
+ },
+ "TableGetResults": {
+ "description": "An Azure Cosmos DB Table.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB Table",
+ "$ref": "#/definitions/TableGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "TableGetProperties": {
+ "description": "The properties of an Azure Cosmos Table",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/TableResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ },
+ "options": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/OptionsResource"
+ }
+ ]
+ }
+ }
+ },
+ "CassandraKeyspaceGetResults": {
+ "description": "An Azure Cosmos DB Cassandra keyspace.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB Cassandra keyspace",
+ "$ref": "#/definitions/CassandraKeyspaceGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "CassandraKeyspaceGetProperties": {
+ "description": "The properties of an Azure Cosmos DB Cassandra keyspace",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/CassandraKeyspaceResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ },
+ "options": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/OptionsResource"
+ }
+ ]
+ }
+ }
+ },
+ "CassandraTableGetResults": {
+ "description": "An Azure Cosmos DB Cassandra table.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB Cassandra table",
+ "$ref": "#/definitions/CassandraTableGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "CassandraTableGetProperties": {
+ "description": "The properties of an Azure Cosmos DB Cassandra table",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/CassandraTableResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ },
+ "options": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/OptionsResource"
+ }
+ ]
+ }
+ }
+ },
+ "GremlinDatabaseGetResults": {
+ "description": "An Azure Cosmos DB Gremlin database.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB SQL database",
+ "$ref": "#/definitions/GremlinDatabaseGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "GremlinDatabaseGetProperties": {
+ "description": "The properties of an Azure Cosmos DB SQL database",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/GremlinDatabaseResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ },
+ "options": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/OptionsResource"
+ }
+ ]
+ }
+ }
+ },
+ "GremlinGraphGetResults": {
+ "description": "An Azure Cosmos DB Gremlin graph.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "The properties of an Azure Cosmos DB Gremlin graph",
+ "$ref": "#/definitions/GremlinGraphGetProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ]
+ },
+ "GremlinGraphGetProperties": {
+ "description": "The properties of an Azure Cosmos DB Gremlin graph",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/GremlinGraphResource"
+ },
+ {
+ "$ref": "#/definitions/ExtendedResourceProperties"
+ }
+ ]
+ },
+ "options": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/OptionsResource"
+ }
+ ]
+ }
+ }
+ },
+ "ConsistencyPolicy": {
+ "type": "object",
+ "description": "The consistency policy for the Cosmos DB database account.",
+ "properties": {
+ "defaultConsistencyLevel": {
+ "description": "The default consistency level and configuration settings of the Cosmos DB account.",
+ "type": "string",
+ "enum": [
+ "Eventual",
+ "Session",
+ "BoundedStaleness",
+ "Strong",
+ "ConsistentPrefix"
+ ],
+ "x-ms-enum": {
+ "name": "DefaultConsistencyLevel",
+ "modelAsString": false
+ }
+ },
+ "maxStalenessPrefix": {
+ "description": "When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 2147483647,
+ "format": "int64"
+ },
+ "maxIntervalInSeconds": {
+ "description": "When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.",
+ "type": "integer",
+ "minimum": 5,
+ "maximum": 86400,
+ "format": "int32"
+ }
+ },
+ "required": [
+ "defaultConsistencyLevel"
+ ]
+ },
+ "DatabaseAccountGetProperties": {
+ "description": "Properties for the database account.",
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "$ref": "#/definitions/ProvisioningState"
+ },
+ "documentEndpoint": {
+ "description": "The connection endpoint for the Cosmos DB database account.",
+ "type": "string",
+ "readOnly": true
+ },
+ "databaseAccountOfferType": {
+ "description": "The offer type for the Cosmos DB database account. Default value: Standard.",
+ "readOnly": true,
+ "$ref": "#/definitions/DatabaseAccountOfferType"
+ },
+ "ipRules": {
+ "description": "List of IpRules.",
+ "$ref": "#/definitions/IPRules"
+ },
+ "isVirtualNetworkFilterEnabled": {
+ "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.",
+ "type": "boolean"
+ },
+ "enableAutomaticFailover": {
+ "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.",
+ "type": "boolean"
+ },
+ "consistencyPolicy": {
+ "description": "The consistency policy for the Cosmos DB database account.",
+ "$ref": "#/definitions/ConsistencyPolicy"
+ },
+ "capabilities": {
+ "type": "array",
+ "description": "List of Cosmos DB capabilities for the account",
+ "items": {
+ "$ref": "#/definitions/Capability"
+ }
+ },
+ "writeLocations": {
+ "type": "array",
+ "readOnly": true,
+ "description": "An array that contains the write location for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/Location"
+ }
+ },
+ "readLocations": {
+ "type": "array",
+ "readOnly": true,
+ "description": "An array that contains of the read locations enabled for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/Location"
+ }
+ },
+ "locations": {
+ "type": "array",
+ "readOnly": true,
+ "description": "An array that contains all of the locations enabled for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/Location"
+ }
+ },
+ "failoverPolicies": {
+ "type": "array",
+ "readOnly": true,
+ "description": "An array that contains the regions ordered by their failover priorities.",
+ "items": {
+ "$ref": "#/definitions/FailoverPolicy"
+ }
+ },
+ "virtualNetworkRules": {
+ "type": "array",
+ "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/VirtualNetworkRule"
+ }
+ },
+ "privateEndpointConnections": {
+ "type": "array",
+ "readOnly": true,
+ "description": "List of Private Endpoint Connections configured for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "enableMultipleWriteLocations": {
+ "description": "Enables the account to write in multiple locations",
+ "type": "boolean"
+ },
+ "enableCassandraConnector": {
+ "description": "Enables the cassandra connector on the Cosmos DB C* account",
+ "type": "boolean"
+ },
+ "connectorOffer": {
+ "description": "The cassandra connector offer type for the Cosmos DB database C* account.",
+ "$ref": "#/definitions/ConnectorOffer"
+ },
+ "disableKeyBasedMetadataWriteAccess": {
+ "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys",
+ "type": "boolean"
+ },
+ "keyVaultKeyUri": {
+ "description": "The URI of the key vault",
+ "type": "string"
+ },
+ "publicNetworkAccess": {
+ "description": "Whether requests from Public Network are allowed",
+ "$ref": "#/definitions/PublicNetworkAccess"
+ },
+ "enableFreeTier": {
+ "description": "Flag to indicate whether Free Tier is enabled.",
+ "type": "boolean"
+ },
+ "apiProperties": {
+ "description": "API specific properties.",
+ "type": "object",
+ "$ref": "#/definitions/ApiProperties"
+ },
+ "enableAnalyticalStorage": {
+ "description": "Flag to indicate whether to enable storage analytics.",
+ "type": "boolean"
+ }
+ }
+ },
+ "DatabaseAccountCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB database accounts.",
+ "type": "object",
+ "properties": {
+ "consistencyPolicy": {
+ "description": "The consistency policy for the Cosmos DB account.",
+ "$ref": "#/definitions/ConsistencyPolicy"
+ },
+ "locations": {
+ "type": "array",
+ "description": "An array that contains the georeplication locations enabled for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/Location"
+ }
+ },
+ "databaseAccountOfferType": {
+ "description": "The offer type for the database",
+ "$ref": "#/definitions/DatabaseAccountOfferType"
+ },
+ "ipRules": {
+ "description": "List of IpRules.",
+ "$ref": "#/definitions/IPRules"
+ },
+ "isVirtualNetworkFilterEnabled": {
+ "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.",
+ "type": "boolean"
+ },
+ "enableAutomaticFailover": {
+ "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.",
+ "type": "boolean"
+ },
+ "capabilities": {
+ "type": "array",
+ "description": "List of Cosmos DB capabilities for the account",
+ "items": {
+ "$ref": "#/definitions/Capability"
+ }
+ },
+ "virtualNetworkRules": {
+ "type": "array",
+ "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/VirtualNetworkRule"
+ }
+ },
+ "enableMultipleWriteLocations": {
+ "description": "Enables the account to write in multiple locations",
+ "type": "boolean"
+ },
+ "enableCassandraConnector": {
+ "description": "Enables the cassandra connector on the Cosmos DB C* account",
+ "type": "boolean"
+ },
+ "connectorOffer": {
+ "description": "The cassandra connector offer type for the Cosmos DB database C* account.",
+ "$ref": "#/definitions/ConnectorOffer"
+ },
+ "disableKeyBasedMetadataWriteAccess": {
+ "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys",
+ "type": "boolean"
+ },
+ "keyVaultKeyUri": {
+ "description": "The URI of the key vault",
+ "type": "string"
+ },
+ "publicNetworkAccess": {
+ "description": "Whether requests from Public Network are allowed",
+ "$ref": "#/definitions/PublicNetworkAccess"
+ },
+ "enableFreeTier": {
+ "description": "Flag to indicate whether Free Tier is enabled.",
+ "type": "boolean"
+ },
+ "apiProperties": {
+ "description": "API specific properties. Currently, supported only for MongoDB API.",
+ "type": "object",
+ "$ref": "#/definitions/ApiProperties"
+ },
+ "enableAnalyticalStorage": {
+ "description": "Flag to indicate whether to enable storage analytics.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "locations",
+ "databaseAccountOfferType"
+ ]
+ },
+ "DatabaseAccountCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB database accounts.",
+ "type": "object",
+ "properties": {
+ "kind": {
+ "description": "Indicates the type of database account. This can only be set at database account creation.",
+ "type": "string",
+ "default": "GlobalDocumentDB",
+ "enum": [
+ "GlobalDocumentDB",
+ "MongoDB",
+ "Parse"
+ ],
+ "x-ms-enum": {
+ "name": "DatabaseAccountKind",
+ "modelAsString": true
+ }
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DatabaseAccountCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "DatabaseAccountUpdateProperties": {
+ "description": "Properties to update Azure Cosmos DB database accounts.",
+ "type": "object",
+ "properties": {
+ "consistencyPolicy": {
+ "description": "The consistency policy for the Cosmos DB account.",
+ "$ref": "#/definitions/ConsistencyPolicy"
+ },
+ "locations": {
+ "type": "array",
+ "description": "An array that contains the georeplication locations enabled for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/Location"
+ }
+ },
+ "ipRules": {
+ "description": "List of IpRules.",
+ "$ref": "#/definitions/IPRules"
+ },
+ "isVirtualNetworkFilterEnabled": {
+ "description": "Flag to indicate whether to enable/disable Virtual Network ACL rules.",
+ "type": "boolean"
+ },
+ "enableAutomaticFailover": {
+ "description": "Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.",
+ "type": "boolean"
+ },
+ "capabilities": {
+ "type": "array",
+ "description": "List of Cosmos DB capabilities for the account",
+ "items": {
+ "$ref": "#/definitions/Capability"
+ }
+ },
+ "virtualNetworkRules": {
+ "type": "array",
+ "description": "List of Virtual Network ACL rules configured for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/VirtualNetworkRule"
+ }
+ },
+ "enableMultipleWriteLocations": {
+ "description": "Enables the account to write in multiple locations",
+ "type": "boolean"
+ },
+ "enableCassandraConnector": {
+ "description": "Enables the cassandra connector on the Cosmos DB C* account",
+ "type": "boolean"
+ },
+ "connectorOffer": {
+ "description": "The cassandra connector offer type for the Cosmos DB database C* account.",
+ "$ref": "#/definitions/ConnectorOffer"
+ },
+ "disableKeyBasedMetadataWriteAccess": {
+ "description": "Disable write operations on metadata resources (databases, containers, throughput) via account keys",
+ "type": "boolean"
+ },
+ "keyVaultKeyUri": {
+ "description": "The URI of the key vault",
+ "type": "string"
+ },
+ "publicNetworkAccess": {
+ "description": "Whether requests from Public Network are allowed",
+ "$ref": "#/definitions/PublicNetworkAccess"
+ },
+ "enableFreeTier": {
+ "description": "Flag to indicate whether Free Tier is enabled.",
+ "type": "boolean"
+ },
+ "apiProperties": {
+ "description": "API specific properties. Currently, supported only for MongoDB API.",
+ "type": "object",
+ "$ref": "#/definitions/ApiProperties"
+ },
+ "enableAnalyticalStorage": {
+ "description": "Flag to indicate whether to enable storage analytics.",
+ "type": "boolean"
+ }
+ }
+ },
+ "DatabaseAccountUpdateParameters": {
+ "description": "Parameters for patching Azure Cosmos DB database account properties.",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "$ref": "#/definitions/Tags"
+ },
+ "location": {
+ "type": "string",
+ "description": "The location of the resource group to which the resource belongs."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DatabaseAccountUpdateProperties"
+ }
+ }
+ },
+ "DatabaseAccountListReadOnlyKeysResult": {
+ "description": "The read-only access keys for the given database account.",
+ "properties": {
+ "primaryReadonlyMasterKey": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Base 64 encoded value of the primary read-only key."
+ },
+ "secondaryReadonlyMasterKey": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Base 64 encoded value of the secondary read-only key."
+ }
+ }
+ },
+ "DatabaseAccountListKeysResult": {
+ "description": "The access keys for the given database account.",
+ "properties": {
+ "primaryMasterKey": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Base 64 encoded value of the primary read-write key."
+ },
+ "secondaryMasterKey": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Base 64 encoded value of the secondary read-write key."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult"
+ }
+ ]
+ },
+ "DatabaseAccountConnectionString": {
+ "description": "Connection string for the Cosmos DB account",
+ "properties": {
+ "connectionString": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Value of the connection string"
+ },
+ "description": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Description of the connection string"
+ }
+ }
+ },
+ "DatabaseAccountListConnectionStringsResult": {
+ "description": "The connection strings for the given database account.",
+ "properties": {
+ "connectionStrings": {
+ "type": "array",
+ "description": "An array that contains the connection strings for the Cosmos DB account.",
+ "items": {
+ "$ref": "#/definitions/DatabaseAccountConnectionString"
+ }
+ }
+ }
+ },
+ "DatabaseAccountRegenerateKeyParameters": {
+ "type": "object",
+ "description": "Parameters to regenerate the keys within the database account.",
+ "properties": {
+ "keyKind": {
+ "type": "string",
+ "description": "The access key to regenerate.",
+ "enum": [
+ "primary",
+ "secondary",
+ "primaryReadonly",
+ "secondaryReadonly"
+ ],
+ "x-ms-enum": {
+ "name": "KeyKind",
+ "modelAsString": true
+ }
+ }
+ },
+ "required": [
+ "keyKind"
+ ]
+ },
+ "DatabaseAccountOfferType": {
+ "description": "The offer type for the Cosmos DB database account.",
+ "type": "string",
+ "enum": [
+ "Standard"
+ ],
+ "x-ms-enum": {
+ "name": "DatabaseAccountOfferType",
+ "modelAsString": false
+ }
+ },
+ "ThroughputSettingsUpdateParameters": {
+ "description": "Parameters to update Cosmos DB resource throughput.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to update Azure Cosmos DB resource throughput.",
+ "$ref": "#/definitions/ThroughputSettingsUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "ThroughputSettingsUpdateProperties": {
+ "description": "Properties to update Azure Cosmos DB resource throughput.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a resource throughput",
+ "$ref": "#/definitions/ThroughputSettingsResource"
+ }
+ },
+ "required": [
+ "resource"
+ ]
+ },
+ "SqlDatabaseCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB SQL database.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB SQL database.",
+ "$ref": "#/definitions/SqlDatabaseCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "SqlDatabaseCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB SQL database.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a SQL database",
+ "$ref": "#/definitions/SqlDatabaseResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "SqlContainerCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB container.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB container.",
+ "$ref": "#/definitions/SqlContainerCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "SqlContainerCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB container.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a container",
+ "$ref": "#/definitions/SqlContainerResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "SqlStoredProcedureCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB storedProcedure.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB storedProcedure.",
+ "$ref": "#/definitions/SqlStoredProcedureCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "SqlStoredProcedureCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB storedProcedure.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a storedProcedure",
+ "$ref": "#/definitions/SqlStoredProcedureResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "SqlUserDefinedFunctionCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB userDefinedFunction.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB userDefinedFunction.",
+ "$ref": "#/definitions/SqlUserDefinedFunctionCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "SqlUserDefinedFunctionCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB userDefinedFunction.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a userDefinedFunction",
+ "$ref": "#/definitions/SqlUserDefinedFunctionResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "SqlTriggerCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB trigger.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB trigger.",
+ "$ref": "#/definitions/SqlTriggerCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "SqlTriggerCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB trigger.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a trigger",
+ "$ref": "#/definitions/SqlTriggerResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "MongoDBDatabaseCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB MongoDB database.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB MongoDB database.",
+ "$ref": "#/definitions/MongoDBDatabaseCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "MongoDBDatabaseCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB MongoDB database.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a MongoDB database",
+ "$ref": "#/definitions/MongoDBDatabaseResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "MongoDBCollectionCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB MongoDB collection.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB MongoDB collection.",
+ "$ref": "#/definitions/MongoDBCollectionCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "MongoDBCollectionCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB MongoDB collection.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a MongoDB collection",
+ "$ref": "#/definitions/MongoDBCollectionResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "TableCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB Table.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB Table.",
+ "$ref": "#/definitions/TableCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "TableCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB Table.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a Table",
+ "$ref": "#/definitions/TableResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "CassandraKeyspaceCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB Cassandra keyspace.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB Cassandra keyspace.",
+ "$ref": "#/definitions/CassandraKeyspaceCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "CassandraKeyspaceCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB Cassandra keyspace.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a Cassandra keyspace",
+ "$ref": "#/definitions/CassandraKeyspaceResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "CassandraTableCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB Cassandra table.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB Cassandra table.",
+ "$ref": "#/definitions/CassandraTableCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "CassandraTableCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB Cassandra table.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a Cassandra table",
+ "$ref": "#/definitions/CassandraTableResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "GremlinDatabaseCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB Gremlin database.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB Gremlin database.",
+ "$ref": "#/definitions/GremlinDatabaseCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "GremlinDatabaseCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB Gremlin database.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a Gremlin database",
+ "$ref": "#/definitions/GremlinDatabaseResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "GremlinGraphCreateUpdateParameters": {
+ "description": "Parameters to create and update Cosmos DB Gremlin graph.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties to create and update Azure Cosmos DB Gremlin graph.",
+ "$ref": "#/definitions/GremlinGraphCreateUpdateProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ARMResourceProperties"
+ }
+ ],
+ "required": [
+ "properties"
+ ]
+ },
+ "GremlinGraphCreateUpdateProperties": {
+ "description": "Properties to create and update Azure Cosmos DB Gremlin graph.",
+ "type": "object",
+ "properties": {
+ "resource": {
+ "description": "The standard JSON format of a Gremlin graph",
+ "$ref": "#/definitions/GremlinGraphResource"
+ },
+ "options": {
+ "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.",
+ "$ref": "#/definitions/CreateUpdateOptions"
+ }
+ },
+ "required": [
+ "resource",
+ "options"
+ ]
+ },
+ "ThroughputSettingsResource": {
+ "type": "object",
+ "description": "Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both.",
+ "properties": {
+ "throughput": {
+ "type": "integer",
+ "description": "Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both."
+ },
+ "autoscaleSettings": {
+ "description": "Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.",
+ "$ref": "#/definitions/AutoscaleSettingsResource"
+ },
+ "minimumThroughput": {
+ "type": "string",
+ "description": "The minimum throughput of the resource",
+ "readOnly": true
+ },
+ "offerReplacePending": {
+ "type": "string",
+ "description": "The throughput replace is pending",
+ "readOnly": true
+ }
+ }
+ },
+ "AutoscaleSettingsResource": {
+ "type": "object",
+ "description": "Cosmos DB provisioned throughput settings object",
+ "properties": {
+ "maxThroughput": {
+ "type": "integer",
+ "description": "Represents maximum throughput container can scale up to."
+ },
+ "autoUpgradePolicy": {
+ "description": "Cosmos DB resource auto-upgrade policy",
+ "$ref": "#/definitions/AutoUpgradePolicyResource"
+ },
+ "targetMaxThroughput": {
+ "type": "integer",
+ "description": "Represents target maximum throughput container can scale up to once offer is no longer in pending state.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "maxThroughput"
+ ]
+ },
+ "AutoUpgradePolicyResource": {
+ "type": "object",
+ "description": "Cosmos DB resource auto-upgrade policy",
+ "properties": {
+ "throughputPolicy": {
+ "description": "Represents throughput policy which service must adhere to for auto-upgrade",
+ "$ref": "#/definitions/ThroughputPolicyResource"
+ }
+ }
+ },
+ "ThroughputPolicyResource": {
+ "type": "object",
+ "description": "Cosmos DB resource throughput policy",
+ "properties": {
+ "isEnabled": {
+ "type": "boolean",
+ "description": "Determines whether the ThroughputPolicy is active or not"
+ },
+ "incrementPercent": {
+ "type": "integer",
+ "description": "Represents the percentage by which throughput can increase every time throughput policy kicks in."
+ }
+ }
+ },
+ "OptionsResource": {
+ "type": "object",
+ "description": "Cosmos DB options resource object",
+ "readOnly": true,
+ "properties": {
+ "throughput": {
+ "type": "integer",
+ "description": "Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details."
+ },
+ "autoscaleSettings": {
+ "type": "object",
+ "$ref": "#/definitions/AutoscaleSettings",
+ "description": "Specifies the Autoscale settings."
+ }
+ }
+ },
+ "SqlDatabaseResource": {
+ "type": "object",
+ "description": "Cosmos DB SQL database resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB SQL database"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "SqlContainerResource": {
+ "type": "object",
+ "description": "Cosmos DB SQL container resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB SQL container"
+ },
+ "indexingPolicy": {
+ "$ref": "#/definitions/IndexingPolicy",
+ "description": "The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container"
+ },
+ "partitionKey": {
+ "$ref": "#/definitions/ContainerPartitionKey",
+ "description": "The configuration of the partition key to be used for partitioning data into multiple partitions"
+ },
+ "defaultTtl": {
+ "type": "integer",
+ "description": "Default time to live"
+ },
+ "uniqueKeyPolicy": {
+ "$ref": "#/definitions/UniqueKeyPolicy",
+ "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service."
+ },
+ "conflictResolutionPolicy": {
+ "$ref": "#/definitions/ConflictResolutionPolicy",
+ "description": "The conflict resolution policy for the container."
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "IndexingPolicy": {
+ "type": "object",
+ "description": "Cosmos DB indexing policy",
+ "properties": {
+ "automatic": {
+ "type": "boolean",
+ "description": "Indicates if the indexing policy is automatic"
+ },
+ "indexingMode": {
+ "description": "Indicates the indexing mode.",
+ "type": "string",
+ "default": "Consistent",
+ "enum": [
+ "Consistent",
+ "Lazy",
+ "None"
+ ],
+ "x-ms-enum": {
+ "name": "IndexingMode",
+ "modelAsString": true
+ }
+ },
+ "includedPaths": {
+ "description": "List of paths to include in the indexing",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IncludedPath"
+ }
+ },
+ "excludedPaths": {
+ "description": "List of paths to exclude from indexing",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ExcludedPath"
+ }
+ },
+ "compositeIndexes": {
+ "description": "List of composite path list",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CompositePathList"
+ }
+ },
+ "spatialIndexes": {
+ "description": "List of spatial specifics",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SpatialSpec"
+ }
+ }
+ }
+ },
+ "ExcludedPath": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)"
+ }
+ }
+ },
+ "IncludedPath": {
+ "type": "object",
+ "description": "The paths that are included in indexing",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)"
+ },
+ "indexes": {
+ "description": "List of indexes for this path",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Indexes"
+ }
+ }
+ }
+ },
+ "Indexes": {
+ "type": "object",
+ "description": "The indexes for the path.",
+ "properties": {
+ "dataType": {
+ "description": "The datatype for which the indexing behavior is applied to.",
+ "type": "string",
+ "default": "String",
+ "enum": [
+ "String",
+ "Number",
+ "Point",
+ "Polygon",
+ "LineString",
+ "MultiPolygon"
+ ],
+ "x-ms-enum": {
+ "name": "DataType",
+ "modelAsString": true
+ }
+ },
+ "precision": {
+ "description": "The precision of the index. -1 is maximum precision.",
+ "type": "integer"
+ },
+ "kind": {
+ "description": "Indicates the type of index.",
+ "type": "string",
+ "default": "Hash",
+ "enum": [
+ "Hash",
+ "Range",
+ "Spatial"
+ ],
+ "x-ms-enum": {
+ "name": "IndexKind",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "CompositePathList": {
+ "description": "List of composite path",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CompositePath"
+ }
+ },
+ "CompositePath": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)"
+ },
+ "order": {
+ "description": "Sort order for composite paths.",
+ "type": "string",
+ "enum": [
+ "Ascending",
+ "Descending"
+ ],
+ "x-ms-enum": {
+ "name": "CompositePathSortOrder",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "SpatialSpec": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)"
+ },
+ "types": {
+ "description": "List of path's spatial type",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SpatialType"
+ }
+ }
+ }
+ },
+ "SpatialType": {
+ "description": "Indicates the spatial type of index.",
+ "type": "string",
+ "enum": [
+ "Point",
+ "LineString",
+ "Polygon",
+ "MultiPolygon"
+ ],
+ "x-ms-enum": {
+ "name": "SpatialType",
+ "modelAsString": true
+ }
+ },
+ "ContainerPartitionKey": {
+ "type": "object",
+ "description": "The configuration of the partition key to be used for partitioning data into multiple partitions",
+ "properties": {
+ "paths": {
+ "description": "List of paths using which data within the container can be partitioned",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Path"
+ }
+ },
+ "kind": {
+ "description": "Indicates the kind of algorithm used for partitioning",
+ "type": "string",
+ "default": "Hash",
+ "enum": [
+ "Hash",
+ "Range"
+ ],
+ "x-ms-enum": {
+ "name": "PartitionKind",
+ "modelAsString": true
+ }
+ },
+ "version": {
+ "description": "Indicates the version of the partition key definition",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 2,
+ "format": "int32"
+ }
+ }
+ },
+ "Path": {
+ "type": "string",
+ "description": "A path. These typically start with root (/path)"
+ },
+ "UniqueKeyPolicy": {
+ "type": "object",
+ "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.",
+ "properties": {
+ "uniqueKeys": {
+ "description": "List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/UniqueKey"
+ }
+ }
+ }
+ },
+ "UniqueKey": {
+ "type": "object",
+ "description": "The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.",
+ "properties": {
+ "paths": {
+ "description": "List of paths must be unique for each document in the Azure Cosmos DB service",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Path"
+ }
+ }
+ }
+ },
+ "ConflictResolutionPolicy": {
+ "type": "object",
+ "description": "The conflict resolution policy for the container.",
+ "properties": {
+ "mode": {
+ "description": "Indicates the conflict resolution mode.",
+ "type": "string",
+ "default": "LastWriterWins",
+ "enum": [
+ "LastWriterWins",
+ "Custom"
+ ],
+ "x-ms-enum": {
+ "name": "ConflictResolutionMode",
+ "modelAsString": true
+ }
+ },
+ "conflictResolutionPath": {
+ "type": "string",
+ "description": "The conflict resolution path in the case of LastWriterWins mode."
+ },
+ "conflictResolutionProcedure": {
+ "type": "string",
+ "description": "The procedure to resolve conflicts in the case of custom mode."
+ }
+ }
+ },
+ "SqlStoredProcedureResource": {
+ "type": "object",
+ "description": "Cosmos DB SQL storedProcedure resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB SQL storedProcedure"
+ },
+ "body": {
+ "type": "string",
+ "description": "Body of the Stored Procedure"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "SqlUserDefinedFunctionResource": {
+ "type": "object",
+ "description": "Cosmos DB SQL userDefinedFunction resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB SQL userDefinedFunction"
+ },
+ "body": {
+ "type": "string",
+ "description": "Body of the User Defined Function"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "SqlTriggerResource": {
+ "type": "object",
+ "description": "Cosmos DB SQL trigger resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB SQL trigger"
+ },
+ "body": {
+ "type": "string",
+ "description": "Body of the Trigger"
+ },
+ "triggerType": {
+ "type": "string",
+ "enum": [
+ "Pre",
+ "Post"
+ ],
+ "description": "Type of the Trigger",
+ "x-ms-enum": {
+ "name": "triggerType",
+ "modelAsString": true
+ }
+ },
+ "triggerOperation": {
+ "type": "string",
+ "enum": [
+ "All",
+ "Create",
+ "Update",
+ "Delete",
+ "Replace"
+ ],
+ "description": "The operation the trigger is associated with",
+ "x-ms-enum": {
+ "name": "triggerOperation",
+ "modelAsString": true
+ }
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "MongoDBDatabaseResource": {
+ "type": "object",
+ "description": "Cosmos DB MongoDB database resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB MongoDB database"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "MongoDBCollectionResource": {
+ "type": "object",
+ "description": "Cosmos DB MongoDB collection resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB MongoDB collection"
+ },
+ "shardKey": {
+ "description": "A key-value pair of shard keys to be applied for the request.",
+ "$ref": "#/definitions/ShardKeys"
+ },
+ "indexes": {
+ "description": "List of index keys",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MongoIndex"
+ }
+ },
+ "analyticalStorageTtl": {
+ "type": "integer",
+ "description": "Analytical TTL."
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "ShardKeys": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The shard key and partition kind pair, only support \"Hash\" partition kind"
+ },
+ "MongoIndex": {
+ "type": "object",
+ "description": "Cosmos DB MongoDB collection index key",
+ "properties": {
+ "key": {
+ "description": "Cosmos DB MongoDB collection index keys",
+ "$ref": "#/definitions/MongoIndexKeys"
+ },
+ "options": {
+ "description": "Cosmos DB MongoDB collection index key options",
+ "$ref": "#/definitions/MongoIndexOptions"
+ }
+ }
+ },
+ "MongoIndexKeys": {
+ "type": "object",
+ "description": "Cosmos DB MongoDB collection resource object",
+ "properties": {
+ "keys": {
+ "description": "List of keys for each MongoDB collection in the Azure Cosmos DB service",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Key"
+ }
+ }
+ }
+ },
+ "Key": {
+ "type": "string",
+ "description": "A Key."
+ },
+ "MongoIndexOptions": {
+ "type": "object",
+ "description": "Cosmos DB MongoDB collection index options",
+ "properties": {
+ "expireAfterSeconds": {
+ "description": "Expire after seconds",
+ "type": "integer"
+ },
+ "unique": {
+ "description": "Is unique or not",
+ "type": "boolean"
+ }
+ }
+ },
+ "TableResource": {
+ "type": "object",
+ "description": "Cosmos DB table resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB table"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "CassandraKeyspaceResource": {
+ "type": "object",
+ "description": "Cosmos DB Cassandra keyspace resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB Cassandra keyspace"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "CassandraTableResource": {
+ "type": "object",
+ "description": "Cosmos DB Cassandra table resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB Cassandra table"
+ },
+ "defaultTtl": {
+ "type": "integer",
+ "description": "Time to live of the Cosmos DB Cassandra table"
+ },
+ "schema": {
+ "description": "Schema of the Cosmos DB Cassandra table",
+ "$ref": "#/definitions/CassandraSchema"
+ },
+ "analyticalStorageTtl": {
+ "type": "integer",
+ "description": "Analytical TTL."
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "CassandraSchema": {
+ "type": "object",
+ "description": "Cosmos DB Cassandra table schema",
+ "properties": {
+ "columns": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Column"
+ },
+ "description": "List of Cassandra table columns."
+ },
+ "partitionKeys": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CassandraPartitionKey"
+ },
+ "description": "List of partition key."
+ },
+ "clusterKeys": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ClusterKey"
+ },
+ "description": "List of cluster key."
+ }
+ }
+ },
+ "Column": {
+ "type": "object",
+ "description": "Cosmos DB Cassandra table column",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name of the Cosmos DB Cassandra table column"
+ },
+ "type": {
+ "type": "string",
+ "description": "Type of the Cosmos DB Cassandra table column"
+ }
+ }
+ },
+ "CassandraPartitionKey": {
+ "type": "object",
+ "description": "Cosmos DB Cassandra table partition key",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name of the Cosmos DB Cassandra table partition key"
+ }
+ }
+ },
+ "ClusterKey": {
+ "type": "object",
+ "description": "Cosmos DB Cassandra table cluster key",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name of the Cosmos DB Cassandra table cluster key"
+ },
+ "orderBy": {
+ "type": "string",
+ "description": "Order of the Cosmos DB Cassandra table cluster key, only support \"Asc\" and \"Desc\""
+ }
+ }
+ },
+ "GremlinDatabaseResource": {
+ "type": "object",
+ "description": "Cosmos DB Gremlin database resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB Gremlin database"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "GremlinGraphResource": {
+ "type": "object",
+ "description": "Cosmos DB Gremlin graph resource object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Name of the Cosmos DB Gremlin graph"
+ },
+ "indexingPolicy": {
+ "$ref": "#/definitions/IndexingPolicy",
+ "description": "The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph"
+ },
+ "partitionKey": {
+ "$ref": "#/definitions/ContainerPartitionKey",
+ "description": "The configuration of the partition key to be used for partitioning data into multiple partitions"
+ },
+ "defaultTtl": {
+ "type": "integer",
+ "description": "Default time to live"
+ },
+ "uniqueKeyPolicy": {
+ "$ref": "#/definitions/UniqueKeyPolicy",
+ "description": "The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service."
+ },
+ "conflictResolutionPolicy": {
+ "$ref": "#/definitions/ConflictResolutionPolicy",
+ "description": "The conflict resolution policy for the graph."
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "CreateUpdateOptions": {
+ "type": "object",
+ "properties": {
+ "throughput": {
+ "type": "integer",
+ "description": "Request Units per second. For example, \"throughput\": 10000."
+ },
+ "autoscaleSettings": {
+ "$ref": "#/definitions/AutoscaleSettings",
+ "description": "Specifies the Autoscale settings."
+ }
+ },
+ "description": "CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are \"If-Match\", \"If-None-Match\", \"Session-Token\" and \"Throughput\""
+ },
+ "AutoscaleSettings": {
+ "type": "object",
+ "properties": {
+ "maxThroughput": {
+ "type": "integer",
+ "description": "Represents maximum throughput, the resource can scale up to."
+ }
+ }
+ },
+ "Capability": {
+ "type": "object",
+ "description": "Cosmos DB capability object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name of the Cosmos DB capability. For example, \"name\": \"EnableCassandra\". Current values also include \"EnableTable\" and \"EnableGremlin\"."
+ }
+ }
+ },
+ "Tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\"."
+ },
+ "ProvisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The status of the Cosmos DB account at the time the operation was called. The status can be one of following. 'Creating' – the Cosmos DB account is being created. When an account is in Creating state, only properties that are specified as input for the Create Cosmos DB account operation are returned. 'Succeeded' – the Cosmos DB account is active for use. 'Updating' – the Cosmos DB account is being updated. 'Deleting' – the Cosmos DB account is being deleted. 'Failed' – the Cosmos DB account failed creation. 'DeletionFailed' – the Cosmos DB account deletion failed."
+ },
+ "IPRules": {
+ "type": "array",
+ "description": "Array of IpAddressOrRange objects.",
+ "items": {
+ "$ref": "#/definitions/IpAddressOrRange"
+ }
+ },
+ "IpAddressOrRange": {
+ "type": "object",
+ "description": "IpAddressOrRange object",
+ "properties": {
+ "ipAddressOrRange": {
+ "type": "string",
+ "description": "A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”."
+ }
+ }
+ },
+ "VirtualNetworkRule": {
+ "type": "object",
+ "description": "Virtual Network ACL Rule object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}."
+ },
+ "ignoreMissingVNetServiceEndpoint": {
+ "type": "boolean",
+ "description": "Create firewall rule before the virtual network has vnet service endpoint enabled."
+ }
+ }
+ },
+ "PrivateEndpointConnection": {
+ "description": "A private endpoint connection",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ]
+ },
+ "PrivateEndpointConnectionProperties": {
+ "description": "Properties of a private endpoint connection.",
+ "type": "object",
+ "properties": {
+ "privateEndpoint": {
+ "$ref": "#/definitions/PrivateEndpointProperty",
+ "description": "Private endpoint which the connection belongs to."
+ },
+ "privateLinkServiceConnectionState": {
+ "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty",
+ "description": "Connection State of the Private Endpoint Connection."
+ }
+ }
+ },
+ "PrivateEndpointProperty": {
+ "type": "object",
+ "description": "Private endpoint which the connection belongs to.",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource id of the private endpoint."
+ }
+ }
+ },
+ "PrivateLinkServiceConnectionStateProperty": {
+ "type": "object",
+ "description": "Connection State of the Private Endpoint Connection.",
+ "properties": {
+ "status": {
+ "type": "string",
+ "description": "The private link service connection status."
+ },
+ "actionsRequired": {
+ "type": "string",
+ "description": "Any action that is required beyond basic workflow (approve/ reject/ disconnect)",
+ "readOnly": true
+ }
+ }
+ },
+ "Operation": {
+ "description": "REST API operation",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}",
+ "type": "string"
+ },
+ "display": {
+ "description": "The object that represents the operation.",
+ "properties": {
+ "Provider": {
+ "description": "Service provider: Microsoft.ResourceProvider",
+ "type": "string"
+ },
+ "Resource": {
+ "description": "Resource on which the operation is performed: Profile, endpoint, etc.",
+ "type": "string"
+ },
+ "Operation": {
+ "description": "Operation type: Read, write, delete, etc.",
+ "type": "string"
+ },
+ "Description": {
+ "description": "Description of operation",
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "OperationListResult": {
+ "description": "Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "description": "List of operations supported by the Resource Provider."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of operation list results if there are any."
+ }
+ }
+ },
+ "UsagesResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Usage"
+ },
+ "description": "The list of usages for the database. A usage is a point in time metric"
+ }
+ },
+ "description": "The response to a list usage request."
+ },
+ "Usage": {
+ "properties": {
+ "unit": {
+ "description": "The unit of the metric.",
+ "$ref": "#/definitions/UnitType"
+ },
+ "name": {
+ "$ref": "#/definitions/MetricName",
+ "readOnly": true,
+ "description": "The name information for the metric."
+ },
+ "quotaPeriod": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The quota period used to summarize the usage values."
+ },
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "readOnly": true,
+ "description": "Maximum value for this metric"
+ },
+ "currentValue": {
+ "type": "integer",
+ "format": "int64",
+ "readOnly": true,
+ "description": "Current value for this metric"
+ }
+ },
+ "description": "The usage data for a usage request."
+ },
+ "PartitionUsagesResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/PartitionUsage"
+ },
+ "description": "The list of partition-level usages for the database. A usage is a point in time metric"
+ }
+ },
+ "description": "The response to a list partition level usage request."
+ },
+ "PartitionUsage": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/Usage"
+ }
+ ],
+ "properties": {
+ "partitionId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The partition id (GUID identifier) of the usages."
+ },
+ "partitionKeyRangeId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The partition key range id (integer identifier) of the usages."
+ }
+ },
+ "description": "The partition level usage data for a usage request."
+ },
+ "MetricDefinitionsListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/MetricDefinition"
+ },
+ "description": "The list of metric definitions for the account."
+ }
+ },
+ "description": "The response to a list metric definitions request."
+ },
+ "MetricDefinition": {
+ "properties": {
+ "metricAvailabilities": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/MetricAvailability"
+ },
+ "description": "The list of metric availabilities for the account."
+ },
+ "primaryAggregationType": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The primary aggregation type of the metric.",
+ "enum": [
+ "None",
+ "Average",
+ "Total",
+ "Minimum",
+ "Maximum",
+ "Last"
+ ],
+ "x-ms-enum": {
+ "modelAsString": true,
+ "name": "PrimaryAggregationType"
+ }
+ },
+ "unit": {
+ "description": "The unit of the metric.",
+ "$ref": "#/definitions/UnitType"
+ },
+ "resourceUri": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource uri of the database."
+ },
+ "name": {
+ "readOnly": true,
+ "$ref": "#/definitions/MetricName",
+ "description": "The name information for the metric."
+ }
+ },
+ "description": "The definition of a metric."
+ },
+ "MetricAvailability": {
+ "properties": {
+ "timeGrain": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The time grain to be used to summarize the metric values."
+ },
+ "retention": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The retention for the metric values."
+ }
+ },
+ "description": "The availability of the metric."
+ },
+ "MetricListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Metric"
+ },
+ "description": "The list of metrics for the account."
+ }
+ },
+ "description": "The response to a list metrics request."
+ },
+ "Metric": {
+ "properties": {
+ "startTime": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The start time for the metric (ISO-8601 format)."
+ },
+ "endTime": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The end time for the metric (ISO-8601 format)."
+ },
+ "timeGrain": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The time grain to be used to summarize the metric values."
+ },
+ "unit": {
+ "$ref": "#/definitions/UnitType",
+ "description": "The unit of the metric."
+ },
+ "name": {
+ "readOnly": true,
+ "$ref": "#/definitions/MetricName",
+ "description": "The name information for the metric."
+ },
+ "metricValues": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MetricValue"
+ },
+ "description": "The metric values for the specified time window and timestep."
+ }
+ },
+ "description": "Metric data"
+ },
+ "MetricName": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the metric."
+ },
+ "localizedValue": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The friendly name of the metric."
+ }
+ },
+ "description": "A metric name."
+ },
+ "MetricValue": {
+ "properties": {
+ "_count": {
+ "readOnly": true,
+ "type": "number",
+ "format": "int32",
+ "description": "The number of values for the metric."
+ },
+ "average": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The average value of the metric."
+ },
+ "maximum": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The max value of the metric."
+ },
+ "minimum": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The min value of the metric."
+ },
+ "timestamp": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The metric timestamp (ISO-8601 format)."
+ },
+ "total": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The total value of the metric."
+ }
+ },
+ "description": "Represents metrics values."
+ },
+ "PercentileMetricListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PercentileMetric"
+ },
+ "description": "The list of percentile metrics for the account."
+ }
+ },
+ "description": "The response to a list percentile metrics request."
+ },
+ "PercentileMetric": {
+ "properties": {
+ "startTime": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The start time for the metric (ISO-8601 format)."
+ },
+ "endTime": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The end time for the metric (ISO-8601 format)."
+ },
+ "timeGrain": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The time grain to be used to summarize the metric values."
+ },
+ "unit": {
+ "$ref": "#/definitions/UnitType",
+ "description": "The unit of the metric."
+ },
+ "name": {
+ "readOnly": true,
+ "$ref": "#/definitions/MetricName",
+ "description": "The name information for the metric."
+ },
+ "metricValues": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PercentileMetricValue"
+ },
+ "description": "The percentile metric values for the specified time window and timestep."
+ }
+ },
+ "description": "Percentile Metric data"
+ },
+ "PercentileMetricValue": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/MetricValue"
+ }
+ ],
+ "properties": {
+ "P10": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The 10th percentile value for the metric."
+ },
+ "P25": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The 25th percentile value for the metric."
+ },
+ "P50": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The 50th percentile value for the metric."
+ },
+ "P75": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The 75th percentile value for the metric."
+ },
+ "P90": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The 90th percentile value for the metric."
+ },
+ "P95": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The 95th percentile value for the metric."
+ },
+ "P99": {
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "description": "The 99th percentile value for the metric."
+ }
+ },
+ "description": "Represents percentile metrics values."
+ },
+ "PartitionMetricListResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PartitionMetric"
+ },
+ "description": "The list of partition-level metrics for the account."
+ }
+ },
+ "description": "The response to a list partition metrics request."
+ },
+ "PartitionMetric": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/Metric"
+ }
+ ],
+ "properties": {
+ "partitionId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The partition id (GUID identifier) of the metric values."
+ },
+ "partitionKeyRangeId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The partition key range id (integer identifier) of the metric values."
+ }
+ },
+ "description": "The metric values for a single partition."
+ },
+ "UnitType": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The unit of the metric.",
+ "enum": [
+ "Count",
+ "Bytes",
+ "Seconds",
+ "Percent",
+ "CountPerSecond",
+ "BytesPerSecond",
+ "Milliseconds"
+ ],
+ "x-ms-enum": {
+ "modelAsString": true,
+ "name": "UnitType"
+ }
+ },
+ "ConnectorOffer": {
+ "description": "The cassandra connector offer type for the Cosmos DB C* database account.",
+ "type": "string",
+ "enum": [
+ "Small"
+ ],
+ "x-ms-enum": {
+ "name": "ConnectorOffer",
+ "modelAsString": true
+ }
+ },
+ "PublicNetworkAccess": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Whether requests from Public Network are allowed",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "x-ms-enum": {
+ "modelAsString": true,
+ "name": "PublicNetworkAccess"
+ }
+ },
+ "ApiProperties": {
+ "type": "object",
+ "properties": {
+ "serverVersion": {
+ "type": "string",
+ "enum": [
+ "3.2",
+ "3.6"
+ ],
+ "description": "Describes the ServerVersion of an a MongoDB account.",
+ "x-ms-enum": {
+ "modelAsString": true,
+ "name": "ServerVersion"
+ }
+ }
+ }
+ }
+ },
+ "parameters": {
+ "resourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of an Azure resource group."
+ },
+ "accountNameParameter": {
+ "name": "accountName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB database account name.",
+ "minLength": 3,
+ "maxLength": 50,
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*"
+ },
+ "filterParameter": {
+ "name": "$filter",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq."
+ },
+ "usageFilterParameter": {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names)."
+ },
+ "databaseRidParameter": {
+ "name": "databaseRid",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB database rid."
+ },
+ "collectionRidParameter": {
+ "name": "collectionRid",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB collection rid."
+ },
+ "databaseNameParameter": {
+ "name": "databaseName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB database name."
+ },
+ "containerNameParameter": {
+ "name": "containerName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB container name."
+ },
+ "storedProcedureNameParameter": {
+ "name": "storedProcedureName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB storedProcedure name."
+ },
+ "userDefinedFunctionNameParameter": {
+ "name": "userDefinedFunctionName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB userDefinedFunction name."
+ },
+ "triggerNameParameter": {
+ "name": "triggerName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB trigger name."
+ },
+ "tableNameParameter": {
+ "name": "tableName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB table name."
+ },
+ "collectionNameParameter": {
+ "name": "collectionName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB collection name."
+ },
+ "keyspaceNameParameter": {
+ "name": "keyspaceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB keyspace name."
+ },
+ "graphNameParameter": {
+ "name": "graphName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB graph name."
+ },
+ "regionParameter": {
+ "name": "region",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB region, with spaces between words and each word capitalized."
+ },
+ "sourceRegionParameter": {
+ "name": "sourceRegion",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Source region from which data is written. Cosmos DB region, with spaces between words and each word capitalized."
+ },
+ "targetRegionParameter": {
+ "name": "targetRegion",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized."
+ },
+ "partitionKeyRangeIdParameter": {
+ "name": "partitionKeyRangeId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Partition Key Range Id for which to get data."
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceCreateUpdate.json
new file mode 100644
index 000000000000..e24af006d885
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceCreateUpdate.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName",
+ "createUpdateCassandraKeyspaceParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "keyspaceName"
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName",
+ "name": "keyspaceName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "keyspaceName"
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceDelete.json
new file mode 100644
index 000000000000..a1daf0499e77
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceGet.json
new file mode 100644
index 000000000000..b39227f7a9d8
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceGet.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName",
+ "name": "keyspaceName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "keyspaceName",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceList.json
new file mode 100644
index 000000000000..69a80e60d8b3
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceList.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName",
+ "name": "keyspaceName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "keyspaceName"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceThroughputGet.json
new file mode 100644
index 000000000000..3981c51e2476
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceThroughputGet.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json
new file mode 100644
index 000000000000..498fe116b972
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName",
+ "updateThroughputParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableCreateUpdate.json
new file mode 100644
index 000000000000..f6a3b683c64a
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableCreateUpdate.json
@@ -0,0 +1,79 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName",
+ "tableName": "tableName",
+ "createUpdateCassandraTableParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "tableName",
+ "defaultTtl": 100,
+ "analyticalStorageTtl": 500,
+ "schema": {
+ "columns": [
+ {
+ "name": "columnA",
+ "type": "Ascii"
+ }
+ ],
+ "partitionKeys": [
+ {
+ "name": "columnA"
+ }
+ ],
+ "clusterKeys": [
+ {
+ "name": "columnA",
+ "orderBy": "Asc"
+ }
+ ]
+ }
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName",
+ "name": "tableName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "tableName",
+ "defaultTtl": 100,
+ "analyticalStorageTtl": 500,
+ "schema": {
+ "columns": [
+ {
+ "name": "columnA",
+ "type": "Ascii"
+ }
+ ],
+ "partitionKeys": [
+ {
+ "name": "columnA"
+ }
+ ],
+ "clusterKeys": [
+ {
+ "name": "columnA",
+ "orderBy": "Asc"
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableDelete.json
new file mode 100644
index 000000000000..a63d38a0b917
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableDelete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName",
+ "tableName": "tableName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableGet.json
new file mode 100644
index 000000000000..fdf5065b81f2
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableGet.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName",
+ "tableName": "tableName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName",
+ "name": "tableName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "tableName",
+ "defaultTtl": 100,
+ "analyticalStorageTtl": 500,
+ "schema": {
+ "columns": [
+ {
+ "name": "columnA",
+ "type": "Ascii"
+ }
+ ],
+ "partitionKeys": [
+ {
+ "name": "columnA"
+ }
+ ],
+ "clusterKeys": [
+ {
+ "name": "columnA",
+ "orderBy": "Asc"
+ }
+ ]
+ },
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableList.json
new file mode 100644
index 000000000000..70bb84560114
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableList.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "keyspaceName": "keyspaceName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName",
+ "name": "tableName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "tableName",
+ "defaultTtl": 100,
+ "analyticalStorageTtl": 500,
+ "schema": {
+ "columns": [
+ {
+ "name": "columnA",
+ "type": "Ascii"
+ }
+ ],
+ "partitionKeys": [
+ {
+ "name": "columnA"
+ }
+ ],
+ "clusterKeys": [
+ {
+ "name": "columnA",
+ "orderBy": "Asc"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableThroughputGet.json
new file mode 100644
index 000000000000..94c32f6050f6
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableThroughputGet.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName",
+ "tableName": "tableName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableThroughputUpdate.json
new file mode 100644
index 000000000000..ddf4909ef504
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCassandraTableThroughputUpdate.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyspaceName": "keyspaceName",
+ "tableName": "tableName",
+ "updateThroughputParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings",
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetMetricDefinitions.json
new file mode 100644
index 000000000000..19de3f541055
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetMetricDefinitions.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "subscriptionId": "subid",
+ "api-version": "2020-04-01",
+ "databaseRid": "databaseRid",
+ "collectionRid": "collectionRid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "metricAvailabilities": [
+ {
+ "timeGrain": "PT5M",
+ "retention": "P2D"
+ },
+ {
+ "timeGrain": "PT1H",
+ "retention": "P14D"
+ },
+ {
+ "timeGrain": "P1D",
+ "retention": "P60D"
+ }
+ ],
+ "primaryAggregationType": "Total",
+ "unit": "Count",
+ "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1",
+ "name": {
+ "value": "Total Requests",
+ "localizedValue": "Total Requests"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetMetrics.json
new file mode 100644
index 000000000000..5a6050390529
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetMetrics.json
@@ -0,0 +1,55 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseRid": "databaseRid",
+ "collectionRid": "collectionRid",
+ "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Count",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-19T23:58:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:03:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:08:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ }
+ ],
+ "name": {
+ "value": "Total Requests",
+ "localizedValue": "Total Requests"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetUsages.json
new file mode 100644
index 000000000000..d9ab05b8710d
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionGetUsages.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "databaseRid": "databaseRid",
+ "collectionRid": "collectionRid",
+ "subscriptionId": "subid",
+ "$filter": "$filter=name.value eq 'Storage'"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "unit": "Bytes",
+ "quotaPeriod": "P1D",
+ "limit": 10737418240,
+ "currentValue": 0,
+ "name": {
+ "value": "Storage",
+ "localizedValue": "Storage"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionGetMetrics.json
new file mode 100644
index 000000000000..d55d66e7c5d2
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionGetMetrics.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseRid": "databaseRid",
+ "collectionRid": "collectionRid",
+ "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT1M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T23:58:55.2780000Z",
+ "unit": "Count",
+ "partitionId": "00000000-0000-0000-0000-000000000000",
+ "partitionKeyRangeId": "0",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:54:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:55:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:56:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:57:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:58:55.2780000Z",
+ "maximum": 5
+ }
+ ],
+ "name": {
+ "value": "Max RUs Per Second",
+ "localizedValue": "Max RUs Per Second"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionGetUsages.json
new file mode 100644
index 000000000000..199a3973e04f
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionGetUsages.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "databaseRid": "databaseRid",
+ "collectionRid": "collectionRid",
+ "subscriptionId": "subid",
+ "$filter": "$filter=name.value eq 'Partition Storage'"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "unit": "Bytes",
+ "quotaPeriod": "P1D",
+ "limit": 10737418240,
+ "currentValue": 0,
+ "partitionId": "00000000-0000-0000-0000-000000000000",
+ "partitionKeyRangeId": "0",
+ "name": {
+ "value": "Storage",
+ "localizedValue": "Storage"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionRegionGetMetrics.json
new file mode 100644
index 000000000000..6ed2a695e0cc
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBCollectionPartitionRegionGetMetrics.json
@@ -0,0 +1,58 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseRid": "databaseRid",
+ "collectionRid": "collectionRid",
+ "region": "North Europe",
+ "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT1M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T23:58:55.2780000Z",
+ "unit": "Count",
+ "partitionId": "00000000-0000-0000-0000-000000000000",
+ "partitionKeyRangeId": "0",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:54:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:55:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:56:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:57:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:58:55.2780000Z",
+ "maximum": 5
+ }
+ ],
+ "name": {
+ "value": "Max RUs Per Second",
+ "localizedValue": "Max RUs Per Second"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCheckNameExists.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCheckNameExists.json
new file mode 100644
index 000000000000..bac12a65bbfb
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCheckNameExists.json
@@ -0,0 +1,10 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {},
+ "404": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json
new file mode 100644
index 000000000000..de4497935071
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json
@@ -0,0 +1,149 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "createUpdateParameters": {
+ "location": "westus",
+ "tags": {},
+ "kind": "MongoDB",
+ "properties": {
+ "databaseAccountOfferType": "Standard",
+ "ipRules": [
+ {
+ "ipAddressOrRange": "23.43.230.120"
+ },
+ {
+ "ipAddressOrRange": "110.12.240.0/12"
+ }
+ ],
+ "isVirtualNetworkFilterEnabled": true,
+ "virtualNetworkRules": [
+ {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
+ "ignoreMissingVNetServiceEndpoint": false
+ }
+ ],
+ "locations": [
+ {
+ "failoverPriority": 0,
+ "locationName": "southcentralus",
+ "isZoneRedundant": false
+ },
+ {
+ "failoverPriority": 1,
+ "locationName": "eastus",
+ "isZoneRedundant": false
+ }
+ ],
+ "consistencyPolicy": {
+ "defaultConsistencyLevel": "BoundedStaleness",
+ "maxIntervalInSeconds": 10,
+ "maxStalenessPrefix": 200
+ },
+ "keyVaultKeyUri": "https://myKeyVault.vault.azure.net",
+ "enableFreeTier": false,
+ "apiProperties": {
+ "serverVersion": "3.2"
+ },
+ "enableAnalyticalStorage": true
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1",
+ "name": "ddb1",
+ "location": "West US",
+ "type": "Microsoft.DocumentDB/databaseAccounts",
+ "kind": "MongoDB",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Initializing",
+ "isVirtualNetworkFilterEnabled": true,
+ "databaseAccountOfferType": "Standard",
+ "disableKeyBasedMetadataWriteAccess": false,
+ "consistencyPolicy": {
+ "defaultConsistencyLevel": "BoundedStaleness",
+ "maxIntervalInSeconds": 10,
+ "maxStalenessPrefix": 200
+ },
+ "writeLocations": [
+ {
+ "id": "ddb1-southcentralus",
+ "locationName": "South Central US",
+ "provisioningState": "Initializing",
+ "failoverPriority": 0,
+ "isZoneRedundant": false
+ }
+ ],
+ "readLocations": [
+ {
+ "id": "ddb1-southcentralus",
+ "locationName": "South Central US",
+ "provisioningState": "Initializing",
+ "failoverPriority": 0,
+ "isZoneRedundant": false
+ },
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "provisioningState": "Initializing",
+ "failoverPriority": 1,
+ "isZoneRedundant": false
+ }
+ ],
+ "locations": [
+ {
+ "id": "ddb1-southcentralus",
+ "locationName": "South Central US",
+ "provisioningState": "Initializing",
+ "failoverPriority": 0,
+ "isZoneRedundant": false
+ },
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "provisioningState": "Initializing",
+ "failoverPriority": 1,
+ "isZoneRedundant": false
+ }
+ ],
+ "failoverPolicies": [
+ {
+ "id": "ddb1-southcentralus",
+ "locationName": "South Central US",
+ "failoverPriority": 0
+ },
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "failoverPriority": 1
+ }
+ ],
+ "virtualNetworkRules": [
+ {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"
+ }
+ ],
+ "keyVaultKeyUri": "https://myKeyVault.vault.azure.net",
+ "enableFreeTier": false,
+ "ipRules": [
+ {
+ "ipAddressOrRange": "23.43.230.120"
+ },
+ {
+ "ipAddressOrRange": "110.12.240.0/12"
+ }
+ ],
+ "apiProperties": {
+ "serverVersion": "3.2"
+ },
+ "enableAnalyticalStorage": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMin.json
new file mode 100644
index 000000000000..6b0224bfd5e6
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMin.json
@@ -0,0 +1,81 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "createUpdateParameters": {
+ "location": "westus",
+ "properties": {
+ "databaseAccountOfferType": "Standard",
+ "locations": [
+ {
+ "failoverPriority": 0,
+ "locationName": "southcentralus",
+ "isZoneRedundant": false
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1",
+ "name": "ddb1",
+ "location": "West US",
+ "type": "Microsoft.DocumentDB/databaseAccounts",
+ "kind": "GlobalDocumentDB",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Initializing",
+ "ipRules": [],
+ "databaseAccountOfferType": "Standard",
+ "disableKeyBasedMetadataWriteAccess": false,
+ "consistencyPolicy": {
+ "defaultConsistencyLevel": "Session",
+ "maxIntervalInSeconds": 5,
+ "maxStalenessPrefix": 100
+ },
+ "writeLocations": [
+ {
+ "id": "ddb1-southcentralus",
+ "locationName": "South Central US",
+ "provisioningState": "Initializing",
+ "failoverPriority": 0,
+ "isZoneRedundant": false
+ }
+ ],
+ "readLocations": [
+ {
+ "id": "ddb1-southcentralus",
+ "locationName": "South Central US",
+ "provisioningState": "Initializing",
+ "failoverPriority": 0,
+ "isZoneRedundant": false
+ }
+ ],
+ "locations": [
+ {
+ "id": "ddb1-southcentralus",
+ "locationName": "South Central US",
+ "provisioningState": "Initializing",
+ "failoverPriority": 0,
+ "isZoneRedundant": false
+ }
+ ],
+ "failoverPolicies": [
+ {
+ "id": "ddb1-southcentralus",
+ "locationName": "South Central US",
+ "failoverPriority": 0
+ }
+ ],
+ "enableFreeTier": false,
+ "apiProperties": {},
+ "enableAnalyticalStorage": false
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountDelete.json
new file mode 100644
index 000000000000..33a2de5b01f1
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountDelete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json
new file mode 100644
index 000000000000..51e66eb77e0e
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "accountName": "ddb1-failover",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "failoverParameters": {
+ "failoverPolicies": [
+ {
+ "locationName": "eastus",
+ "failoverPriority": 0
+ },
+ {
+ "locationName": "westus",
+ "failoverPriority": 1
+ }
+ ]
+ }
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGet.json
new file mode 100644
index 000000000000..5acc11878245
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGet.json
@@ -0,0 +1,86 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1",
+ "name": "ddb1",
+ "location": "West US",
+ "type": "Microsoft.DocumentDB/databaseAccounts",
+ "kind": "GlobalDocumentDB",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "documentEndpoint": "https://ddb1.documents.azure.com:443/",
+ "ipRules": [],
+ "isVirtualNetworkFilterEnabled": false,
+ "virtualNetworkRules": [],
+ "databaseAccountOfferType": "Standard",
+ "disableKeyBasedMetadataWriteAccess": false,
+ "consistencyPolicy": {
+ "defaultConsistencyLevel": "Session",
+ "maxIntervalInSeconds": 5,
+ "maxStalenessPrefix": 100
+ },
+ "writeLocations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "readLocations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "locations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "failoverPolicies": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "failoverPriority": 0
+ }
+ ],
+ "privateEndpointConnections": [
+ {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ ],
+ "enableFreeTier": false,
+ "apiProperties": {},
+ "enableAnalyticalStorage": true
+ }
+ }
+ },
+ "404": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json
new file mode 100644
index 000000000000..880bad0cdece
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "subscriptionId": "subid",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "metricAvailabilities": [
+ {
+ "timeGrain": "PT5M",
+ "retention": "P2D"
+ },
+ {
+ "timeGrain": "PT1H",
+ "retention": "P14D"
+ },
+ {
+ "timeGrain": "P1D",
+ "retention": "P60D"
+ }
+ ],
+ "primaryAggregationType": "Total",
+ "unit": "Count",
+ "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1",
+ "name": {
+ "value": "Total Requests",
+ "localizedValue": "Total Requests"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetMetrics.json
new file mode 100644
index 000000000000..bb4831e316d7
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetMetrics.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Count",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-19T23:58:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:03:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:08:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ }
+ ],
+ "name": {
+ "value": "Total Requests",
+ "localizedValue": "Total Requests"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetUsages.json
new file mode 100644
index 000000000000..0632ce6fa755
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGetUsages.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "$filter": "$filter=name.value eq 'Storage'"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "unit": "Bytes",
+ "quotaPeriod": "P1D",
+ "limit": 10737418240,
+ "currentValue": 0,
+ "name": {
+ "value": "Storage",
+ "localizedValue": "Storage"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountList.json
new file mode 100644
index 000000000000..d17099aa4b0e
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountList.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1",
+ "name": "ddb1",
+ "location": "West US",
+ "type": "Microsoft.DocumentDB/databaseAccounts",
+ "kind": "GlobalDocumentDB",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "documentEndpoint": "https://ddb1.documents.azure.com:443/",
+ "ipRules": [],
+ "databaseAccountOfferType": "Standard",
+ "disableKeyBasedMetadataWriteAccess": false,
+ "consistencyPolicy": {
+ "defaultConsistencyLevel": "Session",
+ "maxIntervalInSeconds": 5,
+ "maxStalenessPrefix": 100
+ },
+ "writeLocations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "readLocations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "locations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "failoverPolicies": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "failoverPriority": 0
+ }
+ ],
+ "privateEndpointConnections": [
+ {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ ],
+ "enableFreeTier": false,
+ "apiProperties": {},
+ "enableAnalyticalStorage": true
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListByResourceGroup.json
new file mode 100644
index 000000000000..3e7ce126f613
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListByResourceGroup.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "resourceGroupName": "rg1",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1",
+ "name": "ddb1",
+ "location": "West US",
+ "type": "Microsoft.DocumentDB/databaseAccounts",
+ "kind": "GlobalDocumentDB",
+ "tags": {},
+ "properties": {
+ "provisioningState": "Succeeded",
+ "documentEndpoint": "https://ddb1.documents.azure.com:443/",
+ "ipRules": [],
+ "databaseAccountOfferType": "Standard",
+ "disableKeyBasedMetadataWriteAccess": false,
+ "consistencyPolicy": {
+ "defaultConsistencyLevel": "Session",
+ "maxIntervalInSeconds": 5,
+ "maxStalenessPrefix": 100
+ },
+ "writeLocations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "readLocations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "locations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "failoverPolicies": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "failoverPriority": 0
+ }
+ ],
+ "enableFreeTier": false
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListConnectionStrings.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListConnectionStrings.json
new file mode 100644
index 000000000000..f02530f00ad8
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListConnectionStrings.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {}
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json
new file mode 100644
index 000000000000..8f96dde3304f
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "accountName": "mongo-ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "connectionStrings": [
+ {
+ "connectionString": "connection-string",
+ "description": "Name of the connection string"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListKeys.json
new file mode 100644
index 000000000000..62dfe0db6d31
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListKeys.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "primaryMasterKey": "primaryMasterKey",
+ "secondaryMasterKey": "secondaryMasterKey",
+ "primaryReadonlyMasterKey": "primaryReadonlyMasterKey",
+ "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey"
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json
new file mode 100644
index 000000000000..30f90dc57075
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "primaryReadonlyMasterKey": "primaryReadonlyMasterKey",
+ "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey"
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountOfflineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountOfflineRegion.json
new file mode 100644
index 000000000000..e46230d1326a
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountOfflineRegion.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "region": "North Europe",
+ "regionParameterForOffline": [
+ {
+ "region": "North Europe"
+ }
+ ]
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountOnlineRegion.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountOnlineRegion.json
new file mode 100644
index 000000000000..6aa866384204
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountOnlineRegion.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "region": "North Europe",
+ "regionParameterForOnline": [
+ {
+ "region": "North Europe"
+ }
+ ]
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountPatch.json
new file mode 100644
index 000000000000..4236c8ec8340
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountPatch.json
@@ -0,0 +1,129 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "updateParameters": {
+ "location": "westus",
+ "tags": {
+ "dept": "finance"
+ },
+ "properties": {
+ "ipRules": [
+ {
+ "ipAddressOrRange": "23.43.230.120"
+ },
+ {
+ "ipAddressOrRange": "110.12.240.0/12"
+ }
+ ],
+ "isVirtualNetworkFilterEnabled": true,
+ "virtualNetworkRules": [
+ {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
+ "ignoreMissingVNetServiceEndpoint": false
+ }
+ ],
+ "consistencyPolicy": {
+ "defaultConsistencyLevel": "BoundedStaleness",
+ "maxIntervalInSeconds": 10,
+ "maxStalenessPrefix": 200
+ },
+ "enableFreeTier": false,
+ "enableAnalyticalStorage": true
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1",
+ "name": "ddb1",
+ "location": "West US",
+ "type": "Microsoft.DocumentDB/databaseAccounts",
+ "kind": "GlobalDocumentDB",
+ "tags": {
+ "dept": "finance"
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "documentEndpoint": "https://ddb1.documents.azure.com:443/",
+ "databaseAccountOfferType": "Standard",
+ "ipRules": [
+ {
+ "ipAddressOrRange": "23.43.230.120"
+ },
+ {
+ "ipAddressOrRange": "110.12.240.0/12"
+ }
+ ],
+ "isVirtualNetworkFilterEnabled": true,
+ "disableKeyBasedMetadataWriteAccess": false,
+ "consistencyPolicy": {
+ "defaultConsistencyLevel": "BoundedStaleness",
+ "maxIntervalInSeconds": 10,
+ "maxStalenessPrefix": 200
+ },
+ "writeLocations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "readLocations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "locations": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "documentEndpoint": "https://ddb1-eastus.documents.azure.com:443/",
+ "provisioningState": "Succeeded",
+ "failoverPriority": 0
+ }
+ ],
+ "failoverPolicies": [
+ {
+ "id": "ddb1-eastus",
+ "locationName": "East US",
+ "failoverPriority": 0
+ }
+ ],
+ "virtualNetworkRules": [
+ {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
+ "ignoreMissingVNetServiceEndpoint": false
+ }
+ ],
+ "privateEndpointConnections": [
+ {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ ],
+ "enableFreeTier": false,
+ "apiProperties": {},
+ "enableAnalyticalStorage": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountRegenerateKey.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountRegenerateKey.json
new file mode 100644
index 000000000000..f664aa87cfae
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountRegenerateKey.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "keyToRegenerate": {
+ "keyKind": "primary"
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountRegionGetMetrics.json
new file mode 100644
index 000000000000..e6e081b20022
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountRegionGetMetrics.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "region": "North Europe",
+ "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Count",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-19T23:58:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:03:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:08:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ }
+ ],
+ "name": {
+ "value": "Total Requests",
+ "localizedValue": "Total Requests"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetMetricDefinitions.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetMetricDefinitions.json
new file mode 100644
index 000000000000..fade2dac77e4
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetMetricDefinitions.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "subscriptionId": "subid",
+ "api-version": "2020-04-01",
+ "databaseRid": "databaseRid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "metricAvailabilities": [
+ {
+ "timeGrain": "PT5M",
+ "retention": "P2D"
+ },
+ {
+ "timeGrain": "PT1H",
+ "retention": "P14D"
+ },
+ {
+ "timeGrain": "P1D",
+ "retention": "P60D"
+ }
+ ],
+ "primaryAggregationType": "Total",
+ "unit": "Count",
+ "resourceUri": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1",
+ "name": {
+ "value": "Total Requests",
+ "localizedValue": "Total Requests"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetMetrics.json
new file mode 100644
index 000000000000..e4d9703eee54
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetMetrics.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseRid": "rid",
+ "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Count",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-19T23:58:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:03:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:08:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ }
+ ],
+ "name": {
+ "value": "Total Requests",
+ "localizedValue": "Total Requests"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetUsages.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetUsages.json
new file mode 100644
index 000000000000..a01c4f0c61c2
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseGetUsages.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "databaseRid": "databaseRid",
+ "subscriptionId": "subid",
+ "$filter": "$filter=name.value eq 'Storage'"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "unit": "Bytes",
+ "quotaPeriod": "P1D",
+ "limit": 10737418240,
+ "currentValue": 0,
+ "name": {
+ "value": "Storage",
+ "localizedValue": "Storage"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseCreateUpdate.json
new file mode 100644
index 000000000000..defb157c7dc4
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseCreateUpdate.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "createUpdateGremlinDatabaseParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName"
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName",
+ "name": "databaseName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName",
+ "_rid": "CqNBAA==",
+ "_ts": 1449602962,
+ "_etag": "\"00000a00-0000-0000-0000-56672f920000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseDelete.json
new file mode 100644
index 000000000000..8c98cc95443c
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseGet.json
new file mode 100644
index 000000000000..240714a46204
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseGet.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName",
+ "name": "databaseName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName",
+ "_rid": "CqNBAA==",
+ "_ts": 1449602962,
+ "_etag": "\"00000a00-0000-0000-0000-56672f920000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseList.json
new file mode 100644
index 000000000000..2a31947cbf96
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseList.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName",
+ "name": "databaseName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName",
+ "_rid": "CqNBAA==",
+ "_ts": 1449602962,
+ "_etag": "\"00000a00-0000-0000-0000-56672f920000\""
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseThroughputGet.json
new file mode 100644
index 000000000000..03e58712f589
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseThroughputGet.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseThroughputUpdate.json
new file mode 100644
index 000000000000..a11f9080319f
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinDatabaseThroughputUpdate.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "updateThroughputParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphCreateUpdate.json
new file mode 100644
index 000000000000..137d2eab938a
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphCreateUpdate.json
@@ -0,0 +1,124 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "graphName": "graphName",
+ "createUpdateGremlinGraphParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "graphName",
+ "indexingPolicy": {
+ "indexingMode": "Consistent",
+ "automatic": true,
+ "includedPaths": [
+ {
+ "path": "/*",
+ "indexes": [
+ {
+ "kind": "Range",
+ "dataType": "String",
+ "precision": -1
+ },
+ {
+ "kind": "Range",
+ "dataType": "Number",
+ "precision": -1
+ }
+ ]
+ }
+ ],
+ "excludedPaths": []
+ },
+ "partitionKey": {
+ "paths": [
+ "/AccountNumber"
+ ],
+ "kind": "Hash"
+ },
+ "defaultTtl": 100,
+ "uniqueKeyPolicy": {
+ "uniqueKeys": [
+ {
+ "paths": [
+ "/testPath"
+ ]
+ }
+ ]
+ },
+ "conflictResolutionPolicy": {
+ "mode": "LastWriterWins",
+ "conflictResolutionPath": "/path"
+ }
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName",
+ "name": "graphName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/gremlinGraphs",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "graphName",
+ "indexingPolicy": {
+ "indexingMode": "Consistent",
+ "automatic": true,
+ "includedPaths": [
+ {
+ "path": "/*",
+ "indexes": [
+ {
+ "kind": "Range",
+ "dataType": "String",
+ "precision": -1
+ },
+ {
+ "kind": "Range",
+ "dataType": "Number",
+ "precision": -1
+ }
+ ]
+ }
+ ],
+ "excludedPaths": []
+ },
+ "partitionKey": {
+ "paths": [
+ "/AccountNumber"
+ ],
+ "kind": "Hash"
+ },
+ "defaultTtl": 100,
+ "uniqueKeyPolicy": {
+ "uniqueKeys": [
+ {
+ "paths": [
+ "/testPath"
+ ]
+ }
+ ]
+ },
+ "conflictResolutionPolicy": {
+ "mode": "LastWriterWins",
+ "conflictResolutionPath": "/path"
+ },
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphDelete.json
new file mode 100644
index 000000000000..29f5ea9118b8
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphDelete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "graphName": "graphName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphGet.json
new file mode 100644
index 000000000000..d74fa5fef1fc
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphGet.json
@@ -0,0 +1,69 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName",
+ "graphName": "graphName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "graphName",
+ "name": "graphName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs",
+ "properties": {
+ "resource": {
+ "id": "graphName",
+ "indexingPolicy": {
+ "indexingMode": "Consistent",
+ "automatic": true,
+ "includedPaths": [
+ {
+ "path": "/*",
+ "indexes": [
+ {
+ "kind": "Range",
+ "dataType": "String",
+ "precision": -1
+ },
+ {
+ "kind": "Range",
+ "dataType": "Number",
+ "precision": -1
+ }
+ ]
+ }
+ ],
+ "excludedPaths": []
+ },
+ "partitionKey": {
+ "paths": [
+ "/AccountNumber"
+ ],
+ "kind": "Hash"
+ },
+ "defaultTtl": 100,
+ "uniqueKeyPolicy": {
+ "uniqueKeys": [
+ {
+ "paths": [
+ "/testPath"
+ ]
+ }
+ ]
+ },
+ "conflictResolutionPolicy": {
+ "mode": "LastWriterWins",
+ "conflictResolutionPath": "/path"
+ },
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphList.json
new file mode 100644
index 000000000000..bfce670489c7
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphList.json
@@ -0,0 +1,72 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "testgrf",
+ "name": "testgrf",
+ "type": "Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs",
+ "properties": {
+ "resource": {
+ "id": "testgrf",
+ "indexingPolicy": {
+ "indexingMode": "Consistent",
+ "automatic": true,
+ "includedPaths": [
+ {
+ "path": "/*",
+ "indexes": [
+ {
+ "kind": "Range",
+ "dataType": "String",
+ "precision": -1
+ },
+ {
+ "kind": "Range",
+ "dataType": "Number",
+ "precision": -1
+ }
+ ]
+ }
+ ],
+ "excludedPaths": []
+ },
+ "partitionKey": {
+ "paths": [
+ "/AccountNumber"
+ ],
+ "kind": "Hash"
+ },
+ "defaultTtl": 100,
+ "uniqueKeyPolicy": {
+ "uniqueKeys": [
+ {
+ "paths": [
+ "/testPath"
+ ]
+ }
+ ]
+ },
+ "conflictResolutionPolicy": {
+ "mode": "LastWriterWins",
+ "conflictResolutionPath": "/path"
+ },
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphThroughputGet.json
new file mode 100644
index 000000000000..f7e756464ed3
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphThroughputGet.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "graphName": "graphName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphThroughputUpdate.json
new file mode 100644
index 000000000000..5eff37931bf0
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBGremlinGraphThroughputUpdate.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "graphName": "graphName",
+ "updateThroughputParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionCreateUpdate.json
new file mode 100644
index 000000000000..bf27ecac829d
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionCreateUpdate.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "collectionName": "collectionName",
+ "createUpdateMongoDBCollectionParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "collectionName",
+ "indexes": [
+ {
+ "key": {
+ "keys": [
+ "testKey"
+ ]
+ },
+ "options": {
+ "expireAfterSeconds": 100,
+ "unique": true
+ }
+ }
+ ],
+ "shardKey": {
+ "testKey": "Hash"
+ },
+ "analyticalStorageTtl": 500
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName",
+ "name": "collectionName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "collectionName",
+ "indexes": [
+ {
+ "key": {
+ "keys": [
+ "testKey"
+ ]
+ },
+ "options": {
+ "expireAfterSeconds": 100,
+ "unique": true
+ }
+ }
+ ],
+ "shardKey": {
+ "testKey": "Hash"
+ },
+ "analyticalStorageTtl": 500
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionDelete.json
new file mode 100644
index 000000000000..f2b59539bd58
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionDelete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "collectionName": "collectionName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionGet.json
new file mode 100644
index 000000000000..706e327f1bc3
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionGet.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName",
+ "collectionName": "collectionName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName",
+ "name": "collectionName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "testcoll",
+ "indexes": [
+ {
+ "key": {
+ "keys": [
+ "testKey"
+ ]
+ },
+ "options": {
+ "expireAfterSeconds": 100,
+ "unique": true
+ }
+ }
+ ],
+ "shardKey": {
+ "testKey": "Hash"
+ },
+ "analyticalStorageTtl": 500,
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionList.json
new file mode 100644
index 000000000000..b09f788ddafc
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionList.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName",
+ "name": "collectionName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "testcoll",
+ "indexes": [
+ {
+ "key": {
+ "keys": [
+ "testKey"
+ ]
+ },
+ "options": {
+ "expireAfterSeconds": 100,
+ "unique": true
+ }
+ }
+ ],
+ "shardKey": {
+ "testKey": "Hash"
+ },
+ "analyticalStorageTtl": 500
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionThroughputGet.json
new file mode 100644
index 000000000000..c4f6b70ec8ed
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionThroughputGet.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "collectionName": "collectionName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionThroughputUpdate.json
new file mode 100644
index 000000000000..498de653af1c
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBCollectionThroughputUpdate.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "collectionName": "collectionName",
+ "updateThroughputParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseCreateUpdate.json
new file mode 100644
index 000000000000..775470f3c4ac
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseCreateUpdate.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "createUpdateMongoDBDatabaseParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName"
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName",
+ "name": "databaseName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "updatedDatabaseName"
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseDelete.json
new file mode 100644
index 000000000000..8c98cc95443c
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseGet.json
new file mode 100644
index 000000000000..c529a1b694e8
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseGet.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName",
+ "name": "databaseName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseList.json
new file mode 100644
index 000000000000..54effd2021ed
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseList.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName",
+ "name": "databaseName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseThroughputGet.json
new file mode 100644
index 000000000000..3ee7a5f9f228
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseThroughputGet.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json
new file mode 100644
index 000000000000..b2c37be538f2
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "updateThroughputParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceCreate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceCreate.json
new file mode 100644
index 000000000000..bab671dfbbdd
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceCreate.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default",
+ "notebookCreateUpdateParameters": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces",
+ "properties": {
+ "notebookServerEndpoint": "endpoint",
+ "status": "Online"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceDelete.json
new file mode 100644
index 000000000000..cd1f5f413f0b
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceGet.json
new file mode 100644
index 000000000000..57a1d4b98696
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceGet.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces",
+ "properties": {
+ "notebookServerEndpoint": "endpoint",
+ "status": "Online"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceList.json
new file mode 100644
index 000000000000..83ac744c1021
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceList.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces",
+ "properties": {
+ "notebookServerEndpoint": "endpoint",
+ "status": "Online"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json
new file mode 100644
index 000000000000..b295690fa825
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "authToken": "auth-token",
+ "notebookServerEndpoint": "notebook endpoint"
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json
new file mode 100644
index 000000000000..c8cf3fe78307
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceStart.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceStart.json
new file mode 100644
index 000000000000..c8cf3fe78307
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBNotebookWorkspaceStart.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "accountName": "ddb1",
+ "notebookWorkspaceName": "default"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBOperationsList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBOperationsList.json
new file mode 100644
index 000000000000..fad88b811963
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBOperationsList.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "operationName",
+ "display": {
+ "Provider": "providerName",
+ "Resource": "resourceName",
+ "Operation": "operationName",
+ "Description": "description"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPKeyRangeIdGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPKeyRangeIdGetMetrics.json
new file mode 100644
index 000000000000..e5af5d69121a
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPKeyRangeIdGetMetrics.json
@@ -0,0 +1,58 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseRid": "databaseRid",
+ "collectionRid": "collectionRid",
+ "partitionKeyRangeId": "0",
+ "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT1M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T23:58:55.2780000Z",
+ "unit": "Count",
+ "partitionId": "00000000-0000-0000-0000-000000000000",
+ "partitionKeyRangeId": "0",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:54:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:55:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:56:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:57:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:58:55.2780000Z",
+ "maximum": 5
+ }
+ ],
+ "name": {
+ "value": "Max RUs Per Second",
+ "localizedValue": "Max RUs Per Second"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json
new file mode 100644
index 000000000000..9d9a9234232a
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseRid": "databaseRid",
+ "collectionRid": "collectionRid",
+ "partitionKeyRangeId": "0",
+ "region": "West US",
+ "$filter": "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT1M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T23:58:55.2780000Z",
+ "unit": "Count",
+ "partitionId": "00000000-0000-0000-0000-000000000000",
+ "partitionKeyRangeId": "0",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:54:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:55:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:56:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:57:55.2780000Z",
+ "maximum": 5
+ },
+ {
+ "timestamp": "2017-11-19T23:58:55.2780000Z",
+ "maximum": 5
+ }
+ ],
+ "name": {
+ "value": "Max RUs Per Second",
+ "localizedValue": "Max RUs Per Second"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileGetMetrics.json
new file mode 100644
index 000000000000..bbfa184ebe04
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileGetMetrics.json
@@ -0,0 +1,61 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Milliseconds",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "P10": 1.11,
+ "P25": 2.5,
+ "P50": 4.34,
+ "P75": 5.2,
+ "P90": 6.77,
+ "P95": 7.1,
+ "P99": 8.3
+ }
+ ],
+ "name": {
+ "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US",
+ "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US"
+ }
+ },
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Milliseconds",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "P10": 1.11,
+ "P25": 2.5,
+ "P50": 4.34,
+ "P75": 5.2,
+ "P90": 6.77,
+ "P95": 7.1,
+ "P99": 8.3
+ }
+ ],
+ "name": {
+ "value": "Probabilistic Bounded Staleness-S-West Central US-T-West US",
+ "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-West US"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileSourceTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileSourceTargetGetMetrics.json
new file mode 100644
index 000000000000..7078f0aaff13
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileSourceTargetGetMetrics.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "sourceRegion": "West Central US",
+ "targetRegion": "East US",
+ "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Milliseconds",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "P10": 1.11,
+ "P25": 2.5,
+ "P50": 4.34,
+ "P75": 5.2,
+ "P90": 6.77,
+ "P95": 7.1,
+ "P99": 8.3
+ }
+ ],
+ "name": {
+ "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US",
+ "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileTargetGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileTargetGetMetrics.json
new file mode 100644
index 000000000000..ea26d7421069
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBPercentileTargetGetMetrics.json
@@ -0,0 +1,62 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "targetRegion": "East US",
+ "$filter": "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Milliseconds",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "P10": 1.11,
+ "P25": 2.5,
+ "P50": 4.34,
+ "P75": 5.2,
+ "P90": 6.77,
+ "P95": 7.1,
+ "P99": 8.3
+ }
+ ],
+ "name": {
+ "value": "Probabilistic Bounded Staleness-S-West Central US-T-East US",
+ "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US"
+ }
+ },
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Milliseconds",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "P10": 1.11,
+ "P25": 2.5,
+ "P50": 4.34,
+ "P75": 5.2,
+ "P90": 6.77,
+ "P95": 7.1,
+ "P99": 8.3
+ }
+ ],
+ "name": {
+ "value": "Probabilistic Bounded Staleness-S-West US-T-East US",
+ "localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-West US"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBRegionCollectionGetMetrics.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBRegionCollectionGetMetrics.json
new file mode 100644
index 000000000000..323701f96011
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBRegionCollectionGetMetrics.json
@@ -0,0 +1,56 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseRid": "databaseRid",
+ "collectionRid": "collectionRid",
+ "region": "North Europe",
+ "$filter": "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timeGrain": "PT5M",
+ "startTime": "2017-11-19T23:53:55.2780000Z",
+ "endTime": "2017-11-20T00:13:55.2780000Z",
+ "unit": "Count",
+ "metricValues": [
+ {
+ "timestamp": "2017-11-19T23:53:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-19T23:58:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:03:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ },
+ {
+ "timestamp": "2017-11-20T00:08:55.2780000Z",
+ "total": 0,
+ "_count": 0,
+ "average": 0
+ }
+ ],
+ "name": {
+ "value": "Total Requests",
+ "localizedValue": "Total Requests"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerCreateUpdate.json
new file mode 100644
index 000000000000..b7531606c6fd
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerCreateUpdate.json
@@ -0,0 +1,124 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "createUpdateSqlContainerParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "containerName",
+ "indexingPolicy": {
+ "indexingMode": "Consistent",
+ "automatic": true,
+ "includedPaths": [
+ {
+ "path": "/*",
+ "indexes": [
+ {
+ "kind": "Range",
+ "dataType": "String",
+ "precision": -1
+ },
+ {
+ "kind": "Range",
+ "dataType": "Number",
+ "precision": -1
+ }
+ ]
+ }
+ ],
+ "excludedPaths": []
+ },
+ "partitionKey": {
+ "paths": [
+ "/AccountNumber"
+ ],
+ "kind": "Hash"
+ },
+ "defaultTtl": 100,
+ "uniqueKeyPolicy": {
+ "uniqueKeys": [
+ {
+ "paths": [
+ "/testPath"
+ ]
+ }
+ ]
+ },
+ "conflictResolutionPolicy": {
+ "mode": "LastWriterWins",
+ "conflictResolutionPath": "/path"
+ }
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName",
+ "name": "containerName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "containerName",
+ "indexingPolicy": {
+ "indexingMode": "Consistent",
+ "automatic": true,
+ "includedPaths": [
+ {
+ "path": "/*",
+ "indexes": [
+ {
+ "kind": "Range",
+ "dataType": "String",
+ "precision": -1
+ },
+ {
+ "kind": "Range",
+ "dataType": "Number",
+ "precision": -1
+ }
+ ]
+ }
+ ],
+ "excludedPaths": []
+ },
+ "partitionKey": {
+ "paths": [
+ "/AccountNumber"
+ ],
+ "kind": "Hash"
+ },
+ "defaultTtl": 100,
+ "uniqueKeyPolicy": {
+ "uniqueKeys": [
+ {
+ "paths": [
+ "/testPath"
+ ]
+ }
+ ]
+ },
+ "conflictResolutionPolicy": {
+ "mode": "LastWriterWins",
+ "conflictResolutionPath": "/path"
+ },
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerDelete.json
new file mode 100644
index 000000000000..af6ce02916f9
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerDelete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerGet.json
new file mode 100644
index 000000000000..32e5da74d835
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerGet.json
@@ -0,0 +1,74 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName",
+ "containerName": "containerName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName",
+ "name": "containerName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "containerName",
+ "indexingPolicy": {
+ "indexingMode": "Consistent",
+ "automatic": true,
+ "includedPaths": [
+ {
+ "path": "/*",
+ "indexes": [
+ {
+ "kind": "Range",
+ "dataType": "String",
+ "precision": -1
+ },
+ {
+ "kind": "Range",
+ "dataType": "Number",
+ "precision": -1
+ }
+ ]
+ }
+ ],
+ "excludedPaths": []
+ },
+ "partitionKey": {
+ "paths": [
+ "/AccountNumber"
+ ],
+ "kind": "Hash"
+ },
+ "defaultTtl": 100,
+ "uniqueKeyPolicy": {
+ "uniqueKeys": [
+ {
+ "paths": [
+ "/testPath"
+ ]
+ }
+ ]
+ },
+ "conflictResolutionPolicy": {
+ "mode": "LastWriterWins",
+ "conflictResolutionPath": "/path"
+ },
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ },
+ "options": {
+ "throughput": 400
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerList.json
new file mode 100644
index 000000000000..e177e1f32076
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerList.json
@@ -0,0 +1,74 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName",
+ "name": "containerName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "testctn",
+ "indexingPolicy": {
+ "indexingMode": "Consistent",
+ "automatic": true,
+ "includedPaths": [
+ {
+ "path": "/*",
+ "indexes": [
+ {
+ "kind": "Range",
+ "dataType": "String",
+ "precision": -1
+ },
+ {
+ "kind": "Range",
+ "dataType": "Number",
+ "precision": -1
+ }
+ ]
+ }
+ ],
+ "excludedPaths": []
+ },
+ "partitionKey": {
+ "paths": [
+ "/AccountNumber"
+ ],
+ "kind": "Hash"
+ },
+ "defaultTtl": 100,
+ "uniqueKeyPolicy": {
+ "uniqueKeys": [
+ {
+ "paths": [
+ "/testPath"
+ ]
+ }
+ ]
+ },
+ "conflictResolutionPolicy": {
+ "mode": "LastWriterWins",
+ "conflictResolutionPath": "/path"
+ },
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerThroughputGet.json
new file mode 100644
index 000000000000..7073988a26a5
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerThroughputGet.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerThroughputUpdate.json
new file mode 100644
index 000000000000..ac7dd17654d8
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlContainerThroughputUpdate.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "updateThroughputParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseCreateUpdate.json
new file mode 100644
index 000000000000..e3f8dfd21340
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseCreateUpdate.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "createUpdateSqlDatabaseParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName"
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName",
+ "name": "databaseName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName",
+ "_rid": "CqNBAA==",
+ "_ts": 1449602962,
+ "_etag": "\"00000a00-0000-0000-0000-56672f920000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseDelete.json
new file mode 100644
index 000000000000..8c98cc95443c
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseGet.json
new file mode 100644
index 000000000000..1d03672258f4
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseGet.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName",
+ "name": "databaseName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName",
+ "_rid": "CqNBAA==",
+ "_ts": 1449602962,
+ "_etag": "\"00000a00-0000-0000-0000-56672f920000\"",
+ "_colls": "colls/",
+ "_users": "users/"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseList.json
new file mode 100644
index 000000000000..69ceb84475f5
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseList.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName",
+ "name": "databaseName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "databaseName",
+ "_rid": "CqNBAA==",
+ "_ts": 1449602962,
+ "_etag": "\"00000a00-0000-0000-0000-56672f920000\"",
+ "_colls": "colls/",
+ "_users": "users/"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseThroughputGet.json
new file mode 100644
index 000000000000..038b0a5c847f
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseThroughputGet.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseThroughputUpdate.json
new file mode 100644
index 000000000000..0ab172b34a13
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlDatabaseThroughputUpdate.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "updateThroughputParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureCreateUpdate.json
new file mode 100644
index 000000000000..678e12b46c5e
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureCreateUpdate.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "storedProcedureName": "storedProcedureName",
+ "createUpdateSqlStoredProcedureParameters": {
+ "properties": {
+ "resource": {
+ "id": "storedProcedureName",
+ "body": "body"
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName",
+ "name": "storedProcedureName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures",
+ "properties": {
+ "resource": {
+ "id": "storedProcedureName",
+ "body": "body",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureDelete.json
new file mode 100644
index 000000000000..90253e44e0fb
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureDelete.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "storedProcedureName": "storedProcedureName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureGet.json
new file mode 100644
index 000000000000..bc0a5d255984
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureGet.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "storedProcedureName": "storedProcedureName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName",
+ "name": "storedProcedureName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures",
+ "properties": {
+ "resource": {
+ "id": "storedProcedureName",
+ "body": "body",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureList.json
new file mode 100644
index 000000000000..e63db3d8035e
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlStoredProcedureList.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName",
+ "containerName": "containerName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName",
+ "name": "testctn",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures",
+ "properties": {
+ "resource": {
+ "id": "testctn",
+ "body": "body",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerCreateUpdate.json
new file mode 100644
index 000000000000..7423d0d9fcb6
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerCreateUpdate.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "triggerName": "triggerName",
+ "createUpdateSqlTriggerParameters": {
+ "properties": {
+ "resource": {
+ "id": "triggerName",
+ "body": "body",
+ "triggerType": "triggerType",
+ "triggerOperation": "triggerOperation"
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName",
+ "name": "triggerName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers",
+ "properties": {
+ "resource": {
+ "id": "triggerName",
+ "body": "body",
+ "triggerType": "triggerType",
+ "triggerOperation": "triggerOperation",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerDelete.json
new file mode 100644
index 000000000000..b24501deb866
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerDelete.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "triggerName": "triggerName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerGet.json
new file mode 100644
index 000000000000..e9d2e76a3c1c
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerGet.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "triggerName": "triggerName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName",
+ "name": "triggerName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers",
+ "properties": {
+ "resource": {
+ "id": "triggerName",
+ "body": "body",
+ "triggerType": "triggerType",
+ "triggerOperation": "triggerOperation",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerList.json
new file mode 100644
index 000000000000..480bf1f3150d
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlTriggerList.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName",
+ "containerName": "containerName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName",
+ "name": "testctn",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers",
+ "properties": {
+ "resource": {
+ "id": "testctn",
+ "body": "body",
+ "triggerType": "triggerType",
+ "triggerOperation": "triggerOperation",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json
new file mode 100644
index 000000000000..732d342cac17
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "userDefinedFunctionName": "userDefinedFunctionName",
+ "createUpdateSqlUserDefinedFunctionParameters": {
+ "properties": {
+ "resource": {
+ "id": "userDefinedFunctionName",
+ "body": "body"
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName",
+ "name": "userDefinedFunctionName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions",
+ "properties": {
+ "resource": {
+ "id": "userDefinedFunctionName",
+ "body": "body",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionDelete.json
new file mode 100644
index 000000000000..fef811c93cf9
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionDelete.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "userDefinedFunctionName": "userDefinedFunctionName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionGet.json
new file mode 100644
index 000000000000..bc0e4d82df2a
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionGet.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName",
+ "containerName": "containerName",
+ "userDefinedFunctionName": "userDefinedFunctionName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName",
+ "name": "userDefinedFunctionName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions",
+ "properties": {
+ "resource": {
+ "id": "userDefinedFunctionName",
+ "body": "body",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionList.json
new file mode 100644
index 000000000000..16fe895b4b49
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBSqlUserDefinedFunctionList.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1",
+ "databaseName": "databaseName",
+ "containerName": "containerName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName",
+ "name": "testctn",
+ "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions",
+ "properties": {
+ "resource": {
+ "id": "testctn",
+ "body": "body",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableCreateUpdate.json
new file mode 100644
index 000000000000..510cd11db7e3
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableCreateUpdate.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "tableName": "tableName",
+ "createUpdateTableParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "tableName"
+ },
+ "options": {}
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName",
+ "name": "tableName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/tables",
+ "location": "West US",
+ "properties": {
+ "resource": {
+ "id": "tableName"
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableDelete.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableDelete.json
new file mode 100644
index 000000000000..4f2cd27d3261
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "tableName": "tableName"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableGet.json
new file mode 100644
index 000000000000..ddce6039e8c0
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableGet.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "tableName": "tableName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName",
+ "name": "tableName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/tables",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "tableName",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableList.json
new file mode 100644
index 000000000000..178c56a72582
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableList.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rgName",
+ "accountName": "ddb1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName",
+ "name": "tableName",
+ "type": "Microsoft.DocumentDB/databaseAccounts/tables",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "id": "tableName"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableThroughputGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableThroughputGet.json
new file mode 100644
index 000000000000..62ca81e75dfc
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableThroughputGet.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "tableName": "tableName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableThroughputUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableThroughputUpdate.json
new file mode 100644
index 000000000000..42324a3f2dbc
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBTableThroughputUpdate.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "accountName": "ddb1",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "tableName": "tableName",
+ "updateThroughputParameters": {
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default",
+ "name": "default",
+ "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings",
+ "location": "West US",
+ "tags": {},
+ "properties": {
+ "resource": {
+ "throughput": 400,
+ "minimumThroughput": "400",
+ "offerReplacePending": "true",
+ "_rid": "PD5DALigDgw=",
+ "_ts": 1459200611,
+ "_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/notebook.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/notebook.json
new file mode 100644
index 000000000000..a889e2bf091d
--- /dev/null
+++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/notebook.json
@@ -0,0 +1,461 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Cosmos DB",
+ "description": "Azure Cosmos DB Database Service Resource Provider REST API",
+ "version": "2020-04-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces": {
+ "get": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Gets the notebook workspace resources of an existing Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_ListByDatabaseAccount",
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved notebook workspace resources.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspaceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-04-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceList": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceList.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}": {
+ "get": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Gets the notebook workspace for a Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_Get",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved a specified notebook workspace resource.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-04-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceGet": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Creates the notebook workspace for a Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ },
+ {
+ "name": "notebookCreateUpdateParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspaceCreateUpdateParameters"
+ },
+ "description": "The notebook workspace to create for the current database account."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Creation of notebook workspace will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-04-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceCreate": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceCreate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "description": "Deletes the notebook workspace for a Cosmos DB account.",
+ "operationId": "NotebookWorkspaces_Delete",
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The notebook workspace delete operation will complete asynchronously."
+ },
+ "204": {
+ "description": "The specified notebook workspace does not exist in the database account."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-04-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceDelete": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceDelete.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/listConnectionInfo": {
+ "post": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "operationId": "NotebookWorkspaces_ListConnectionInfo",
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceListConnectionInfo": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceListConnectionInfo.json"
+ }
+ },
+ "description": "Retrieves the connection info for the notebook workspace",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation completed successfully.",
+ "schema": {
+ "$ref": "#/definitions/NotebookWorkspaceConnectionInfoResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-04-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/regenerateAuthToken": {
+ "post": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "operationId": "NotebookWorkspaces_RegenerateAuthToken",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceRegenerateAuthToken": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json"
+ }
+ },
+ "description": "Regenerates the auth token for the notebook workspace",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted. The regenerate auth token operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-04-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/start": {
+ "post": {
+ "tags": [
+ "NotebookWorkspacesResource"
+ ],
+ "operationId": "NotebookWorkspaces_Start",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "CosmosDBNotebookWorkspaceStart": {
+ "$ref": "./examples/CosmosDBNotebookWorkspaceStart.json"
+ }
+ },
+ "description": "Starts the notebook workspace",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/NotebookWorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted. The start operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../stable/2020-04-01/cosmos-db.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "NotebookWorkspaceCreateUpdateParameters": {
+ "description": "Parameters to create a notebook workspace resource",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../stable/2020-04-01/cosmos-db.json#/definitions/ARMProxyResource"
+ }
+ ]
+ },
+ "NotebookWorkspaceListResult": {
+ "description": "A list of notebook workspace resources",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of notebook workspace resources",
+ "items": {
+ "$ref": "#/definitions/NotebookWorkspace"
+ }
+ }
+ }
+ },
+ "NotebookWorkspace": {
+ "description": "A notebook workspace resource",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/NotebookWorkspaceProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../stable/2020-04-01/cosmos-db.json#/definitions/ARMProxyResource"
+ }
+ ]
+ },
+ "NotebookWorkspaceProperties": {
+ "description": "Properties of a notebook workspace resource.",
+ "type": "object",
+ "properties": {
+ "notebookServerEndpoint": {
+ "description": "Specifies the endpoint of Notebook server.",
+ "type": "string",
+ "readOnly": true
+ },
+ "status": {
+ "description": "Status of the notebook workspace. Possible values are: Creating, Online, Deleting, Failed, Updating.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "NotebookWorkspaceConnectionInfoResult": {
+ "description": "The connection info for the given notebook workspace",
+ "properties": {
+ "authToken": {
+ "type": "string",
+ "description": "Specifies auth token used for connecting to Notebook server (uses token-based auth).",
+ "readOnly": true
+ },
+ "notebookServerEndpoint": {
+ "type": "string",
+ "description": "Specifies the endpoint of Notebook server.",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "accountNameParameter": {
+ "name": "accountName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Cosmos DB database account name.",
+ "minLength": 3,
+ "maxLength": 50,
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*"
+ },
+ "NotebookWorkspaceNameParameter": {
+ "name": "notebookWorkspaceName",
+ "in": "path",
+ "description": "The name of the notebook workspace resource.",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "enum": [
+ "default"
+ ],
+ "x-ms-enum": {
+ "name": "NotebookWorkspaceName",
+ "modelAsString": true
+ }
+ }
+ }
+}
diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md
index d27574d7bf91..7d71859a71b3 100644
--- a/specification/cosmos-db/resource-manager/readme.md
+++ b/specification/cosmos-db/resource-manager/readme.md
@@ -27,7 +27,19 @@ These are the global settings for the Cosmos-DB API.
``` yaml
title: CosmosDBManagementClient
openapi-type: arm
-tag: package-2020-03
+tag: package-2020-04
+```
+
+### Tag: package-2020-04
+
+These settings apply only when `--tag=package-2020-04` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-04'
+input-file:
+- Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json
+- Microsoft.DocumentDB/stable/2020-04-01/notebook.json
+- Microsoft.DocumentDB/preview/2019-08-01-preview/privateLinkResources.json
+- Microsoft.DocumentDB/preview/2019-08-01-preview/privateEndpointConnection.json
```
### Tag: package-2020-03
@@ -37,7 +49,7 @@ These settings apply only when `--tag=package-2020-03` is specified on the comma
``` yaml $(tag) == 'package-2020-03'
input-file:
- Microsoft.DocumentDB/stable/2020-03-01/cosmos-db.json
-- Microsoft.DocumentDB/stable/2019-08-01/notebook.json
+- Microsoft.DocumentDB/stable/2020-03-01/notebook.json
- Microsoft.DocumentDB/preview/2019-08-01-preview/privateLinkResources.json
- Microsoft.DocumentDB/preview/2019-08-01-preview/privateEndpointConnection.json
```
@@ -49,7 +61,7 @@ These settings apply only when `--tag=package-2019-12` is specified on the comma
``` yaml $(tag) == 'package-2019-12'
input-file:
- Microsoft.DocumentDB/stable/2019-12-12/cosmos-db.json
-- Microsoft.DocumentDB/stable/2019-08-01/notebook.json
+- Microsoft.DocumentDB/stable/2019-12-12/notebook.json
- Microsoft.DocumentDB/preview/2019-08-01-preview/privateLinkResources.json
- Microsoft.DocumentDB/preview/2019-08-01-preview/privateEndpointConnection.json
```
@@ -209,7 +221,6 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- - repo: azure-sdk-for-net
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
@@ -232,6 +243,10 @@ csharp:
clear-output-folder: true
```
+## Python
+
+See configuration in [readme.python.md](./readme.python.md)
+
## Go
See configuration in [readme.go.md](./readme.go.md)
@@ -251,12 +266,16 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
- - $(this-folder)/Microsoft.DocumentDB/stable/2020-03-01/cosmos-db.json
- - $(this-folder)/Microsoft.DocumentDB/stable/2019-08-01/notebook.json
+ - $(this-folder)/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json
+ - $(this-folder)/Microsoft.DocumentDB/stable/2020-04-01/notebook.json
- $(this-folder)/Microsoft.DocumentDB/preview/2019-08-01-preview/privateLinkResources.json
- $(this-folder)/Microsoft.DocumentDB/preview/2019-08-01-preview/privateEndpointConnection.json
+ - $(this-folder)/Microsoft.DocumentDB/stable/2020-03-01/cosmos-db.json
+ - $(this-folder)/Microsoft.DocumentDB/stable/2020-03-01/notebook.json
- $(this-folder)/Microsoft.DocumentDB/stable/2019-12-12/cosmos-db.json
+ - $(this-folder)/Microsoft.DocumentDB/stable/2019-12-12/notebook.json
- $(this-folder)/Microsoft.DocumentDB/stable/2019-08-01/cosmos-db.json
+ - $(this-folder)/Microsoft.DocumentDB/stable/2019-08-01/notebook.json
- $(this-folder)/Microsoft.DocumentDB/stable/2015-04-08/cosmos-db.json
- $(this-folder)/Microsoft.DocumentDB/stable/2014-04-01/cosmos-db.json
- $(this-folder)/Microsoft.DocumentDB/stable/2015-11-06/cosmos-db.json
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/costmanagement.json
index 25e66dc47ec2..2f0fc9a8dc97 100644
--- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/costmanagement.json
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/costmanagement.json
@@ -33,140 +33,31 @@
}
},
"paths": {
- "/{scope}/providers/Microsoft.CostManagement/dimensions": {
+ "/providers/Microsoft.CostManagement/views": {
"get": {
"tags": [
- "Dimensions"
+ "Views"
],
- "x-ms-odata": "#/definitions/Dimension",
- "operationId": "Dimensions_List",
- "description": "Lists the dimensions by the defined scope.",
+ "operationId": "Views_List",
+ "description": "Lists all views by tenant and object.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "SubscriptionDimensionsList-Legacy": {
- "$ref": "./examples/SubscriptionDimensionsList.json"
- },
- "ResourceGroupDimensionsList-Legacy": {
- "$ref": "./examples/ResourceGroupDimensionsList.json"
- },
- "ManagementGroupDimensionsList-Legacy": {
- "$ref": "./examples/ManagementGroupDimensionsList.json"
- },
- "ManagementGroupDimensionsListExpandAndTop-Legacy": {
- "$ref": "./examples/ManagementGroupDimensionsListExpandAndTop.json"
- },
- "ManagementGroupDimensionsListWithFilter-Legacy": {
- "$ref": "./examples/ManagementGroupDimensionsListWithFilter.json"
- },
- "DepartmentDimensionsList-Legacy": {
- "$ref": "./examples/DepartmentDimensionsList.json"
- },
- "DepartmentDimensionsListExpandAndTop-Legacy": {
- "$ref": "./examples/DepartmentDimensionsListExpandAndTop.json"
- },
- "DepartmentDimensionsListWithFilter-Legacy": {
- "$ref": "./examples/DepartmentDimensionsListWithFilter.json"
- },
- "EnrollmentAccountDimensionsList-Legacy": {
- "$ref": "./examples/EnrollmentAccountDimensionsList.json"
- },
- "EnrollmentAccountDimensionsListExpandAndTop-Legacy": {
- "$ref": "./examples/EnrollmentAccountDimensionsListExpandAndTop.json"
- },
- "EnrollmentAccountDimensionsListWithFilter-Legacy": {
- "$ref": "./examples/EnrollmentAccountDimensionsListWithFilter.json"
- },
- "BillingAccountDimensionsList-Legacy": {
- "$ref": "./examples/BillingAccountDimensionsList.json"
- },
- "BillingAccountDimensionsListExpandAndTop-Legacy": {
- "$ref": "./examples/BillingAccountDimensionsListExpandAndTop.json"
- },
- "BillingAccountDimensionsListWithFilter-Legacy": {
- "$ref": "./examples/BillingAccountDimensionsListWithFilter.json"
- },
- "BillingAccountDimensionsList-Modern": {
- "$ref": "./examples/MCABillingAccountDimensionsList.json"
- },
- "BillingAccountDimensionsListExpandAndTop-Modern": {
- "$ref": "./examples/MCABillingAccountDimensionsListExpandAndTop.json"
- },
- "BillingAccountDimensionsListWithFilter-Modern": {
- "$ref": "./examples/MCABillingAccountDimensionsListWithFilter.json"
- },
- "BillingProfileDimensionsList-Modern": {
- "$ref": "./examples/MCABillingProfileDimensionsList.json"
- },
- "BillingProfileDimensionsListExpandAndTop-Modern": {
- "$ref": "./examples/MCABillingProfileDimensionsListExpandAndTop.json"
- },
- "BillingProfileDimensionsListWithFilter-Modern": {
- "$ref": "./examples/MCABillingProfileDimensionsListWithFilter.json"
- },
- "InvoiceSectionDimensionsList-Modern": {
- "$ref": "./examples/MCAInvoiceSectionDimensionsList.json"
- },
- "InvoiceSectionDimensionsListExpandAndTop-Modern": {
- "$ref": "./examples/MCAInvoiceSectionDimensionsListExpandAndTop.json"
- },
- "InvoiceSectionDimensionsListWithFilter-Modern": {
- "$ref": "./examples/MCAInvoiceSectionDimensionsListWithFilter.json"
- },
- "CustomerDimensionsList-Modern": {
- "$ref": "./examples/MCACustomerDimensionsList.json"
- },
- "CustomerDimensionsListExpandAndTop-Modern": {
- "$ref": "./examples/MCACustomerDimensionsListExpandAndTop.json"
- },
- "CustomerDimensionsListWithFilter-Modern": {
- "$ref": "./examples/MCACustomerDimensionsListWithFilter.json"
+ "PrivateViewList": {
+ "$ref": "./examples/PrivateViewList.json"
}
},
"parameters": [
- {
- "$ref": "#/parameters/scopeDimensionParameter"
- },
{
"$ref": "#/parameters/apiVersionParameter"
- },
- {
- "name": "$filter",
- "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "$expand",
- "description": "May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "$skiptoken",
- "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "$top",
- "description": "May be used to limit the number of results to the most recent N dimension data.",
- "in": "query",
- "required": false,
- "type": "integer",
- "minimum": 1,
- "maximum": 1000
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
- "$ref": "#/definitions/DimensionsListResult"
+ "$ref": "#/definitions/ViewListResult"
}
},
"default": {
@@ -177,75 +68,38 @@
}
},
"x-ms-pageable": {
- "nextLinkName": null
+ "nextLinkName": "nextLink"
}
}
},
- "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions": {
+ "/{scope}/providers/Microsoft.CostManagement/views": {
"get": {
"tags": [
- "Dimensions"
+ "Views"
],
- "x-ms-odata": "#/definitions/Dimension",
- "operationId": "Dimensions_ByExternalCloudProviderType",
- "description": "Lists the dimensions by the external cloud provider type.",
+ "operationId": "Views_ListByScope",
+ "description": "Lists all views at the given scope.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "ExternalBillingAccountDimensionList": {
- "$ref": "./examples/ExternalBillingAccountsDimensions.json"
- },
- "ExternalSubscriptionDimensionList": {
- "$ref": "./examples/ExternalSubscriptionsDimensions.json"
+ "ResourceGroupViewList": {
+ "$ref": "./examples/ViewListByResourceGroup.json"
}
},
"parameters": [
{
- "$ref": "#/parameters/externalCloudProviderTypeParameter"
- },
- {
- "$ref": "#/parameters/externalCloudProviderIdParameter"
+ "$ref": "#/parameters/scopeViewParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
- },
- {
- "name": "$filter",
- "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "$expand",
- "description": "May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "$skiptoken",
- "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.",
- "in": "query",
- "required": false,
- "type": "string"
- },
- {
- "name": "$top",
- "description": "May be used to limit the number of results to the most recent N dimension data.",
- "in": "query",
- "required": false,
- "type": "integer",
- "minimum": 1,
- "maximum": 1000
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
- "$ref": "#/definitions/DimensionsListResult"
+ "$ref": "#/definitions/ViewListResult"
}
},
"default": {
@@ -256,41 +110,23 @@
}
},
"x-ms-pageable": {
- "nextLinkName": null
+ "nextLinkName": "nextLink"
}
}
},
- "/{scope}/providers/Microsoft.CostManagement/alerts": {
+ "/providers/Microsoft.CostManagement/views/{viewName}": {
"get": {
"tags": [
- "Alerts"
+ "Views"
],
- "operationId": "Alerts_List",
- "description": "Lists the alerts for scope defined.",
+ "operationId": "Views_Get",
+ "description": "Gets the view by view name.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "BillingAccountAlerts": {
- "$ref": "./examples/BillingAccountAlerts.json"
- },
- "BillingProfileAlerts": {
- "$ref": "./examples/BillingProfileAlerts.json"
- },
- "InvoiceSectionAlerts": {
- "$ref": "./examples/InvoiceSectionAlerts.json"
- },
- "EnrollmentAccountAlerts": {
- "$ref": "./examples/EnrollmentAccountAlerts.json"
- },
- "DepartmentAlerts": {
- "$ref": "./examples/DepartmentAlerts.json"
- },
- "SubscriptionAlerts": {
- "$ref": "./examples/SubscriptionAlerts.json"
- },
- "ResourceGroupAlerts": {
- "$ref": "./examples/ResourceGroupAlerts.json"
+ "PrivateView": {
+ "$ref": "./examples/PrivateView.json"
}
},
"parameters": [
@@ -298,14 +134,14 @@
"$ref": "#/parameters/apiVersionParameter"
},
{
- "$ref": "#/parameters/scopeAlertParameter"
+ "$ref": "#/parameters/viewNameParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
- "$ref": "#/definitions/AlertsResult"
+ "$ref": "#/definitions/View"
}
},
"default": {
@@ -315,24 +151,19 @@
}
}
}
- }
- },
- "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts": {
- "get": {
+ },
+ "put": {
"tags": [
- "Alerts"
+ "Views"
],
- "operationId": "Alerts_ListExternal",
- "description": "Lists the Alerts for external cloud provider type defined.",
+ "operationId": "Views_CreateOrUpdate",
+ "description": "The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "ExternalBillingAccountAlerts": {
- "$ref": "./examples/ExternalBillingAccountAlerts.json"
- },
- "ExternalSubscriptionAlerts": {
- "$ref": "./examples/ExternalSubscriptionAlerts.json"
+ "CreateOrUpdatePrivateView": {
+ "$ref": "./examples/PrivateViewCreateOrUpdate.json"
}
},
"parameters": [
@@ -340,17 +171,29 @@
"$ref": "#/parameters/apiVersionParameter"
},
{
- "$ref": "#/parameters/externalCloudProviderTypeParameter"
+ "$ref": "#/parameters/viewNameParameter"
},
{
- "$ref": "#/parameters/externalCloudProviderIdParameter"
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/View"
+ },
+ "description": "Parameters supplied to the CreateOrUpdate View operation."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
- "$ref": "#/definitions/AlertsResult"
+ "$ref": "#/definitions/View"
+ }
+ },
+ "201": {
+ "description": "Created.",
+ "schema": {
+ "$ref": "#/definitions/View"
}
},
"default": {
@@ -360,71 +203,35 @@
}
}
}
- }
- },
- "/{scope}/providers/Microsoft.CostManagement/forecast": {
- "post": {
+ },
+ "delete": {
"tags": [
- "Forecast"
+ "Views"
],
- "operationId": "Forecast_Usage",
- "description": "Lists the forecast charges for scope defined.",
+ "operationId": "Views_Delete",
+ "description": "The operation to delete a view.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "BillingAccountForecast": {
- "$ref": "./examples/BillingAccountForecast.json"
- },
- "BillingProfileForecast": {
- "$ref": "./examples/BillingProfileForecast.json"
- },
- "InvoiceSectionForecast": {
- "$ref": "./examples/InvoiceSectionForecast.json"
- },
- "EnrollmentAccountForecast": {
- "$ref": "./examples/EnrollmentAccountForecast.json"
- },
- "DepartmentForecast": {
- "$ref": "./examples/DepartmentForecast.json"
- },
- "SubscriptionForecast": {
- "$ref": "./examples/SubscriptionForecast.json"
- },
- "ResourceGroupForecast": {
- "$ref": "./examples/ResourceGroupForecast.json"
+ "DeletePrivateView": {
+ "$ref": "./examples/PrivateViewDelete.json"
}
},
"parameters": [
- {
- "name": "$filter",
- "description": "May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.",
- "in": "query",
- "required": false,
- "type": "string"
- },
{
"$ref": "#/parameters/apiVersionParameter"
},
{
- "$ref": "#/parameters/scopeForecastParameter"
- },
- {
- "name": "parameters",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/ForecastDefinition"
- },
- "description": "Parameters supplied to the CreateOrUpdate Forecast Config operation."
+ "$ref": "#/parameters/viewNameParameter"
}
],
"responses": {
"200": {
- "description": "OK. The request has succeeded.",
- "schema": {
- "$ref": "#/definitions/QueryResult"
- }
+ "description": "OK. The request has succeeded."
+ },
+ "204": {
+ "description": "NoContent. Resource is not available."
},
"default": {
"description": "Error response describing why the operation failed.",
@@ -435,56 +242,37 @@
}
}
},
- "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast": {
- "post": {
+ "/{scope}/providers/Microsoft.CostManagement/views/{viewName}": {
+ "get": {
"tags": [
- "Forecast"
+ "Views"
],
- "operationId": "Forecast_ExternalCloudProviderUsage",
- "description": "Lists the forecast charges for external cloud provider type defined.",
+ "operationId": "Views_GetByScope",
+ "description": "Gets the view for the defined scope by view name.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "ExternalBillingAccountForecast": {
- "$ref": "./examples/ExternalBillingAccountForecast.json"
- },
- "ExternalSubscriptionForecast": {
- "$ref": "./examples/ExternalSubscriptionForecast.json"
+ "ResourceGroupView": {
+ "$ref": "./examples/ViewByResourceGroup.json"
}
},
"parameters": [
{
- "name": "$filter",
- "description": "May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.",
- "in": "query",
- "required": false,
- "type": "string"
+ "$ref": "#/parameters/scopeViewParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
},
{
- "$ref": "#/parameters/externalCloudProviderTypeParameter"
- },
- {
- "$ref": "#/parameters/externalCloudProviderIdParameter"
- },
- {
- "name": "parameters",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/ForecastDefinition"
- },
- "description": "Parameters supplied to the CreateOrUpdate Forecast Config operation."
+ "$ref": "#/parameters/viewNameParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
- "$ref": "#/definitions/QueryResult"
+ "$ref": "#/definitions/View"
}
},
"default": {
@@ -494,102 +282,52 @@
}
}
}
- }
- },
- "/{scope}/providers/Microsoft.CostManagement/query": {
- "post": {
+ },
+ "put": {
"tags": [
- "Query"
+ "Views"
],
- "operationId": "Query_Usage",
- "description": "Query the usage data for scope defined.",
+ "operationId": "Views_CreateOrUpdateByScope",
+ "description": "The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "SubscriptionQuery-Legacy": {
- "$ref": "./examples/SubscriptionQuery.json"
- },
- "SubscriptionQueryGrouping-Legacy": {
- "$ref": "./examples/SubscriptionQueryGrouping.json"
- },
- "ResourceGroupQuery-Legacy": {
- "$ref": "./examples/ResourceGroupQuery.json"
- },
- "ResourceGroupQueryGrouping-Legacy": {
- "$ref": "./examples/ResourceGroupQueryGrouping.json"
- },
- "BillingAccountQuery-Legacy": {
- "$ref": "./examples/BillingAccountQuery.json"
- },
- "BillingAccountQueryGrouping-Legacy": {
- "$ref": "./examples/BillingAccountQueryGrouping.json"
- },
- "EnrollmentAccountQuery-Legacy": {
- "$ref": "./examples/EnrollmentAccountQuery.json"
- },
- "EnrollmentAccountQueryGrouping-Legacy": {
- "$ref": "./examples/EnrollmentAccountQueryGrouping.json"
- },
- "DepartmentQuery-Legacy": {
- "$ref": "./examples/DepartmentQuery.json"
- },
- "DepartmentQueryGrouping-Legacy": {
- "$ref": "./examples/DepartmentQueryGrouping.json"
- },
- "ManagementGroupQuery-Legacy": {
- "$ref": "./examples/ManagementGroupQuery.json"
- },
- "ManagementGroupQueryGrouping-Legacy": {
- "$ref": "./examples/ManagementGroupQueryGrouping.json"
- },
- "BillingAccountQuery-Modern": {
- "$ref": "./examples/MCABillingAccountQuery.json"
- },
- "BillingAccountQueryGrouping-Modern": {
- "$ref": "./examples/MCABillingAccountQueryGrouping.json"
- },
- "BillingProfileQuery-Modern": {
- "$ref": "./examples/MCABillingProfileQuery.json"
- },
- "BillingProfileQueryGrouping-Modern": {
- "$ref": "./examples/MCABillingProfileQueryGrouping.json"
- },
- "InvoiceSectionQuery-Modern": {
- "$ref": "./examples/MCAInvoiceSectionQuery.json"
- },
- "InvoiceSectionQueryGrouping-Modern": {
- "$ref": "./examples/MCAInvoiceSectionQueryGrouping.json"
- },
- "CustomerQuery-Modern": {
- "$ref": "./examples/MCACustomerQuery.json"
- },
- "CustomerQueryGrouping-Modern": {
- "$ref": "./examples/MCACustomerQueryGrouping.json"
+ "ResourceGroupCreateOrUpdateView": {
+ "$ref": "./examples/ViewCreateOrUpdateByResourceGroup.json"
}
},
"parameters": [
{
- "$ref": "#/parameters/scopeQueryParameter"
+ "$ref": "#/parameters/scopeViewParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
},
+ {
+ "$ref": "#/parameters/viewNameParameter"
+ },
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/QueryDefinition"
+ "$ref": "#/definitions/View"
},
- "description": "Parameters supplied to the CreateOrUpdate Query Config operation."
+ "description": "Parameters supplied to the CreateOrUpdate View operation."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
- "$ref": "#/definitions/QueryResult"
+ "$ref": "#/definitions/View"
+ }
+ },
+ "201": {
+ "description": "Created.",
+ "schema": {
+ "$ref": "#/definitions/View"
}
},
"default": {
@@ -599,52 +337,38 @@
}
}
}
- }
- },
- "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query": {
- "post": {
+ },
+ "delete": {
"tags": [
- "Query"
+ "Views"
],
- "operationId": "Query_UsageByExternalCloudProviderType",
- "description": "Query the usage data for external cloud provider type defined.",
+ "operationId": "Views_DeleteByScope",
+ "description": "The operation to delete a view.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "ExternalBillingAccountQueryList": {
- "$ref": "./examples/ExternalBillingAccountsQuery.json"
- },
- "ExternalSubscriptionsQuery": {
- "$ref": "./examples/ExternalSubscriptionsQuery.json"
+ "ResourceGroupDeleteView": {
+ "$ref": "./examples/ViewDeleteByResourceGroup.json"
}
},
"parameters": [
{
- "$ref": "#/parameters/externalCloudProviderTypeParameter"
- },
- {
- "$ref": "#/parameters/externalCloudProviderIdParameter"
+ "$ref": "#/parameters/scopeViewParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
},
{
- "name": "parameters",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/QueryDefinition"
- },
- "description": "Parameters supplied to the CreateOrUpdate Query Config operation."
+ "$ref": "#/parameters/viewNameParameter"
}
],
"responses": {
"200": {
- "description": "OK. The request has succeeded.",
- "schema": {
- "$ref": "#/definitions/QueryResult"
- }
+ "description": "OK. The request has succeeded."
+ },
+ "204": {
+ "description": "NoContent. Resource is not available."
},
"default": {
"description": "Error response describing why the operation failed.",
@@ -655,49 +379,52 @@
}
}
},
- "/{scope}/providers/Microsoft.CostManagement/exports": {
+ "/{scope}/providers/Microsoft.CostManagement/alerts": {
"get": {
"tags": [
- "Exports"
+ "Alerts"
],
- "operationId": "Exports_List",
- "description": "The operation to list all exports at the given scope.",
+ "operationId": "Alerts_List",
+ "description": "Lists the alerts for scope defined.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "SubscriptionExportList": {
- "$ref": "./examples/ExportListBySubscription.json"
+ "BillingAccountAlerts": {
+ "$ref": "./examples/BillingAccountAlerts.json"
},
- "ResourceGroupExportList": {
- "$ref": "./examples/ExportListByResourceGroup.json"
+ "BillingProfileAlerts": {
+ "$ref": "./examples/BillingProfileAlerts.json"
},
- "BillingAccountExportList": {
- "$ref": "./examples/ExportListByBillingAccount.json"
+ "InvoiceSectionAlerts": {
+ "$ref": "./examples/InvoiceSectionAlerts.json"
},
- "DepartmentExportList": {
- "$ref": "./examples/ExportListByDepartment.json"
+ "EnrollmentAccountAlerts": {
+ "$ref": "./examples/EnrollmentAccountAlerts.json"
},
- "EnrollmentAccountExportList": {
- "$ref": "./examples/ExportListByEnrollmentAccount.json"
+ "DepartmentAlerts": {
+ "$ref": "./examples/DepartmentAlerts.json"
},
- "ManagementGroupExportList": {
- "$ref": "./examples/ExportListByManagementGroup.json"
+ "SubscriptionAlerts": {
+ "$ref": "./examples/SubscriptionAlerts.json"
+ },
+ "ResourceGroupAlerts": {
+ "$ref": "./examples/ResourceGroupAlerts.json"
}
},
"parameters": [
{
- "$ref": "#/parameters/scopeQueryParameter"
+ "$ref": "#/parameters/apiVersionParameter"
},
{
- "$ref": "#/parameters/apiVersionParameter"
+ "$ref": "#/parameters/scopeAlertParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
- "$ref": "#/definitions/ExportListResult"
+ "$ref": "#/definitions/AlertsResult"
}
},
"default": {
@@ -709,52 +436,40 @@
}
}
},
- "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}": {
+ "/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}": {
"get": {
"tags": [
- "Exports"
+ "Alerts"
],
- "operationId": "Exports_Get",
- "description": "The operation to get the export for the defined scope by export name.",
+ "operationId": "Alerts_Get",
+ "description": "Gets the alert for the scope by alert ID.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "SubscriptionExport": {
- "$ref": "./examples/ExportBySubscription.json"
- },
- "ResourceGroupExport": {
- "$ref": "./examples/ExportByResourceGroup.json"
- },
- "BillingAccountExport": {
- "$ref": "./examples/ExportByBillingAccount.json"
- },
- "DepartmentExport": {
- "$ref": "./examples/ExportByDepartment.json"
- },
- "EnrollmentAccountExport": {
- "$ref": "./examples/ExportByEnrollmentAccount.json"
+ "SubscriptionAlerts": {
+ "$ref": "./examples/SingleSubscriptionAlert.json"
},
- "ManagementGroupExport": {
- "$ref": "./examples/ExportByManagementGroup.json"
+ "ResourceGroupAlerts": {
+ "$ref": "./examples/SingleResourceGroupAlert.json"
}
},
"parameters": [
{
- "$ref": "#/parameters/scopeQueryParameter"
+ "$ref": "#/parameters/apiVersionParameter"
},
{
- "$ref": "#/parameters/apiVersionParameter"
+ "$ref": "#/parameters/scopeAlertParameter"
},
{
- "$ref": "#/parameters/exportNameParameter"
+ "$ref": "#/parameters/alertIdParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
- "$ref": "#/definitions/Export"
+ "$ref": "#/definitions/Alert"
}
},
"default": {
@@ -765,66 +480,93 @@
}
}
},
- "put": {
+ "patch": {
"tags": [
- "Exports"
+ "Alerts"
],
- "operationId": "Exports_CreateOrUpdate",
- "description": "The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.",
+ "operationId": "Alerts_Dismiss",
+ "description": "Dismisses the specified alert",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "SubscriptionCreateOrUpdateExport": {
- "$ref": "./examples/ExportCreateOrUpdateBySubscription.json"
- },
- "ResourceGroupCreateOrUpdateExport": {
- "$ref": "./examples/ExportCreateOrUpdateByResourceGroup.json"
- },
- "BillingAccountCreateOrUpdateExport": {
- "$ref": "./examples/ExportCreateOrUpdateByBillingAccount.json"
- },
- "DepartmentCreateOrUpdateExport": {
- "$ref": "./examples/ExportCreateOrUpdateByDepartment.json"
- },
- "EnrollmentAccountCreateOrUpdateExport": {
- "$ref": "./examples/ExportCreateOrUpdateByEnrollmentAccount.json"
+ "SubscriptionAlerts": {
+ "$ref": "./examples/DismissSubscriptionAlerts.json"
},
- "ManagementGroupCreateOrUpdateExport": {
- "$ref": "./examples/ExportCreateOrUpdateByManagementGroup.json"
+ "ResourceGroupAlerts": {
+ "$ref": "./examples/DismissResourceGroupAlerts.json"
}
},
"parameters": [
{
- "$ref": "#/parameters/scopeQueryParameter"
+ "$ref": "#/parameters/apiVersionParameter"
},
{
- "$ref": "#/parameters/apiVersionParameter"
+ "$ref": "#/parameters/scopeAlertParameter"
},
{
- "$ref": "#/parameters/exportNameParameter"
+ "$ref": "#/parameters/alertIdParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/Export"
+ "$ref": "#/definitions/DismissAlertPayload"
},
- "description": "Parameters supplied to the CreateOrUpdate Export operation."
+ "description": "Parameters supplied to the Dismiss Alert operation."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
- "$ref": "#/definitions/Export"
+ "$ref": "#/definitions/Alert"
}
},
- "201": {
- "description": "Created.",
+ "default": {
+ "description": "Error response describing why the operation failed.",
"schema": {
- "$ref": "#/definitions/Export"
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts": {
+ "get": {
+ "tags": [
+ "Alerts"
+ ],
+ "operationId": "Alerts_ListExternal",
+ "description": "Lists the Alerts for external cloud provider type defined.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "ExternalBillingAccountAlerts": {
+ "$ref": "./examples/ExternalBillingAccountAlerts.json"
+ },
+ "ExternalSubscriptionAlerts": {
+ "$ref": "./examples/ExternalSubscriptionAlerts.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/externalCloudProviderTypeParameter"
+ },
+ {
+ "$ref": "#/parameters/externalCloudProviderIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/AlertsResult"
}
},
"default": {
@@ -834,50 +576,132 @@
}
}
}
- },
- "delete": {
+ }
+ },
+ "/{scope}/providers/Microsoft.CostManagement/forecast": {
+ "post": {
"tags": [
- "Exports"
+ "Forecast"
],
- "operationId": "Exports_Delete",
- "description": "The operation to delete a export.",
+ "operationId": "Forecast_Usage",
+ "description": "Lists the forecast charges for scope defined.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
},
"x-ms-examples": {
- "SubscriptionDeleteExport": {
- "$ref": "./examples/ExportDeleteBySubscription.json"
+ "BillingAccountForecast": {
+ "$ref": "./examples/BillingAccountForecast.json"
},
- "ResourceGroupDeleteExport": {
- "$ref": "./examples/ExportDeleteByResourceGroup.json"
+ "BillingProfileForecast": {
+ "$ref": "./examples/BillingProfileForecast.json"
},
- "BillingAccountDeleteExport": {
- "$ref": "./examples/ExportDeleteByBillingAccount.json"
+ "InvoiceSectionForecast": {
+ "$ref": "./examples/InvoiceSectionForecast.json"
},
- "EnrollmentAccountDeleteExport": {
- "$ref": "./examples/ExportDeleteByEnrollmentAccount.json"
+ "EnrollmentAccountForecast": {
+ "$ref": "./examples/EnrollmentAccountForecast.json"
},
- "DepartmentDeleteExport": {
- "$ref": "./examples/ExportDeleteByDepartment.json"
+ "DepartmentForecast": {
+ "$ref": "./examples/DepartmentForecast.json"
},
- "ManagementGroupDeleteExport": {
- "$ref": "./examples/ExportDeleteByManagementGroup.json"
+ "SubscriptionForecast": {
+ "$ref": "./examples/SubscriptionForecast.json"
+ },
+ "ResourceGroupForecast": {
+ "$ref": "./examples/ResourceGroupForecast.json"
}
},
"parameters": [
{
- "$ref": "#/parameters/scopeQueryParameter"
+ "name": "$filter",
+ "description": "May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.",
+ "in": "query",
+ "required": false,
+ "type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
},
{
- "$ref": "#/parameters/exportNameParameter"
+ "$ref": "#/parameters/scopeForecastParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ForecastDefinition"
+ },
+ "description": "Parameters supplied to the CreateOrUpdate Forecast Config operation."
}
],
"responses": {
"200": {
- "description": "OK. The request has succeeded."
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/QueryResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast": {
+ "post": {
+ "tags": [
+ "Forecast"
+ ],
+ "operationId": "Forecast_ExternalCloudProviderUsage",
+ "description": "Lists the forecast charges for external cloud provider type defined.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "ExternalBillingAccountForecast": {
+ "$ref": "./examples/ExternalBillingAccountForecast.json"
+ },
+ "ExternalSubscriptionForecast": {
+ "$ref": "./examples/ExternalSubscriptionForecast.json"
+ }
+ },
+ "parameters": [
+ {
+ "name": "$filter",
+ "description": "May be used to filter forecasts by properties/usageDate (Utc time), properties/chargeType or properties/grain. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/externalCloudProviderTypeParameter"
+ },
+ {
+ "$ref": "#/parameters/externalCloudProviderIdParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ForecastDefinition"
+ },
+ "description": "Parameters supplied to the CreateOrUpdate Forecast Config operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/QueryResult"
+ }
},
"default": {
"description": "Error response describing why the operation failed.",
@@ -885,153 +709,1204 @@
"$ref": "#/definitions/ErrorResponse"
}
}
- }
- }
- },
- "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run": {
- "post": {
- "tags": [
- "Exports"
- ],
- "operationId": "Exports_Execute",
- "description": "The operation to execute a export.",
- "externalDocs": {
- "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.CostManagement/dimensions": {
+ "get": {
+ "tags": [
+ "Dimensions"
+ ],
+ "x-ms-odata": "#/definitions/Dimension",
+ "operationId": "Dimensions_List",
+ "description": "Lists the dimensions by the defined scope.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "SubscriptionDimensionsList-Legacy": {
+ "$ref": "./examples/SubscriptionDimensionsList.json"
+ },
+ "ResourceGroupDimensionsList-Legacy": {
+ "$ref": "./examples/ResourceGroupDimensionsList.json"
+ },
+ "ManagementGroupDimensionsList-Legacy": {
+ "$ref": "./examples/ManagementGroupDimensionsList.json"
+ },
+ "ManagementGroupDimensionsListExpandAndTop-Legacy": {
+ "$ref": "./examples/ManagementGroupDimensionsListExpandAndTop.json"
+ },
+ "ManagementGroupDimensionsListWithFilter-Legacy": {
+ "$ref": "./examples/ManagementGroupDimensionsListWithFilter.json"
+ },
+ "DepartmentDimensionsList-Legacy": {
+ "$ref": "./examples/DepartmentDimensionsList.json"
+ },
+ "DepartmentDimensionsListExpandAndTop-Legacy": {
+ "$ref": "./examples/DepartmentDimensionsListExpandAndTop.json"
+ },
+ "DepartmentDimensionsListWithFilter-Legacy": {
+ "$ref": "./examples/DepartmentDimensionsListWithFilter.json"
+ },
+ "EnrollmentAccountDimensionsList-Legacy": {
+ "$ref": "./examples/EnrollmentAccountDimensionsList.json"
+ },
+ "EnrollmentAccountDimensionsListExpandAndTop-Legacy": {
+ "$ref": "./examples/EnrollmentAccountDimensionsListExpandAndTop.json"
+ },
+ "EnrollmentAccountDimensionsListWithFilter-Legacy": {
+ "$ref": "./examples/EnrollmentAccountDimensionsListWithFilter.json"
+ },
+ "BillingAccountDimensionsList-Legacy": {
+ "$ref": "./examples/BillingAccountDimensionsList.json"
+ },
+ "BillingAccountDimensionsListExpandAndTop-Legacy": {
+ "$ref": "./examples/BillingAccountDimensionsListExpandAndTop.json"
+ },
+ "BillingAccountDimensionsListWithFilter-Legacy": {
+ "$ref": "./examples/BillingAccountDimensionsListWithFilter.json"
+ },
+ "BillingAccountDimensionsList-Modern": {
+ "$ref": "./examples/MCABillingAccountDimensionsList.json"
+ },
+ "BillingAccountDimensionsListExpandAndTop-Modern": {
+ "$ref": "./examples/MCABillingAccountDimensionsListExpandAndTop.json"
+ },
+ "BillingAccountDimensionsListWithFilter-Modern": {
+ "$ref": "./examples/MCABillingAccountDimensionsListWithFilter.json"
+ },
+ "BillingProfileDimensionsList-Modern": {
+ "$ref": "./examples/MCABillingProfileDimensionsList.json"
+ },
+ "BillingProfileDimensionsListExpandAndTop-Modern": {
+ "$ref": "./examples/MCABillingProfileDimensionsListExpandAndTop.json"
+ },
+ "BillingProfileDimensionsListWithFilter-Modern": {
+ "$ref": "./examples/MCABillingProfileDimensionsListWithFilter.json"
+ },
+ "InvoiceSectionDimensionsList-Modern": {
+ "$ref": "./examples/MCAInvoiceSectionDimensionsList.json"
+ },
+ "InvoiceSectionDimensionsListExpandAndTop-Modern": {
+ "$ref": "./examples/MCAInvoiceSectionDimensionsListExpandAndTop.json"
+ },
+ "InvoiceSectionDimensionsListWithFilter-Modern": {
+ "$ref": "./examples/MCAInvoiceSectionDimensionsListWithFilter.json"
+ },
+ "CustomerDimensionsList-Modern": {
+ "$ref": "./examples/MCACustomerDimensionsList.json"
+ },
+ "CustomerDimensionsListExpandAndTop-Modern": {
+ "$ref": "./examples/MCACustomerDimensionsListExpandAndTop.json"
+ },
+ "CustomerDimensionsListWithFilter-Modern": {
+ "$ref": "./examples/MCACustomerDimensionsListWithFilter.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/scopeDimensionParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "$filter",
+ "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "$expand",
+ "description": "May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "$skiptoken",
+ "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "$top",
+ "description": "May be used to limit the number of results to the most recent N dimension data.",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 1000
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/DimensionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions": {
+ "get": {
+ "tags": [
+ "Dimensions"
+ ],
+ "x-ms-odata": "#/definitions/Dimension",
+ "operationId": "Dimensions_ByExternalCloudProviderType",
+ "description": "Lists the dimensions by the external cloud provider type.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "ExternalBillingAccountDimensionList": {
+ "$ref": "./examples/ExternalBillingAccountsDimensions.json"
+ },
+ "ExternalSubscriptionDimensionList": {
+ "$ref": "./examples/ExternalSubscriptionsDimensions.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/externalCloudProviderTypeParameter"
+ },
+ {
+ "$ref": "#/parameters/externalCloudProviderIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "$filter",
+ "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "$expand",
+ "description": "May be used to expand the properties/data within a dimension category. By default, data is not included when listing dimensions.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "$skiptoken",
+ "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "$top",
+ "description": "May be used to limit the number of results to the most recent N dimension data.",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 1000
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/DimensionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.CostManagement/query": {
+ "post": {
+ "tags": [
+ "Query"
+ ],
+ "operationId": "Query_Usage",
+ "description": "Query the usage data for scope defined.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "SubscriptionQuery-Legacy": {
+ "$ref": "./examples/SubscriptionQuery.json"
+ },
+ "SubscriptionQueryGrouping-Legacy": {
+ "$ref": "./examples/SubscriptionQueryGrouping.json"
+ },
+ "ResourceGroupQuery-Legacy": {
+ "$ref": "./examples/ResourceGroupQuery.json"
+ },
+ "ResourceGroupQueryGrouping-Legacy": {
+ "$ref": "./examples/ResourceGroupQueryGrouping.json"
+ },
+ "BillingAccountQuery-Legacy": {
+ "$ref": "./examples/BillingAccountQuery.json"
+ },
+ "BillingAccountQueryGrouping-Legacy": {
+ "$ref": "./examples/BillingAccountQueryGrouping.json"
+ },
+ "EnrollmentAccountQuery-Legacy": {
+ "$ref": "./examples/EnrollmentAccountQuery.json"
+ },
+ "EnrollmentAccountQueryGrouping-Legacy": {
+ "$ref": "./examples/EnrollmentAccountQueryGrouping.json"
+ },
+ "DepartmentQuery-Legacy": {
+ "$ref": "./examples/DepartmentQuery.json"
+ },
+ "DepartmentQueryGrouping-Legacy": {
+ "$ref": "./examples/DepartmentQueryGrouping.json"
+ },
+ "ManagementGroupQuery-Legacy": {
+ "$ref": "./examples/ManagementGroupQuery.json"
+ },
+ "ManagementGroupQueryGrouping-Legacy": {
+ "$ref": "./examples/ManagementGroupQueryGrouping.json"
+ },
+ "BillingAccountQuery-Modern": {
+ "$ref": "./examples/MCABillingAccountQuery.json"
+ },
+ "BillingAccountQueryGrouping-Modern": {
+ "$ref": "./examples/MCABillingAccountQueryGrouping.json"
+ },
+ "BillingProfileQuery-Modern": {
+ "$ref": "./examples/MCABillingProfileQuery.json"
+ },
+ "BillingProfileQueryGrouping-Modern": {
+ "$ref": "./examples/MCABillingProfileQueryGrouping.json"
+ },
+ "InvoiceSectionQuery-Modern": {
+ "$ref": "./examples/MCAInvoiceSectionQuery.json"
+ },
+ "InvoiceSectionQueryGrouping-Modern": {
+ "$ref": "./examples/MCAInvoiceSectionQueryGrouping.json"
+ },
+ "CustomerQuery-Modern": {
+ "$ref": "./examples/MCACustomerQuery.json"
+ },
+ "CustomerQueryGrouping-Modern": {
+ "$ref": "./examples/MCACustomerQueryGrouping.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/scopeQueryParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/QueryDefinition"
+ },
+ "description": "Parameters supplied to the CreateOrUpdate Query Config operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/QueryResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query": {
+ "post": {
+ "tags": [
+ "Query"
+ ],
+ "operationId": "Query_UsageByExternalCloudProviderType",
+ "description": "Query the usage data for external cloud provider type defined.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "ExternalBillingAccountQueryList": {
+ "$ref": "./examples/ExternalBillingAccountsQuery.json"
+ },
+ "ExternalSubscriptionsQuery": {
+ "$ref": "./examples/ExternalSubscriptionsQuery.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/externalCloudProviderTypeParameter"
+ },
+ {
+ "$ref": "#/parameters/externalCloudProviderIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/QueryDefinition"
+ },
+ "description": "Parameters supplied to the CreateOrUpdate Query Config operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/QueryResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.CostManagement/exports": {
+ "get": {
+ "tags": [
+ "Exports"
+ ],
+ "operationId": "Exports_List",
+ "description": "The operation to list all exports at the given scope.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "SubscriptionExportList": {
+ "$ref": "./examples/ExportListBySubscription.json"
+ },
+ "ResourceGroupExportList": {
+ "$ref": "./examples/ExportListByResourceGroup.json"
+ },
+ "BillingAccountExportList": {
+ "$ref": "./examples/ExportListByBillingAccount.json"
+ },
+ "DepartmentExportList": {
+ "$ref": "./examples/ExportListByDepartment.json"
+ },
+ "EnrollmentAccountExportList": {
+ "$ref": "./examples/ExportListByEnrollmentAccount.json"
+ },
+ "ManagementGroupExportList": {
+ "$ref": "./examples/ExportListByManagementGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/scopeQueryParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ExportListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}": {
+ "get": {
+ "tags": [
+ "Exports"
+ ],
+ "operationId": "Exports_Get",
+ "description": "The operation to get the export for the defined scope by export name.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "SubscriptionExport": {
+ "$ref": "./examples/ExportBySubscription.json"
+ },
+ "ResourceGroupExport": {
+ "$ref": "./examples/ExportByResourceGroup.json"
+ },
+ "BillingAccountExport": {
+ "$ref": "./examples/ExportByBillingAccount.json"
+ },
+ "DepartmentExport": {
+ "$ref": "./examples/ExportByDepartment.json"
+ },
+ "EnrollmentAccountExport": {
+ "$ref": "./examples/ExportByEnrollmentAccount.json"
+ },
+ "ManagementGroupExport": {
+ "$ref": "./examples/ExportByManagementGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/scopeQueryParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/exportNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Export"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Exports"
+ ],
+ "operationId": "Exports_CreateOrUpdate",
+ "description": "The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "SubscriptionCreateOrUpdateExport": {
+ "$ref": "./examples/ExportCreateOrUpdateBySubscription.json"
+ },
+ "ResourceGroupCreateOrUpdateExport": {
+ "$ref": "./examples/ExportCreateOrUpdateByResourceGroup.json"
+ },
+ "BillingAccountCreateOrUpdateExport": {
+ "$ref": "./examples/ExportCreateOrUpdateByBillingAccount.json"
+ },
+ "DepartmentCreateOrUpdateExport": {
+ "$ref": "./examples/ExportCreateOrUpdateByDepartment.json"
+ },
+ "EnrollmentAccountCreateOrUpdateExport": {
+ "$ref": "./examples/ExportCreateOrUpdateByEnrollmentAccount.json"
+ },
+ "ManagementGroupCreateOrUpdateExport": {
+ "$ref": "./examples/ExportCreateOrUpdateByManagementGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/scopeQueryParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/exportNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Export"
+ },
+ "description": "Parameters supplied to the CreateOrUpdate Export operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/Export"
+ }
+ },
+ "201": {
+ "description": "Created.",
+ "schema": {
+ "$ref": "#/definitions/Export"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Exports"
+ ],
+ "operationId": "Exports_Delete",
+ "description": "The operation to delete a export.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "SubscriptionDeleteExport": {
+ "$ref": "./examples/ExportDeleteBySubscription.json"
+ },
+ "ResourceGroupDeleteExport": {
+ "$ref": "./examples/ExportDeleteByResourceGroup.json"
+ },
+ "BillingAccountDeleteExport": {
+ "$ref": "./examples/ExportDeleteByBillingAccount.json"
+ },
+ "EnrollmentAccountDeleteExport": {
+ "$ref": "./examples/ExportDeleteByEnrollmentAccount.json"
+ },
+ "DepartmentDeleteExport": {
+ "$ref": "./examples/ExportDeleteByDepartment.json"
+ },
+ "ManagementGroupDeleteExport": {
+ "$ref": "./examples/ExportDeleteByManagementGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/scopeQueryParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/exportNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run": {
+ "post": {
+ "tags": [
+ "Exports"
+ ],
+ "operationId": "Exports_Execute",
+ "description": "The operation to execute a export.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "SubscriptionExecuteExport": {
+ "$ref": "./examples/ExportExecutionBySubscription.json"
+ },
+ "ResourceGroupExecuteExport": {
+ "$ref": "./examples/ExportExecutionByResourceGroup.json"
+ },
+ "BillingAccountExecuteExport": {
+ "$ref": "./examples/ExportExecutionByBillingAccount.json"
+ },
+ "DepartmentExecuteExport": {
+ "$ref": "./examples/ExportExecutionByDepartment.json"
+ },
+ "EnrollmentAccountExecuteExport": {
+ "$ref": "./examples/ExportExecutionByEnrollmentAccount.json"
+ },
+ "ManagementGroupExecuteExport": {
+ "$ref": "./examples/ExportExecutionByManagementGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/scopeQueryParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/exportNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": {
+ "get": {
+ "tags": [
+ "Exports"
+ ],
+ "operationId": "Exports_GetExecutionHistory",
+ "description": "The operation to get the execution history of an export for the defined scope by export name.",
+ "externalDocs": {
+ "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
+ },
+ "x-ms-examples": {
+ "SubscriptionExecutionHistoryExport": {
+ "$ref": "./examples/ExportExecutionListBySubscription.json"
+ },
+ "ResourceGroupExecutionHistoryExport": {
+ "$ref": "./examples/ExportExecutionListByResourceGroup.json"
+ },
+ "BillingAccountExecutionHistoryExport": {
+ "$ref": "./examples/ExportExecutionListByBillingAccount.json"
+ },
+ "DepartmentExecutionHistoryExport": {
+ "$ref": "./examples/ExportExecutionListByDepartment.json"
+ },
+ "EnrollmentAccountExecutionHistoryExport": {
+ "$ref": "./examples/ExportExecutionListByEnrollmentAccount.json"
+ },
+ "ManagementGroupExecutionHistoryExport": {
+ "$ref": "./examples/ExportExecutionListByManagementGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/scopeQueryParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/exportNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ExportExecutionListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.CostManagement/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "operationId": "Operations_List",
+ "description": "Lists all of the available cost management REST API operations.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ReportConfigDefinition": {
+ "description": "The definition of a report config.",
+ "properties": {
+ "type": {
+ "description": "The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.",
+ "type": "string",
+ "enum": [
+ "Usage"
+ ],
+ "x-ms-enum": {
+ "name": "ReportType",
+ "modelAsString": true
+ }
+ },
+ "timeframe": {
+ "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.",
+ "type": "string",
+ "enum": [
+ "WeekToDate",
+ "MonthToDate",
+ "YearToDate",
+ "Custom"
+ ],
+ "x-ms-enum": {
+ "name": "ReportTimeframeType",
+ "modelAsString": true
+ }
+ },
+ "timePeriod": {
+ "description": "Has time period for pulling data for the report.",
+ "$ref": "#/definitions/ReportConfigTimePeriod"
+ },
+ "dataset": {
+ "description": "Has definition for data in this report config.",
+ "$ref": "#/definitions/ReportConfigDataset"
+ }
+ },
+ "required": [
+ "type",
+ "timeframe"
+ ]
+ },
+ "ReportConfigTimePeriod": {
+ "description": "The start and end date for pulling data for the report.",
+ "properties": {
+ "from": {
+ "description": "The start date to pull data from.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "to": {
+ "description": "The end date to pull data to.",
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "from",
+ "to"
+ ]
+ },
+ "ReportConfigDataset": {
+ "description": "The definition of data present in the report.",
+ "properties": {
+ "granularity": {
+ "description": "The granularity of rows in the report.",
+ "type": "string",
+ "enum": [
+ "Daily",
+ "Monthly"
+ ],
+ "x-ms-enum": {
+ "name": "ReportGranularityType",
+ "modelAsString": true
+ }
+ },
+ "configuration": {
+ "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.",
+ "$ref": "#/definitions/ReportConfigDatasetConfiguration"
+ },
+ "aggregation": {
+ "type": "object",
+ "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.",
+ "additionalProperties": {
+ "type": "object",
+ "$ref": "#/definitions/ReportConfigAggregation"
+ },
+ "maxItems": 2
+ },
+ "grouping": {
+ "description": "Array of group by expression to use in the report. Report can have up to 2 group by clauses.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReportConfigGrouping"
+ },
+ "maxItems": 2
+ },
+ "sorting": {
+ "description": "Array of order by expression to use in the report.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReportConfigSorting"
+ }
+ },
+ "filter": {
+ "type": "object",
+ "description": "Has filter expression to use in the report.",
+ "$ref": "#/definitions/ReportConfigFilter"
+ }
+ }
+ },
+ "ReportConfigDatasetConfiguration": {
+ "description": "The configuration of dataset in the report.",
+ "properties": {
+ "columns": {
+ "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "ReportConfigAggregation": {
+ "description": "The aggregation expression to be used in the report.",
+ "properties": {
+ "name": {
+ "description": "The name of the column to aggregate.",
+ "type": "string"
+ },
+ "function": {
+ "description": "The name of the aggregation function to use.",
+ "type": "string",
+ "enum": [
+ "Sum"
+ ],
+ "x-ms-enum": {
+ "name": "FunctionType",
+ "modelAsString": true
+ }
+ }
+ },
+ "required": [
+ "name",
+ "function"
+ ]
+ },
+ "ReportConfigSorting": {
+ "description": "The order by expression to be used in the report.",
+ "properties": {
+ "direction": {
+ "description": "Direction of sort.",
+ "type": "string",
+ "enum": [
+ "Ascending",
+ "Descending"
+ ]
+ },
+ "name": {
+ "description": "The name of the column to sort.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "ReportConfigGrouping": {
+ "description": "The group by expression to be used in the report.",
+ "properties": {
+ "type": {
+ "description": "Has type of the column to group.",
+ "$ref": "#/definitions/ReportConfigColumnType"
+ },
+ "name": {
+ "description": "The name of the column to group. This version supports subscription lowest possible grain.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ]
+ },
+ "ReportConfigFilter": {
+ "description": "The filter expression to be used in the report.",
+ "properties": {
+ "and": {
+ "description": "The logical \"AND\" expression. Must have at least 2 items.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReportConfigFilter"
+ },
+ "minItems": 2
+ },
+ "or": {
+ "description": "The logical \"OR\" expression. Must have at least 2 items.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReportConfigFilter"
+ },
+ "minItems": 2
+ },
+ "not": {
+ "description": "The logical \"NOT\" expression.",
+ "$ref": "#/definitions/ReportConfigFilter"
+ },
+ "dimension": {
+ "description": "Has comparison expression for a dimension",
+ "$ref": "#/definitions/ReportConfigComparisonExpression"
+ },
+ "tag": {
+ "description": "Has comparison expression for a tag",
+ "$ref": "#/definitions/ReportConfigComparisonExpression"
+ }
+ }
+ },
+ "ReportConfigColumnType": {
+ "description": "The type of the column in the report.",
+ "type": "string",
+ "enum": [
+ "Tag",
+ "Dimension"
+ ],
+ "x-ms-enum": {
+ "name": "ReportConfigColumnType",
+ "modelAsString": true
+ }
+ },
+ "ReportConfigComparisonExpression": {
+ "description": "The comparison expression to be used in the report.",
+ "properties": {
+ "name": {
+ "description": "The name of the column to use in comparison.",
+ "type": "string"
+ },
+ "operator": {
+ "description": "The operator to use for comparison.",
+ "type": "string",
+ "enum": [
+ "In",
+ "Contains"
+ ],
+ "x-ms-enum": {
+ "name": "OperatorType",
+ "modelAsString": true
+ }
+ },
+ "values": {
+ "description": "Array of values to use for comparison",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1
+ }
+ },
+ "required": [
+ "name",
+ "operator",
+ "values"
+ ]
+ },
+ "ViewListResult": {
+ "description": "Result of listing views. It contains a list of available views.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of views.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/View"
+ }
+ },
+ "nextLink": {
+ "description": "The link (url) to the next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "View": {
+ "description": "States and configurations of Cost Analysis.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ViewProperties",
+ "title": "View properties"
+ }
+ }
+ },
+ "ViewProperties": {
+ "type": "object",
+ "description": "The properties of the view.",
+ "properties": {
+ "displayName": {
+ "description": "User input name of the view. Required.",
+ "type": "string"
+ },
+ "scope": {
+ "description": "Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.",
+ "type": "string"
+ },
+ "createdOn": {
+ "description": "Date the user created this view.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "modifiedOn": {
+ "description": "Date when the user last modified this view.",
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "query": {
+ "description": "Query body configuration. Required.",
+ "type": "object",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ReportConfigDefinition"
+ },
+ "chart": {
+ "description": "Chart type of the main view in Cost Analysis. Required.",
+ "type": "string",
+ "enum": [
+ "Area",
+ "Line",
+ "StackedColumn",
+ "GroupedColumn",
+ "Table"
+ ],
+ "x-ms-enum": {
+ "name": "ChartType",
+ "modelAsString": true
+ }
},
- "x-ms-examples": {
- "SubscriptionExecuteExport": {
- "$ref": "./examples/ExportExecutionBySubscription.json"
- },
- "ResourceGroupExecuteExport": {
- "$ref": "./examples/ExportExecutionByResourceGroup.json"
- },
- "BillingAccountExecuteExport": {
- "$ref": "./examples/ExportExecutionByBillingAccount.json"
- },
- "DepartmentExecuteExport": {
- "$ref": "./examples/ExportExecutionByDepartment.json"
- },
- "EnrollmentAccountExecuteExport": {
- "$ref": "./examples/ExportExecutionByEnrollmentAccount.json"
- },
- "ManagementGroupExecuteExport": {
- "$ref": "./examples/ExportExecutionByManagementGroup.json"
+ "accumulated": {
+ "description": "Show costs accumulated over time.",
+ "type": "string",
+ "enum": [
+ "true",
+ "false"
+ ],
+ "x-ms-enum": {
+ "name": "AccumulatedType",
+ "modelAsString": true
}
},
- "parameters": [
- {
- "$ref": "#/parameters/scopeQueryParameter"
- },
- {
- "$ref": "#/parameters/apiVersionParameter"
- },
- {
- "$ref": "#/parameters/exportNameParameter"
+ "metric": {
+ "description": "Metric to use when displaying costs.",
+ "type": "string",
+ "enum": [
+ "ActualCost",
+ "AmortizedCost",
+ "AHUB"
+ ],
+ "x-ms-enum": {
+ "name": "MetricType",
+ "modelAsString": true
}
- ],
- "responses": {
- "200": {
- "description": "OK. The request has succeeded."
- },
- "default": {
- "description": "Error response describing why the operation failed.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
+ },
+ "kpis": {
+ "description": "List of KPIs to show in Cost Analysis UI.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/KpiProperties"
+ }
+ },
+ "pivots": {
+ "description": "Configuration of 3 sub-views in the Cost Analysis UI.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PivotProperties"
}
}
}
},
- "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory": {
- "get": {
- "tags": [
- "Exports"
- ],
- "operationId": "Exports_GetExecutionHistory",
- "description": "The operation to get the execution history of an export for the defined scope by export name.",
- "externalDocs": {
- "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/"
- },
- "x-ms-examples": {
- "SubscriptionExecutionHistoryExport": {
- "$ref": "./examples/ExportExecutionListBySubscription.json"
- },
- "ResourceGroupExecutionHistoryExport": {
- "$ref": "./examples/ExportExecutionListByResourceGroup.json"
- },
- "BillingAccountExecutionHistoryExport": {
- "$ref": "./examples/ExportExecutionListByBillingAccount.json"
- },
- "DepartmentExecutionHistoryExport": {
- "$ref": "./examples/ExportExecutionListByDepartment.json"
- },
- "EnrollmentAccountExecutionHistoryExport": {
- "$ref": "./examples/ExportExecutionListByEnrollmentAccount.json"
- },
- "ManagementGroupExecutionHistoryExport": {
- "$ref": "./examples/ExportExecutionListByManagementGroup.json"
+ "KpiProperties": {
+ "description": "Each KPI must contain a 'type' and 'enabled' key.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "description": "KPI type (Forecast, Budget).",
+ "type": "string",
+ "enum": [
+ "Forecast",
+ "Budget"
+ ],
+ "x-ms-enum": {
+ "name": "KpiTypeType",
+ "modelAsString": true
}
},
- "parameters": [
- {
- "$ref": "#/parameters/scopeQueryParameter"
- },
- {
- "$ref": "#/parameters/apiVersionParameter"
- },
- {
- "$ref": "#/parameters/exportNameParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "OK. The request has succeeded.",
- "schema": {
- "$ref": "#/definitions/ExportExecutionListResult"
- }
- },
- "default": {
- "description": "Error response describing why the operation failed.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- }
+ "id": {
+ "description": "ID of resource related to metric (budget).",
+ "type": "string"
+ },
+ "enabled": {
+ "description": "show the KPI in the UI?",
+ "type": "boolean"
}
}
},
- "/providers/Microsoft.CostManagement/operations": {
- "get": {
- "tags": [
- "Operations"
- ],
- "operationId": "Operations_List",
- "description": "Lists all of the available cost management REST API operations.",
- "parameters": [
- {
- "$ref": "#/parameters/apiVersionParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "OK. The request has succeeded.",
- "schema": {
- "$ref": "#/definitions/OperationListResult"
- }
- },
- "default": {
- "description": "Error response describing why the operation failed.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
+ "PivotProperties": {
+ "description": "Each pivot must contain a 'type' and 'name'.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "description": "Data type to show in view.",
+ "type": "string",
+ "enum": [
+ "Dimension",
+ "TagKey"
+ ],
+ "x-ms-enum": {
+ "name": "PivotTypeType",
+ "modelAsString": true
}
},
- "x-ms-pageable": {
- "nextLinkName": "nextLink"
+ "name": {
+ "description": "Data field to show in view.",
+ "type": "string"
}
}
- }
- },
- "definitions": {
+ },
"ErrorDetails": {
"description": "The details of the error.",
"properties": {
@@ -1086,6 +1961,31 @@
},
"x-ms-azure-resource": true
},
+ "ProxyResource": {
+ "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."
+ },
+ "eTag": {
+ "type": "string",
+ "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not."
+ }
+ },
+ "x-ms-azure-resource": true
+ },
"DimensionsListResult": {
"description": "Result of listing dimensions. It contains a list of available dimensions.",
"type": "object",
@@ -1215,15 +2115,58 @@
"properties": {
"type": {
"description": "type of alert",
- "type": "string"
+ "type": "string",
+ "enum": [
+ "Budget",
+ "Invoice",
+ "Credit",
+ "Quota",
+ "General",
+ "xCloud",
+ "BudgetForecast"
+ ],
+ "x-ms-enum": {
+ "name": "AlertType",
+ "modelAsString": true
+ }
},
"category": {
"description": "Alert category",
- "type": "string"
+ "type": "string",
+ "enum": [
+ "Cost",
+ "Usage",
+ "Billing",
+ "System"
+ ],
+ "x-ms-enum": {
+ "name": "AlertCategory",
+ "modelAsString": true
+ }
},
"criteria": {
"description": "Criteria that triggered alert",
- "type": "string"
+ "type": "string",
+ "enum": [
+ "CostThresholdExceeded",
+ "UsageThresholdExceeded",
+ "CreditThresholdApproaching",
+ "CreditThresholdReached",
+ "QuotaThresholdApproaching",
+ "QuotaThresholdReached",
+ "MultiCurrency",
+ "ForecastCostThresholdExceeded",
+ "ForecastUsageThresholdExceeded",
+ "InvoiceDueDateApproaching",
+ "InvoiceDueDateReached",
+ "CrossCloudNewDataAvailable",
+ "CrossCloudCollectionError",
+ "GeneralThresholdError"
+ ],
+ "x-ms-enum": {
+ "name": "AlertCriteria",
+ "modelAsString": true
+ }
}
}
},
@@ -1233,7 +2176,15 @@
},
"source": {
"description": "Source of alert",
- "type": "string"
+ "type": "string",
+ "enum": [
+ "Preset",
+ "User"
+ ],
+ "x-ms-enum": {
+ "name": "AlertSource",
+ "modelAsString": true
+ }
},
"details": {
"description": "Alert details",
@@ -1241,7 +2192,20 @@
"properties": {
"timeGrainType": {
"description": "Type of timegrain cadence",
- "type": "string"
+ "type": "string",
+ "enum": [
+ "None",
+ "Monthly",
+ "Quarterly",
+ "Annually",
+ "BillingMonth",
+ "BillingQuarter",
+ "BillingAnnual"
+ ],
+ "x-ms-enum": {
+ "name": "AlertTimeGrainType",
+ "modelAsString": true
+ }
},
"periodStartDate": {
"description": "datetime of periodStartDate",
@@ -1278,7 +2242,19 @@
},
"operator": {
"description": "operator used to compare currentSpend with amount",
- "type": "string"
+ "type": "string",
+ "enum": [
+ "None",
+ "EqualTo",
+ "GreaterThan",
+ "GreaterThanOrEqualTo",
+ "LessThan",
+ "LessThanOrEqualTo"
+ ],
+ "x-ms-enum": {
+ "name": "AlertOperator",
+ "modelAsString": true
+ }
},
"amount": {
"description": "budget threshold amount",
@@ -1327,7 +2303,18 @@
},
"status": {
"description": "alert status",
- "type": "string"
+ "type": "string",
+ "enum": [
+ "None",
+ "Active",
+ "Overridden",
+ "Resolved",
+ "Dismissed"
+ ],
+ "x-ms-enum": {
+ "name": "AlertStatus",
+ "modelAsString": true
+ }
},
"creationTime": {
"description": "dateTime in which alert was created",
@@ -1351,6 +2338,16 @@
}
}
},
+ "DismissAlertPayload": {
+ "description": "The request payload to update an alert",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/AlertProperties",
+ "title": "Alert properties"
+ }
+ }
+ },
"QueryResult": {
"description": "Result of query. It contains all columns listed under groupings and aggregation.",
"type": "object",
@@ -1997,6 +2994,22 @@
}
},
"parameters": {
+ "viewNameParameter": {
+ "name": "viewName",
+ "in": "path",
+ "description": "View name",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "scopeViewParameter": {
+ "name": "scope",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope.",
+ "x-ms-parameter-location": "method"
+ },
"scopeDimensionParameter": {
"name": "scope",
"in": "path",
@@ -2118,6 +3131,15 @@
"type": "string",
"description": "This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations.",
"x-ms-parameter-location": "method"
+ },
+ "alertIdParameter": {
+ "name": "alertId",
+ "in": "path",
+ "description": "Alert ID",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "x-ms-skip-url-encoding": true
}
}
}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/DismissResourceGroupAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/DismissResourceGroupAlerts.json
new file mode 100644
index 000000000000..d72950db27ea
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/DismissResourceGroupAlerts.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "api-version": "2018-08-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "ScreenSharingTest-peer",
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer",
+ "alertId": "22222222-2222-2222-2222-222222222222",
+ "parameters": {
+ "properties": {
+ "status": "Dismissed"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222",
+ "name": "22222222-2222-2222-2222-222222222222",
+ "type": "Microsoft.CostManagement/alerts",
+ "properties": {
+ "definition": {
+ "type": "Budget",
+ "category": "Cost",
+ "criteria": "CostThresholdExceeded"
+ },
+ "description": "",
+ "source": "Preset",
+ "details": {
+ "timeGrainType": "Quarterly",
+ "periodStartDate": "2020-03-01T00:00:00Z",
+ "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01",
+ "resourceGroupFilter": [],
+ "resourceFilter": [],
+ "meterFilter": [],
+ "tagFilter": {},
+ "threshold": 0.8,
+ "operator": "GreaterThan",
+ "amount": 200000.0,
+ "unit": "USD",
+ "currentSpend": 161000.12,
+ "contactEmails": [
+ "1234@contoso.com"
+ ],
+ "contactGroups": [],
+ "contactRoles": [],
+ "overridingAlert": null
+ },
+ "costEntityId": "budget1",
+ "status": "Dismissed",
+ "creationTime": "2020-04-27T11:07:52.7143901Z",
+ "closeTime": "0001-01-01T00:00:00",
+ "modificationTime": "2020-04-28T11:06:02.8999373Z",
+ "statusModificationUserName": null,
+ "statusModificationTime": "0001-01-01T00:00:00"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/DismissSubscriptionAlerts.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/DismissSubscriptionAlerts.json
new file mode 100644
index 000000000000..2b9751ea4241
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/DismissSubscriptionAlerts.json
@@ -0,0 +1,58 @@
+{
+ "parameters": {
+ "api-version": "2018-08-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000",
+ "alertId": "22222222-2222-2222-2222-222222222222",
+ "parameters": {
+ "properties": {
+ "status": "Dismissed"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222",
+ "name": "22222222-2222-2222-2222-222222222222",
+ "type": "Microsoft.CostManagement/alerts",
+ "properties": {
+ "definition": {
+ "type": "Budget",
+ "category": "Cost",
+ "criteria": "CostThresholdExceeded"
+ },
+ "description": "",
+ "source": "Preset",
+ "details": {
+ "timeGrainType": "Quarterly",
+ "periodStartDate": "2020-03-01T00:00:00Z",
+ "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01",
+ "resourceGroupFilter": [],
+ "resourceFilter": [],
+ "meterFilter": [],
+ "tagFilter": {},
+ "threshold": 0.8,
+ "operator": "GreaterThan",
+ "amount": 200000.0,
+ "unit": "USD",
+ "currentSpend": 161000.12,
+ "contactEmails": [
+ "1234@contoso.com"
+ ],
+ "contactGroups": [],
+ "contactRoles": [],
+ "overridingAlert": null
+ },
+ "costEntityId": "budget1",
+ "status": "Dismissed",
+ "creationTime": "2020-04-27T11:07:52.7143901Z",
+ "closeTime": "0001-01-01T00:00:00",
+ "modificationTime": "2020-04-28T11:06:02.8999373Z",
+ "statusModificationUserName": null,
+ "statusModificationTime": "0001-01-01T00:00:00"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateView.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateView.json
new file mode 100644
index 000000000000..7e2e12355b65
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateView.json
@@ -0,0 +1,69 @@
+{
+ "parameters": {
+ "api-version": "2019-11-01",
+ "viewName": "swaggerExample"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.CostManagement/views/swaggerExample",
+ "name": "swaggerExample",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ff9fe66f1d10\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "scope": "",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewCreateOrUpdate.json
new file mode 100644
index 000000000000..d18aabd205b7
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewCreateOrUpdate.json
@@ -0,0 +1,185 @@
+{
+ "parameters": {
+ "api-version": "2019-11-01",
+ "viewName": "swaggerExample",
+ "parameters": {
+ "eTag": "\"1d4ff9fe66f1d10\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "id": "/providers/Microsoft.CostManagement/views/swaggerExample",
+ "name": "swaggerExample",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ffa5a9c2430c\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "scope": "",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.CostManagement/views/swaggerExample",
+ "name": "swaggerExample",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ffa5a9c2430c\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "scope": "",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewDelete.json
new file mode 100644
index 000000000000..72622894ca84
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewDelete.json
@@ -0,0 +1,10 @@
+{
+ "parameters": {
+ "api-version": "2019-11-01",
+ "viewName": "TestView"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewList.json
new file mode 100644
index 000000000000..fa4fa0e07de5
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/PrivateViewList.json
@@ -0,0 +1,131 @@
+{
+ "parameters": {
+ "api-version": "2019-11-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.CostManagement/views/swaggerExample",
+ "name": "swaggerExample",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ff9fe66f1d10\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "scope": "",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ },
+ {
+ "id": "/providers/Microsoft.CostManagement/views/swaggerExample2",
+ "name": "swaggerExample2",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ffa5a9c2430c\"",
+ "properties": {
+ "displayName": "swagger Example 2",
+ "scope": "",
+ "query": {
+ "type": "Usage",
+ "timeframe": "LastMonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "GroupedColumn",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/SingleResourceGroupAlert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/SingleResourceGroupAlert.json
new file mode 100644
index 000000000000..d4f3f72ef83a
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/SingleResourceGroupAlert.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "api-version": "2018-08-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "ScreenSharingTest-peer",
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer",
+ "alertId": "22222222-2222-2222-2222-222222222222"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222",
+ "name": "22222222-2222-2222-2222-222222222222",
+ "type": "Microsoft.CostManagement/alerts",
+ "properties": {
+ "definition": {
+ "type": "Budget",
+ "category": "Cost",
+ "criteria": "CostThresholdExceeded"
+ },
+ "description": "",
+ "source": "Preset",
+ "details": {
+ "timeGrainType": "Quarterly",
+ "periodStartDate": "2020-03-01T00:00:00Z",
+ "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01",
+ "resourceGroupFilter": [],
+ "resourceFilter": [],
+ "meterFilter": [],
+ "tagFilter": {},
+ "threshold": 0.8,
+ "operator": "GreaterThan",
+ "amount": 200000.0,
+ "unit": "USD",
+ "currentSpend": 161000.12,
+ "contactEmails": [
+ "1234@contoso.com"
+ ],
+ "contactGroups": [],
+ "contactRoles": [],
+ "overridingAlert": null
+ },
+ "costEntityId": "budget1",
+ "status": "Active",
+ "creationTime": "2020-04-27T11:07:52.7143901Z",
+ "closeTime": "0001-01-01T00:00:00",
+ "modificationTime": "2020-04-28T11:06:02.8999373Z",
+ "statusModificationUserName": null,
+ "statusModificationTime": "0001-01-01T00:00:00"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/SingleSubscriptionAlert.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/SingleSubscriptionAlert.json
new file mode 100644
index 000000000000..cd881b8ea598
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/SingleSubscriptionAlert.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "api-version": "2018-08-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000",
+ "alertId": "22222222-2222-2222-2222-222222222222"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/alerts/22222222-2222-2222-2222-222222222222",
+ "name": "22222222-2222-2222-2222-222222222222",
+ "type": "Microsoft.CostManagement/alerts",
+ "properties": {
+ "definition": {
+ "type": "Budget",
+ "category": "Cost",
+ "criteria": "CostThresholdExceeded"
+ },
+ "description": "",
+ "source": "Preset",
+ "details": {
+ "timeGrainType": "Quarterly",
+ "periodStartDate": "2020-03-01T00:00:00Z",
+ "triggeredBy": "22222222-2222-2222-2222-222222222222_1_01",
+ "resourceGroupFilter": [],
+ "resourceFilter": [],
+ "meterFilter": [],
+ "tagFilter": {},
+ "threshold": 0.8,
+ "operator": "GreaterThan",
+ "amount": 200000.0,
+ "unit": "USD",
+ "currentSpend": 161000.12,
+ "contactEmails": [
+ "1234@contoso.com"
+ ],
+ "contactGroups": [],
+ "contactRoles": [],
+ "overridingAlert": null
+ },
+ "costEntityId": "budget1",
+ "status": "Active",
+ "creationTime": "2020-04-27T11:07:52.7143901Z",
+ "closeTime": "0001-01-01T00:00:00",
+ "modificationTime": "2020-04-28T11:06:02.8999373Z",
+ "statusModificationUserName": null,
+ "statusModificationTime": "0001-01-01T00:00:00"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewByResourceGroup.json
new file mode 100644
index 000000000000..80edf823d58b
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewByResourceGroup.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "api-version": "2019-11-01",
+ "viewName": "swaggerExample",
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample",
+ "name": "swaggerExample",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ff9fe66f1d10\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewCreateOrUpdateByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewCreateOrUpdateByResourceGroup.json
new file mode 100644
index 000000000000..d71bbe14baba
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewCreateOrUpdateByResourceGroup.json
@@ -0,0 +1,186 @@
+{
+ "parameters": {
+ "api-version": "2019-11-01",
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG",
+ "viewName": "swaggerExample",
+ "parameters": {
+ "eTag": "\"1d4ff9fe66f1d10\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample",
+ "name": "swaggerExample",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ffa5a9c2430c\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample",
+ "name": "swaggerExample",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ffa5a9c2430c\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewDeleteByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewDeleteByResourceGroup.json
new file mode 100644
index 000000000000..b68bcb4e0201
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewDeleteByResourceGroup.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "api-version": "2019-11-01",
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG",
+ "viewName": "TestView"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewListByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewListByResourceGroup.json
new file mode 100644
index 000000000000..efbfa5040ac6
--- /dev/null
+++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ViewListByResourceGroup.json
@@ -0,0 +1,132 @@
+{
+ "parameters": {
+ "api-version": "2019-11-01",
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample",
+ "name": "swaggerExample",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ff9fe66f1d10\"",
+ "properties": {
+ "displayName": "swagger Example",
+ "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG",
+ "query": {
+ "type": "Usage",
+ "timeframe": "MonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "Table",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample2",
+ "name": "swaggerExample2",
+ "type": "Microsoft.CostManagement/Views",
+ "eTag": "\"1d4ffa5a9c2430c\"",
+ "properties": {
+ "displayName": "swagger Example 2",
+ "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG",
+ "query": {
+ "type": "Usage",
+ "timeframe": "LastMonthToDate",
+ "dataset": {
+ "granularity": "Daily",
+ "aggregation": {
+ "totalCost": {
+ "name": "PreTaxCost",
+ "function": "Sum"
+ }
+ },
+ "grouping": [],
+ "sorting": [
+ {
+ "direction": "Ascending",
+ "name": "UsageDate"
+ }
+ ]
+ }
+ },
+ "chart": "GroupedColumn",
+ "accumulated": "true",
+ "metric": "ActualCost",
+ "kpis": [
+ {
+ "type": "Forecast",
+ "id": null,
+ "enabled": true
+ },
+ {
+ "type": "Budget",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo",
+ "enabled": true
+ }
+ ],
+ "pivots": [
+ {
+ "type": "Dimension",
+ "name": "ServiceName"
+ },
+ {
+ "type": "Dimension",
+ "name": "MeterCategory"
+ },
+ {
+ "type": "TagKey",
+ "name": "swaggerTagKey"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cost-management/resource-manager/readme.az.md b/specification/cost-management/resource-manager/readme.az.md
new file mode 100644
index 000000000000..0ab4b46e293f
--- /dev/null
+++ b/specification/cost-management/resource-manager/readme.az.md
@@ -0,0 +1,15 @@
+## AZ
+
+These settings apply only when `--az` is specified on the command line.
+
+``` yaml $(az)
+az:
+ extensions: costmanagement
+ namespace: azure.mgmt.costmanagement
+ package-name: azure-mgmt-costmanagement
+ client-subscription-bound: false
+ client-base-url-bound: true
+az-output-folder: $(azure-cli-extension-folder)/src/costmanagement
+python-sdk-output-folder: "$(az-output-folder)/azext_costmanagement/vendored_sdks/costmanagement"
+
+```
diff --git a/specification/cost-management/resource-manager/readme.cli.md b/specification/cost-management/resource-manager/readme.cli.md
new file mode 100644
index 000000000000..986dcf24c83b
--- /dev/null
+++ b/specification/cost-management/resource-manager/readme.cli.md
@@ -0,0 +1 @@
+## CLI
\ No newline at end of file
diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md
index 205a74666b50..12dadfcd7709 100644
--- a/specification/cost-management/resource-manager/readme.md
+++ b/specification/cost-management/resource-manager/readme.md
@@ -27,7 +27,7 @@ These are the global settings for the Cost Management API.
``` yaml
openapi-type: arm
tag: package-2019-11
-azure-validator: true
+azure-validator: false
```
---
@@ -190,6 +190,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_costmanagement']
+ - repo: azure-cli-extensions
```
## C#
@@ -206,35 +207,6 @@ csharp:
clear-output-folder: true
```
-## Python
-
-These settings apply only when `--python` is specified on the command line.
-Please also specify `--python-sdks-folder=`.
-Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
-
-``` yaml $(python)
-python-mode: create
-python:
- azure-arm: true
- license-header: MICROSOFT_MIT_NO_VERSION
- payload-flattening-threshold: 2
- namespace: azure.mgmt.costmanagement
- package-name: azure-mgmt-costmanagement
- package-version: 1.2.0
- clear-output-folder: true
-```
-
-``` yaml $(python) && $(python-mode) == 'update'
-python:
- no-namespace-folders: true
- output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement
-```
-
-``` yaml $(python) && $(python-mode) == 'create'
-python:
- basic-setup-py: true
- output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement
-```
## Go
diff --git a/specification/cost-management/resource-manager/readme.python.md b/specification/cost-management/resource-manager/readme.python.md
new file mode 100644
index 000000000000..e813c023f2cb
--- /dev/null
+++ b/specification/cost-management/resource-manager/readme.python.md
@@ -0,0 +1,29 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
+
+``` yaml $(python)
+python-mode: create
+python:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: azure.mgmt.costmanagement
+ package-name: azure-mgmt-costmanagement
+ package-version: 1.2.0
+ clear-output-folder: true
+```
+
+``` yaml $(python) && $(python-mode) == 'update'
+python:
+ no-namespace-folders: true
+ output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement
+```
+
+``` yaml $(python) && $(python-mode) == 'create'
+python:
+ basic-setup-py: true
+ output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement
+```
\ No newline at end of file
diff --git a/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/cpim.json b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/cpim.json
new file mode 100644
index 000000000000..4cb75c38c8d9
--- /dev/null
+++ b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/cpim.json
@@ -0,0 +1,505 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-05-01-preview",
+ "title": "cpim",
+ "description": "CPIM Service Client "
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.AzureActiveDirectory/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "operationId": "Operations_List",
+ "x-ms-examples": {
+ "operations_list": {
+ "$ref": "./examples/OperationsList.json"
+ }
+ },
+ "description": "Lists the operations available from this provider.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Describe the result of a successful operation.",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/guestUsages/{resourceName}": {
+ "put": {
+ "operationId": "GuestUsages_Create",
+ "tags": [
+ "GuestUsages"
+ ],
+ "x-ms-examples": {
+ "GuestUsages_Create": {
+ "$ref": "./examples/GuestUsagesCreate.json"
+ }
+ },
+ "summary": "Creates a Guest Usages resource",
+ "description": "Creates a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "Resource",
+ "in": "body",
+ "description": "Guest Usages resource to be created",
+ "schema": {
+ "$ref": "#/definitions/GuestUsagesResource"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful and the resource was created successfully",
+ "schema": {
+ "$ref": "#/definitions/GuestUsagesResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "operationId": "GuestUsages_Update",
+ "tags": [
+ "GuestUsages"
+ ],
+ "x-ms-examples": {
+ "GuestUsages_Update": {
+ "$ref": "./examples/GuestUsagesUpdate.json"
+ }
+ },
+ "summary": "Updates a Guest Usages resource",
+ "description": "Updates a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ },
+ {
+ "name": "ResourcePatch",
+ "in": "body",
+ "description": "Guest Usages Resource to be updated",
+ "schema": {
+ "$ref": "#/definitions/GuestUsagesResourcePatch"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Guest Usages Resource Successfully Updated",
+ "schema": {
+ "$ref": "#/definitions/GuestUsagesResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "operationId": "GuestUsages_Delete",
+ "tags": [
+ "GuestUsages"
+ ],
+ "x-ms-examples": {
+ "GuestUsages_Delete": {
+ "$ref": "./examples/GuestUsagesDelete.json"
+ }
+ },
+ "summary": "Deletes a Guest Usages resource",
+ "description": "Deletes a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Guest Usages Resource Successfully Deleted."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "operationId": "GuestUsages_Get",
+ "tags": [
+ "GuestUsages"
+ ],
+ "x-ms-examples": {
+ "GuestUsages_Get": {
+ "$ref": "./examples/GuestUsagesGet.json"
+ }
+ },
+ "summary": "Gets a Guest Usages resource",
+ "description": "Gets a Guest Usages resource for the Microsoft.AzureActiveDirectory resource provider",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Guest Usages resource successfully retrieved",
+ "schema": {
+ "$ref": "#/definitions/GuestUsagesResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.AzureActiveDirectory/guestUsages": {
+ "get": {
+ "operationId": "GuestUsages_ListBySubscription",
+ "tags": [
+ "GuestUsages"
+ ],
+ "x-ms-examples": {
+ "GuestUsagesSubscription_List": {
+ "$ref": "./examples/GuestUsagesSubscriptionGet.json"
+ }
+ },
+ "summary": "Gets Guest Usages resources under a subscription",
+ "description": "Gets Guest Usages resources under a subscription for the Microsoft.AzureActiveDirectory resource provider",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "List of Guest Usages resources under the subscription successfully retrieved.",
+ "schema": {
+ "$ref": "#/definitions/GuestUsagesResourceList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/guestUsages": {
+ "get": {
+ "operationId": "GuestUsages_ListByResourceGroup",
+ "tags": [
+ "GuestUsages"
+ ],
+ "x-ms-examples": {
+ "GuestUsagesResourceGroup_List": {
+ "$ref": "./examples/GuestUsagesResourceGroupGet.json"
+ }
+ },
+ "summary": "Gets Guest Usages resources under resource group",
+ "description": "Gets Guest Usages resources under a resource group for the Microsoft.AzureActiveDirectory resource provider",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "List of Guest Usages resources under the resourceGroup successfully retrieved.",
+ "schema": {
+ "$ref": "#/definitions/GuestUsagesResourceList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ }
+ },
+ "definitions": {
+ "Operation": {
+ "description": "Microsoft.AzureActiveDirectory REST API operation.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}.",
+ "type": "string",
+ "readOnly": true
+ },
+ "display": {
+ "description": "The object that represents the operation.",
+ "properties": {
+ "provider": {
+ "description": "Service provider: Microsoft.AzureActiveDirectory.",
+ "type": "string",
+ "readOnly": true
+ },
+ "resource": {
+ "description": "Resource on which the operation is performed: GuestUsages, etc.",
+ "type": "string",
+ "readOnly": true
+ },
+ "operation": {
+ "description": "Operation type: Read, write, delete, etc.",
+ "type": "string",
+ "readOnly": true
+ },
+ "description": {
+ "description": "Friendly name of the operation",
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "OperationListResult": {
+ "description": "Result of listing operations for the resourceProvider",
+ "properties": {
+ "value": {
+ "description": "List of cpim service operations supported by the Microsoft.AzureActiveDirectory resource provider.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Operation"
+ }
+ }
+ }
+ },
+ "GuestUsagesResourceProperties": {
+ "description": "Guest Usages Resource Properties",
+ "type": "object",
+ "properties": {
+ "tenantId": {
+ "type": "string",
+ "description": "An identifier for the tenant for which the resource is being created"
+ }
+ }
+ },
+ "GuestUsagesResource": {
+ "description": "Guest Usages Resource",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "readOnly": true,
+ "description": "An identifier that represents the Guest Usages resource."
+ },
+ "name": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The name of the Guest Usages resource."
+ },
+ "type": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The type of the Guest Usages resource."
+ },
+ "location": {
+ "type": "string",
+ "description": "Location of the Guest Usages resource.",
+ "x-ms-mutability": [
+ "create",
+ "read"
+ ]
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Key-value pairs of additional resource provisioning properties."
+ },
+ "properties": {
+ "$ref": "#/definitions/GuestUsagesResourceProperties",
+ "x-ms-client-flatten": true,
+ "description": "The Guest Usages Resource Properties"
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "GuestUsagesResourcePatch": {
+ "description": "Guest Usages Resource for Patch",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Key-value pairs of additional resource provisioning properties."
+ }
+ }
+ },
+ "GuestUsagesResourceList": {
+ "description": "The collection of guest usages resources",
+ "properties": {
+ "value": {
+ "description": "List of guest usages resources",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/GuestUsagesResource"
+ }
+ }
+ }
+ },
+ "CloudError": {
+ "x-ms-external": true,
+ "properties": {
+ "error": {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "description": "An error response for a resource management request."
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)"
+ },
+ "ResourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group.",
+ "x-ms-parameter-location": "method"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to be used with the HTTP request."
+ },
+ "ResourceNameParameter": {
+ "name": "resourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The initial domain name of the AAD tenant.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesCreate.json b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesCreate.json
new file mode 100644
index 000000000000..36b8bc0a602a
--- /dev/null
+++ b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesCreate.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "resourceGroupName": "contosoResourceGroup",
+ "api-version": "2020-05-01-preview",
+ "resourceName": "contoso.onmicrosoft.com",
+ "resource": {
+ "location": "United States",
+ "name": "contoso.onmicrosoft.com",
+ "properties": {
+ "tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com",
+ "name": "contoso.onmicrosoft.com",
+ "location": "United States",
+ "tags": {},
+ "type": "Microsoft.AzureActiveDirectory/GuestUsages",
+ "properties": {
+ "tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesDelete.json b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesDelete.json
new file mode 100644
index 000000000000..8415b530431c
--- /dev/null
+++ b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesDelete.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "resourceGroupName": "contosoResourceGroup",
+ "api-version": "2020-05-01-preview",
+ "resourceName": "contoso.onmicrosoft.com"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesGet.json b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesGet.json
new file mode 100644
index 000000000000..cda45ac3aada
--- /dev/null
+++ b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesGet.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "resourceGroupName": "contosoResourceGroup",
+ "api-version": "2020-05-01-preview",
+ "resourceName": "contoso.onmicrosoft.com"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com",
+ "name": "contoso.onmicrosoft.com",
+ "location": "United States",
+ "tags": {},
+ "type": "Microsoft.AzureActiveDirectory/GuestUsages",
+ "properties": {
+ "tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesResourceGroupGet.json b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesResourceGroupGet.json
new file mode 100644
index 000000000000..de84a5d09ada
--- /dev/null
+++ b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesResourceGroupGet.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "resourceGroupName": "contosoResourceGroup",
+ "api-version": "2020-05-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": [
+ {
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com",
+ "name": "contoso.onmicrosoft.com",
+ "location": "United States",
+ "tags": {},
+ "type": "Microsoft.AzureActiveDirectory/GuestUsages",
+ "properties": {
+ "tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesSubscriptionGet.json b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesSubscriptionGet.json
new file mode 100644
index 000000000000..d1a324772802
--- /dev/null
+++ b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesSubscriptionGet.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "api-version": "2020-05-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": [
+ {
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com",
+ "name": "contoso.onmicrosoft.com",
+ "location": "United States",
+ "tags": {},
+ "type": "Microsoft.AzureActiveDirectory/GuestUsages",
+ "properties": {
+ "tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesUpdate.json b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesUpdate.json
new file mode 100644
index 000000000000..08af270ba0a9
--- /dev/null
+++ b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/GuestUsagesUpdate.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
+ "resourceGroupName": "contosoResourceGroup",
+ "api-version": "2020-05-01-preview",
+ "resourceName": "contoso.onmicrosoft.com",
+ "resource": {
+ "tags": {
+ "additionalProperty1": "additionalValue1"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/guestUsages/contoso.onmicrosoft.com",
+ "name": "contoso.onmicrosoft.com",
+ "location": "United States",
+ "tags": {
+ "additionalProperty1": "additionalValue1"
+ },
+ "type": "Microsoft.AzureActiveDirectory/GuestUsages",
+ "properties": {
+ "tenantId": "c963dd1a-9174-4c23-8bae-733d7f955492"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/OperationsList.json b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/OperationsList.json
new file mode 100644
index 000000000000..6c14cad4c445
--- /dev/null
+++ b/specification/cpim/resource-manager/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/examples/OperationsList.json
@@ -0,0 +1,87 @@
+{
+ "parameters": {
+ "resourceGroupName": "cpimClient",
+ "api-version": "2020-05-01-preview",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.AzureActiveDirectory/register/action",
+ "display": {
+ "provider": "Microsoft.AzureActiveDirectory",
+ "resource": "Microsoft.AzureActiveDirectory Resource Provider",
+ "operation": "Registers the Microsoft.AzureActiveDirectory Resource Provider",
+ "description": "Registers the Microsoft.AzureActiveDirectory Resource Provider"
+ }
+ },
+ {
+ "name": "Microsoft.AzureActiveDirectory/guestUsages/read",
+ "display": {
+ "provider": "Microsoft.AzureActiveDirectory",
+ "resource": "GuestUsagesResource",
+ "operation": "read",
+ "description": "Read call for Guest Usages Resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureActiveDirectory/guestUsages/write",
+ "display": {
+ "provider": "Microsoft.AzureActiveDirectory",
+ "resource": "GuestUsagesResource",
+ "operation": "write",
+ "description": "Create or Update call for Guest Usages Resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureActiveDirectory/guestUsages/delete",
+ "display": {
+ "provider": "Microsoft.AzureActiveDirectory",
+ "resource": "GuestUsagesResource",
+ "operation": "delete",
+ "description": "Delete call for Guest Usages Resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureActiveDirectory/b2cDirectories/read",
+ "display": {
+ "provider": "Microsoft.AzureActiveDirectory",
+ "resource": "GuestUsagesResource",
+ "operation": "read",
+ "description": "Read call for Guest Usages Resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureActiveDirectory/b2cDirectories/write",
+ "display": {
+ "provider": "Microsoft.AzureActiveDirectory",
+ "resource": "GuestUsagesResource",
+ "operation": "write",
+ "description": "Create or Update call for Guest Usages Resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureActiveDirectory/b2cDirectories/delete",
+ "display": {
+ "provider": "Microsoft.AzureActiveDirectory",
+ "resource": "GuestUsagesResource",
+ "operation": "delete",
+ "description": "Delete call for Guest Usages Resource"
+ }
+ },
+ {
+ "name": "Microsoft.AzureActiveDirectory/checkNameAvailability",
+ "display": {
+ "provider": "Microsoft.AzureActiveDirectory",
+ "resource": "Check Name Availability",
+ "operation": "Get Check Name Availability",
+ "description": "Check if resource name is available."
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/cpim/resource-manager/readme.csharp.md b/specification/cpim/resource-manager/readme.csharp.md
new file mode 100644
index 000000000000..38a02cf78765
--- /dev/null
+++ b/specification/cpim/resource-manager/readme.csharp.md
@@ -0,0 +1,15 @@
+## C
+
+These settings apply only when `--csharp` is specified on the command line.
+Please also specify `--csharp-sdks-folder=`.
+
+```yaml $(csharp)
+csharp:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 1
+ clear-output-folder: true
+ client-side-validation: false
+ namespace: Microsoft.AzureActiveDirectory
+ output-folder: $(csharp-sdks-folder)/cpim/management/Microsoft.AzureActiveDirectory/GeneratedProtocol
+```
diff --git a/specification/cpim/resource-manager/readme.go.md b/specification/cpim/resource-manager/readme.go.md
new file mode 100644
index 000000000000..11bd72613e44
--- /dev/null
+++ b/specification/cpim/resource-manager/readme.go.md
@@ -0,0 +1,19 @@
+## Go
+
+These settings apply only when `--go` is specified on the command line.
+
+```yaml $(go)
+go:
+ license-header: MICROSOFT_APACHE_NO_VERSION
+ clear-output-folder: true
+```
+
+### Tag: package-2020-05-01-preview and go
+
+These settings apply only when `--tag=package-2020-05-01-preview --go` is specified on the command line.
+Please also specify `--go-sdks-folder=`.
+
+```yaml $(tag) == 'package-2020-05-01-preview' && $(go)
+namespace: Microsoft.AzureActiveDirectory
+output-folder: $(go-sdks-folder)/cpim/Generated
+```
diff --git a/specification/cpim/resource-manager/readme.md b/specification/cpim/resource-manager/readme.md
new file mode 100644
index 000000000000..d9bdf7941d0a
--- /dev/null
+++ b/specification/cpim/resource-manager/readme.md
@@ -0,0 +1,104 @@
+# cpim
+
+> see https://aka.ms/autorest
+
+This is the AutoRest configuration file for cpim.
+
+## Getting Started
+
+To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
+
+> `autorest readme.md`
+
+To see additional help and options, run:
+
+> `autorest --help`
+
+For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
+
+---
+
+## Configuration
+
+### Basic Information
+
+These are the global settings for the cpim.
+
+```yaml
+openapi-type: arm
+tag: package-2020-05-01-preview
+```
+
+### Tag: package-2020-05-01-preview
+
+These settings apply only when `--tag=package-2020-05-01-preview` is specified on the command line.
+
+```yaml $(tag) == 'package-2020-05-01-preview'
+input-file:
+ - Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/cpim.json
+```
+
+---
+
+# Code Generation
+
+## Swagger to SDK
+
+This section describes what SDK should be generated by the automatic system.
+This is not used by Autorest itself.
+
+```yaml $(swagger-to-sdk)
+swagger-to-sdk:
+ - repo: azure-sdk-for-python
+ - repo: azure-sdk-for-java
+ - repo: azure-sdk-for-go
+ - repo: azure-sdk-for-js
+ - repo: azure-sdk-for-ruby
+ after_scripts:
+ - bundle install && rake arm:regen_all_profiles['azure_mgmt_cpim']
+```
+
+## Go
+
+See configuration in [readme.go.md](./readme.go.md)
+
+## Python
+
+See configuration in [readme.python.md](./readme.python.md)
+
+## Ruby
+
+See configuration in [readme.ruby.md](./readme.ruby.md)
+
+## TypeScript
+
+See configuration in [readme.typescript.md](./readme.typescript.md)
+
+## CSharp
+
+See configuration in [readme.csharp.md](./readme.csharp.md)
+
+## Multi-API/Profile support for AutoRest v3 generators
+
+AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
+
+This block is updated by an automatic script. Edits may be lost!
+
+``` yaml $(tag) == 'all-api-versions' /* autogenerated */
+# include the azure profile definitions from the standard location
+require: $(this-folder)/../../../profiles/readme.md
+
+# all the input files across all versions
+input-file:
+ - $(this-folder)/Microsoft.AzureActiveDirectory/preview/2020-05-01-preview/cpim.json
+
+```
+
+If there are files that should not be in the `all-api-versions` set,
+uncomment the `exclude-file` section below and add the file paths.
+
+``` yaml $(tag) == 'all-api-versions'
+#exclude-file:
+# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
+```
+
diff --git a/specification/cpim/resource-manager/readme.python.md b/specification/cpim/resource-manager/readme.python.md
new file mode 100644
index 000000000000..9b05d3b50643
--- /dev/null
+++ b/specification/cpim/resource-manager/readme.python.md
@@ -0,0 +1,21 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+
+```yaml $(python)
+python:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: Microsoft.AzureActiveDirectory
+ package-name: cpim
+ package-version: 2020-05-01-preview
+ clear-output-folder: true
+```
+
+```yaml $(python)
+python:
+ no-namespace-folders: true
+ output-folder: $(python-sdks-folder)/azure-mgmt/cpim
+```
diff --git a/specification/cpim/resource-manager/readme.ruby.md b/specification/cpim/resource-manager/readme.ruby.md
new file mode 100644
index 000000000000..bf0a94227dc2
--- /dev/null
+++ b/specification/cpim/resource-manager/readme.ruby.md
@@ -0,0 +1,19 @@
+## Ruby
+
+These settings apply only when `--ruby` is specified on the command line.
+
+```yaml
+package-name: azure_mgmt_cpim
+package-version: 2020-05-01-preview
+azure-arm: true
+```
+
+### Tag: package-2020-05-01-preview and ruby
+
+These settings apply only when `--tag=package-2020-05-01-preview --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+```yaml $(tag) == 'package-2020-05-01-preview' && $(ruby)
+namespace: Microsoft.AzureActiveDirectory
+output-folder: $(ruby-sdks-folder)/cpim
+```
diff --git a/specification/cpim/resource-manager/readme.typescript.md b/specification/cpim/resource-manager/readme.typescript.md
new file mode 100644
index 000000000000..ccbd03da212a
--- /dev/null
+++ b/specification/cpim/resource-manager/readme.typescript.md
@@ -0,0 +1,13 @@
+## TypeScript
+
+These settings apply only when `--typescript` is specified on the command line.
+Please also specify `--typescript-sdks-folder=`.
+
+```yaml $(typescript)
+typescript:
+ azure-arm: true
+ package-name: "cpim"
+ output-folder: "$(typescript-sdks-folder)/packages/cpim"
+ payload-flattening-threshold: 1
+ generate-metadata: true
+```
diff --git a/specification/customproviders/resource-manager/readme.md b/specification/customproviders/resource-manager/readme.md
index 8207c4d5b580..27afdefab93c 100644
--- a/specification/customproviders/resource-manager/readme.md
+++ b/specification/customproviders/resource-manager/readme.md
@@ -53,6 +53,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
+ - repo: azure-sdk-for-trenton
- repo: azure-sdk-for-node
- repo: azure-sdk-for-js
- repo: azure-sdk-for-ruby
@@ -113,3 +114,32 @@ uncomment the `exclude-file` section below and add the file paths.
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
+## cli
+
+These settings apply only when `--cli` is specified on the command line.
+
+``` yaml $(cli)
+cli:
+ cli-name: customproviders
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: azure.mgmt.customproviders
+ package-name: azure-mgmt-customproviders
+ clear-output-folder: false
+```
+
+## trenton
+
+These settings apply only when `--trenton` is specified on the command line.
+
+``` yaml $(trenton)
+trenton:
+ cli_name: customproviders
+ azure_arm: true
+ license_header: MICROSOFT_MIT_NO_VERSION
+ payload_flattening_threshold: 2
+ namespace: azure.mgmt.customproviders
+ package_name: azure-mgmt-customproviders
+ clear_output_folder: false
+```
diff --git a/specification/databox/resource-manager/readme.az.md b/specification/databox/resource-manager/readme.az.md
new file mode 100644
index 000000000000..8b71862eff6c
--- /dev/null
+++ b/specification/databox/resource-manager/readme.az.md
@@ -0,0 +1,12 @@
+## CLI
+
+These settings apply only when `--az` is specified on the command line.
+
+``` yaml $(az)
+az:
+ extensions: databox
+ package-name: azure-mgmt-databox
+ namespace: azure.mgmt.databox
+az-output-folder: $(azure-cli-extension-folder)/src/databox
+python-sdk-output-folder: "$(az-output-folder)/azext_databox/vendored_sdks/databox"
+```
diff --git a/specification/databox/resource-manager/readme.md b/specification/databox/resource-manager/readme.md
index 2fb1565805b6..cb252a0cfb96 100644
--- a/specification/databox/resource-manager/readme.md
+++ b/specification/databox/resource-manager/readme.md
@@ -67,6 +67,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_databox']
+ - repo: azure-cli-extensions
```
## C#
@@ -86,32 +87,7 @@ csharp:
## Python
-These settings apply only when `--python` is specified on the command line.
-Please also specify `--python-sdks-folder=`.
-Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
-
-``` yaml $(python)
-python-mode: create
-python:
- azure-arm: true
- license-header: MICROSOFT_MIT_NO_VERSION
- payload-flattening-threshold: 2
- namespace: azure.mgmt.databox
- package-name: azure-mgmt-databox
- title: DataBoxManagementClient
- description: The DataBox Client.
- clear-output-folder: true
-```
-``` yaml $(python) && $(python-mode) == 'update'
-python:
- no-namespace-folders: true
- output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox
-```
-``` yaml $(python) && $(python-mode) == 'create'
-python:
- basic-setup-py: true
- output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox
-```
+See configuration in [readme.python.md](./readme.python.md)
## Ruby
diff --git a/specification/databox/resource-manager/readme.python.md b/specification/databox/resource-manager/readme.python.md
new file mode 100644
index 000000000000..c58c21fa9f86
--- /dev/null
+++ b/specification/databox/resource-manager/readme.python.md
@@ -0,0 +1,28 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
+
+``` yaml $(python)
+python:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: azure.mgmt.databox
+ package-name: azure-mgmt-databox
+ package-version: 0.1.0
+ title: DataBoxManagementClient
+ description: The DataBox Client.
+ clear-output-folder: true
+```
+``` yaml $(python) && $(python-mode) == 'update'
+python:
+ no-namespace-folders: true
+ output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox
+```
+``` yaml $(python) && $(python-mode) == 'create'
+python:
+ basic-setup-py: true
+ output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox
+```
diff --git a/specification/databoxedge/resource-manager/readme.az.md b/specification/databoxedge/resource-manager/readme.az.md
new file mode 100644
index 000000000000..15d8db6ed9a2
--- /dev/null
+++ b/specification/databoxedge/resource-manager/readme.az.md
@@ -0,0 +1,12 @@
+## AZ
+
+These settings apply only when `--az` is specified on the command line.
+
+``` yaml $(az)
+az:
+ extensions: databoxedge
+ package-name: azure-mgmt-databoxedge
+ namespace: azure.mgmt.databoxedge
+az-output-folder: $(azure-cli-extension-folder)/src/databoxedge
+python-sdk-output-folder: "$(az-output-folder)/azext_databoxedge/vendored_sdks/databoxedge"
+```
diff --git a/specification/databoxedge/resource-manager/readme.md b/specification/databoxedge/resource-manager/readme.md
index 18353b7dbfc2..455345faee18 100644
--- a/specification/databoxedge/resource-manager/readme.md
+++ b/specification/databoxedge/resource-manager/readme.md
@@ -76,6 +76,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_databoxedge']
+ - repo: azure-cli-extensions
```
## C#
diff --git a/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/databricks.json b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/databricks.json
index 82b602c6b63d..26055abe6cff 100644
--- a/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/databricks.json
+++ b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/databricks.json
@@ -316,6 +316,204 @@
}
}
},
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}": {
+ "get": {
+ "tags": [
+ "vNetPeering"
+ ],
+ "operationId": "vNetPeering_Get",
+ "description": "Gets the workspace vNet Peering.",
+ "x-ms-examples": {
+ "Get a workspace with vNet Peering Configured": {
+ "$ref": "./examples/WorkspaceVirtualNetPeeringGet.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceName"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/PeeringNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/VirtualNetworkPeering"
+ }
+ },
+ "204": {
+ "description": "OK - NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "vNetPeering"
+ ],
+ "operationId": "vNetPeering_Delete",
+ "description": "Deletes the workspace vNetPeering.",
+ "x-ms-examples": {
+ "Delete a workspace vNet Peering": {
+ "$ref": "./examples/WorkspaceVirtualNetworkPeeringDelete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceName"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/PeeringNameParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted - Returns this status until the asynchronous operation has completed."
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "200": {
+ "description": "OK. The request has succeeded."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "put": {
+ "tags": [
+ "vNetPeering"
+ ],
+ "operationId": "vNetPeering_CreateOrUpdate",
+ "description": "Creates vNet Peering for workspace.",
+ "x-ms-examples": {
+ "Create vNet Peering for Workspace": {
+ "$ref": "./examples/WorkspaceVirtualNetworkPeeringCreateOrUpdate.json"
+ }
+ },
+ "parameters": [
+ {
+ "name": "VirtualNetworkPeeringParameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/VirtualNetworkPeering"
+ },
+ "description": "Parameters supplied to the create workspace vNet Peering."
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceName"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/PeeringNameParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created - Returns information about the workspace vNet peering, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/VirtualNetworkPeering"
+ }
+ },
+ "200": {
+ "description": "Update succeeded - Returns information about the workspace vNet peering.",
+ "schema": {
+ "$ref": "#/definitions/VirtualNetworkPeering"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings": {
+ "get": {
+ "tags": [
+ "vNetPeering"
+ ],
+ "operationId": "vNetPeering_ListByWorkspace",
+ "description": "Lists the workspace vNet Peerings.",
+ "x-ms-examples": {
+ "List all vNet Peerings for the workspace": {
+ "$ref": "./examples/WorkspaceVirtualNetPeeringList.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceName"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "List succeeded. Returns the resulting resource objects in response body.",
+ "schema": {
+ "$ref": "#/definitions/VirtualNetworkPeeringList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
"/providers/Microsoft.Databricks/operations": {
"get": {
"tags": [
@@ -522,6 +720,21 @@
"modelAsString": true
}
},
+ "PeeringProvisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The current provisioning state.",
+ "enum": [
+ "Succeeded",
+ "Updating",
+ "Deleting",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "PeeringProvisioningState",
+ "modelAsString": true
+ }
+ },
"WorkspaceCustomParameterType": {
"description": "Provisioning status of the workspace.",
"readOnly": true,
@@ -788,6 +1001,132 @@
"description": "URL to get the next set of operation list results if there are any."
}
}
+ },
+ "VirtualNetworkPeeringList": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VirtualNetworkPeering"
+ },
+ "description": "List of virtual network peerings on workspace."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of virtual network peering list results if there are any."
+ }
+ },
+ "description": "Gets all virtual network peerings under a workspace."
+ },
+ "VirtualNetworkPeering": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/VirtualNetworkPeeringPropertiesFormat",
+ "description": "List of properties for vNet Peering"
+ },
+ "name": {
+ "type": "string",
+ "description": "Name of the virtual network peering resource",
+ "readOnly": true
+ },
+ "id": {
+ "type": "string",
+ "description": "Resource ID.",
+ "readOnly": true
+ },
+ "type": {
+ "type": "string",
+ "description": "type of the virtual network peering resource",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "description": "Peerings in a VirtualNetwork resource",
+ "x-ms-azure-resource": true
+ },
+ "VirtualNetworkPeeringPropertiesFormat": {
+ "properties": {
+ "allowVirtualNetworkAccess": {
+ "type": "boolean",
+ "description": "Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space."
+ },
+ "allowForwardedTraffic": {
+ "type": "boolean",
+ "description": "Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network."
+ },
+ "allowGatewayTransit": {
+ "type": "boolean",
+ "description": "If gateway links can be used in remote virtual networking to link to this virtual network."
+ },
+ "useRemoteGateways": {
+ "type": "boolean",
+ "description": "If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway."
+ },
+ "databricksVirtualNetwork": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The Id of the databricks virtual network."
+ }
+ },
+ "description": " The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering)."
+ },
+ "databricksAddressSpace": {
+ "$ref": "#/definitions/AddressSpace",
+ "description": "The reference to the databricks virtual network address space."
+ },
+ "remoteVirtualNetwork": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The Id of the remote virtual network."
+ }
+ },
+ "description": " The remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering)."
+ },
+ "remoteAddressSpace": {
+ "$ref": "#/definitions/AddressSpace",
+ "description": "The reference to the remote virtual network address space."
+ },
+ "peeringState": {
+ "type": "string",
+ "description": "The status of the virtual network peering.",
+ "enum": [
+ "Initiated",
+ "Connected",
+ "Disconnected"
+ ],
+ "x-ms-enum": {
+ "name": "peeringState",
+ "modelAsString": true
+ },
+ "readOnly": true
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "$ref": "#/definitions/PeeringProvisioningState",
+ "description": "The provisioning state of the virtual network peering resource."
+ }
+ },
+ "required": [
+ "remoteVirtualNetwork"
+ ],
+ "description": "Properties of the virtual network peering."
+ },
+ "AddressSpace": {
+ "properties": {
+ "addressPrefixes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "A list of address blocks reserved for this virtual network in CIDR notation."
+ }
+ },
+ "description": "AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network."
}
},
"parameters": {
@@ -825,6 +1164,14 @@
"minLength": 3,
"maxLength": 64,
"x-ms-parameter-location": "method"
+ },
+ "PeeringNameParameter": {
+ "name": "peeringName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the workspace vNet peering.",
+ "x-ms-parameter-location": "method"
}
}
}
diff --git a/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetPeeringGet.json b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetPeeringGet.json
new file mode 100644
index 000000000000..2e5fb6f8e437
--- /dev/null
+++ b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetPeeringGet.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg",
+ "workspaceName": "myWorkspace",
+ "peeringName": "vNetPeering",
+ "api-version": "2018-04-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Databricks/workspaces/adbworkspace/virtualNetworkPeerings/vNetPeeringTest",
+ "name": "vNetPeeringTest",
+ "properties": {
+ "allowVirtualNetworkAccess": true,
+ "allowForwardedTraffic": false,
+ "allowGatewayTransit": false,
+ "useRemoteGateways": false,
+ "remoteVirtualNetwork": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Network/virtualNetworks/subramanvnet"
+ },
+ "remoteAddressSpace": {
+ "addressPrefixes": [
+ "10.203.0.0/16"
+ ]
+ },
+ "databricksVirtualNetwork": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/databricks-rg-adbworkspace-2jsxhmzoyooxm/providers/Microsoft.Network/virtualNetworks/workers-vnet"
+ },
+ "databricksAddressSpace": {
+ "addressPrefixes": [
+ "10.139.0.0/16"
+ ]
+ },
+ "peeringState": "Initiated",
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetPeeringList.json b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetPeeringList.json
new file mode 100644
index 000000000000..353bc9fee001
--- /dev/null
+++ b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetPeeringList.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg",
+ "workspaceName": "myWorkspace",
+ "api-version": "2018-04-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Databricks/workspaces/adbworkspace/virtualNetworkPeerings/vNetPeeringTest",
+ "name": "vNetPeeringTest",
+ "properties": {
+ "allowVirtualNetworkAccess": true,
+ "allowForwardedTraffic": false,
+ "allowGatewayTransit": false,
+ "useRemoteGateways": false,
+ "remoteVirtualNetwork": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Network/virtualNetworks/subramanvnet"
+ },
+ "remoteAddressSpace": {
+ "addressPrefixes": [
+ "10.203.0.0/16"
+ ]
+ },
+ "databricksVirtualNetwork": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/databricks-rg-adbworkspace-2jsxhmzoyooxm/providers/Microsoft.Network/virtualNetworks/workers-vnet"
+ },
+ "databricksAddressSpace": {
+ "addressPrefixes": [
+ "10.139.0.0/16"
+ ]
+ },
+ "peeringState": "Initiated",
+ "provisioningState": "Succeeded"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetworkPeeringCreateOrUpdate.json b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetworkPeeringCreateOrUpdate.json
new file mode 100644
index 000000000000..5623c1f5d88d
--- /dev/null
+++ b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetworkPeeringCreateOrUpdate.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg",
+ "workspaceName": "myWorkspace",
+ "peeringName": "vNetPeeringTest",
+ "api-version": "2018-04-01",
+ "VirtualNetworkPeeringParameters": {
+ "properties": {
+ "allowForwardedTraffic": false,
+ "allowGatewayTransit": false,
+ "allowVirtualNetworkAccess": true,
+ "remoteVirtualNetwork": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Network/virtualNetworks/subramanvnet"
+ },
+ "useRemoteGateways": false
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Databricks/workspaces/adbworkspace/virtualNetworkPeerings/vNetPeeringTest",
+ "name": "vNetPeeringTest",
+ "properties": {
+ "allowVirtualNetworkAccess": true,
+ "allowForwardedTraffic": false,
+ "allowGatewayTransit": false,
+ "useRemoteGateways": false,
+ "remoteVirtualNetwork": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Network/virtualNetworks/subramanvnet"
+ },
+ "remoteAddressSpace": {
+ "addressPrefixes": [
+ "10.203.0.0/16"
+ ]
+ },
+ "databricksVirtualNetwork": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/databricks-rg-adbworkspace-2jsxhmzoyooxm/providers/Microsoft.Network/virtualNetworks/workers-vnet"
+ },
+ "databricksAddressSpace": {
+ "addressPrefixes": [
+ "10.139.0.0/16"
+ ]
+ },
+ "peeringState": "Initiated",
+ "provisioningState": "Updating"
+ }
+ }
+ },
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Databricks/workspaces/adbworkspace/virtualNetworkPeerings/vNetPeeringTest",
+ "name": "vNetPeeringTest",
+ "properties": {
+ "allowVirtualNetworkAccess": true,
+ "allowForwardedTraffic": false,
+ "allowGatewayTransit": false,
+ "useRemoteGateways": false,
+ "remoteVirtualNetwork": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Network/virtualNetworks/subramanvnet"
+ },
+ "remoteAddressSpace": {
+ "addressPrefixes": [
+ "10.203.0.0/16"
+ ]
+ },
+ "databricksVirtualNetwork": {
+ "id": "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/databricks-rg-adbworkspace-2jsxhmzoyooxm/providers/Microsoft.Network/virtualNetworks/workers-vnet"
+ },
+ "databricksAddressSpace": {
+ "addressPrefixes": [
+ "10.139.0.0/16"
+ ]
+ },
+ "peeringState": "Initiated",
+ "provisioningState": "Updating"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetworkPeeringDelete.json b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetworkPeeringDelete.json
new file mode 100644
index 000000000000..fa342ab7d620
--- /dev/null
+++ b/specification/databricks/resource-manager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceVirtualNetworkPeeringDelete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg",
+ "workspaceName": "myWorkspace",
+ "peeringName": "vNetPeering",
+ "api-version": "2018-04-01"
+ },
+ "responses": {
+ "202": {},
+ "204": {},
+ "200": {}
+ }
+}
diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json
index abb09d4b737c..1419e260fad9 100644
--- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json
+++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json
@@ -4419,9 +4419,50 @@
"repoConfiguration": {
"$ref": "#/definitions/FactoryRepoConfiguration",
"description": "Git repo information of the factory."
+ },
+ "globalParameters": {
+ "$ref": "#/definitions/GlobalParameterDefinitionSpecification",
+ "description": "List of parameters for factory."
}
}
},
+ "GlobalParameterDefinitionSpecification": {
+ "description": "Definition of all parameters for an entity.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/GlobalParameterSpecification"
+ }
+ },
+ "GlobalParameterSpecification": {
+ "description": "Definition of a single parameter for an entity.",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "Global Parameter type.",
+ "enum": [
+ "Object",
+ "String",
+ "Int",
+ "Float",
+ "Bool",
+ "Array"
+ ],
+ "x-ms-enum": {
+ "name": "GlobalParameterType",
+ "modelAsString": true
+ }
+ },
+ "value": {
+ "type": "object",
+ "description": "Value of parameter."
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
+ },
"PipelineResource": {
"description": "Pipeline resource type.",
"type": "object",
diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json
index 3644a5838df0..bdac90ebf99b 100644
--- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json
+++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/DataFlow.json
@@ -113,6 +113,14 @@
"dataset": {
"description": "Dataset reference.",
"$ref": "../datafactory.json#/definitions/DatasetReference"
+ },
+ "linkedService": {
+ "description": "Linked service reference.",
+ "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ },
+ "schemaLinkedService": {
+ "description": "Schema linked service reference.",
+ "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
}
}
},
@@ -127,6 +135,14 @@
"dataset": {
"description": "Dataset reference.",
"$ref": "../datafactory.json#/definitions/DatasetReference"
+ },
+ "linkedService": {
+ "description": "Linked service reference.",
+ "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ },
+ "schemaLinkedService": {
+ "description": "Schema linked service reference.",
+ "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
}
}
}
diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json
index 8e1e0fcb1665..52f028ae93c9 100644
--- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json
+++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json
@@ -593,6 +593,56 @@
"location"
]
},
+ "ExcelDataset": {
+ "x-ms-discriminator-value": "Excel",
+ "description": "Excel dataset.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Dataset"
+ }
+ ],
+ "properties": {
+ "typeProperties": {
+ "description": "Excel dataset properties.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ExcelDatasetTypeProperties"
+ }
+ }
+ },
+ "ExcelDatasetTypeProperties": {
+ "description": "Excel dataset properties.",
+ "properties": {
+ "location": {
+ "$ref": "#/definitions/DatasetLocation",
+ "description": "The location of the excel storage."
+ },
+ "sheetName": {
+ "type": "object",
+ "description": "The sheet of excel file. Type: string (or Expression with resultType string)."
+ },
+ "range": {
+ "type": "object",
+ "description": "The partial data of one sheet. Type: string (or Expression with resultType string)."
+ },
+ "firstRowAsHeader": {
+ "type": "object",
+ "description": "When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean)."
+ },
+ "compression": {
+ "description": "The data compression method used for the json dataset.",
+ "$ref": "#/definitions/DatasetCompression"
+ },
+ "nullValue": {
+ "type": "object",
+ "description": "The null value string. Type: string (or Expression with resultType string)."
+ }
+ },
+ "required": [
+ "location",
+ "sheetName"
+ ]
+ },
"ParquetDataset": {
"x-ms-discriminator-value": "Parquet",
"description": "Parquet dataset.",
@@ -748,6 +798,47 @@
"location"
]
},
+ "XmlDataset": {
+ "x-ms-discriminator-value": "Xml",
+ "description": "Xml dataset.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Dataset"
+ }
+ ],
+ "properties": {
+ "typeProperties": {
+ "description": "Xml dataset properties.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/XmlDatasetTypeProperties"
+ }
+ }
+ },
+ "XmlDatasetTypeProperties": {
+ "description": "Xml dataset properties.",
+ "properties": {
+ "location": {
+ "$ref": "#/definitions/DatasetLocation",
+ "description": "The location of the json data storage."
+ },
+ "encodingName": {
+ "type": "object",
+ "description": "The code page name of the preferred encoding. If not specified, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string)."
+ },
+ "nullValue": {
+ "type": "object",
+ "description": "The null value string. Type: string (or Expression with resultType string)."
+ },
+ "compression": {
+ "description": "The data compression method used for the json dataset.",
+ "$ref": "#/definitions/DatasetCompression"
+ }
+ },
+ "required": [
+ "location"
+ ]
+ },
"OrcDataset": {
"x-ms-discriminator-value": "Orc",
"description": "ORC dataset.",
diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json
index c80e37c45c41..bc89fb5b7d7b 100644
--- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json
+++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json
@@ -271,6 +271,10 @@
"type": "object",
"description": "Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string)."
},
+ "deleteFilesAfterCompletion": {
+ "type": "object",
+ "description": "Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean)."
+ },
"modifiedDatetimeStart": {
"type": "object",
"description": "The start of file's modified datetime. Type: string (or Expression with resultType string)."
@@ -314,6 +318,10 @@
"type": "object",
"description": "Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string)."
},
+ "deleteFilesAfterCompletion": {
+ "type": "object",
+ "description": "Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean)."
+ },
"modifiedDatetimeStart": {
"type": "object",
"description": "The start of file's modified datetime. Type: string (or Expression with resultType string)."
@@ -349,6 +357,14 @@
"type": "object",
"description": "Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string)."
},
+ "listAfter": {
+ "type": "object",
+ "description": "Lists files after the value (exclusive) based on file/folder names’ lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string (or Expression with resultType string)."
+ },
+ "listBefore": {
+ "type": "object",
+ "description": "Lists files before the value (inclusive) based on file/folder names’ lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string (or Expression with resultType string)."
+ },
"enablePartitionDiscovery": {
"type": "boolean",
"description": "Indicates whether to enable partition discovery."
@@ -357,6 +373,10 @@
"type": "object",
"description": "Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string)."
},
+ "deleteFilesAfterCompletion": {
+ "type": "object",
+ "description": "Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean)."
+ },
"modifiedDatetimeStart": {
"type": "object",
"description": "The start of file's modified datetime. Type: string (or Expression with resultType string)."
@@ -404,6 +424,10 @@
"type": "object",
"description": "Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string)."
},
+ "deleteFilesAfterCompletion": {
+ "type": "object",
+ "description": "Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean)."
+ },
"modifiedDatetimeStart": {
"type": "object",
"description": "The start of file's modified datetime. Type: string (or Expression with resultType string)."
@@ -447,6 +471,10 @@
"type": "object",
"description": "Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string)."
},
+ "deleteFilesAfterCompletion": {
+ "type": "object",
+ "description": "Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean)."
+ },
"modifiedDatetimeStart": {
"type": "object",
"description": "The start of file's modified datetime. Type: string (or Expression with resultType string)."
@@ -498,6 +526,10 @@
"type": "object",
"description": "Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string)."
},
+ "deleteFilesAfterCompletion": {
+ "type": "object",
+ "description": "Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean)."
+ },
"modifiedDatetimeStart": {
"type": "object",
"description": "The start of file's modified datetime. Type: string (or Expression with resultType string)."
@@ -564,6 +596,10 @@
"type": "object",
"description": "Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string)."
},
+ "deleteFilesAfterCompletion": {
+ "type": "object",
+ "description": "Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean)."
+ },
"modifiedDatetimeStart": {
"type": "object",
"description": "The start of file's modified datetime. Type: string (or Expression with resultType string)."
@@ -603,6 +639,10 @@
"type": "object",
"description": "Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string)."
},
+ "deleteFilesAfterCompletion": {
+ "type": "object",
+ "description": "Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean)."
+ },
"fileListPath": {
"type": "object",
"description": "Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string)."
@@ -646,6 +686,10 @@
"type": "object",
"description": "Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string)."
},
+ "deleteFilesAfterCompletion": {
+ "type": "object",
+ "description": "Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean)."
+ },
"modifiedDatetimeStart": {
"type": "object",
"description": "The start of file's modified datetime. Type: string (or Expression with resultType string)."
@@ -900,6 +944,29 @@
}
}
},
+ "XmlReadSettings": {
+ "description": "Xml read settings.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/FormatReadSettings"
+ }
+ ],
+ "properties": {
+ "compressionProperties": {
+ "$ref": "#/definitions/CompressionReadSettings",
+ "description": "Compression settings."
+ },
+ "validationMode": {
+ "type": "object",
+ "description": "Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string)."
+ },
+ "namespacePrefixes": {
+ "type": "object",
+ "description": "Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: \"{\"http://www.example.com/xml\":\"prefix\"}\" Type: object (or Expression with resultType object)."
+ }
+ }
+ },
"BinaryReadSettings": {
"description": "Binary read settings.",
"type": "object",
@@ -1018,6 +1085,28 @@
}
}
},
+ "ExcelSource": {
+ "description": "A copy activity excel source.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/CopySource"
+ }
+ ],
+ "properties": {
+ "storeSettings": {
+ "$ref": "#/definitions/StoreReadSettings",
+ "description": "Excel store settings."
+ },
+ "additionalColumns": {
+ "type": "array",
+ "description": "Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects).",
+ "items": {
+ "$ref": "#/definitions/AdditionalColumns"
+ }
+ }
+ }
+ },
"ParquetSource": {
"description": "A copy activity Parquet source.",
"type": "object",
@@ -1092,6 +1181,32 @@
}
}
},
+ "XmlSource": {
+ "description": "A copy activity Xml source.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/CopySource"
+ }
+ ],
+ "properties": {
+ "storeSettings": {
+ "$ref": "#/definitions/StoreReadSettings",
+ "description": "Xml store settings."
+ },
+ "formatSettings": {
+ "$ref": "#/definitions/XmlReadSettings",
+ "description": "Xml format settings."
+ },
+ "additionalColumns": {
+ "type": "array",
+ "description": "Specifies the additional columns to be added to source data. Type: array of objects (or Expression with resultType array of objects).",
+ "items": {
+ "$ref": "#/definitions/AdditionalColumns"
+ }
+ }
+ }
+ },
"OrcSource": {
"description": "A copy activity ORC source.",
"type": "object",
@@ -2162,11 +2277,11 @@
},
"partitionUpperBound": {
"type": "object",
- "description": "The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string)."
+ "description": "The maximum value of the partition column for partition range splitting. This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or query result will be partitioned and copied. Type: string (or Expression with resultType string)."
},
"partitionLowerBound": {
"type": "object",
- "description": "The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: string (or Expression with resultType string)."
+ "description": "The minimum value of the partition column for partition range splitting. This value is used to decide the partition stride, not for filtering the rows in table. All rows in the table or query result will be partitioned and copied. Type: string (or Expression with resultType string)."
}
}
},
@@ -4388,6 +4503,44 @@
"mappings": {
"type": "object",
"description": "Column mappings with logical types. Tabular->tabular example: [{\"source\":{\"name\":\"CustomerName\",\"type\":\"String\"},\"sink\":{\"name\":\"ClientName\",\"type\":\"String\"}},{\"source\":{\"name\":\"CustomerAddress\",\"type\":\"String\"},\"sink\":{\"name\":\"ClientAddress\",\"type\":\"String\"}}]. Hierarchical->tabular example: [{\"source\":{\"path\":\"$.CustomerName\",\"type\":\"String\"},\"sink\":{\"name\":\"ClientName\",\"type\":\"String\"}},{\"source\":{\"path\":\"$.CustomerAddress\",\"type\":\"String\"},\"sink\":{\"name\":\"ClientAddress\",\"type\":\"String\"}}]. Type: object (or Expression with resultType object)."
+ },
+ "typeConversion": {
+ "type": "object",
+ "description": "Whether to enable the advanced type conversion feature in the Copy activity. Type: boolean (or Expression with resultType boolean)."
+ },
+ "typeConversionSettings": {
+ "description": "Type conversion settings",
+ "$ref": "#/definitions/TypeConversionSettings"
+ }
+ }
+ },
+ "TypeConversionSettings": {
+ "description": "Type conversion settings",
+ "type": "object",
+ "properties": {
+ "allowDataTruncation": {
+ "type": "object",
+ "description": "Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean)."
+ },
+ "treatBooleanAsNumber": {
+ "type": "object",
+ "description": "Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean)."
+ },
+ "dateTimeFormat": {
+ "type": "object",
+ "description": "The format for DateTime values. Type: string (or Expression with resultType string)."
+ },
+ "dateTimeOffsetFormat": {
+ "type": "object",
+ "description": "The format for DateTimeOffset values. Type: string (or Expression with resultType string)."
+ },
+ "timeSpanFormat": {
+ "type": "object",
+ "description": "The format for TimeSpan values. Type: string (or Expression with resultType string)."
+ },
+ "culture": {
+ "type": "object",
+ "description": "The culture used to convert data from/to string. Type: string (or Expression with resultType string)."
}
}
},
@@ -5280,6 +5433,10 @@
"dataset": {
"description": "Delete activity dataset reference.",
"$ref": "../datafactory.json#/definitions/DatasetReference"
+ },
+ "storeSettings": {
+ "$ref": "#/definitions/StoreReadSettings",
+ "description": "Delete activity store settings."
}
},
"required": [
@@ -5502,6 +5659,14 @@
"type": "object",
"description": "Type: string (or Expression with resultType string)."
}
+ },
+ "storeSettings": {
+ "$ref": "#/definitions/StoreReadSettings",
+ "description": "GetMetadata activity store settings."
+ },
+ "formatSettings": {
+ "$ref": "#/definitions/FormatReadSettings",
+ "description": "GetMetadata activity format settings."
}
},
"required": [
@@ -5907,7 +6072,7 @@
"properties": {
"waitTimeInSeconds": {
"description": "Duration in seconds.",
- "type": "integer"
+ "type": "object"
}
},
"required": [
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_Get.json b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_Get.json
index b96b9eda962e..b93ee3d85636 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_Get.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_Get.json
@@ -28,7 +28,7 @@
"dataSetCount": 1,
"shareName": "share1"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
+ "id": "providers/Microsoft.DataShare/locations/eastus2/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
"name": "invitation1",
"type": "Microsoft.DataShare/consumerInvitations"
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_ListInvitations.json b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_ListInvitations.json
index 6e888dff3a47..99cf58e72d0e 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_ListInvitations.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_ListInvitations.json
@@ -28,7 +28,7 @@
"providerTenantName": "microsoft",
"shareName": "share1"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
+ "id": "providers/Microsoft.DataShare/locations/eastus2/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
"name": "invitation1",
"type": "Microsoft.DataShare/consumerInvitations"
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_RejectInvitation.json b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_RejectInvitation.json
index e0c2b2087285..95b85eca540e 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_RejectInvitation.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ConsumerInvitations_RejectInvitation.json
@@ -32,7 +32,7 @@
"dataSetCount": 1,
"shareName": "share1"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
+ "id": "providers/Microsoft.DataShare/locations/eastus2/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
"name": "invitation1",
"type": "Microsoft.DataShare/consumerInvitations"
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_GetByShare.json b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_GetByShare.json
index 47d23521376d..53721147f187 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_GetByShare.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_GetByShare.json
@@ -4,7 +4,7 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareName": "Share1",
- "providerShareSubscriptionId": "d5496da4-9c52-402f-b067-83cc9ddea888",
+ "providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
"api-version": "2018-11-01-preview"
},
"responses": {
@@ -27,9 +27,9 @@
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Active"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "invitation1",
- "type": "Microsoft.DataShare/shareSubscripitons"
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
+ "type": "Microsoft.DataShare/providerShareSubscripitons"
}
}
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_ListByShare.json b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_ListByShare.json
index f41b2fe534b7..faf514c0e617 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_ListByShare.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_ListByShare.json
@@ -28,9 +28,9 @@
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Active"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "invitation1",
- "type": "Microsoft.DataShare/shareSubscripitons"
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
+ "type": "Microsoft.DataShare/providerShareSubscripitons"
}
]
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_Reinstate.json b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_Reinstate.json
index 47d23521376d..53721147f187 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_Reinstate.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_Reinstate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareName": "Share1",
- "providerShareSubscriptionId": "d5496da4-9c52-402f-b067-83cc9ddea888",
+ "providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
"api-version": "2018-11-01-preview"
},
"responses": {
@@ -27,9 +27,9 @@
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Active"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "invitation1",
- "type": "Microsoft.DataShare/shareSubscripitons"
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
+ "type": "Microsoft.DataShare/providerShareSubscripitons"
}
}
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_Revoke.json b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_Revoke.json
index 6dc1c231af20..26f40068c247 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_Revoke.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/preview/2018-11-01-preview/examples/ProviderShareSubscriptions_Revoke.json
@@ -4,7 +4,7 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareName": "Share1",
- "providerShareSubscriptionId": "d5496da4-9c52-402f-b067-83cc9ddea888",
+ "providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
"api-version": "2018-11-01-preview"
},
"responses": {
@@ -27,8 +27,8 @@
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Revoked"
},
- "id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/account1/shares/share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "providerShareSubscripiton",
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
"type": "Microsoft.DataShare/providerShareSubscripitons"
}
},
@@ -40,7 +40,7 @@
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
"x-ms-long-running-operation": true,
- "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/consumerAccount/shares/shareSub1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
},
"body": {
"properties": {
@@ -48,12 +48,13 @@
"consumerEmail": "john.smith@microsoft.com",
"createdAt": "2018-12-13T08:52:42.6224087Z",
"providerName": "John Smith",
+ "providerEmail": "john.smith@microsoft.com",
"sharedAt": "2018-12-13T08:45:40.9005877Z",
"consumerTenantName": "Microsoft",
- "shareSubscriptionStatus": "Revoked"
+ "shareSubscriptionStatus": "Revoking"
},
- "id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/account1/shares/share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "providerShareSubscripiton",
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
"type": "Microsoft.DataShare/providerShareSubscripitons"
}
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_Get.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_Get.json
index 3947c32f1d2d..4f48f4b70235 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_Get.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_Get.json
@@ -28,7 +28,7 @@
"dataSetCount": 1,
"shareName": "share1"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
+ "id": "providers/Microsoft.DataShare/locations/eastus2/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
"name": "invitation1",
"type": "Microsoft.DataShare/consumerInvitations"
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_ListInvitations.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_ListInvitations.json
index be162fe02bd5..e4fbe7a361e4 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_ListInvitations.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_ListInvitations.json
@@ -28,7 +28,7 @@
"providerTenantName": "microsoft",
"shareName": "share1"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
+ "id": "providers/Microsoft.DataShare/locations/eastus2/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
"name": "invitation1",
"type": "Microsoft.DataShare/consumerInvitations"
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_RejectInvitation.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_RejectInvitation.json
index 94863b3897a0..53670998bd16 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_RejectInvitation.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ConsumerInvitations_RejectInvitation.json
@@ -32,7 +32,7 @@
"dataSetCount": 1,
"shareName": "share1"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
+ "id": "providers/Microsoft.DataShare/locations/eastus2/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
"name": "invitation1",
"type": "Microsoft.DataShare/consumerInvitations"
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_GetByShare.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_GetByShare.json
index 64e4f3659f8b..8ac27fec3bbb 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_GetByShare.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_GetByShare.json
@@ -4,7 +4,7 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareName": "Share1",
- "providerShareSubscriptionId": "d5496da4-9c52-402f-b067-83cc9ddea888",
+ "providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
"api-version": "2019-11-01"
},
"responses": {
@@ -27,9 +27,9 @@
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Active"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "invitation1",
- "type": "Microsoft.DataShare/shareSubscripitons"
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
+ "type": "Microsoft.DataShare/providerShareSubscripitons"
}
}
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_ListByShare.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_ListByShare.json
index b230d875f279..65dd14bcad7b 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_ListByShare.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_ListByShare.json
@@ -28,9 +28,9 @@
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Active"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "invitation1",
- "type": "Microsoft.DataShare/shareSubscripitons"
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
+ "type": "Microsoft.DataShare/providerShareSubscripitons"
}
]
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_Reinstate.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_Reinstate.json
index 64e4f3659f8b..8ac27fec3bbb 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_Reinstate.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_Reinstate.json
@@ -4,7 +4,7 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareName": "Share1",
- "providerShareSubscriptionId": "d5496da4-9c52-402f-b067-83cc9ddea888",
+ "providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
"api-version": "2019-11-01"
},
"responses": {
@@ -27,9 +27,9 @@
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Active"
},
- "id": "providers/Microsoft.DataShare/consumerInvitations/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "invitation1",
- "type": "Microsoft.DataShare/shareSubscripitons"
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
+ "type": "Microsoft.DataShare/providerShareSubscripitons"
}
}
}
diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_Revoke.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_Revoke.json
index 59b9c4d9a1b9..536a8324c789 100644
--- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_Revoke.json
+++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ProviderShareSubscriptions_Revoke.json
@@ -4,7 +4,7 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareName": "Share1",
- "providerShareSubscriptionId": "d5496da4-9c52-402f-b067-83cc9ddea888",
+ "providerShareSubscriptionId": "4256e2cf-0f82-4865-961b-12f83333f487",
"api-version": "2019-11-01"
},
"responses": {
@@ -27,8 +27,8 @@
"consumerTenantName": "Microsoft",
"shareSubscriptionStatus": "Revoked"
},
- "id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/account1/shares/share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "providerShareSubscripiton",
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
"type": "Microsoft.DataShare/providerShareSubscripitons"
}
},
@@ -40,7 +40,7 @@
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd",
"x-ms-long-running-operation": true,
- "Azure-AsyncOperation": "https://management.azure.com/subscriptions/d8869ae5-cd9e-413a-b660-104573d8bcee/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/consumerAccount/shares/shareSub1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2018-11-01-preview"
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2019-11-01"
},
"body": {
"properties": {
@@ -48,12 +48,13 @@
"consumerEmail": "john.smith@microsoft.com",
"createdAt": "2018-12-13T08:52:42.6224087Z",
"providerName": "John Smith",
+ "providerEmail": "john.smith@microsoft.com",
"sharedAt": "2018-12-13T08:45:40.9005877Z",
"consumerTenantName": "Microsoft",
- "shareSubscriptionStatus": "Revoked"
+ "shareSubscriptionStatus": "Revoking"
},
- "id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/testrg/providers/Microsoft.DataShare/accounts/account1/shares/share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
- "name": "providerShareSubscripiton",
+ "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1/providerShareSubscripitons/4256e2cf-0f82-4865-961b-12f83333f487",
+ "name": "4256e2cf-0f82-4865-961b-12f83333f487",
"type": "Microsoft.DataShare/providerShareSubscripitons"
}
}
diff --git a/specification/datashare/resource-manager/readme.typescript.md b/specification/datashare/resource-manager/readme.typescript.md
new file mode 100644
index 000000000000..e2a649c02539
--- /dev/null
+++ b/specification/datashare/resource-manager/readme.typescript.md
@@ -0,0 +1,13 @@
+## TypeScript
+
+These settings apply only when `--typescript` is specified on the command line.
+Please also specify `--typescript-sdks-folder=`.
+
+``` yaml $(typescript)
+typescript:
+ azure-arm: true
+ package-name: "@azure/arm-datashare"
+ output-folder: "$(typescript-sdks-folder)/sdk/datashare/arm-datashare"
+ clear-output-folder: true
+ generate-metadata: true
+```
diff --git a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-01-23-preview/desktopvirtualization.json b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-01-23-preview/desktopvirtualization.json
index 64868f31dc31..461026a2fdfa 100644
--- a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-01-23-preview/desktopvirtualization.json
+++ b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-01-23-preview/desktopvirtualization.json
@@ -1961,63 +1961,12 @@
}
}
},
- "Resource": {
- "description": "ARM resource.",
- "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."
- }
- },
- "x-ms-azure-resource": true
- },
- "TrackedResource": {
- "description": "ARM tracked top level resource.",
- "properties": {
- "tags": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-ms-mutability": [
- "read",
- "create",
- "update"
- ],
- "description": "Resource tags."
- },
- "location": {
- "type": "string",
- "x-ms-mutability": [
- "read",
- "create"
- ],
- "description": "Resource location."
- }
- },
- "allOf": [
- {
- "$ref": "#/definitions/Resource"
- }
- ]
- },
"Workspace": {
"type": "object",
"description": "Represents a Workspace definition.",
"allOf": [
{
- "$ref": "#/definitions/TrackedResource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
"properties": {
@@ -2109,9 +2058,12 @@
"description": "Represents a ApplicationGroup definition.",
"allOf": [
{
- "$ref": "#/definitions/TrackedResource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
+ "required": [
+ "properties"
+ ],
"properties": {
"properties": {
"description": "Detailed properties for ApplicationGroup",
@@ -2123,6 +2075,10 @@
"ApplicationGroupProperties": {
"description": "Schema for ApplicationGroup properties.",
"type": "object",
+ "required": [
+ "hostPoolArmPath",
+ "applicationGroupType"
+ ],
"properties": {
"description": {
"type": "string",
@@ -2162,7 +2118,7 @@
"description": "ApplicationGroup properties that can be patched.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2215,9 +2171,12 @@
"description": "Represents a HostPool definition.",
"allOf": [
{
- "$ref": "#/definitions/TrackedResource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
+ "required": [
+ "properties"
+ ],
"properties": {
"properties": {
"description": "Detailed properties for HostPool",
@@ -2229,6 +2188,11 @@
"HostPoolProperties": {
"description": "Properties of HostPool.",
"type": "object",
+ "required": [
+ "hostPoolType",
+ "personalDesktopAssignmentType",
+ "loadBalancerType"
+ ],
"properties": {
"friendlyName": {
"type": "string",
@@ -2321,7 +2285,7 @@
"description": "HostPool properties that can be patched.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2466,9 +2430,12 @@
"type": "object",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
+ "required": [
+ "properties"
+ ],
"properties": {
"properties": {
"description": "Detailed properties for Application",
@@ -2480,6 +2447,9 @@
"ApplicationProperties": {
"description": "Schema for Application properties.",
"type": "object",
+ "required": [
+ "commandLineSetting"
+ ],
"properties": {
"description": {
"type": "string",
@@ -2622,7 +2592,7 @@
"type": "object",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2741,7 +2711,7 @@
"description": "Represents a StartMenuItem definition.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2776,7 +2746,7 @@
"description": "Represents a SessionHost definition.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2874,7 +2844,7 @@
"description": "SessionHost properties that can be patched.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2923,7 +2893,7 @@
"description": "Represents a UserSession definition.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
diff --git a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-09-24-preview/desktopvirtualization.json b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-09-24-preview/desktopvirtualization.json
index df8ead1bfafc..d75ddf4291a2 100644
--- a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-09-24-preview/desktopvirtualization.json
+++ b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-09-24-preview/desktopvirtualization.json
@@ -1961,63 +1961,12 @@
}
}
},
- "Resource": {
- "description": "ARM resource.",
- "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."
- }
- },
- "x-ms-azure-resource": true
- },
- "TrackedResource": {
- "description": "ARM tracked top level resource.",
- "properties": {
- "tags": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-ms-mutability": [
- "read",
- "create",
- "update"
- ],
- "description": "Resource tags."
- },
- "location": {
- "type": "string",
- "x-ms-mutability": [
- "read",
- "create"
- ],
- "description": "Resource location."
- }
- },
- "allOf": [
- {
- "$ref": "#/definitions/Resource"
- }
- ]
- },
"Workspace": {
"type": "object",
"description": "Represents a Workspace definition.",
"allOf": [
{
- "$ref": "#/definitions/TrackedResource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
"properties": {
@@ -2109,9 +2058,12 @@
"description": "Represents a ApplicationGroup definition.",
"allOf": [
{
- "$ref": "#/definitions/TrackedResource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
+ "required": [
+ "properties"
+ ],
"properties": {
"properties": {
"description": "Detailed properties for ApplicationGroup",
@@ -2123,6 +2075,10 @@
"ApplicationGroupProperties": {
"description": "Schema for ApplicationGroup properties.",
"type": "object",
+ "required": [
+ "hostPoolArmPath",
+ "applicationGroupType"
+ ],
"properties": {
"description": {
"type": "string",
@@ -2162,7 +2118,7 @@
"description": "ApplicationGroup properties that can be patched.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2215,9 +2171,12 @@
"description": "Represents a HostPool definition.",
"allOf": [
{
- "$ref": "#/definitions/TrackedResource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
+ "required": [
+ "properties"
+ ],
"properties": {
"properties": {
"description": "Detailed properties for HostPool",
@@ -2229,6 +2188,11 @@
"HostPoolProperties": {
"description": "Properties of HostPool.",
"type": "object",
+ "required": [
+ "hostPoolType",
+ "personalDesktopAssignmentType",
+ "loadBalancerType"
+ ],
"properties": {
"friendlyName": {
"type": "string",
@@ -2321,7 +2285,7 @@
"description": "HostPool properties that can be patched.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2485,9 +2449,12 @@
"type": "object",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
+ "required": [
+ "properties"
+ ],
"properties": {
"properties": {
"description": "Detailed properties for Application",
@@ -2499,6 +2466,9 @@
"ApplicationProperties": {
"description": "Schema for Application properties.",
"type": "object",
+ "required": [
+ "commandLineSetting"
+ ],
"properties": {
"description": {
"type": "string",
@@ -2641,7 +2611,7 @@
"type": "object",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2760,7 +2730,7 @@
"description": "Represents a StartMenuItem definition.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2795,7 +2765,7 @@
"description": "Represents a SessionHost definition.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2893,7 +2863,7 @@
"description": "SessionHost properties that can be patched.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2942,7 +2912,7 @@
"description": "Represents a UserSession definition.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
diff --git a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/desktopvirtualization.json b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/desktopvirtualization.json
index 39b50bc58904..621a229ef503 100644
--- a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/desktopvirtualization.json
+++ b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/desktopvirtualization.json
@@ -1961,63 +1961,12 @@
}
}
},
- "Resource": {
- "description": "ARM resource.",
- "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."
- }
- },
- "x-ms-azure-resource": true
- },
- "TrackedResource": {
- "description": "ARM tracked top level resource.",
- "properties": {
- "tags": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "x-ms-mutability": [
- "read",
- "create",
- "update"
- ],
- "description": "Resource tags."
- },
- "location": {
- "type": "string",
- "x-ms-mutability": [
- "read",
- "create"
- ],
- "description": "Resource location."
- }
- },
- "allOf": [
- {
- "$ref": "#/definitions/Resource"
- }
- ]
- },
"Workspace": {
"type": "object",
"description": "Represents a Workspace definition.",
"allOf": [
{
- "$ref": "#/definitions/TrackedResource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
"properties": {
@@ -2109,20 +2058,28 @@
"description": "Represents a ApplicationGroup definition.",
"allOf": [
{
- "$ref": "#/definitions/TrackedResource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
+ "required": [
+ "properties"
+ ],
"properties": {
"properties": {
"description": "Detailed properties for ApplicationGroup",
"x-ms-client-flatten": true,
- "$ref": "#/definitions/ApplicationGroupProperties"
+ "$ref": "#/definitions/ApplicationGroupProperties",
+ "x-nullable": false
}
}
},
"ApplicationGroupProperties": {
"description": "Schema for ApplicationGroup properties.",
"type": "object",
+ "required": [
+ "hostPoolArmPath",
+ "applicationGroupType"
+ ],
"properties": {
"description": {
"type": "string",
@@ -2162,7 +2119,7 @@
"description": "ApplicationGroup properties that can be patched.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2215,20 +2172,29 @@
"description": "Represents a HostPool definition.",
"allOf": [
{
- "$ref": "#/definitions/TrackedResource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
}
],
+ "required": [
+ "properties"
+ ],
"properties": {
"properties": {
"description": "Detailed properties for HostPool",
"x-ms-client-flatten": true,
- "$ref": "#/definitions/HostPoolProperties"
+ "$ref": "#/definitions/HostPoolProperties",
+ "x-nullable": false
}
}
},
"HostPoolProperties": {
"description": "Properties of HostPool.",
"type": "object",
+ "required": [
+ "hostPoolType",
+ "personalDesktopAssignmentType",
+ "loadBalancerType"
+ ],
"properties": {
"friendlyName": {
"type": "string",
@@ -2321,7 +2287,7 @@
"description": "HostPool properties that can be patched.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2432,6 +2398,11 @@
"description": "Represents a RegistrationInfo definition.",
"type": "object",
"properties": {
+ "expirationTime": {
+ "format": "date-time",
+ "type": "string",
+ "description": "Expiration time of registration token."
+ },
"registrationTokenOperation": {
"enum": [
"Delete",
@@ -2485,20 +2456,27 @@
"type": "object",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
+ "required": [
+ "properties"
+ ],
"properties": {
"properties": {
"description": "Detailed properties for Application",
"x-ms-client-flatten": true,
- "$ref": "#/definitions/ApplicationProperties"
+ "$ref": "#/definitions/ApplicationProperties",
+ "x-nullable": false
}
}
},
"ApplicationProperties": {
"description": "Schema for Application properties.",
"type": "object",
+ "required": [
+ "commandLineSetting"
+ ],
"properties": {
"description": {
"type": "string",
@@ -2641,7 +2619,7 @@
"type": "object",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2760,7 +2738,7 @@
"description": "Represents a StartMenuItem definition.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2795,7 +2773,7 @@
"description": "Represents a SessionHost definition.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2893,7 +2871,7 @@
"description": "SessionHost properties that can be patched.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
@@ -2942,7 +2920,7 @@
"description": "Represents a UserSession definition.",
"allOf": [
{
- "$ref": "#/definitions/Resource"
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
}
],
"properties": {
diff --git a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/examples/HostPool_Create.json b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/examples/HostPool_Create.json
index 7ea677d137e4..66b79818e853 100644
--- a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/examples/HostPool_Create.json
+++ b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/examples/HostPool_Create.json
@@ -19,7 +19,7 @@
"maxSessionLimit": 999999,
"loadBalancerType": "BreadthFirst",
"registrationInfo": {
- "expirationTime": "2008-09-22T14:01:54.9571247Z",
+ "expirationTime": "2020-10-01T14:01:54.9571247Z",
"registrationTokenOperation": "Update"
},
"ssoContext": "KeyVaultPath"
@@ -48,7 +48,7 @@
"validationEnvironment": null,
"ring": null,
"registrationInfo": {
- "expirationTime": "2008-09-22T14:01:54.9571247Z",
+ "expirationTime": "2020-10-01T14:01:54.9571247Z",
"token": "token",
"registrationTokenOperation": "Update"
},
@@ -77,7 +77,7 @@
"validationEnvironment": null,
"ring": null,
"registrationInfo": {
- "expirationTime": "2008-09-22T14:01:54.9571247Z",
+ "expirationTime": "2020-10-01T14:01:54.9571247Z",
"token": "token",
"registrationTokenOperation": "Update"
},
diff --git a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/examples/HostPool_Update.json b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/examples/HostPool_Update.json
index 6eb8e05ee4ce..0993e2d985a4 100644
--- a/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/examples/HostPool_Update.json
+++ b/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/examples/HostPool_Update.json
@@ -17,6 +17,7 @@
"loadBalancerType": "BreadthFirst",
"personalDesktopAssignmentType": "Automatic",
"registrationInfo": {
+ "expirationTime": "2020-10-01T15:01:54.9571247Z",
"registrationTokenOperation": "Update"
},
"ssoContext": "KeyVaultPath"
diff --git a/specification/desktopvirtualization/resource-manager/readme.az.md b/specification/desktopvirtualization/resource-manager/readme.az.md
new file mode 100644
index 000000000000..c4e10f818618
--- /dev/null
+++ b/specification/desktopvirtualization/resource-manager/readme.az.md
@@ -0,0 +1,22 @@
+## AZ
+
+These settings apply only when `--az` is specified on the command line.
+
+``` yaml $(az)
+az:
+ extensions: desktopvirtualization
+ package-name: azure-mgmt-desktopvirtualization
+ namespace: azure.mgmt.desktopvirtualization
+az-output-folder: $(azure-cli-extension-folder)/src/desktopvirtualization
+python-sdk-output-folder: "$(az-output-folder)/azext_desktopvirtualization/vendored_sdks/desktopvirtualization"
+
+directive:
+ - where:
+ group: desktopvirtualization host-pool
+ set:
+ group: desktopvirtualization hostpool
+ - where:
+ group: desktopvirtualization application-group
+ set:
+ group: desktopvirtualization applicationgroup
+```
diff --git a/specification/desktopvirtualization/resource-manager/readme.cli.md b/specification/desktopvirtualization/resource-manager/readme.cli.md
new file mode 100644
index 000000000000..1f10535c86f8
--- /dev/null
+++ b/specification/desktopvirtualization/resource-manager/readme.cli.md
@@ -0,0 +1,17 @@
+## CLI
+
+These settings don't need to apply `--cli` on the command line.
+
+``` yaml $(cli)
+cli:
+ cli-name: desktopvirtualization
+ cli-directive:
+ - where:
+ group: (ActiveApplications|Applications|ApplicationgroupAssignments|Desktops|SessionHosts|StartMenuItems|UserSessions)
+ hidden: true
+ # - where:
+ # group: ApplicationGroups
+ # op: ListByResourceGroup
+ # param: \$filter
+ # name: list-filter
+```
diff --git a/specification/desktopvirtualization/resource-manager/readme.go.md b/specification/desktopvirtualization/resource-manager/readme.go.md
index ec7859d8acd4..c8527d1dc4fa 100644
--- a/specification/desktopvirtualization/resource-manager/readme.go.md
+++ b/specification/desktopvirtualization/resource-manager/readme.go.md
@@ -13,6 +13,26 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2019-01-23-preview
+ - tag: package-2019-09-24-preview
+ - tag: package-2019-12-10-preview
+```
+
+### Tag: package-2019-12-10-preview and go
+
+These settings apply only when `--tag=package-2019-12-10-preview --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2019-12-10-preview' && $(go)
+output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-12-10-preview/$(namespace)
+```
+
+### Tag: package-2019-09-24-preview and go
+
+These settings apply only when `--tag=package-2019-09-24-preview --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2019-09-24-preview' && $(go)
+output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-09-24-preview/$(namespace)
```
### Tag: package-2019-01-23-preview and go
@@ -23,3 +43,4 @@ Please also specify `--go-sdk-folder=`.
-``` yaml $(tag) == 'package-2019-01-23-preview' && $(java) && $(multiapi)
+``` yaml $(tag) == 'package-2019-12-10-preview' && $(java) && $(multiapi)
java:
- namespace: com.microsoft.azure.management.desktopvirtualization.v2019_01_23_preview
- output-folder: $(azure-libraries-for-java-folder)/sdk/desktopvirtualization/mgmt-v2019_01_23_preview
+ namespace: com.microsoft.azure.management.desktopvirtualization.v2019_12_10_preview
+ output-folder: $(azure-libraries-for-java-folder)/sdk/desktopvirtualization/mgmt-v2019_12_10_preview
regenerate-manager: true
generate-interface: true
```
+
diff --git a/specification/desktopvirtualization/resource-manager/readme.md b/specification/desktopvirtualization/resource-manager/readme.md
index ba7b64dd3f4d..3864f213f6b1 100644
--- a/specification/desktopvirtualization/resource-manager/readme.md
+++ b/specification/desktopvirtualization/resource-manager/readme.md
@@ -19,14 +19,12 @@ To see additional help and options, run:
## Configuration
-
-
### Basic Information
These are the global settings for the DesktopVirtualizationClient API.
``` yaml
openapi-type: arm
-tag: package-2019-01-23-preview
+tag: package-2019-12-10-preview
```
### Tag: package-2019-01-23-preview
@@ -38,11 +36,6 @@ input-file:
- Microsoft.DesktopVirtualization/preview/2019-01-23-preview/desktopvirtualization.json
```
-``` yaml
-openapi-type: arm
-tag: package-2019-09-24-preview
-```
-
### Tag: package-2019-09-24-preview
These settings apply only when `--tag=package-2019-09-24-preview` is specified on the command line.
@@ -81,6 +74,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_desktop_virtualization']
+ - repo: azure-cli-extensions
```
## C#
@@ -110,13 +104,13 @@ See configuration in [readme.node.md](./readme.node.md)
## Ruby
See configuration in [readme.ruby.md](./readme.ruby.md)
-
-## Multi-API/Profile support for AutoRest v3 generators
-
-AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
-
-This block is updated by an automatic script. Edits may be lost!
-
+
+## Multi-API/Profile support for AutoRest v3 generators
+
+AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
+
+This block is updated by an automatic script. Edits may be lost!
+
``` yaml $(tag) == 'all-api-versions' /* autogenerated */
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../profiles/readme.md
@@ -127,13 +121,13 @@ input-file:
- $(this-folder)/Microsoft.DesktopVirtualization/preview/2019-09-24-preview/desktopvirtualization.json
- $(this-folder)/Microsoft.DesktopVirtualization/preview/2019-12-10-preview/desktopvirtualization.json
-```
-
-If there are files that should not be in the `all-api-versions` set,
-uncomment the `exclude-file` section below and add the file paths.
-
-``` yaml $(tag) == 'all-api-versions'
-#exclude-file:
-# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
-```
-
+```
+
+If there are files that should not be in the `all-api-versions` set,
+uncomment the `exclude-file` section below and add the file paths.
+
+``` yaml $(tag) == 'all-api-versions'
+#exclude-file:
+# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
+```
+
diff --git a/specification/desktopvirtualization/resource-manager/readme.python.md b/specification/desktopvirtualization/resource-manager/readme.python.md
index 9714d4109d0b..454b0737ac27 100644
--- a/specification/desktopvirtualization/resource-manager/readme.python.md
+++ b/specification/desktopvirtualization/resource-manager/readme.python.md
@@ -10,18 +10,18 @@ python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
- namespace: azure.mgmt.DesktopVirtualization
- package-name: azure-mgmt-DesktopVirtualization
+ namespace: azure.mgmt.desktopvirtualization
+ package-name: azure-mgmt-desktopvirtualization
package-version: 0.2.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
- output-folder: $(python-sdks-folder)/azure-mgmt-DesktopVirtualization/azure/mgmt/DesktopVirtualization
+ output-folder: $(python-sdks-folder)/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
- output-folder: $(python-sdks-folder)/azure-mgmt-DesktopVirtualization
+ output-folder: $(python-sdks-folder)/azure-mgmt-desktopvirtualization
```
diff --git a/specification/desktopvirtualization/resource-manager/readme.ruby.md b/specification/desktopvirtualization/resource-manager/readme.ruby.md
index da94e6d6503e..9491ec2d3560 100644
--- a/specification/desktopvirtualization/resource-manager/readme.ruby.md
+++ b/specification/desktopvirtualization/resource-manager/readme.ruby.md
@@ -3,7 +3,7 @@
These settings apply only when `--ruby` is specified on the command line.
``` yaml
-package-name: azure_mgmt_DesktopVirtualization
+package-name: azure_mgmt_desktop_virtualization
package-version: "0.16.0"
azure-arm: true
```
@@ -13,6 +13,28 @@ azure-arm: true
``` yaml $(ruby) && $(multiapi)
batch:
- tag: package-2019-01-23-preview
+ - tag: package-2019-09-24-preview
+ - tag: package-2019-12-10-preview
+```
+
+### Tag: package-2019-12-10-preview and ruby
+
+These settings apply only when `--tag=package-2019-12-10-preview --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2019-12-10-preview' && $(ruby)
+namespace: "Azure::DesktopVirtualization::Mgmt::V2019_12_10_preview"
+output-folder: $(ruby-sdks-folder)/management/azure_mgmt_desktop_virtualization/lib
+```
+
+### Tag: package-2019-09-24-preview and ruby
+
+These settings apply only when `--tag=package-2019-09-24-preview --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2019-09-24-preview' && $(ruby)
+namespace: "Azure::DesktopVirtualization::Mgmt::V2019_09_24_preview"
+output-folder: $(ruby-sdks-folder)/management/azure_mgmt_desktop_virtualization/lib
```
### Tag: package-2019-01-23-preview and ruby
@@ -21,6 +43,6 @@ These settings apply only when `--tag=package-2019-01-23-preview --ruby` is spec
Please also specify `--ruby-sdks-folder=`.
``` yaml $(tag) == 'package-2019-01-23-preview' && $(ruby)
-namespace: "Azure::DesktopVirtualization::Mgmt::V2017_04_24_preview"
-output-folder: $(ruby-sdks-folder)/management/azure_mgmt_DesktopVirtualization/lib
-```
+namespace: "Azure::DesktopVirtualization::Mgmt::V2019_01_23_preview"
+output-folder: $(ruby-sdks-folder)/management/azure_mgmt_desktop_virtualization/lib
+```
\ No newline at end of file
diff --git a/specification/deviceprovisioningservices/resource-manager/readme.cli.md b/specification/deviceprovisioningservices/resource-manager/readme.cli.md
new file mode 100644
index 000000000000..d983c42ee8bc
--- /dev/null
+++ b/specification/deviceprovisioningservices/resource-manager/readme.cli.md
@@ -0,0 +1,43 @@
+## CLI
+
+These settings apply only when `--cli` is specified on the command line.
+
+``` yaml $(cli)
+cli:
+ cli-name: iothubprovisioningservices
+ package-name: azure-mgmt-iothubprovisioningservices
+ namespace: azure.mgmt.iothubprovisioningservices
+ test-scenario:
+ - name: /IotDpsResource/put/DPSCreate
+ - name: /DpsCertificate/put/DPSCreateOrUpdateCertificate
+ disabled: true
+ comment: Certificates not tested yet
+ - name: /DpsCertificate/get/DPSGetCertificate
+ disabled: true
+ comment: Certificates not tested yet
+ - name: /IotDpsResource/get/DPSGetOperationResult
+ disabled: true
+ comment: Certificates not tested yet
+ - name: /DpsCertificate/get/DPSGetCertificates
+ - name: /IotDpsResource/get/DPSGetValidSku
+ - name: /IotDpsResource/get/DPSGet
+ - name: /IotDpsResource/get/DPSListByResourceGroup
+ - name: /IotDpsResource/get/DPSListBySubscription
+ - name: /Operations/get/DPSOperations
+ - name: /DpsCertificate/post/DPSGenerateVerificationCode
+ disabled: true
+ comment: Certificates not tested yet
+ - name: /DpsCertificate/post/DPSVerifyCertificate
+ disabled: true
+ comment: Certificates not tested yet
+ - name: /IotDpsResource/post/DPSGetKey
+ disabled: true
+ comment: Certificates not tested yet
+ - name: /IotDpsResource/post/DPSListKeys
+ - name: /IotDpsResource/patch/DPSPatch
+ - name: /IotDpsResource/post/DPSCheckName
+ - name: /DpsCertificate/delete/DPSDeleteCertificate
+ disabled: true
+ comment: Certificates not tested yet
+ - name: /IotDpsResource/delete/DPSDelete
+```
diff --git a/specification/devops/resource-manager/readme.md b/specification/devops/resource-manager/readme.md
index 273f33a4855b..bf7b56068c9c 100644
--- a/specification/devops/resource-manager/readme.md
+++ b/specification/devops/resource-manager/readme.md
@@ -53,6 +53,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
+ - repo: azure-sdk-for-trenton
- repo: azure-sdk-for-js
- repo: azure-sdk-for-ruby
after_scripts:
@@ -104,3 +105,17 @@ uncomment the `exclude-file` section below and add the file paths.
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
+## trenton
+
+These settings apply only when `--trenton` is specified on the command line.
+
+``` yaml $(trenton)
+trenton:
+ cli-name: devops
+ azure_arm: true
+ license_header: MICROSOFT_MIT_NO_VERSION
+ payload_flattening_threshold: 2
+ namespace: devops
+ package-name: devops
+ clear-output-folder: false
+```
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/digitaltwins.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/digitaltwins.json
new file mode 100644
index 000000000000..b17bda728464
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/digitaltwins.json
@@ -0,0 +1,1497 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-05-31-preview",
+ "title": "Azure Digital Twins API",
+ "description": "A service for managing and querying digital twins and digital twin models."
+ },
+ "host": "digitaltwins-name.digitaltwins.azure.net",
+ "schemes": [
+ "https"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "paths": {
+ "/models": {
+ "post": {
+ "tags": [
+ "Models"
+ ],
+ "description": "Uploads one or more models. When any error occurs, no models are uploaded.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n409 (Conflict): One or more of the provided models already exist.",
+ "operationId": "DigitalTwinModels_Add",
+ "x-ms-examples": {
+ "ModelAdd": {
+ "$ref": "./examples/ModelAdd.json"
+ }
+ },
+ "parameters": [
+ {
+ "name": "models",
+ "in": "body",
+ "description": "An array of models to add.",
+ "required": false,
+ "schema": {
+ "type": "array",
+ "minItems": 1,
+ "uniqueItems": true,
+ "items": {
+ "type": "object"
+ }
+ }
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/NonPagedModelDataCollection"
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "Models"
+ ],
+ "description": "Retrieves model metadata and, optionally, model definitions.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.",
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "operationId": "DigitalTwinModels_List",
+ "x-ms-examples": {
+ "ModelsGet": {
+ "$ref": "./examples/ModelsGet.json"
+ },
+ "ModelsGetWithContextAndIncludeModelDefinition": {
+ "$ref": "./examples/ModelsGetWithDependenciesAndIncludeModelDefinition.json"
+ }
+ },
+ "parameters": [
+ {
+ "name": "dependenciesFor",
+ "in": "query",
+ "description": "The set of the models which will have their dependencies retrieved. If omitted, all models are retrieved.",
+ "required": false,
+ "type": "array",
+ "collectionFormat": "multi",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "$ref": "#/parameters/includeModelDefinition"
+ },
+ {
+ "$ref": "#/parameters/max-item-count"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/PagedModelDataCollection"
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/models/{id}": {
+ "get": {
+ "tags": [
+ "Models"
+ ],
+ "description": "Retrieves model metadata and optionally the model definition.\nStatus codes:\n200 (OK): Success.\n404 (Not Found): There is no model with the provided id.",
+ "operationId": "DigitalTwinModels_GetById",
+ "x-ms-examples": {
+ "ModelGetById": {
+ "$ref": "./examples/ModelGetById.json"
+ },
+ "ModelGetByIdWithIncludeModelDefinition": {
+ "$ref": "./examples/ModelGetByIdWithIncludeModelDefinition.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/modelId"
+ },
+ {
+ "$ref": "#/parameters/includeModelDefinition"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/ModelData"
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Models"
+ ],
+ "description": "Updates the metadata for a model.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is no model with the provided id.",
+ "operationId": "DigitalTwinModels_Update",
+ "consumes": [
+ "application/json-patch+json"
+ ],
+ "x-ms-examples": {
+ "ModelUpdateDecommissioned": {
+ "$ref": "./examples/ModelUpdateDecommissioned.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/modelId"
+ },
+ {
+ "name": "updateModel",
+ "description": "An update specification described by JSON Patch. Only the decommissioned property can be replaced.",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Models"
+ ],
+ "operationId": "DigitalTwinModels_Delete",
+ "description": "Deletes a model. A model can only be deleted if no other models reference it.\nStatus codes:\n204 (No Content): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is no model with the provided id.\n409 (Conflict): There are dependencies on the model that prevent it from being deleted.",
+ "x-ms-examples": {
+ "DeleteModel": {
+ "$ref": "./examples/DeleteModel.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/modelId"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/query": {
+ "post": {
+ "tags": [
+ "Query"
+ ],
+ "operationId": "Query_QueryTwins",
+ "description": "Executes a query that allows traversing relationships and filtering by property values.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.",
+ "x-ms-examples": {
+ "QueryFirstPage": {
+ "$ref": "./examples/QueryFirstPage.json"
+ },
+ "QueryNextPage": {
+ "$ref": "./examples/QueryNextPage.json"
+ },
+ "QueryJoin": {
+ "$ref": "./examples/QueryJoin.json"
+ }
+ },
+ "parameters": [
+ {
+ "name": "querySpecification",
+ "in": "body",
+ "description": "The query specification to execute.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/QuerySpecification"
+ }
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/QueryResult"
+ },
+ "headers": {
+ "query-charge": {
+ "description": "The query charge.",
+ "type": "number"
+ }
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/digitaltwins/{id}": {
+ "get": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_GetById",
+ "description": "Retrieves a digital twin.\nStatus codes:\n200 (OK): Success.\n404 (Not Found): There is no digital twin with the provided id.",
+ "x-ms-examples": {
+ "GetTwin": {
+ "$ref": "./examples/GetTwin.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "type": "object"
+ },
+ "headers": {
+ "ETag": {
+ "description": "Weak Etag.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_Add",
+ "description": "Adds or replaces a digital twin.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n412 (Precondition Failed): The model is decommissioned or the digital twin already exists (when using If-None-Match: *).",
+ "x-ms-examples": {
+ "PutTwinBasicExample": {
+ "$ref": "./examples/PutTwinBasicExample.json"
+ },
+ "PutTwinAdvancedExample": {
+ "$ref": "./examples/PutTwinAdvancedExample.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "name": "twin",
+ "description": "The digital twin instance being added. If provided, the $dtId property is ignored.",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "type": "object"
+ }
+ },
+ {
+ "$ref": "#/parameters/if-none-match-star"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "type": "object"
+ },
+ "headers": {
+ "ETag": {
+ "description": "Weak Etag.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_Delete",
+ "description": "Deletes a digital twin. All relationships referencing the digital twin must already be deleted.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is no digital twin with the provided id.",
+ "x-ms-examples": {
+ "DeleteTwin": {
+ "$ref": "./examples/DeleteTwin.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/if-match"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_Update",
+ "description": "Updates a digital twin.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is no digital twin with the provided id.",
+ "consumes": [
+ "application/json-patch+json"
+ ],
+ "x-ms-examples": {
+ "PatchTwinBasicExample": {
+ "$ref": "./examples/PatchTwinBasicExample.json"
+ },
+ "PatchTwinAdvancedExample": {
+ "$ref": "./examples/PatchTwinAdvancedExample.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "name": "patchDocument",
+ "description": "An update specification described by JSON Patch. Updates to property values and $model elements may happen in the same request. Operations are limited to add, replace and remove.",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ },
+ {
+ "$ref": "#/parameters/if-match"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success",
+ "headers": {
+ "ETag": {
+ "description": "Weak Etag.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/digitaltwins/{id}/relationships/{relationshipId}": {
+ "get": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_GetRelationshipById",
+ "description": "Retrieves a relationship between two digital twins.\nStatus codes:\n200 (OK): Success.\n404 (Not Found): There is either no digital twin or relationship with the provided id.",
+ "x-ms-examples": {
+ "GetRelationshipById": {
+ "$ref": "./examples/GetRelationshipById.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/relationshipId"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "type": "object"
+ },
+ "headers": {
+ "ETag": {
+ "description": "Weak Etag.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_AddRelationship",
+ "description": "Adds a relationship between two digital twins.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is either no digital twin, target digital twin, or relationship with the provided id.\n409 (Conflict): A relationship with the provided id already exists.",
+ "x-ms-examples": {
+ "CreateRelationshipBasicExample": {
+ "$ref": "./examples/CreateRelationshipBasicExample.json"
+ },
+ "CreateRelationshipAdvancedExample": {
+ "$ref": "./examples/CreateRelationshipAdvancedExample.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/relationshipId"
+ },
+ {
+ "name": "relationship",
+ "in": "body",
+ "description": "The data for the relationship.",
+ "required": false,
+ "schema": {
+ "type": "object"
+ }
+ },
+ {
+ "$ref": "#/parameters/if-none-match-star"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "type": "object"
+ },
+ "headers": {
+ "ETag": {
+ "description": "Weak Etag.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_DeleteRelationship",
+ "description": "Deletes a relationship between two digital twins.\nStatus codes:\n200 (OK): Success.\n404 (Not Found): There is either no digital twin or relationship with the provided id.",
+ "x-ms-examples": {
+ "DeleteRelationship": {
+ "$ref": "./examples/DeleteRelationship.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/relationshipId"
+ },
+ {
+ "$ref": "#/parameters/if-match"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Twins"
+ ],
+ "consumes": [
+ "application/json-patch+json"
+ ],
+ "operationId": "DigitalTwins_UpdateRelationship",
+ "description": "Updates the properties on a relationship between two digital twins.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is either no digital twin or relationship with the provided id.",
+ "x-ms-examples": {
+ "PatchRelationshipBasicExample": {
+ "$ref": "./examples/PatchRelationshipBasicExample.json"
+ },
+ "PatchRelationshipAdvancedExample": {
+ "$ref": "./examples/PatchRelationshipAdvancedExample.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/relationshipId"
+ },
+ {
+ "name": "patchDocument",
+ "description": "JSON Patch description of the update to the relationship properties.",
+ "in": "body",
+ "required": false,
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ },
+ {
+ "$ref": "#/parameters/if-match"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success",
+ "headers": {
+ "ETag": {
+ "description": "Weak Etag.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/digitaltwins/{id}/relationships": {
+ "get": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_ListRelationships",
+ "description": "Retrieves the relationships from a digital twin.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is no digital twin with the provided id.",
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "GetRelationship": {
+ "$ref": "./examples/GetRelationship.json"
+ },
+ "GetRelationshipByName": {
+ "$ref": "./examples/GetRelationshipByRelationshipName.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "name": "relationshipName",
+ "description": "The name of the relationship.",
+ "in": "query",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/RelationshipCollection"
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/digitaltwins/{id}/incomingrelationships": {
+ "get": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_ListIncomingRelationships",
+ "description": "Retrieves all incoming relationship for a digital twin.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is no digital twin with the provided id.",
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "GetIncomingRelationship": {
+ "$ref": "./examples/GetIncomingRelationship.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/IncomingRelationshipCollection"
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/digitaltwins/{id}/telemetry": {
+ "post": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_SendTelemetry",
+ "description": "Sends telemetry on behalf of a digital twin.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is no digital twin with the provided id.",
+ "x-ms-examples": {
+ "SendTelemetry": {
+ "$ref": "./examples/SendTelemetry.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "name": "telemetry",
+ "in": "body",
+ "description": "The telemetry measurements to send from the digital twin.",
+ "required": true,
+ "schema": {
+ "type": "object"
+ }
+ },
+ {
+ "name": "dt-id",
+ "in": "header",
+ "description": "A unique message identifier (in the scope of the digital twin id) that is commonly used for de-duplicating messages.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "dt-timestamp",
+ "in": "header",
+ "description": "An RFC 3339 timestamp that identifies the time the telemetry was measured.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/digitaltwins/{id}/components/{componentPath}/telemetry": {
+ "post": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_SendComponentTelemetry",
+ "description": "Sends telemetry on behalf of a component in a digital twin.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is either no digital twin with the provided id or the component path is invalid.",
+ "x-ms-examples": {
+ "SendTelemetry": {
+ "$ref": "./examples/SendTelemetryFromComponent.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/componentPath"
+ },
+ {
+ "name": "telemetry",
+ "in": "body",
+ "description": "The telemetry measurements to send from the digital twin's component.",
+ "required": true,
+ "schema": {
+ "type": "object"
+ }
+ },
+ {
+ "name": "dt-id",
+ "in": "header",
+ "description": "A unique message identifier (in the scope of the digital twin id) that is commonly used for de-duplicating messages.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "dt-timestamp",
+ "in": "header",
+ "description": "An RFC 3339 timestamp that identifies the time the telemetry was measured.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/digitaltwins/{id}/components/{componentPath}": {
+ "get": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_GetComponent",
+ "description": "Retrieves a component from a digital twin.\nStatus codes:\n200 (OK): Success.\n404 (Not Found): There is either no digital twin with the provided id or the component path is invalid.",
+ "x-ms-examples": {
+ "GetComponent": {
+ "$ref": "./examples/GetComponent.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/componentPath"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "type": "object"
+ },
+ "headers": {
+ "ETag": {
+ "description": "Weak Etag.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Twins"
+ ],
+ "operationId": "DigitalTwins_UpdateComponent",
+ "description": "Updates a component on a digital twin.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.\n404 (Not Found): There is either no digital twin with the provided id or the component path is invalid.",
+ "x-ms-examples": {
+ "PatchComponentBasicExample": {
+ "$ref": "./examples/PatchComponentBasicExample.json"
+ },
+ "PatchComponentAdvancedExample": {
+ "$ref": "./examples/PatchComponentAdvancedExample.json"
+ }
+ },
+ "consumes": [
+ "application/json-patch+json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/digitalTwinId"
+ },
+ {
+ "$ref": "#/parameters/componentPath"
+ },
+ {
+ "name": "patchDocument",
+ "description": "An update specification described by JSON Patch. Updates to property values and $model elements may happen in the same request. Operations are limited to add, replace and remove.",
+ "in": "body",
+ "required": false,
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ },
+ {
+ "$ref": "#/parameters/if-match"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success",
+ "headers": {
+ "ETag": {
+ "description": "Weak Etag.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/eventroutes": {
+ "get": {
+ "tags": [
+ "EventRoutes"
+ ],
+ "description": "Retrieves all event routes.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.",
+ "operationId": "EventRoutes_List",
+ "x-ms-examples": {
+ "EventRoutesList": {
+ "$ref": "./examples/EventRoutesList.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/max-item-count"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/EventRouteCollection"
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/eventroutes/{id}": {
+ "get": {
+ "tags": [
+ "EventRoutes"
+ ],
+ "description": "Retrieves an event route.\nStatus codes:\n200 (OK): Success.\n404 (Not Found): There is no event route with the provided id.",
+ "operationId": "EventRoutes_GetById",
+ "x-ms-examples": {
+ "EventRouteGet": {
+ "$ref": "./examples/EventRouteGet.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/eventRouteId"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/EventRoute"
+ }
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "EventRoutes"
+ ],
+ "description": "Adds or replaces an event route.\nStatus codes:\n200 (OK): Success.\n400 (Bad Request): The request is invalid.",
+ "operationId": "EventRoutes_Add",
+ "x-ms-examples": {
+ "EventRoutePut": {
+ "$ref": "./examples/EventRoutePut.json"
+ },
+ "EventRouteWithFilter": {
+ "$ref": "./examples/EventRoutePutWithFilter.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/eventRouteId"
+ },
+ {
+ "name": "eventRoute",
+ "description": "The event route data",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/EventRoute"
+ }
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "EventRoutes"
+ ],
+ "description": "Deletes an event route.\nStatus codes:\n200 (OK): Success.\n404 (Not Found): There is no event route with the provided id.",
+ "operationId": "EventRoutes_Delete",
+ "x-ms-examples": {
+ "EventRouteDelete": {
+ "$ref": "./examples/EventRouteDelete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/eventRouteId"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Success"
+ },
+ "default": {
+ "description": "Default response.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "EventRoute": {
+ "description": "A route which directs notification and telemetry events to an endpoint. Endpoints are a destination outside of Azure Digital Twins such as an EventHub.",
+ "type": "object",
+ "required": [
+ "endpointName"
+ ],
+ "properties": {
+ "id": {
+ "description": "The id of the event route.",
+ "type": "string",
+ "readOnly": true
+ },
+ "endpointName": {
+ "description": "The name of the endpoint this event route is bound to.",
+ "type": "string"
+ },
+ "filter": {
+ "description": "An expression which describes the events which are routed to the endpoint.",
+ "type": "string"
+ }
+ }
+ },
+ "EventRouteCollection": {
+ "description": "A collection of EventRoute objects.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The EventRoute objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EventRoute"
+ }
+ },
+ "nextLink": {
+ "description": "A URI to retrieve the next page of results.",
+ "type": "string"
+ }
+ }
+ },
+ "NonPagedModelDataCollection": {
+ "description": "A collection of ModelData objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ModelData"
+ }
+ },
+ "PagedModelDataCollection": {
+ "description": "A collection of ModelData objects.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The ModelData objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ModelData"
+ }
+ },
+ "nextLink": {
+ "description": "A URI to retrieve the next page of objects.",
+ "type": "string"
+ }
+ }
+ },
+ "ModelData": {
+ "description": "A model definition and metadata for that model.",
+ "required": [
+ "id"
+ ],
+ "type": "object",
+ "properties": {
+ "displayName": {
+ "description": "A language map that contains the localized display names as specified in the model definition.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "description": {
+ "description": "A language map that contains the localized descriptions as specified in the model definition.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "description": "The id of the model as specified in the model definition.",
+ "type": "string"
+ },
+ "uploadTime": {
+ "description": "The time the model was uploaded to the service.",
+ "format": "date-time",
+ "type": "string"
+ },
+ "decommissioned": {
+ "description": "Indicates if the model is decommissioned. Decommissioned models cannot be referenced by newly created digital twins.",
+ "type": "boolean",
+ "default": false
+ },
+ "model": {
+ "description": "The model definition.",
+ "type": "object"
+ }
+ }
+ },
+ "RelationshipCollection": {
+ "description": "A collection of relationships which relate digital twins together.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The relationship objects.",
+ "type": "array",
+ "items": {
+ "description": "The relationship JSON document.",
+ "type": "object"
+ }
+ },
+ "nextLink": {
+ "description": "A URI to retrieve the next page of objects.",
+ "type": "string"
+ }
+ }
+ },
+ "IncomingRelationshipCollection": {
+ "description": "A collection of incoming relationships which relate digital twins together.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IncomingRelationship"
+ }
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "A URI to retrieve the next page of objects."
+ }
+ }
+ },
+ "IncomingRelationship": {
+ "type": "object",
+ "description": "An incoming relationship.",
+ "properties": {
+ "$relationshipId": {
+ "type": "string",
+ "description": "A user-provided string representing the id of this relationship, unique in the context of the source digital twin, i.e. sourceId + relationshipId is unique in the context of the service."
+ },
+ "$sourceId": {
+ "type": "string",
+ "description": "The id of the source digital twin."
+ },
+ "$relationshipName": {
+ "type": "string",
+ "description": "The name of the relationship."
+ },
+ "$relationshipLink": {
+ "type": "string",
+ "description": "Link to the relationship, to be used for deletion."
+ }
+ }
+ },
+ "QuerySpecification": {
+ "description": "A query specification containing either a query statement or a continuation token from a previous query result.",
+ "type": "object",
+ "properties": {
+ "query": {
+ "description": "The query to execute. This value is ignored if a continuation token is provided.",
+ "type": "string"
+ },
+ "continuationToken": {
+ "description": "A token which is used to retrieve the next set of results from a previous query.",
+ "type": "string"
+ }
+ }
+ },
+ "QueryResult": {
+ "description": "The results of a query operation and an optional continuation token.",
+ "type": "object",
+ "properties": {
+ "items": {
+ "description": "The query results.",
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ },
+ "continuationToken": {
+ "description": "A token which can be used to construct a new QuerySpecification to retrieve the next set of results.",
+ "type": "string"
+ }
+ }
+ },
+ "ErrorResponse": {
+ "description": "Error response.",
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/Error",
+ "description": "The error details."
+ }
+ }
+ },
+ "Error": {
+ "description": "Error definition.",
+ "properties": {
+ "code": {
+ "description": "Service specific error code which serves as the substatus for the HTTP error code.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "A human-readable representation of the error.",
+ "type": "string",
+ "readOnly": true
+ },
+ "details": {
+ "description": "Internal error details.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Error"
+ },
+ "readOnly": true
+ },
+ "innererror": {
+ "description": "An object containing more specific information than the current object about the error.",
+ "$ref": "#/definitions/InnerError"
+ }
+ }
+ },
+ "InnerError": {
+ "description": "A more specific error description than was provided by the containing error.",
+ "properties": {
+ "code": {
+ "description": "A more specific error code than was provided by the containing error.",
+ "type": "string"
+ },
+ "innererror": {
+ "description": "An object containing more specific information than the current object about the error.",
+ "$ref": "#/definitions/InnerError"
+ }
+ }
+ }
+ },
+ "securityDefinitions": {
+ "oauth2": {
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize?resource=0b07f429-9f4b-4714-9392-cc5e8e80c8b0",
+ "type": "oauth2"
+ }
+ },
+ "parameters": {
+ "eventRouteId": {
+ "name": "id",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The id for an event route. The id is unique within event routes and case sensitive.",
+ "x-ms-parameter-location": "method"
+ },
+ "includeModelDefinition": {
+ "name": "includeModelDefinition",
+ "description": "When true the model definition will be returned as part of the result.",
+ "in": "query",
+ "required": false,
+ "type": "boolean",
+ "default": false,
+ "x-ms-parameter-location": "method"
+ },
+ "digitalTwinId": {
+ "name": "id",
+ "in": "path",
+ "description": "The id of the digital twin. The id is unique within the service and case sensitive.",
+ "type": "string",
+ "required": true,
+ "x-ms-parameter-location": "method"
+ },
+ "modelId": {
+ "name": "id",
+ "in": "path",
+ "description": "The id for the model. The id is globally unique and case sensitive.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "relationshipId": {
+ "name": "relationshipId",
+ "description": "The id of the relationship. The id is unique within the digital twin and case sensitive.",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "componentPath": {
+ "name": "componentPath",
+ "in": "path",
+ "description": "The name of the DTDL component.",
+ "type": "string",
+ "required": true,
+ "x-ms-parameter-location": "method"
+ },
+ "api-version": {
+ "name": "api-version",
+ "in": "query",
+ "description": "The requested API version.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "2020-05-31-preview"
+ ]
+ },
+ "max-item-count": {
+ "name": "x-ms-max-item-count",
+ "in": "header",
+ "description": "The maximum number of items to retrieve per request. The server may choose to return less than the requested max.",
+ "required": false,
+ "type": "integer",
+ "default": -1,
+ "x-ms-client-name": "MaxItemCount",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "postfix": "Options"
+ }
+ },
+ "if-none-match-star": {
+ "name": "If-None-Match",
+ "in": "header",
+ "description": "Only perform the operation if the entity does not already exist.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "*"
+ ],
+ "x-ms-parameter-location": "method"
+ },
+ "if-match": {
+ "name": "If-Match",
+ "in": "header",
+ "description": "Only perform the operation if the entity's etag matches one of the etags provided or * is provided.",
+ "required": false,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "security": [
+ {
+ "oauth2": []
+ }
+ ]
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/CreateRelationshipAdvancedExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/CreateRelationshipAdvancedExample.json
new file mode 100644
index 000000000000..1f6ec28e906c
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/CreateRelationshipAdvancedExample.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "mySourceTwin",
+ "relationshipId": "myRelationshipId",
+ "relationship": {
+ "$targetId": "myTargetTwin",
+ "$relationshipName": "myRelationship",
+ "relationshipProperty1": 1,
+ "relationshipProperty2": "some value"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "$relationshipId": "myRelationshipId",
+ "$sourceId": "mySourceTwin",
+ "$targetId": "myTargetTwin",
+ "$relationshipName": "myRelationship",
+ "relationshipProperty1": 1,
+ "relationshipProperty2": "some value"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/CreateRelationshipBasicExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/CreateRelationshipBasicExample.json
new file mode 100644
index 000000000000..5ab5127bfb36
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/CreateRelationshipBasicExample.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "mySourceTwin",
+ "relationshipId": "myRelationshipId",
+ "relationship": {
+ "$targetId": "myTargetTwin",
+ "$relationshipName": "myRelationship"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "$relationshipId": "myRelationshipId",
+ "$sourceId": "mySourceTwin",
+ "$targetId": "myTargetTwin",
+ "$relationshipName": "myRelationship"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteModel.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteModel.json
new file mode 100644
index 000000000000..4a0428b03fb4
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteModel.json
@@ -0,0 +1,9 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "dtmi:com:example:Sample;1"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteRelationship.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteRelationship.json
new file mode 100644
index 000000000000..d9acb6cc90a8
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteRelationship.json
@@ -0,0 +1,10 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId",
+ "relationshipId": "myRelationshipId"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteTwin.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteTwin.json
new file mode 100644
index 000000000000..bb55048e32c3
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/DeleteTwin.json
@@ -0,0 +1,9 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRouteDelete.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRouteDelete.json
new file mode 100644
index 000000000000..2ca8cfd3f824
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRouteDelete.json
@@ -0,0 +1,9 @@
+{
+ "parameters": {
+ "id": "eventroute-001",
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRouteGet.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRouteGet.json
new file mode 100644
index 000000000000..be0dc040a850
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRouteGet.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "id": "eventroute-001",
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "eventroute-001",
+ "endpointName": "endpoint-001",
+ "filter": "type = 'Microsoft.DigitalTwins.Twin.Create'"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutePut.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutePut.json
new file mode 100644
index 000000000000..b652891c1b31
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutePut.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "id": "eventroute-001",
+ "eventRoute": {
+ "endpointName": "endpoint-001",
+ "filter": "true"
+ },
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutePutWithFilter.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutePutWithFilter.json
new file mode 100644
index 000000000000..21f265e6ca92
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutePutWithFilter.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "id": "eventroute-001",
+ "eventRoute": {
+ "endpointName": "endpoint-001",
+ "filter": "type = 'Microsoft.DigitalTwins.Twin.Create'"
+ },
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutesList.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutesList.json
new file mode 100644
index 000000000000..44c31910f394
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/EventRoutesList.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "eventroute-001",
+ "endpointName": "endpoint-001",
+ "filter": "type = 'Microsoft.DigitalTwins.Twin.Create'"
+ },
+ {
+ "id": "eventroute-002",
+ "endpointName": "endpoint-002",
+ "filter": "type = 'Microsoft.DigitalTwins.Twin.Create' OR type = 'microsoft.iot.telemetry'"
+ }
+ ],
+ "nextLink": "url-to-next-page"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetComponent.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetComponent.json
new file mode 100644
index 000000000000..655246856feb
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetComponent.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId",
+ "componentPath": "myComponent"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:interfaceName;1",
+ "property1": {
+ "desiredValue": 1,
+ "desiredVersion": 1,
+ "ackVersion": 1,
+ "ackCode": 200,
+ "ackDescription": "description",
+ "lastUpdateTime": "2020-05-23T21:44:02Z"
+ },
+ "property2": {
+ "desiredValue": {
+ "subProperty1": "some value",
+ "subProperty2": "some other value"
+ },
+ "desiredVersion": 1,
+ "ackVersion": 1,
+ "ackCode": 200,
+ "ackDescription": "description",
+ "lastUpdateTime": "2020-05-23T21:44:02Z"
+ }
+ },
+ "property1": 1,
+ "property2": {
+ "subProperty1": "some value",
+ "subProperty2": "some other value"
+ },
+ "component1": {
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:subInterfaceName;1",
+ "componentProperty": {
+ "desiredValue": "some value",
+ "desiredVersion": 1,
+ "ackVersion": 1,
+ "ackCode": 200,
+ "ackDescription": "description",
+ "lastUpdateTime": "2020-05-23T21:44:02Z"
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetIncomingRelationship.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetIncomingRelationship.json
new file mode 100644
index 000000000000..a50ceb94c675
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetIncomingRelationship.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "mySourceTwin"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "$sourceId": "mySourceTwin",
+ "$relationshipId": "firstRelationshipId",
+ "$relationshipName": "myRelationship",
+ "$relationshipLink": "/digitaltwins/mySourceTwin/relationships/myRelationship/firstRelationshipId"
+ },
+ {
+ "$sourceId": "mySourceTwin",
+ "$relationshipId": "secondRelationshipId",
+ "$relationshipName": "myRelationship",
+ "$relationshipLink": "/digitaltwins/mySourceTwin/relationships/myRelationship/secondRelationshipId"
+ }
+ ],
+ "nextLink": "url-to-next-page"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationship.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationship.json
new file mode 100644
index 000000000000..259950edf17d
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationship.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "mySourceTwin"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "$sourceId": "mySourceTwin",
+ "$relationshipId": "firstRelationshipId",
+ "$targetId": "targetTwinId",
+ "$relationshipName": "myRelationship",
+ "property": "value"
+ },
+ {
+ "$sourceId": "mySourceTwin",
+ "$relationshipId": "secondRelationshipId",
+ "$targetId": "targetTwinId",
+ "$relationshipName": "myRelationship",
+ "property": "value"
+ }
+ ],
+ "nextLink": "url-to-next-page"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationshipById.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationshipById.json
new file mode 100644
index 000000000000..28a5a08c9784
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationshipById.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "mySourceTwin",
+ "relationshipId": "myRelationshipId"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "$relationshipId": "myRelationshipId",
+ "$sourceId": "mySourceTwin",
+ "$targetId": "myTargetTwin",
+ "$relationshipName": "myRelationship",
+ "relationshipProperty": "some value"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationshipByRelationshipName.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationshipByRelationshipName.json
new file mode 100644
index 000000000000..591dc7ae4b71
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetRelationshipByRelationshipName.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "mySourceTwin",
+ "relationshipName": "myRelationship"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "$sourceId": "mySourceTwin",
+ "$relationshipId": "firstRelationshipId",
+ "$targetId": "targetTwinId",
+ "$relationshipName": "myRelationship",
+ "property": "value"
+ },
+ {
+ "$sourceId": "mySourceTwin",
+ "$relationshipId": "secondRelationshipId",
+ "$targetId": "targetTwinId",
+ "$relationshipName": "myRelationship",
+ "property": "value"
+ }
+ ],
+ "nextLink": "url-to-next-page"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetTwin.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetTwin.json
new file mode 100644
index 000000000000..7dce0f94a6e8
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/GetTwin.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "$dtId": "myTwinId",
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:interfaceName;1",
+ "property1": {
+ "desiredValue": 1,
+ "desiredVersion": 1,
+ "ackVersion": 1,
+ "ackCode": 200,
+ "ackDescription": "description",
+ "lastUpdateTime": "2020-05-23T21:44:02Z"
+ },
+ "property2": {
+ "desiredValue": {
+ "subProperty1": "some value",
+ "subProperty2": "some other value"
+ },
+ "desiredVersion": 1,
+ "ackVersion": 1,
+ "ackCode": 200,
+ "ackDescription": "description",
+ "lastUpdateTime": "2020-05-23T21:44:02Z"
+ }
+ },
+ "property1": 1,
+ "property2": {
+ "subProperty1": "some value",
+ "subProperty2": "some other value"
+ },
+ "component1": {
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:subInterfaceName;1",
+ "componentProperty": {
+ "desiredValue": "some value",
+ "desiredVersion": 1,
+ "ackVersion": 1,
+ "ackCode": 200,
+ "ackDescription": "description",
+ "lastUpdateTime": "2020-05-23T21:44:02Z"
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelAdd.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelAdd.json
new file mode 100644
index 000000000000..b376ddb14860
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelAdd.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "models": [
+ {
+ "@id": "dtmi:com:example:Sample;1",
+ "@type": "Interface",
+ "displayName": "Sample Interface",
+ "contents": [
+ {
+ "@type": "Property",
+ "name": "name",
+ "displayName": "Sample instance name",
+ "schema": "string"
+ },
+ {
+ "@type": "Property",
+ "name": "temp",
+ "displayName": "Sample instance temperature",
+ "schema": "integer"
+ },
+ {
+ "@type": "Property",
+ "name": "comfortIndex",
+ "displayName": "Sample instance comfort index",
+ "schema": "integer"
+ }
+ ],
+ "@context": "dtmi:dtdl:context;2"
+ }
+ ],
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": [
+ {
+ "id": "dtmi:com:example:Sample;1",
+ "displayName": {
+ "en": "Sample Interface"
+ },
+ "uploadTime": "2020-03-01T17:32:28Z",
+ "decommissioned": false
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelGetById.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelGetById.json
new file mode 100644
index 000000000000..6de5d0f71a6e
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelGetById.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "id": "dtmi:com:example:Sample;1",
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "dtmi:com:example:Sample;1",
+ "uploadTime": "2020-03-01T17:32:28Z",
+ "decommissioned": false
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelGetByIdWithIncludeModelDefinition.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelGetByIdWithIncludeModelDefinition.json
new file mode 100644
index 000000000000..da0330cc5288
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelGetByIdWithIncludeModelDefinition.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "id": "dtmi:com:example:Sample;1",
+ "includeModelDefinition": true,
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "dtmi:com:example:Sample;1",
+ "uploadTime": "2020-03-01T17:32:28Z",
+ "decommissioned": false,
+ "model": {
+ "@id": "dtmi:com:example:Sample;1",
+ "@type": "Interface",
+ "contents": [
+ {
+ "@type": "Property",
+ "name": "name",
+ "displayName": "Sample instance name",
+ "schema": "string"
+ },
+ {
+ "@type": "Property",
+ "name": "temp",
+ "displayName": "Sample instance temperature",
+ "schema": "integer"
+ },
+ {
+ "@type": "Property",
+ "name": "comfortIndex",
+ "displayName": "Sample instance comfort index",
+ "schema": "integer"
+ }
+ ],
+ "@context": "dtmi:dtdl:context;2"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelUpdateDecommissioned.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelUpdateDecommissioned.json
new file mode 100644
index 000000000000..513e272d1f54
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelUpdateDecommissioned.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "id": "dtmi:com:example:Sample;1",
+ "updateModel": [
+ {
+ "op": "replace",
+ "path": "/decommissioned",
+ "value": true
+ }
+ ],
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelsGet.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelsGet.json
new file mode 100644
index 000000000000..e4fd22da2eec
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelsGet.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "dtmi:com:example:Sample;1",
+ "uploadTime": "2020-03-01T17:32:28Z",
+ "decommissioned": false
+ },
+ {
+ "id": "dtmi:com:example:SampleDeviceModel;1",
+ "displayName": {
+ "en": "My Device Model"
+ },
+ "uploadTime": "2020-05-01T17:32:28Z",
+ "decommissioned": false
+ },
+ {
+ "id": "dtmi:com:example:AnotherSample;1",
+ "displayName": {
+ "en": "My Sample"
+ },
+ "uploadTime": "2020-03-01T17:32:28Z",
+ "decommissioned": false
+ }
+ ],
+ "nextLink": "url-to-next-page"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelsGetWithDependenciesAndIncludeModelDefinition.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelsGetWithDependenciesAndIncludeModelDefinition.json
new file mode 100644
index 000000000000..72f41ae288cd
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/ModelsGetWithDependenciesAndIncludeModelDefinition.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "includeModelDefinition": true,
+ "dependenciesFor": [
+ "dtmi:com:example:SampleDeviceModel;1"
+ ],
+ "x-ms-max-item-count": 20,
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "dtmi:com:example:Sample;1",
+ "uploadTime": "2020-03-01T17:32:28Z",
+ "decommissioned": false,
+ "model": {
+ "@id": "dtmi:com:example:Sample;1",
+ "@type": "Interface",
+ "contents": [
+ {
+ "@type": "Property",
+ "name": "name",
+ "displayName": "Sample instance name",
+ "schema": "string"
+ },
+ {
+ "@type": "Property",
+ "name": "temp",
+ "displayName": "Sample instance temperature",
+ "schema": "integer"
+ },
+ {
+ "@type": "Property",
+ "name": "comfortIndex",
+ "displayName": "Sample instance comfort index",
+ "schema": "integer"
+ }
+ ],
+ "@context": "dtmi:dtdl:context;2"
+ }
+ },
+ {
+ "id": "dtmi:com:example:SampleDeviceModel;1",
+ "displayName": {
+ "en": "My Device Model"
+ },
+ "uploadTime": "2020-03-01T17:32:28Z",
+ "decommissioned": false,
+ "model": {
+ "@id": "dtmi:com:example:SampleDeviceModel;1",
+ "@type": "Interface",
+ "displayName": "My Device Model",
+ "contents": [
+ {
+ "@type": "Component",
+ "name": "Sample",
+ "schema": "dtmi:com:example:Sample;1"
+ }
+ ],
+ "@context": "dtmi:dtdl:context;2"
+ }
+ }
+ ],
+ "nextLink": "url-to-next-page"
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchComponentAdvancedExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchComponentAdvancedExample.json
new file mode 100644
index 000000000000..195387a5d378
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchComponentAdvancedExample.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId",
+ "componentPath": "myComponent",
+ "patchDocument": [
+ {
+ "op": "add",
+ "path": "/property1",
+ "value": 1
+ },
+ {
+ "op": "remove",
+ "path": "/property2"
+ },
+ {
+ "op": "replace",
+ "path": "/property3/subProperty1",
+ "value": "new value"
+ }
+ ]
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchComponentBasicExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchComponentBasicExample.json
new file mode 100644
index 000000000000..c2a0624b8c35
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchComponentBasicExample.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId",
+ "componentPath": "myComponent",
+ "patchDocument": [
+ {
+ "op": "add",
+ "path": "/property",
+ "value": 1
+ }
+ ]
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchRelationshipAdvancedExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchRelationshipAdvancedExample.json
new file mode 100644
index 000000000000..59e611092081
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchRelationshipAdvancedExample.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId",
+ "relationshipId": "myRelationshipId",
+ "patchDocument": [
+ {
+ "op": "add",
+ "path": "/property1",
+ "value": 1
+ },
+ {
+ "op": "remove",
+ "path": "/property2"
+ },
+ {
+ "op": "replace",
+ "path": "/property3/subProperty1",
+ "value": "new value"
+ }
+ ]
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchRelationshipBasicExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchRelationshipBasicExample.json
new file mode 100644
index 000000000000..f5294ae496de
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchRelationshipBasicExample.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId",
+ "relationshipId": "myRelationshipId",
+ "patchDocument": [
+ {
+ "op": "add",
+ "path": "/property",
+ "value": 1
+ }
+ ]
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchTwinAdvancedExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchTwinAdvancedExample.json
new file mode 100644
index 000000000000..3a33baa321bb
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchTwinAdvancedExample.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myNewTwinId",
+ "patchDocument": [
+ {
+ "op": "replace",
+ "path": "/property1",
+ "value": 1
+ },
+ {
+ "op": "add",
+ "path": "/property2/subProperty1",
+ "value": 1
+ },
+ {
+ "op": "remove",
+ "path": "/property3"
+ }
+ ]
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchTwinBasicExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchTwinBasicExample.json
new file mode 100644
index 000000000000..477251dce783
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PatchTwinBasicExample.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myNewTwinId",
+ "patchDocument": [
+ {
+ "op": "replace",
+ "path": "/property1",
+ "value": 1
+ }
+ ]
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PutTwinAdvancedExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PutTwinAdvancedExample.json
new file mode 100644
index 000000000000..7639f575e1dc
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PutTwinAdvancedExample.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myNewTwinId",
+ "If-None-Match": "*",
+ "twin": {
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:interfaceName;1"
+ },
+ "property1": 1,
+ "property2": {
+ "subProperty1": "some value",
+ "subProperty2": "some other value"
+ },
+ "component1": {
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:subInterfaceName;1"
+ },
+ "componentProperty": "some value"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "$dtId": "myNewTwinId",
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:interfaceName;1",
+ "property1": {
+ "desiredValue": 1,
+ "desiredVersion": 1,
+ "ackVersion": 1,
+ "ackCode": 200,
+ "ackDescription": "description",
+ "lastUpdateTime": "2020-05-23T21:44:02Z"
+ },
+ "property2": {
+ "desiredValue": {
+ "subProperty1": "some value",
+ "subProperty2": "some other value"
+ },
+ "desiredVersion": 1,
+ "ackVersion": 1,
+ "ackCode": 200,
+ "ackDescription": "description",
+ "lastUpdateTime": "2020-05-23T21:44:02Z"
+ }
+ },
+ "property1": 1,
+ "property2": {
+ "subProperty1": "some value",
+ "subProperty2": "some other value"
+ },
+ "component1": {
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:subInterfaceName;1",
+ "componentProperty": {
+ "desiredValue": "some value",
+ "desiredVersion": 1,
+ "ackVersion": 1,
+ "ackCode": 200,
+ "ackDescription": "description",
+ "lastUpdateTime": "2020-05-23T21:44:02Z"
+ }
+ }
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PutTwinBasicExample.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PutTwinBasicExample.json
new file mode 100644
index 000000000000..b1ee99c8ecfc
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/PutTwinBasicExample.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myNewTwinId",
+ "twin": {
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:interfaceName;1"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "$dtId": "myNewTwinId",
+ "$metadata": {
+ "$model": "dtmi:com:example:interfaces:interfaceName;1"
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryFirstPage.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryFirstPage.json
new file mode 100644
index 000000000000..fe1106c5608b
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryFirstPage.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "querySpecification": {
+ "query": "SELECT * FROM DIGITALTWINS WHERE temp = 79"
+ },
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "items": [
+ {
+ "$dtId": "Twin-01",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample01",
+ "temp": 79,
+ "comfortIndex": 50
+ },
+ {
+ "$dtId": "Twin-02",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample02",
+ "temp": 79,
+ "comfortIndex": 50
+ },
+ {
+ "$dtId": "Twin-03",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample03",
+ "temp": 79,
+ "comfortIndex": 50
+ }
+ ],
+ "continuationToken": ""
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryJoin.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryJoin.json
new file mode 100644
index 000000000000..d40910417c06
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryJoin.json
@@ -0,0 +1,56 @@
+{
+ "parameters": {
+ "querySpecification": {
+ "query": "SELECT Widget, Gadget FROM DIGITALTWINS Widget JOIN Gadget RELATED Widget.Contains WHERE Widget.$dtId = 'Twin-01'"
+ },
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "items": [
+ {
+ "Widget": {
+ "$dtId": "Twin-01",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample01",
+ "temp": 79,
+ "comfortIndex": 50
+ },
+ "Gadget": {
+ "$dtId": "Twin-02",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample02",
+ "temp": 79,
+ "comfortIndex": 50
+ }
+ },
+ {
+ "Widget": {
+ "$dtId": "Twin-01",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample01",
+ "temp": 79,
+ "comfortIndex": 50
+ },
+ "Gadget": {
+ "$dtId": "Twin-10",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample10",
+ "temp": 79,
+ "comfortIndex": 50
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryNextPage.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryNextPage.json
new file mode 100644
index 000000000000..d7ecc8ad39c6
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/QueryNextPage.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "querySpecification": {
+ "continuationToken": ""
+ },
+ "api-version": "2020-05-31-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "items": [
+ {
+ "$dtId": "Twin-04",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample04",
+ "temp": 79,
+ "comfortIndex": 50
+ },
+ {
+ "$dtId": "Twin-05",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample05",
+ "temp": 79,
+ "comfortIndex": 50
+ },
+ {
+ "$dtId": "Twin-06",
+ "$metadata": {
+ "$model": "dtmi:com:example:Sample;1"
+ },
+ "name": "Sample06",
+ "temp": 79,
+ "comfortIndex": 50
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/SendTelemetry.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/SendTelemetry.json
new file mode 100644
index 000000000000..941a77beffa3
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/SendTelemetry.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId",
+ "dt-id": "e5ca50dd-ca31-4fae-8d84-3af5a72b10c5",
+ "dt-timestamp": "1985-04-12T23:20:50.52Z",
+ "telemetry": {
+ "temperature": 1
+ }
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/SendTelemetryFromComponent.json b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/SendTelemetryFromComponent.json
new file mode 100644
index 000000000000..dfec5fa53273
--- /dev/null
+++ b/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/examples/SendTelemetryFromComponent.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "api-version": "2020-05-31-preview",
+ "id": "myTwinId",
+ "componentPath": "myComponent",
+ "dt-id": "e5ca50dd-ca31-4fae-8d84-3af5a72b10c5",
+ "dt-timestamp": "1985-04-12T23:20:50.52Z",
+ "telemetry": {
+ "temperature": 1
+ }
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/digitaltwins/data-plane/readme.csharp.md b/specification/digitaltwins/data-plane/readme.csharp.md
new file mode 100644
index 000000000000..709f03e21efe
--- /dev/null
+++ b/specification/digitaltwins/data-plane/readme.csharp.md
@@ -0,0 +1,15 @@
+## C
+
+These settings apply only when `--csharp` is specified on the command line.
+Please also specify `--csharp-sdks-folder=`.
+
+```yaml $(csharp)
+csharp:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 1
+ clear-output-folder: true
+ client-side-validation: false
+ namespace: Azure.DigitalTwins.Core
+ output-folder: $(csharp-sdks-folder)/digitaltwins/Generated
+```
diff --git a/specification/digitaltwins/data-plane/readme.go.md b/specification/digitaltwins/data-plane/readme.go.md
new file mode 100644
index 000000000000..a14e87ce02a3
--- /dev/null
+++ b/specification/digitaltwins/data-plane/readme.go.md
@@ -0,0 +1,19 @@
+## Go
+
+These settings apply only when `--go` is specified on the command line.
+
+```yaml $(go)
+go:
+ license-header: MICROSOFT_APACHE_NO_VERSION
+ namespace: digitaltwins
+ clear-output-folder: true
+```
+
+### Tag: package-2020-05-31-preview and go
+
+These settings apply only when `--tag=package-2020-05-31-preview --go` is specified on the command line.
+Please also specify `--go-sdks-folder=`.
+
+```yaml $(tag) == 'package-2020-05-31-preview' && $(go)
+output-folder: $(go-sdk-folder)/services/preview/$(namespace)/2020-05-31/$(namespace)
+```
diff --git a/specification/digitaltwins/data-plane/readme.md b/specification/digitaltwins/data-plane/readme.md
new file mode 100644
index 000000000000..f39f368708dd
--- /dev/null
+++ b/specification/digitaltwins/data-plane/readme.md
@@ -0,0 +1,79 @@
+# Azure Digital Twins
+
+> see https://aka.ms/autorest
+
+This is the AutoRest configuration file for Azure Digital Twins.
+
+## Getting Started
+
+To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
+
+> `autorest readme.md`
+
+To see additional help and options, run:
+
+> `autorest --help`
+
+For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
+
+---
+
+## Configuration
+
+### Basic Information
+
+These are the global settings for Azure Digital Twins.
+
+```yaml
+openapi-type: data-plane
+tag: package-2020-05-31-preview
+```
+
+### Tag: package-2020-05-31-preview
+
+These settings apply only when `--tag=package-2020-05-31-preview` is specified on the command line.
+
+```yaml $(tag) == 'package-2020-05-31-preview'
+input-file:
+ - Microsoft.DigitalTwins/preview/2020-05-31-preview/digitaltwins.json
+```
+
+---
+
+# Code Generation
+
+## Swagger to SDK
+
+This section describes what SDK should be generated by the automatic system.
+This is not used by Autorest itself.
+
+```yaml $(swagger-to-sdk)
+swagger-to-sdk:
+ - repo: azure-sdk-for-python
+ - repo: azure-sdk-for-java
+ - repo: azure-sdk-for-go
+ - repo: azure-sdk-for-js
+ - repo: azure-sdk-for-ruby
+ after_scripts:
+ - bundle install && rake arm:regen_all_profiles['digitaltwins']
+```
+
+## Go
+
+See configuration in [readme.go.md](./readme.go.md)
+
+## Python
+
+See configuration in [readme.python.md](./readme.python.md)
+
+## Ruby
+
+See configuration in [readme.ruby.md](./readme.ruby.md)
+
+## TypeScript
+
+See configuration in [readme.typescript.md](./readme.typescript.md)
+
+## CSharp
+
+See configuration in [readme.csharp.md](./readme.csharp.md)
diff --git a/specification/digitaltwins/data-plane/readme.python.md b/specification/digitaltwins/data-plane/readme.python.md
new file mode 100644
index 000000000000..bd4257d4dc87
--- /dev/null
+++ b/specification/digitaltwins/data-plane/readme.python.md
@@ -0,0 +1,21 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+
+```yaml $(python)
+python:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: Azure.DigitalTwins.Core
+ package-name: digitaltwins
+ package-version: 2020-05-31-preview
+ clear-output-folder: true
+```
+
+```yaml $(python)
+python:
+ no-namespace-folders: true
+ output-folder: $(python-sdks-folder)/digitaltwins
+```
diff --git a/specification/digitaltwins/data-plane/readme.ruby.md b/specification/digitaltwins/data-plane/readme.ruby.md
new file mode 100644
index 000000000000..bb2999f471ac
--- /dev/null
+++ b/specification/digitaltwins/data-plane/readme.ruby.md
@@ -0,0 +1,19 @@
+## Ruby
+
+These settings apply only when `--ruby` is specified on the command line.
+
+```yaml
+package-name: digitaltwins
+package-version: 2020-05-31-preview
+azure-arm: true
+```
+
+### Tag: package-2020-05-31-preview and ruby
+
+These settings apply only when `--tag=package-2020-05-31-preview --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+```yaml $(tag) == 'package-2020-05-31-preview' && $(ruby)
+namespace: Azure.DigitalTwins.Core
+output-folder: $(ruby-sdks-folder)/digitaltwins
+```
diff --git a/specification/digitaltwins/data-plane/readme.typescript.md b/specification/digitaltwins/data-plane/readme.typescript.md
new file mode 100644
index 000000000000..3154decaf68e
--- /dev/null
+++ b/specification/digitaltwins/data-plane/readme.typescript.md
@@ -0,0 +1,13 @@
+## TypeScript
+
+These settings apply only when `--typescript` is specified on the command line.
+Please also specify `--typescript-sdks-folder=`.
+
+```yaml $(typescript)
+typescript:
+ azure-arm: true
+ package-name: "digitaltwins"
+ output-folder: "$(typescript-sdks-folder)/packages/digitaltwins"
+ payload-flattening-threshold: 1
+ generate-metadata: true
+```
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json
index f508d048a176..ad2e784412c5 100644
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json
+++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/digitaltwins.json
@@ -512,171 +512,6 @@
}
}
},
- "/{scope}/providers/Microsoft.DigitalTwins/integrationResources/{integrationResourceName}": {
- "get": {
- "tags": [
- "IoTHub Integration"
- ],
- "description": "Gets properties of an IoTHub Integration.",
- "operationId": "IoTHub_Get",
- "x-ms-examples": {
- "Get IoTHub by DigitalTwinsInstance": {
- "$ref": "./examples/DigitalTwinsIoTHubGet_example.json"
- }
- },
- "parameters": [
- {
- "$ref": "#/parameters/scope"
- },
- {
- "$ref": "#/parameters/integrationResourceName"
- }
- ],
- "responses": {
- "200": {
- "description": "This is a synchronous operation. The body contains metadata about IoTHub and DigitalTwinsInstance Integration.",
- "schema": {
- "$ref": "#/definitions/IntegrationResource"
- }
- },
- "default": {
- "description": "Error response describing why the operation failed.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- }
- }
- },
- "put": {
- "tags": [
- "IoTHub Integration"
- ],
- "description": "Creates or Updates an IoTHub Integration with DigitalTwinsInstances.",
- "operationId": "IoTHub_CreateOrUpdate",
- "x-ms-examples": {
- "Connect IoTHub with DigitalTwinsInstance": {
- "$ref": "./examples/DigitalTwinsIoTHubPut_example.json"
- }
- },
- "parameters": [
- {
- "$ref": "#/parameters/scope"
- },
- {
- "$ref": "#/parameters/integrationResourceName"
- },
- {
- "name": "iotHubDescription",
- "in": "body",
- "description": "The IoTHub metadata.",
- "required": true,
- "schema": {
- "$ref": "#/definitions/IntegrationResource"
- }
- }
- ],
- "responses": {
- "201": {
- "description": "This is an asynchronous operation. The body contains metadata about IoTHub and DigitalTwinsInstance Integration.",
- "schema": {
- "$ref": "#/definitions/IntegrationResource"
- }
- },
- "default": {
- "description": "Error response describing why the operation failed.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- }
- }
- },
- "delete": {
- "tags": [
- "IoTHub Integration"
- ],
- "description": "Deletes a DigitalTwinsInstance link with IoTHub.",
- "operationId": "IoTHub_Delete",
- "x-ms-examples": {
- "Connect IoTHub with DigitalTwinsInstance": {
- "$ref": "./examples/DigitalTwinsIoTHubDelete_example.json"
- }
- },
- "x-ms-long-running-operation": true,
- "parameters": [
- {
- "$ref": "#/parameters/scope"
- },
- {
- "$ref": "#/parameters/integrationResourceName"
- }
- ],
- "responses": {
- "200": {
- "description": "OK. DigitalTwinsInstance IoTHub link has been Deleted."
- },
- "202": {
- "description": "Accepted. Response includes a Location header which points to the DigitalTwins and IoTHub Integration resource.",
- "schema": {
- "$ref": "#/definitions/IntegrationResource"
- }
- },
- "204": {
- "description": "NoContent. DigitalTwinsInstance IoTHub link does not exist."
- },
- "default": {
- "description": "Error response describing why the operation failed.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- }
- }
- }
- },
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/integrationResources": {
- "get": {
- "tags": [
- "IoTHub Integration"
- ],
- "description": "Get DigitalTwinsInstance IoTHubs.",
- "operationId": "DigitalTwinsIoTHubs_List",
- "x-ms-examples": {
- "Get a DigitalTwinsInstance IoTHubs": {
- "$ref": "./examples/DigitalTwinsIoTHubsGet_example.json"
- }
- },
- "x-ms-pageable": {
- "nextLinkName": "nextLink"
- },
- "parameters": [
- {
- "$ref": "#/parameters/api-version"
- },
- {
- "$ref": "#/parameters/subscriptionId"
- },
- {
- "$ref": "#/parameters/resourceGroupName"
- },
- {
- "$ref": "#/parameters/resourceName"
- }
- ],
- "responses": {
- "200": {
- "description": "The body contains all the non-security properties of the DigitalTwinsInstance. Security-related properties are set to null.",
- "schema": {
- "$ref": "#/definitions/DigitalTwinsIntegrationResourceListResult"
- }
- },
- "default": {
- "description": "Error response describing why the operation failed.",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- }
- }
- }
- },
"/providers/Microsoft.DigitalTwins/operations": {
"get": {
"tags": [
@@ -836,9 +671,6 @@
{
"$ref": "#/definitions/DigitalTwinsResource"
}
- ],
- "required": [
- "sku"
]
},
"DigitalTwinsPatchDescription": {
@@ -889,7 +721,7 @@
"description": "The resource tags."
},
"sku": {
- "description": "The resource sku.",
+ "description": "This property is reserved for future use, and will be ignored/omitted",
"$ref": "#/definitions/DigitalTwinsSkuInfo"
}
},
@@ -1083,90 +915,6 @@
}
}
},
- "IntegrationResourceUpdateProperties": {
- "description": "Updatable properties related to the IoTHub DigitalTwinsInstance Integration Resource.",
- "type": "object",
- "allOf": [
- {
- "$ref": "#/definitions/IntegrationResourceState"
- }
- ]
- },
- "IntegrationResourceProperties": {
- "description": "Properties related to the IoTHub DigitalTwinsInstance Integration Resource.",
- "type": "object",
- "properties": {
- "resourceId": {
- "description": "Fully qualified resource identifier of the DigitalTwins Azure resource.",
- "type": "string"
- },
- "createdTime": {
- "description": "Time when the IoTHub was added to DigitalTwinsInstance.",
- "type": "string",
- "format": "date-time",
- "readOnly": true
- }
- },
- "allOf": [
- {
- "$ref": "#/definitions/IntegrationResourceState"
- }
- ]
- },
- "IntegrationResource": {
- "description": "IoTHub integration resource.",
- "type": "object",
- "allOf": [
- {
- "$ref": "#/definitions/ExternalResource"
- }
- ],
- "properties": {
- "properties": {
- "description": "IoTHub integration resource properties.",
- "x-ms-client-flatten": true,
- "$ref": "#/definitions/IntegrationResourceProperties"
- }
- }
- },
- "IntegrationResourceUpdateInfo": {
- "description": "IoTHub integration resource.",
- "type": "object",
- "allOf": [
- {
- "$ref": "#/definitions/ExternalResource"
- }
- ],
- "properties": {
- "properties": {
- "x-ms-client-flatten": true,
- "description": "IoTHub integration resource properties to be updated.",
- "$ref": "#/definitions/IntegrationResourceUpdateProperties"
- }
- }
- },
- "IntegrationResourceState": {
- "description": "Properties related to the IoTHub DigitalTwinsInstance Integration Resource.",
- "type": "object",
- "properties": {
- "provisioningState": {
- "description": "DigitalTwinsInstance - IoTHub link state.",
- "enum": [
- "Provisioning",
- "Deleting",
- "Succeeded",
- "Failed",
- "Canceled"
- ],
- "type": "string",
- "readOnly": true,
- "x-ms-enum": {
- "name": "IntegrationResourceState",
- "modelAsString": true
- }
- }
- }
- },
"DigitalTwinsEndpointResource": {
"description": "DigitalTwinsInstance endpoint resource.",
"x-ms-azure-resource": true,
@@ -1331,23 +1079,6 @@
}
}
}
- },
- "DigitalTwinsIntegrationResourceListResult": {
- "description": "A list of DigitalTwinsInstance IoTHubs with a next link.",
- "type": "object",
- "properties": {
- "nextLink": {
- "description": "The link used to get the next page of DigitalTwinsInstance IoTHubs.",
- "type": "string"
- },
- "value": {
- "description": "A list of DigitalTwinsInstance IoTHubs.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/IntegrationResource"
- }
- }
- }
}
},
"parameters": {
@@ -1356,8 +1087,7 @@
"in": "path",
"description": "The subscription identifier.",
"required": true,
- "type": "string",
- "format": "uuid"
+ "type": "string"
},
"api-version": {
"name": "api-version",
@@ -1399,44 +1129,6 @@
"type": "string",
"minLength": 3
},
- "integrationResourceName": {
- "name": "integrationResourceName",
- "in": "path",
- "description": "Name of IoTHub and DigitalTwinsInstance integration instance.",
- "required": true,
- "type": "string",
- "x-ms-parameter-location": "method",
- "minLength": 1,
- "maxLength": 64
- },
- "integrationResourceInfo": {
- "name": "integrationResourceInfo",
- "in": "body",
- "description": "The DigitalTwinsInstance and security metadata.",
- "x-ms-parameter-location": "method",
- "required": true,
- "schema": {
- "$ref": "#/definitions/IntegrationResource"
- }
- },
- "integrationResourceUpdateInfo": {
- "name": "integrationResourceUpdateInfo",
- "in": "body",
- "description": "The Integration Resource and security metadata.",
- "x-ms-parameter-location": "method",
- "required": true,
- "schema": {
- "$ref": "#/definitions/IntegrationResourceUpdateInfo"
- }
- },
- "scope": {
- "name": "scope",
- "in": "path",
- "description": "The scope of the Digital Twins Integration. The scope has to be an IoTHub resource. For example, /{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IoTHubs/{resourceName}.",
- "x-ms-parameter-location": "method",
- "required": true,
- "type": "string"
- },
"endpointName": {
"name": "endpointName",
"in": "path",
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json
index 605145c989a6..4961b326a398 100644
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json
+++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsDelete_example.json
@@ -13,9 +13,6 @@
"location": "westus",
"type": "Microsoft.DigitalTwins/DigitalTwinsInstance",
"name": "myDigitalTwinsService",
- "sku": {
- "name": "F1"
- },
"properties": {
"createdTime": "2019-11-19T12:55:05.229Z",
"lastUpdatedTime": "2019-12-06T12:21:58.610Z",
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json
index d6faad9e8c2c..3c2d917a47e7 100644
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json
+++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsGet_example.json
@@ -12,9 +12,6 @@
"location": "westus",
"type": "Microsoft.DigitalTwins/DigitalTwinsInstance",
"name": "myDigitalTwinsService",
- "sku": {
- "name": "F1"
- },
"properties": {
"createdTime": "2019-11-19T12:55:05.229Z",
"lastUpdatedTime": "2019-12-06T12:21:58.610Z",
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json
deleted file mode 100644
index acab4629b39f..000000000000
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubDelete_example.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "parameters": {
- "scope": "subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub",
- "integrationResourceName": "myIoTHubLink",
- "api-version": "2020-03-01-preview"
- },
- "responses": {
- "200": {},
- "202": {
- "body": {
- "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub/provider/Microsoft.DigitalTwins/integrationResources/myIoTHubLink",
- "type": "Microsoft.DigitalTwins/integrationResources",
- "name": "myIoTHubLink",
- "properties": {
- "provisioningState": "Deleting",
- "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt",
- "createdTime": "2019-11-19T12:57:15.452Z"
- }
- }
- },
- "204": {}
- }
-}
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json
deleted file mode 100644
index 03699f96fb84..000000000000
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubGet_example.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "parameters": {
- "scope": "subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub",
- "integrationResourceName": "myIoTHubLink",
- "api-version": "2020-03-01-preview"
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub/provider/Microsoft.DigitalTwins/integrationResources/myIoTHubLink",
- "type": "Microsoft.DigitalTwins/integrationResources",
- "name": "myIoTHubLink",
- "properties": {
- "provisioningState": "Provisioned",
- "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt",
- "createdTime": "2019-11-19T12:57:15.452Z"
- }
- }
- }
- }
-}
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json
deleted file mode 100644
index ab331abe06e2..000000000000
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubPut_example.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "parameters": {
- "scope": "subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub",
- "integrationResourceName": "myIoTHubLink",
- "api-version": "2020-03-01-preview",
- "iotHubDescription": {
- "properties": {
- "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/iotHubs/myih"
- }
- }
- },
- "responses": {
- "201": {
- "body": {
- "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/myIoTHub/provider/Microsoft.DigitalTwins/integrationResources/myIoTHubLink",
- "type": "Microsoft.DigitalTwins/integrationResources",
- "name": "myIoTHubLink",
- "properties": {
- "provisioningState": "Provisioning",
- "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt",
- "createdTime": "2019-11-19T12:57:15.452Z"
- }
- }
- }
- }
-}
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json
deleted file mode 100644
index 1371105ee9a4..000000000000
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsIoTHubsGet_example.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "parameters": {
- "subscriptionId": "50016170-c839-41ba-a724-51e9df440b9e",
- "resourceGroupName": "resRg",
- "resourceName": "myAdt",
- "api-version": "2020-03-01-preview"
- },
- "responses": {
- "200": {
- "body": {
- "value": [
- {
- "id": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.Devices/IoTHubs/firstIh/Microsoft.DigitalTwins/integrationResources/myIoTHubLink1",
- "type": "Microsoft.DigitalTwins/integrationResources",
- "name": "myIoTHubLink1",
- "properties": {
- "provisioningState": "Provisioned",
- "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt",
- "createdTime": "2019-11-19T12:57:15.452Z"
- }
- },
- {
- "id": "/subscriptions/f2bc87c8-fa5d-4c74-822e-7fd480f8df00/resourcegroups/anotherrg/providers/Microsoft.Devices/IoTHubs/secondIh/Microsoft.DigitalTwins/integrationResources/myIoTHubLink2",
- "type": "Microsoft.DigitalTwins/integrationResources",
- "name": "myIoTHubLink2",
- "properties": {
- "provisioningState": "Provisioned",
- "resourceId": "/subscriptions/50016170-c839-41ba-a724-51e9df440b9e/resourcegroups/resRg/providers/Microsoft.DigitalTwins/digitalTwins/myAdt",
- "createdTime": "2019-12-29T12:57:15.452Z"
- }
- }
- ]
- }
- }
- }
-}
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json
index 7c75885d58bc..7cc9457d1122 100644
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json
+++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsListByResourceGroup_example.json
@@ -14,9 +14,6 @@
"location": "westus",
"type": "Microsoft.DigitalTwins/DigitalTwinsInstance",
"name": "myDigitalTwinsService",
- "sku": {
- "name": "F1"
- },
"properties": {
"createdTime": "2019-11-19T12:55:05.229Z",
"provisioningState": "Provisioning",
@@ -28,9 +25,6 @@
"location": "westus",
"type": "Microsoft.DigitalTwins/DigitalTwinsInstance",
"name": "myDigitalTwinsService2",
- "sku": {
- "name": "F1"
- },
"properties": {
"createdTime": "2019-11-19T12:55:05.229Z",
"provisioningState": "Provisioning",
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json
index 63dca7f9958e..9b5ea011dbd3 100644
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json
+++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsList_example.json
@@ -13,9 +13,6 @@
"location": "westus",
"type": "Microsoft.DigitalTwins/DigitalTwinsInstance",
"name": "myDigitalTwinsService",
- "sku": {
- "name": "F1"
- },
"properties": {
"createdTime": "2019-11-19T12:55:05.229Z",
"provisioningState": "Provisioning",
@@ -27,9 +24,6 @@
"location": "westus",
"type": "Microsoft.DigitalTwins/DigitalTwinsInstance",
"name": "myDigitalTwinsService2",
- "sku": {
- "name": "F1"
- },
"properties": {
"createdTime": "2019-11-19T12:55:05.229Z",
"provisioningState": "Provisioning",
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json
index 7c3d30d0dc1a..fcf1a7d2e56e 100644
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json
+++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPatch_example.json
@@ -17,9 +17,6 @@
"location": "westus",
"type": "Microsoft.DigitalTwins/DigitalTwinsInstance",
"name": "myDigitalTwinsService",
- "sku": {
- "name": "F1"
- },
"tags": {
"purpose": "dev"
},
diff --git a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json
index ff35dd81a970..523e94e93049 100644
--- a/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json
+++ b/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2020-03-01-preview/examples/DigitalTwinsPut_example.json
@@ -5,10 +5,7 @@
"resourceName": "myDigitalTwinsService",
"api-version": "2020-03-01-preview",
"digitalTwinsCreate": {
- "location": "WestUS",
- "sku": {
- "name": "F1"
- }
+ "location": "WestUS"
}
},
"responses": {
@@ -18,9 +15,6 @@
"location": "westus",
"type": "Microsoft.DigitalTwins/DigitalTwinsInstance",
"name": "myDigitalTwinsService",
- "sku": {
- "name": "F1"
- },
"properties": {
"createdTime": "2019-11-19T12:55:05.229Z",
"lastUpdatedTime": "2019-12-06T12:21:58.610Z",
@@ -35,9 +29,6 @@
"location": "westus",
"type": "Microsoft.DigitalTwins/DigitalTwinsInstance",
"name": "myDigitalTwinsService",
- "sku": {
- "name": "F1"
- },
"properties": {
"createdTime": "2019-11-19T12:55:05.229Z",
"lastUpdatedTime": "2019-12-06T12:21:58.610Z",
diff --git a/specification/digitaltwins/resource-manager/readme.go.md b/specification/digitaltwins/resource-manager/readme.go.md
index 111d623ddb80..8da406275cdd 100644
--- a/specification/digitaltwins/resource-manager/readme.go.md
+++ b/specification/digitaltwins/resource-manager/readme.go.md
@@ -8,6 +8,13 @@ go:
clear-output-folder: true
```
+### Go multi-api
+
+``` yaml $(go) && $(multiapi)
+batch:
+ - tag: package-2020-03-01-preview
+```
+
### Tag: package-2020-03-01-preview and go
These settings apply only when `--tag=package-2020-03-01-preview --go` is specified on the command line.
diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json
new file mode 100644
index 000000000000..69d70d1b6fb5
--- /dev/null
+++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json
@@ -0,0 +1,594 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2018-01-01",
+ "title": "Schema of Azure App Service events published to Azure Event Grid",
+ "description": "Describes the schema of the Azure App Service events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent."
+ },
+ "paths": {},
+ "definitions": {
+ "WebAppUpdatedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppUpdated event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebBackupOperationStartedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationStarted event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebBackupOperationCompletedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationCompleted event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebBackupOperationFailedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationFailed event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebRestoreOperationStartedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationStarted event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebRestoreOperationCompletedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationCompleted event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebRestoreOperationFailedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationFailed event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebSlotSwapStartedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapStarted event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebSlotSwapCompletedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapCompleted event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebSlotSwapFailedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapFailed event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebSlotSwapWithPreviewStartedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewStarted event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebSlotSwapWithPreviewCancelledEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewCancelled event.",
+ "type": "object",
+ "properties": {
+ "appEventTypeDetail": {
+ "$ref": "#/definitions/AppEventTypeDetail"
+ },
+ "name": {
+ "description": "name of the web site that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the site API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "WebAppServicePlanUpdatedEventData": {
+ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event.",
+ "type": "object",
+ "properties": {
+ "appServicePlanEventTypeDetail": {
+ "$ref": "#/definitions/AppServicePlanEventTypeDetail"
+ },
+ "sku": {
+ "description": "sku of app service plan.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "name of app service plan sku.",
+ "type": "string"
+ },
+ "Tier": {
+ "description": "tier of app service plan sku.",
+ "type": "string"
+ },
+ "Size": {
+ "description": "size of app service plan sku.",
+ "type": "string"
+ },
+ "Family": {
+ "description": "family of app service plan sku.",
+ "type": "string"
+ },
+ "Capacity": {
+ "description": "capacity of app service plan sku.",
+ "type": "string"
+ }
+ }
+ },
+ "name": {
+ "description": "name of the app service plan that had this event.",
+ "type": "string"
+ },
+ "clientRequestId": {
+ "description": "The client request id generated by the app service for the app service plan API operation that triggered this event.",
+ "type": "string"
+ },
+ "correlationRequestId": {
+ "description": "The correlation request id generated by the app service for the app service plan API operation that triggered this event.",
+ "type": "string"
+ },
+ "requestId": {
+ "description": "The request id generated by the app service for the app service plan API operation that triggered this event.",
+ "type": "string"
+ },
+ "address": {
+ "description": "HTTP request URL of this operation.",
+ "type": "string"
+ },
+ "verb": {
+ "description": "HTTP verb of this operation.",
+ "type": "string"
+ }
+ }
+ },
+ "AppEventTypeDetail": {
+ "description": "Detail of action on the app.",
+ "type": "object",
+ "properties": {
+ "action": {
+ "description": "Type of action of the operation.",
+ "type": "string",
+ "enum": [
+ "Restarted",
+ "Stopped",
+ "ChangedAppSettings",
+ "Started",
+ "Completed",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "AppAction",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Restarted",
+ "description": "Web app was restarted."
+ },
+ {
+ "value": "Stopped",
+ "description": "Web app was stopped."
+ },
+ {
+ "value": "ChangedAppSettings",
+ "description": "There was an operation to change app setting on the web app."
+ },
+ {
+ "value": "Started",
+ "description": "The job has started."
+ },
+ {
+ "value": "Completed",
+ "description": "The job has completed."
+ },
+ {
+ "value": "Failed",
+ "description": "The job has failed to complete."
+ }
+ ]
+ }
+ }
+ }
+ },
+ "AppServicePlanEventTypeDetail": {
+ "description": "Detail of action on the app service plan.",
+ "type": "object",
+ "properties": {
+ "stampKind": {
+ "description": "Kind of environment where app service plan is.",
+ "type": "string",
+ "enum": [
+ "Public",
+ "AseV1",
+ "AseV2"
+ ],
+ "x-ms-enum": {
+ "name": "StampKind",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Public",
+ "description": "App Service Plan is running on a public stamp."
+ },
+ {
+ "value": "AseV1",
+ "description": "App Service Plan is running on an App Service Environment V1."
+ },
+ {
+ "value": "AseV2",
+ "description": "App Service Plan is running on an App Service Environment V2."
+ }
+ ]
+ }
+ },
+ "action": {
+ "description": "Type of action on the app service plan.",
+ "type": "string",
+ "enum": [
+ "Updated"
+ ],
+ "x-ms-enum": {
+ "name": "AppServicePlanAction",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Updated",
+ "description": "App Service plan is being updated."
+ }
+ ]
+ }
+ },
+ "status": {
+ "$ref": "#/definitions/AsyncStatus"
+ }
+ }
+ },
+ "AsyncStatus": {
+ "description": "Asynchronous operation status of the operation on the app service plan.",
+ "type": "string",
+ "enum": [
+ "Started",
+ "Completed",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "AsyncStatus",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Started",
+ "description": "Async operation has started."
+ },
+ {
+ "value": "Completed",
+ "description": "Async operation has completed."
+ },
+ {
+ "value": "Failed",
+ "description": "Async operation failed to complete."
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/data-plane/readme.md b/specification/eventgrid/data-plane/readme.md
index aa5a71eb52c0..fd7eb6016138 100644
--- a/specification/eventgrid/data-plane/readme.md
+++ b/specification/eventgrid/data-plane/readme.md
@@ -58,6 +58,7 @@ input-file:
- Microsoft.KeyVault/stable/2018-01-01/KeyVault.json
- Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json
- Microsoft.Cache/stable/2018-01-01/RedisCache.json
+- Microsoft.Web/stable/2018-01-01/Web.json
```
---
@@ -139,6 +140,7 @@ input-file:
- $(this-folder)/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json
- $(this-folder)/Microsoft.Cache/stable/2018-01-01/RedisCache.json
+ - $(this-folder)/Microsoft.Web/stable/2018-01-01/Web.json
```
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2020-04-01-preview/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2020-04-01-preview/EventGrid.json
index 4c189d18d19f..0d0acaba28cb 100644
--- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2020-04-01-preview/EventGrid.json
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2020-04-01-preview/EventGrid.json
@@ -3475,13 +3475,13 @@
"description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
}
},
- "x-ms-pageable": {
- "nextLinkName": null
- },
"x-ms-examples": {
"PartnerRegistrations_List": {
"$ref": "./examples/PartnerRegistrations_List.json"
}
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
}
}
},
@@ -3888,7 +3888,11 @@
"in": "path",
"description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
"required": true,
- "type": "string"
+ "type": "string",
+ "enum": [
+ "topics",
+ "domains"
+ ]
},
{
"name": "parentName",
@@ -3954,7 +3958,11 @@
"in": "path",
"description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
"required": true,
- "type": "string"
+ "type": "string",
+ "enum": [
+ "topics",
+ "domains"
+ ]
},
{
"name": "parentName",
@@ -4034,7 +4042,11 @@
"in": "path",
"description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
"required": true,
- "type": "string"
+ "type": "string",
+ "enum": [
+ "topics",
+ "domains"
+ ]
},
{
"name": "parentName",
@@ -4101,7 +4113,11 @@
"in": "path",
"description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
"required": true,
- "type": "string"
+ "type": "string",
+ "enum": [
+ "topics",
+ "domains"
+ ]
},
{
"name": "parentName",
@@ -5378,7 +5394,7 @@
"type": "object",
"properties": {
"name": {
- "description": "the Sku name of the resource.\r\nthe possible values: Basic; Premium",
+ "description": "The Sku name of the resource. The possible values are: Basic or Premium.",
"enum": [
"Basic",
"Premium"
@@ -5896,9 +5912,33 @@
"modelAsString": true
}
},
+ "partnerTopicReadinessState": {
+ "description": "The readiness state of the corresponding partner topic.",
+ "enum": [
+ "NotActivatedByUserYet",
+ "ActivatedByUser",
+ "DeactivatedByUser",
+ "DeletedByUser"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "PartnerTopicReadinessState",
+ "modelAsString": true
+ }
+ },
+ "expirationTimeIfNotActivatedUtc": {
+ "format": "date-time",
+ "description": "Expiration time of the event channel. If this timer expires while the corresponding partner topic is never activated,\r\nthe event channel and corresponding partner topic are deleted.",
+ "type": "string"
+ },
"filter": {
"$ref": "#/definitions/EventChannelFilter",
"description": "Information about the filter for the event channel."
+ },
+ "partnerTopicFriendlyDescription": {
+ "description": "Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic.\r\nThis will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer.",
+ "type": "string"
}
}
},
@@ -5934,25 +5974,6 @@
"description": "Filter for the Event Channel.",
"type": "object",
"properties": {
- "subjectBeginsWith": {
- "description": "An optional string to filter events for an event channel based on a resource path prefix.\r\nThe format of this depends on the publisher of the events. Wildcard characters are not supported in this path.",
- "type": "string"
- },
- "subjectEndsWith": {
- "description": "An optional string to filter events for an event channel based on a resource path suffix.\r\nWildcard characters are not supported in this path.",
- "type": "string"
- },
- "includedEventTypes": {
- "description": "A list of applicable event types that need to be part of the event channel. If it is desired to subscribe to all default event types, set the IncludedEventTypes to null.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "isSubjectCaseSensitive": {
- "description": "Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter\r\nshould be compared in a case sensitive manner.",
- "type": "boolean"
- },
"advancedFilters": {
"description": "An array of advanced filters that are used for filtering event channels.",
"type": "array",
@@ -7027,7 +7048,23 @@
"type": "string"
},
"partnerResourceTypeDescription": {
- "description": "Description of the partner resource type.",
+ "description": "Short description of the partner resource type. The length of this description should not exceed 256 characters.",
+ "type": "string"
+ },
+ "longDescription": {
+ "description": "Long description for the custom scenarios and integration to be displayed in the portal if needed.\r\nLength of this description should not exceed 2048 characters.",
+ "type": "string"
+ },
+ "partnerCustomerServiceNumber": {
+ "description": "The customer service number of the publisher. The expected phone format should start with a '+' sign \r\nfollowed by the country code. The remaining digits are then followed. Only digits and spaces are allowed and its\r\nlength cannot exceed 16 digits including country code. Examples of valid phone numbers are: +1 515 123 4567 and\r\n+966 7 5115 2471. Examples of invalid phone numbers are: +1 (515) 123-4567, 1 515 123 4567 and +966 121 5115 24 7 551 1234 43",
+ "type": "string"
+ },
+ "partnerCustomerServiceExtension": {
+ "description": "The extension of the customer service number of the publisher. Only digits are allowed and number of digits should not exceed 10.",
+ "type": "string"
+ },
+ "customerServiceUri": {
+ "description": "The extension of the customer service URI of the publisher.",
"type": "string"
},
"setupUri": {
@@ -7209,6 +7246,11 @@
"description": "Source associated with this partner topic. This represents a unique partner resource.",
"type": "string"
},
+ "expirationTimeIfNotActivatedUtc": {
+ "format": "date-time",
+ "description": "Expiration time of the partner topic. If this timer expires while the partner topic is still never activated,\r\nthe partner topic and corresponding event channel are deleted.",
+ "type": "string"
+ },
"provisioningState": {
"description": "Provisioning state of the partner topic.",
"enum": [
@@ -7238,6 +7280,10 @@
"name": "PartnerTopicActivationState",
"modelAsString": true
}
+ },
+ "partnerTopicFriendlyDescription": {
+ "description": "Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic.\r\nThis will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer.",
+ "type": "string"
}
}
},
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json
new file mode 100644
index 000000000000..7a2d45b3710e
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json
@@ -0,0 +1,4496 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-06-01",
+ "title": "EventGridManagementClient",
+ "description": "Azure EventGrid Management Client"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}": {
+ "get": {
+ "tags": [
+ "Domains"
+ ],
+ "summary": "Get a domain.",
+ "description": "Get properties of a domain.",
+ "operationId": "Domains_Get",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Domain"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Domains_Get": {
+ "$ref": "./examples/Domains_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Domains"
+ ],
+ "summary": "Create or update a domain.",
+ "description": "Asynchronously creates or updates a new domain with the specified parameters.",
+ "operationId": "Domains_CreateOrUpdate",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainInfo",
+ "in": "body",
+ "description": "Domain information.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Domain"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/Domain"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Domains_CreateOrUpdate": {
+ "$ref": "./examples/Domains_CreateOrUpdate.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "Domains"
+ ],
+ "summary": "Delete a domain.",
+ "description": "Delete existing domain.",
+ "operationId": "Domains_Delete",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Domains_Delete": {
+ "$ref": "./examples/Domains_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "Domains"
+ ],
+ "summary": "Update a domain.",
+ "description": "Asynchronously updates a domain with the specified parameters.",
+ "operationId": "Domains_Update",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainUpdateParameters",
+ "in": "body",
+ "description": "Domain update information.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DomainUpdateParameters"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "201": {
+ "description": "Domain update request accepted.",
+ "schema": {
+ "$ref": "#/definitions/Domain"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Domains_Update": {
+ "$ref": "./examples/Domains_Update.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/domains": {
+ "get": {
+ "tags": [
+ "Domains"
+ ],
+ "summary": "List domains under an Azure subscription.",
+ "description": "List all the domains under an Azure subscription.",
+ "operationId": "Domains_ListBySubscription",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DomainsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Domains_ListBySubscription": {
+ "$ref": "./examples/Domains_ListBySubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains": {
+ "get": {
+ "tags": [
+ "Domains"
+ ],
+ "summary": "List domains under a resource group.",
+ "description": "List all the domains under a resource group.",
+ "operationId": "Domains_ListByResourceGroup",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DomainsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Domains_ListByResourceGroup": {
+ "$ref": "./examples/Domains_ListByResourceGroup.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/listKeys": {
+ "post": {
+ "tags": [
+ "Domains"
+ ],
+ "summary": "List keys for a domain.",
+ "description": "List the two keys used to publish to a domain.",
+ "operationId": "Domains_ListSharedAccessKeys",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DomainSharedAccessKeys"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Domains_ListSharedAccessKeys": {
+ "$ref": "./examples/Domains_ListSharedAccessKeys.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/regenerateKey": {
+ "post": {
+ "tags": [
+ "Domains"
+ ],
+ "summary": "Regenerate key for a domain.",
+ "description": "Regenerate a shared access key for a domain.",
+ "operationId": "Domains_RegenerateKey",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "regenerateKeyRequest",
+ "in": "body",
+ "description": "Request body to regenerate key.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DomainRegenerateKeyRequest"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DomainSharedAccessKeys"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Domains_RegenerateKey": {
+ "$ref": "./examples/Domains_RegenerateKey.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{domainTopicName}": {
+ "get": {
+ "tags": [
+ "DomainTopics"
+ ],
+ "summary": "Get a domain topic.",
+ "description": "Get properties of a domain topic.",
+ "operationId": "DomainTopics_Get",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainTopicName",
+ "in": "path",
+ "description": "Name of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DomainTopic"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "DomainTopics_Get": {
+ "$ref": "./examples/DomainTopics_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "DomainTopics"
+ ],
+ "summary": "Create or update a domain topic.",
+ "description": "Asynchronously creates or updates a new domain topic with the specified parameters.",
+ "operationId": "DomainTopics_CreateOrUpdate",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainTopicName",
+ "in": "path",
+ "description": "Name of the domain topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/DomainTopic"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "DomainTopics_CreateOrUpdate": {
+ "$ref": "./examples/DomainTopics_CreateOrUpdate.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "DomainTopics"
+ ],
+ "summary": "Delete a domain topic.",
+ "description": "Delete existing domain topic.",
+ "operationId": "DomainTopics_Delete",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainTopicName",
+ "in": "path",
+ "description": "Name of the domain topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "DomainTopics_Delete": {
+ "$ref": "./examples/DomainTopics_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics": {
+ "get": {
+ "tags": [
+ "DomainTopics"
+ ],
+ "summary": "List domain topics.",
+ "description": "List all the topics in a domain.",
+ "operationId": "DomainTopics_ListByDomain",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Domain name.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DomainTopicsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "DomainTopics_ListByDomain": {
+ "$ref": "./examples/DomainTopics_ListByDomain.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "Get an event subscription.",
+ "description": "Get properties of an event subscription.",
+ "operationId": "EventSubscriptions_Get",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "scope",
+ "in": "path",
+ "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.",
+ "required": true,
+ "type": "string",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "eventSubscriptionName",
+ "in": "path",
+ "description": "Name of the event subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscription"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_GetForSubscription": {
+ "$ref": "./examples/EventSubscriptions_GetForSubscription.json"
+ },
+ "EventSubscriptions_GetForResourceGroup": {
+ "$ref": "./examples/EventSubscriptions_GetForResourceGroup.json"
+ },
+ "EventSubscriptions_GetForResource": {
+ "$ref": "./examples/EventSubscriptions_GetForResource.json"
+ },
+ "EventSubscriptions_GetForCustomTopic": {
+ "$ref": "./examples/EventSubscriptions_GetForCustomTopic.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "Create or update an event subscription.",
+ "description": "Asynchronously creates a new event subscription or updates an existing event subscription based on the specified scope.",
+ "operationId": "EventSubscriptions_CreateOrUpdate",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "scope",
+ "in": "path",
+ "description": "The identifier of the resource to which the event subscription needs to be created or updated. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.",
+ "required": true,
+ "type": "string",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "eventSubscriptionName",
+ "in": "path",
+ "description": "Name of the event subscription. Event subscription names must be between 3 and 64 characters in length and should use alphanumeric letters only.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "eventSubscriptionInfo",
+ "in": "body",
+ "description": "Event subscription properties containing the destination and filter information.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/EventSubscription"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "EventSubscription CreateOrUpdate request accepted.",
+ "schema": {
+ "$ref": "#/definitions/EventSubscription"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_CreateOrUpdateForSubscription": {
+ "$ref": "./examples/EventSubscriptions_CreateOrUpdateForSubscription.json"
+ },
+ "EventSubscriptions_CreateOrUpdateForResourceGroup": {
+ "$ref": "./examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json"
+ },
+ "EventSubscriptions_CreateOrUpdateForResource": {
+ "$ref": "./examples/EventSubscriptions_CreateOrUpdateForResource.json"
+ },
+ "EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination": {
+ "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json"
+ },
+ "EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination": {
+ "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json"
+ },
+ "EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination": {
+ "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json"
+ },
+ "EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination": {
+ "$ref": "./examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "Delete an event subscription.",
+ "description": "Delete an existing event subscription.",
+ "operationId": "EventSubscriptions_Delete",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "scope",
+ "in": "path",
+ "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.",
+ "required": true,
+ "type": "string",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "eventSubscriptionName",
+ "in": "path",
+ "description": "Name of the event subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_DeleteForSubscription": {
+ "$ref": "./examples/EventSubscriptions_DeleteForSubscription.json"
+ },
+ "EventSubscriptions_DeleteForResourceGroup": {
+ "$ref": "./examples/EventSubscriptions_DeleteForResourceGroup.json"
+ },
+ "EventSubscriptions_DeleteForResource": {
+ "$ref": "./examples/EventSubscriptions_DeleteForResource.json"
+ },
+ "EventSubscriptions_DeleteForCustomTopic": {
+ "$ref": "./examples/EventSubscriptions_DeleteForCustomTopic.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "Update an event subscription.",
+ "description": "Asynchronously updates an existing event subscription.",
+ "operationId": "EventSubscriptions_Update",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "scope",
+ "in": "path",
+ "description": "The scope of existing event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.",
+ "required": true,
+ "type": "string",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "eventSubscriptionName",
+ "in": "path",
+ "description": "Name of the event subscription to be updated.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "eventSubscriptionUpdateParameters",
+ "in": "body",
+ "description": "Updated event subscription information.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionUpdateParameters"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "EventSubscription update request accepted.",
+ "schema": {
+ "$ref": "#/definitions/EventSubscription"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_UpdateForSubscription": {
+ "$ref": "./examples/EventSubscriptions_UpdateForSubscription.json"
+ },
+ "EventSubscriptions_UpdateForResourceGroup": {
+ "$ref": "./examples/EventSubscriptions_UpdateForResourceGroup.json"
+ },
+ "EventSubscriptions_UpdateForResource": {
+ "$ref": "./examples/EventSubscriptions_UpdateForResource.json"
+ },
+ "EventSubscriptions_UpdateForCustomTopic": {
+ "$ref": "./examples/EventSubscriptions_UpdateForCustomTopic.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl": {
+ "post": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "Get full URL of an event subscription.",
+ "description": "Get the full endpoint URL for an event subscription.",
+ "operationId": "EventSubscriptions_GetFullUrl",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "scope",
+ "in": "path",
+ "description": "The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic.",
+ "required": true,
+ "type": "string",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "eventSubscriptionName",
+ "in": "path",
+ "description": "Name of the event subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionFullUrl"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_GetFullUrlForSubscription": {
+ "$ref": "./examples/EventSubscriptions_GetFullUrlForSubscription.json"
+ },
+ "EventSubscriptions_GetFullUrlForResourceGroup": {
+ "$ref": "./examples/EventSubscriptions_GetFullUrlForResourceGroup.json"
+ },
+ "EventSubscriptions_GetFullUrlForResource": {
+ "$ref": "./examples/EventSubscriptions_GetFullUrlForResource.json"
+ },
+ "EventSubscriptions_GetFullUrlForCustomTopic": {
+ "$ref": "./examples/EventSubscriptions_GetFullUrlForCustomTopic.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "Get an aggregated list of all global event subscriptions under an Azure subscription.",
+ "description": "List all aggregated global event subscriptions under a specific Azure subscription.",
+ "operationId": "EventSubscriptions_ListGlobalBySubscription",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListGlobalBySubscription": {
+ "$ref": "./examples/EventSubscriptions_ListGlobalBySubscription.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "List all global event subscriptions for a topic type.",
+ "description": "List all global event subscriptions under an Azure subscription for a topic type.",
+ "operationId": "EventSubscriptions_ListGlobalBySubscriptionForTopicType",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "topicTypeName",
+ "in": "path",
+ "description": "Name of the topic type.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListGlobalBySubscriptionForTopicType": {
+ "$ref": "./examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "List all global event subscriptions under an Azure subscription and resource group.",
+ "description": "List all global event subscriptions under a specific Azure subscription and resource group.",
+ "operationId": "EventSubscriptions_ListGlobalByResourceGroup",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListGlobalByResourceGroup": {
+ "$ref": "./examples/EventSubscriptions_ListGlobalByResourceGroup.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "List all global event subscriptions under a resource group for a topic type.",
+ "description": "List all global event subscriptions under a resource group for a specific topic type.",
+ "operationId": "EventSubscriptions_ListGlobalByResourceGroupForTopicType",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicTypeName",
+ "in": "path",
+ "description": "Name of the topic type.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListGlobalByResourceGroupForTopicType": {
+ "$ref": "./examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "List all regional event subscriptions under an Azure subscription.",
+ "description": "List all event subscriptions from the given location under a specific Azure subscription.",
+ "operationId": "EventSubscriptions_ListRegionalBySubscription",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "location",
+ "in": "path",
+ "description": "Name of the location.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListRegionalBySubscription": {
+ "$ref": "./examples/EventSubscriptions_ListRegionalBySubscription.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "List all regional event subscriptions under an Azure subscription and resource group.",
+ "description": "List all event subscriptions from the given location under a specific Azure subscription and resource group.",
+ "operationId": "EventSubscriptions_ListRegionalByResourceGroup",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "in": "path",
+ "description": "Name of the location.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListRegionalByResourceGroup": {
+ "$ref": "./examples/EventSubscriptions_ListRegionalByResourceGroup.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "List all regional event subscriptions under an Azure subscription for a topic type.",
+ "description": "List all event subscriptions from the given location under a specific Azure subscription and topic type.",
+ "operationId": "EventSubscriptions_ListRegionalBySubscriptionForTopicType",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "location",
+ "in": "path",
+ "description": "Name of the location.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicTypeName",
+ "in": "path",
+ "description": "Name of the topic type.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListRegionalBySubscriptionForTopicType": {
+ "$ref": "./examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "List all regional event subscriptions under an Azure subscription and resource group for a topic type.",
+ "description": "List all event subscriptions from the given location under a specific Azure subscription and resource group and topic type.",
+ "operationId": "EventSubscriptions_ListRegionalByResourceGroupForTopicType",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "in": "path",
+ "description": "Name of the location.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicTypeName",
+ "in": "path",
+ "description": "Name of the topic type.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListRegionalByResourceGroupForTopicType": {
+ "$ref": "./examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "List all event subscriptions for a specific topic.",
+ "description": "List all event subscriptions that have been created for a specific topic.",
+ "operationId": "EventSubscriptions_ListByResource",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "providerNamespace",
+ "in": "path",
+ "description": "Namespace of the provider of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "resourceTypeName",
+ "in": "path",
+ "description": "Name of the resource type.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "resourceName",
+ "in": "path",
+ "description": "Name of the resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListByResource": {
+ "$ref": "./examples/EventSubscriptions_ListByResource.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions": {
+ "get": {
+ "tags": [
+ "EventSubscriptions"
+ ],
+ "summary": "List all event subscriptions for a specific domain topic.",
+ "description": "List all event subscriptions that have been created for a specific domain topic.",
+ "operationId": "EventSubscriptions_ListByDomainTopic",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "domainName",
+ "in": "path",
+ "description": "Name of the top level domain.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicName",
+ "in": "path",
+ "description": "Name of the domain topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventSubscriptionsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "EventSubscriptions_ListByDomainTopic": {
+ "$ref": "./examples/EventSubscriptions_ListByDomainTopic.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.EventGrid/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "summary": "List available operations.",
+ "description": "List the available operations supported by the Microsoft.EventGrid resource provider.",
+ "operationId": "Operations_List",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/OperationsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "x-ms-examples": {
+ "Operations_List": {
+ "$ref": "./examples/Operations_List.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}": {
+ "get": {
+ "tags": [
+ "Topics"
+ ],
+ "summary": "Get a topic.",
+ "description": "Get properties of a topic.",
+ "operationId": "Topics_Get",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicName",
+ "in": "path",
+ "description": "Name of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Topic"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Topics_Get": {
+ "$ref": "./examples/Topics_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Topics"
+ ],
+ "summary": "Create a topic.",
+ "description": "Asynchronously creates a new topic with the specified parameters.",
+ "operationId": "Topics_CreateOrUpdate",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicName",
+ "in": "path",
+ "description": "Name of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicInfo",
+ "in": "body",
+ "description": "Topic information.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Topic"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/Topic"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Topics_CreateOrUpdate": {
+ "$ref": "./examples/Topics_CreateOrUpdate.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "Topics"
+ ],
+ "summary": "Delete a topic.",
+ "description": "Delete existing topic.",
+ "operationId": "Topics_Delete",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicName",
+ "in": "path",
+ "description": "Name of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Topics_Delete": {
+ "$ref": "./examples/Topics_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "Topics"
+ ],
+ "summary": "Update a topic.",
+ "description": "Asynchronously updates a topic with the specified parameters.",
+ "operationId": "Topics_Update",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicName",
+ "in": "path",
+ "description": "Name of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicUpdateParameters",
+ "in": "body",
+ "description": "Topic update information.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TopicUpdateParameters"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "201": {
+ "description": "Topic update request accepted.",
+ "schema": {
+ "$ref": "#/definitions/Topic"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Topics_Update": {
+ "$ref": "./examples/Topics_Update.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topics": {
+ "get": {
+ "tags": [
+ "Topics"
+ ],
+ "summary": "List topics under an Azure subscription.",
+ "description": "List all the topics under an Azure subscription.",
+ "operationId": "Topics_ListBySubscription",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TopicsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Topics_ListBySubscription": {
+ "$ref": "./examples/Topics_ListBySubscription.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics": {
+ "get": {
+ "tags": [
+ "Topics"
+ ],
+ "summary": "List topics under a resource group.",
+ "description": "List all the topics under a resource group.",
+ "operationId": "Topics_ListByResourceGroup",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TopicsListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Topics_ListByResourceGroup": {
+ "$ref": "./examples/Topics_ListByResourceGroup.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys": {
+ "post": {
+ "tags": [
+ "Topics"
+ ],
+ "summary": "List keys for a topic.",
+ "description": "List the two keys used to publish to a topic.",
+ "operationId": "Topics_ListSharedAccessKeys",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicName",
+ "in": "path",
+ "description": "Name of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TopicSharedAccessKeys"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Topics_ListSharedAccessKeys": {
+ "$ref": "./examples/Topics_ListSharedAccessKeys.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey": {
+ "post": {
+ "tags": [
+ "Topics"
+ ],
+ "summary": "Regenerate key for a topic.",
+ "description": "Regenerate a shared access key for a topic.",
+ "operationId": "Topics_RegenerateKey",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "topicName",
+ "in": "path",
+ "description": "Name of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "regenerateKeyRequest",
+ "in": "body",
+ "description": "Request body to regenerate key.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TopicRegenerateKeyRequest"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TopicSharedAccessKeys"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "Topics_RegenerateKey": {
+ "$ref": "./examples/Topics_RegenerateKey.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}": {
+ "get": {
+ "tags": [
+ "PrivateEndpointConnections"
+ ],
+ "summary": "Get a specific private endpoint connection.",
+ "description": "Get a specific private endpoint connection under a topic or domain.",
+ "operationId": "PrivateEndpointConnections_Get",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parentType",
+ "in": "path",
+ "description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "topics",
+ "domains"
+ ]
+ },
+ {
+ "name": "parentName",
+ "in": "path",
+ "description": "The name of the parent resource (namely, either, the topic name or domain name).",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "description": "The name of the private endpoint connection connection.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "PrivateEndpointConnections_Get": {
+ "$ref": "./examples/PrivateEndpointConnections_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "PrivateEndpointConnections"
+ ],
+ "summary": "Update a specific private endpoint connection.",
+ "description": "Update a specific private endpoint connection under a topic or domain.",
+ "operationId": "PrivateEndpointConnections_Update",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parentType",
+ "in": "path",
+ "description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "topics",
+ "domains"
+ ]
+ },
+ {
+ "name": "parentName",
+ "in": "path",
+ "description": "The name of the parent resource (namely, either, the topic name or domain name).",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "description": "The name of the private endpoint connection connection.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "privateEndpointConnection",
+ "in": "body",
+ "description": "The private endpoint connection object to update.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "PrivateEndpointConnections_Update": {
+ "$ref": "./examples/PrivateEndpointConnections_Update.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "PrivateEndpointConnections"
+ ],
+ "summary": "Delete a specific private endpoint connection.",
+ "description": "Delete a specific private endpoint connection under a topic or domain.",
+ "operationId": "PrivateEndpointConnections_Delete",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parentType",
+ "in": "path",
+ "description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "topics",
+ "domains"
+ ]
+ },
+ {
+ "name": "parentName",
+ "in": "path",
+ "description": "The name of the parent resource (namely, either, the topic name or domain name).",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "description": "The name of the private endpoint connection connection.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "PrivateEndpointConnections_Delete": {
+ "$ref": "./examples/PrivateEndpointConnections_Delete.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections": {
+ "get": {
+ "tags": [
+ "PrivateEndpointConnections"
+ ],
+ "summary": "Lists all private endpoint connections under a resource.",
+ "description": "Get all private endpoint connections under a topic or domain.",
+ "operationId": "PrivateEndpointConnections_ListByResource",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parentType",
+ "in": "path",
+ "description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "topics",
+ "domains"
+ ]
+ },
+ {
+ "name": "parentName",
+ "in": "path",
+ "description": "The name of the parent resource (namely, either, the topic name or domain name).",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnectionListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "PrivateEndpointConnections_ListByResource": {
+ "$ref": "./examples/PrivateEndpointConnections_ListByResource.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateLinkResources/{privateLinkResourceName}": {
+ "get": {
+ "tags": [
+ "PrivateLinkResources"
+ ],
+ "summary": "Get a private link resource.",
+ "description": "Get properties of a private link resource.",
+ "operationId": "PrivateLinkResources_Get",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parentType",
+ "in": "path",
+ "description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parentName",
+ "in": "path",
+ "description": "The name of the parent resource (namely, either, the topic name or domain name).",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "privateLinkResourceName",
+ "in": "path",
+ "description": "The name of private link resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "PrivateLinkResources_Get": {
+ "$ref": "./examples/PrivateLinkResources_Get.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateLinkResources": {
+ "get": {
+ "tags": [
+ "PrivateLinkResources"
+ ],
+ "summary": "List private link resources under specific topic or domain.",
+ "description": "List all the private link resources under a topic or domain.",
+ "operationId": "PrivateLinkResources_ListByResource",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parentType",
+ "in": "path",
+ "description": "The type of the parent resource. This can be either \\'topics\\' or \\'domains\\'.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parentName",
+ "in": "path",
+ "description": "The name of the parent resource (namely, either, the topic name or domain name).",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/FilterParameter"
+ },
+ {
+ "$ref": "#/parameters/TopParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PrivateLinkResourcesListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "PrivateLinkResources_ListByResource": {
+ "$ref": "./examples/PrivateLinkResources_ListByResource.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes": {
+ "get": {
+ "tags": [
+ "Topics"
+ ],
+ "summary": "List topic event types.",
+ "description": "List event types for a topic.",
+ "operationId": "Topics_ListEventTypes",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group within the user's subscription.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "providerNamespace",
+ "in": "path",
+ "description": "Namespace of the provider of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "resourceTypeName",
+ "in": "path",
+ "description": "Name of the topic type.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "resourceName",
+ "in": "path",
+ "description": "Name of the topic.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventTypesListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "x-ms-examples": {
+ "Topics_ListEventTypes": {
+ "$ref": "./examples/Topics_ListEventTypes.json"
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.EventGrid/topicTypes": {
+ "get": {
+ "tags": [
+ "TopicTypes"
+ ],
+ "summary": "List topic types.",
+ "description": "List all registered topic types.",
+ "operationId": "TopicTypes_List",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TopicTypesListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "x-ms-examples": {
+ "TopicTypes_List": {
+ "$ref": "./examples/TopicTypes_List.json"
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}": {
+ "get": {
+ "tags": [
+ "TopicTypes"
+ ],
+ "summary": "Get a topic type.",
+ "description": "Get information about a topic type.",
+ "operationId": "TopicTypes_Get",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "topicTypeName",
+ "in": "path",
+ "description": "Name of the topic type.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TopicTypeInfo"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-examples": {
+ "TopicTypes_Get": {
+ "$ref": "./examples/TopicTypes_Get.json"
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventTypes": {
+ "get": {
+ "tags": [
+ "TopicTypes"
+ ],
+ "summary": "List event types.",
+ "description": "List event types for a topic type.",
+ "operationId": "TopicTypes_ListEventTypes",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "topicTypeName",
+ "in": "path",
+ "description": "Name of the topic type.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EventTypesListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 404 Not Found.\n\n * 500 Internal Server Error."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "x-ms-examples": {
+ "TopicTypes_ListEventTypes": {
+ "$ref": "./examples/TopicTypes_ListEventTypes.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "DomainProperties": {
+ "description": "Properties of the Domain.",
+ "type": "object",
+ "properties": {
+ "privateEndpointConnections": {
+ "description": "List of private endpoint connections.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "provisioningState": {
+ "description": "Provisioning state of the domain.",
+ "enum": [
+ "Creating",
+ "Updating",
+ "Deleting",
+ "Succeeded",
+ "Canceled",
+ "Failed"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "DomainProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "endpoint": {
+ "description": "Endpoint for the domain.",
+ "type": "string",
+ "readOnly": true
+ },
+ "inputSchema": {
+ "description": "This determines the format that Event Grid should expect for incoming events published to the domain.",
+ "enum": [
+ "EventGridSchema",
+ "CustomEventSchema",
+ "CloudEventSchemaV1_0"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "InputSchema",
+ "modelAsString": true
+ },
+ "default": "EventGridSchema"
+ },
+ "inputSchemaMapping": {
+ "$ref": "#/definitions/InputSchemaMapping",
+ "description": "Information about the InputSchemaMapping which specified the info about mapping event payload."
+ },
+ "metricResourceId": {
+ "description": "Metric resource id for the domain.",
+ "type": "string",
+ "readOnly": true
+ },
+ "publicNetworkAccess": {
+ "description": "This determines if traffic is allowed over public network. By default it is enabled. \r\nYou can further restrict to specific IPs by configuring ",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PublicNetworkAccess",
+ "modelAsString": true
+ }
+ },
+ "inboundIpRules": {
+ "description": "This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/InboundIpRule"
+ }
+ }
+ }
+ },
+ "PrivateEndpointConnection": {
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProperties",
+ "description": "Properties of the PrivateEndpointConnection.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "InboundIpRule": {
+ "type": "object",
+ "properties": {
+ "ipMask": {
+ "description": "IP Address in CIDR notation e.g., 10.0.0.0/8.",
+ "type": "string"
+ },
+ "action": {
+ "description": "Action to perform based on the match or no match of the IpMask.",
+ "enum": [
+ "Allow"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "IpActionType",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "Resource": {
+ "description": "Definition of a Resource.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Fully qualified identifier of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "name": {
+ "description": "Name of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "type": {
+ "description": "Type of the resource.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "PrivateEndpointConnectionProperties": {
+ "description": "Properties of the private endpoint connection resource.",
+ "type": "object",
+ "properties": {
+ "privateEndpoint": {
+ "$ref": "#/definitions/PrivateEndpoint",
+ "description": "The Private Endpoint resource for this Connection."
+ },
+ "groupIds": {
+ "description": "GroupIds from the private link service resource.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "privateLinkServiceConnectionState": {
+ "$ref": "#/definitions/ConnectionState",
+ "description": "Details about the state of the connection."
+ },
+ "provisioningState": {
+ "description": "Provisioning state of the Private Endpoint Connection.",
+ "enum": [
+ "Creating",
+ "Updating",
+ "Deleting",
+ "Succeeded",
+ "Canceled",
+ "Failed"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ResourceProvisioningState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "PrivateEndpoint": {
+ "description": "PrivateEndpoint information.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The ARM identifier for Private Endpoint.",
+ "type": "string"
+ }
+ }
+ },
+ "ConnectionState": {
+ "description": "ConnectionState information.",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "Status of the connection.",
+ "enum": [
+ "Pending",
+ "Approved",
+ "Rejected",
+ "Disconnected"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PersistedConnectionStatus",
+ "modelAsString": true
+ }
+ },
+ "description": {
+ "description": "Description of the connection state.",
+ "type": "string"
+ },
+ "actionsRequired": {
+ "description": "Actions required (if any).",
+ "type": "string"
+ }
+ }
+ },
+ "JsonInputSchemaMappingProperties": {
+ "description": "This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "$ref": "#/definitions/JsonField",
+ "description": "The mapping information for the Id property of the Event Grid Event."
+ },
+ "topic": {
+ "$ref": "#/definitions/JsonField",
+ "description": "The mapping information for the Topic property of the Event Grid Event."
+ },
+ "eventTime": {
+ "$ref": "#/definitions/JsonField",
+ "description": "The mapping information for the EventTime property of the Event Grid Event."
+ },
+ "eventType": {
+ "$ref": "#/definitions/JsonFieldWithDefault",
+ "description": "The mapping information for the EventType property of the Event Grid Event."
+ },
+ "subject": {
+ "$ref": "#/definitions/JsonFieldWithDefault",
+ "description": "The mapping information for the Subject property of the Event Grid Event."
+ },
+ "dataVersion": {
+ "$ref": "#/definitions/JsonFieldWithDefault",
+ "description": "The mapping information for the DataVersion property of the Event Grid Event."
+ }
+ }
+ },
+ "JsonField": {
+ "description": "This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema. This is currently used in the mappings for the 'id', 'topic' and 'eventtime' properties. This represents a field in the input event schema.",
+ "type": "object",
+ "properties": {
+ "sourceField": {
+ "description": "Name of a field in the input event schema that's to be used as the source of a mapping.",
+ "type": "string"
+ }
+ }
+ },
+ "JsonFieldWithDefault": {
+ "description": "This is used to express the source of an input schema mapping for a single target field\r\nin the Event Grid Event schema. This is currently used in the mappings for the 'subject',\r\n'eventtype' and 'dataversion' properties. This represents a field in the input event schema\r\nalong with a default value to be used, and at least one of these two properties should be provided.",
+ "type": "object",
+ "properties": {
+ "sourceField": {
+ "description": "Name of a field in the input event schema that's to be used as the source of a mapping.",
+ "type": "string"
+ },
+ "defaultValue": {
+ "description": "The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.",
+ "type": "string"
+ }
+ }
+ },
+ "JsonInputSchemaMapping": {
+ "description": "This enables publishing to Event Grid using a custom input schema. This can be used to map properties from a custom input JSON schema to the Event Grid event schema.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/InputSchemaMapping"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/JsonInputSchemaMappingProperties",
+ "description": "JSON Properties of the input schema mapping",
+ "x-ms-client-flatten": true
+ }
+ },
+ "x-ms-discriminator-value": "Json"
+ },
+ "InputSchemaMapping": {
+ "description": "By default, Event Grid expects events to be in the Event Grid event schema. Specifying an input schema mapping enables publishing to Event Grid using a custom input schema. Currently, the only supported type of InputSchemaMapping is 'JsonInputSchemaMapping'.",
+ "required": [
+ "inputSchemaMappingType"
+ ],
+ "type": "object",
+ "properties": {
+ "inputSchemaMappingType": {
+ "description": "Type of the custom mapping",
+ "enum": [
+ "Json"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "InputSchemaMappingType",
+ "modelAsString": true
+ }
+ }
+ },
+ "discriminator": "inputSchemaMappingType"
+ },
+ "TrackedResource": {
+ "description": "Definition of a Tracked Resource.",
+ "required": [
+ "location"
+ ],
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "location": {
+ "description": "Location of the resource.",
+ "type": "string",
+ "x-ms-mutability": [
+ "read",
+ "create"
+ ]
+ },
+ "tags": {
+ "description": "Tags of the resource.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "Domain": {
+ "description": "EventGrid Domain.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/DomainProperties",
+ "description": "Properties of the domain.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "DomainUpdateParameters": {
+ "description": "Properties of the Domain update.",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "description": "Tags of the domains resource.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "properties": {
+ "$ref": "#/definitions/DomainUpdateParameterProperties",
+ "description": "Properties of the resource.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "DomainUpdateParameterProperties": {
+ "description": "Information of domain update parameter properties.",
+ "type": "object",
+ "properties": {
+ "publicNetworkAccess": {
+ "description": "This determines if traffic is allowed over public network. By default it is enabled. \r\nYou can further restrict to specific IPs by configuring ",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PublicNetworkAccess",
+ "modelAsString": true
+ }
+ },
+ "inboundIpRules": {
+ "description": "This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/InboundIpRule"
+ }
+ }
+ }
+ },
+ "DomainsListResult": {
+ "description": "Result of the List Domains operation.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of Domains.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Domain"
+ }
+ },
+ "nextLink": {
+ "description": "A link for the next page of domains.",
+ "type": "string"
+ }
+ }
+ },
+ "DomainSharedAccessKeys": {
+ "description": "Shared access keys of the Domain.",
+ "type": "object",
+ "properties": {
+ "key1": {
+ "description": "Shared access key1 for the domain.",
+ "type": "string"
+ },
+ "key2": {
+ "description": "Shared access key2 for the domain.",
+ "type": "string"
+ }
+ }
+ },
+ "DomainRegenerateKeyRequest": {
+ "description": "Domain regenerate share access key request.",
+ "required": [
+ "keyName"
+ ],
+ "type": "object",
+ "properties": {
+ "keyName": {
+ "description": "Key name to regenerate key1 or key2.",
+ "type": "string"
+ }
+ }
+ },
+ "DomainTopicProperties": {
+ "description": "Properties of the Domain Topic.",
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "description": "Provisioning state of the domain topic.",
+ "enum": [
+ "Creating",
+ "Updating",
+ "Deleting",
+ "Succeeded",
+ "Canceled",
+ "Failed"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "DomainTopicProvisioningState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "DomainTopic": {
+ "description": "Domain Topic.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/DomainTopicProperties",
+ "description": "Properties of the Domain Topic.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "DomainTopicsListResult": {
+ "description": "Result of the List Domain Topics operation.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of Domain Topics.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DomainTopic"
+ }
+ },
+ "nextLink": {
+ "description": "A link for the next page of domain topics.",
+ "type": "string"
+ }
+ }
+ },
+ "EventSubscriptionProperties": {
+ "description": "Properties of the Event Subscription.",
+ "type": "object",
+ "properties": {
+ "topic": {
+ "description": "Name of the topic of the event subscription.",
+ "type": "string",
+ "readOnly": true
+ },
+ "provisioningState": {
+ "description": "Provisioning state of the event subscription.",
+ "enum": [
+ "Creating",
+ "Updating",
+ "Deleting",
+ "Succeeded",
+ "Canceled",
+ "Failed",
+ "AwaitingManualAction"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "EventSubscriptionProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "destination": {
+ "$ref": "#/definitions/EventSubscriptionDestination",
+ "description": "Information about the destination where events have to be delivered for the event subscription."
+ },
+ "filter": {
+ "$ref": "#/definitions/EventSubscriptionFilter",
+ "description": "Information about the filter for the event subscription."
+ },
+ "labels": {
+ "description": "List of user defined labels.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "expirationTimeUtc": {
+ "format": "date-time",
+ "description": "Expiration time of the event subscription.",
+ "type": "string"
+ },
+ "eventDeliverySchema": {
+ "description": "The event delivery schema for the event subscription.",
+ "enum": [
+ "EventGridSchema",
+ "CustomInputSchema",
+ "CloudEventSchemaV1_0"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "EventDeliverySchema",
+ "modelAsString": true
+ }
+ },
+ "retryPolicy": {
+ "$ref": "#/definitions/RetryPolicy",
+ "description": "The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events."
+ },
+ "deadLetterDestination": {
+ "$ref": "#/definitions/DeadLetterDestination",
+ "description": "The DeadLetter destination of the event subscription."
+ }
+ }
+ },
+ "EventSubscriptionFilter": {
+ "description": "Filter for the Event Subscription.",
+ "type": "object",
+ "properties": {
+ "subjectBeginsWith": {
+ "description": "An optional string to filter events for an event subscription based on a resource path prefix.\r\nThe format of this depends on the publisher of the events.\r\nWildcard characters are not supported in this path.",
+ "type": "string"
+ },
+ "subjectEndsWith": {
+ "description": "An optional string to filter events for an event subscription based on a resource path suffix.\r\nWildcard characters are not supported in this path.",
+ "type": "string"
+ },
+ "includedEventTypes": {
+ "description": "A list of applicable event types that need to be part of the event subscription. If it is desired to subscribe to all default event types, set the IncludedEventTypes to null.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "isSubjectCaseSensitive": {
+ "description": "Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter\r\nshould be compared in a case sensitive manner.",
+ "default": false,
+ "type": "boolean"
+ },
+ "advancedFilters": {
+ "description": "An array of advanced filters that are used for filtering event subscriptions.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ }
+ }
+ },
+ "RetryPolicy": {
+ "description": "Information about the retry policy for an event subscription.",
+ "type": "object",
+ "properties": {
+ "maxDeliveryAttempts": {
+ "format": "int32",
+ "description": "Maximum number of delivery retry attempts for events.",
+ "type": "integer"
+ },
+ "eventTimeToLiveInMinutes": {
+ "format": "int32",
+ "description": "Time To Live (in minutes) for events.",
+ "type": "integer"
+ }
+ }
+ },
+ "WebHookEventSubscriptionDestinationProperties": {
+ "description": "Information about the webhook destination properties for an event subscription.",
+ "type": "object",
+ "properties": {
+ "endpointUrl": {
+ "description": "The URL that represents the endpoint of the destination of an event subscription.",
+ "type": "string"
+ },
+ "endpointBaseUrl": {
+ "description": "The base URL that represents the endpoint of the destination of an event subscription.",
+ "type": "string",
+ "readOnly": true
+ },
+ "maxEventsPerBatch": {
+ "format": "int32",
+ "description": "Maximum number of events per batch.",
+ "type": "integer"
+ },
+ "preferredBatchSizeInKilobytes": {
+ "format": "int32",
+ "description": "Preferred batch size in Kilobytes.",
+ "type": "integer"
+ },
+ "azureActiveDirectoryTenantId": {
+ "description": "The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.",
+ "type": "string"
+ },
+ "azureActiveDirectoryApplicationIdOrUri": {
+ "description": "The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.",
+ "type": "string"
+ }
+ }
+ },
+ "StorageBlobDeadLetterDestinationProperties": {
+ "description": "Properties of the storage blob based dead letter destination.",
+ "type": "object",
+ "properties": {
+ "resourceId": {
+ "description": "The Azure Resource ID of the storage account that is the destination of the deadletter events",
+ "type": "string"
+ },
+ "blobContainerName": {
+ "description": "The name of the Storage blob container that is the destination of the deadletter events",
+ "type": "string"
+ }
+ }
+ },
+ "NumberInAdvancedFilter": {
+ "description": "NumberIn Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "values": {
+ "description": "The set of filter values.",
+ "type": "array",
+ "items": {
+ "format": "double",
+ "type": "number"
+ }
+ }
+ },
+ "x-ms-discriminator-value": "NumberIn"
+ },
+ "StorageBlobDeadLetterDestination": {
+ "description": "Information about the storage blob based dead letter destination.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeadLetterDestination"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/StorageBlobDeadLetterDestinationProperties",
+ "description": "The properties of the Storage Blob based deadletter destination",
+ "x-ms-client-flatten": true
+ }
+ },
+ "x-ms-discriminator-value": "StorageBlob"
+ },
+ "NumberNotInAdvancedFilter": {
+ "description": "NumberNotIn Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "values": {
+ "description": "The set of filter values.",
+ "type": "array",
+ "items": {
+ "format": "double",
+ "type": "number"
+ }
+ }
+ },
+ "x-ms-discriminator-value": "NumberNotIn"
+ },
+ "NumberLessThanAdvancedFilter": {
+ "description": "NumberLessThan Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "value": {
+ "format": "double",
+ "description": "The filter value.",
+ "type": "number"
+ }
+ },
+ "x-ms-discriminator-value": "NumberLessThan"
+ },
+ "NumberGreaterThanAdvancedFilter": {
+ "description": "NumberGreaterThan Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "value": {
+ "format": "double",
+ "description": "The filter value.",
+ "type": "number"
+ }
+ },
+ "x-ms-discriminator-value": "NumberGreaterThan"
+ },
+ "NumberLessThanOrEqualsAdvancedFilter": {
+ "description": "NumberLessThanOrEquals Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "value": {
+ "format": "double",
+ "description": "The filter value.",
+ "type": "number"
+ }
+ },
+ "x-ms-discriminator-value": "NumberLessThanOrEquals"
+ },
+ "NumberGreaterThanOrEqualsAdvancedFilter": {
+ "description": "NumberGreaterThanOrEquals Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "value": {
+ "format": "double",
+ "description": "The filter value.",
+ "type": "number"
+ }
+ },
+ "x-ms-discriminator-value": "NumberGreaterThanOrEquals"
+ },
+ "BoolEqualsAdvancedFilter": {
+ "description": "BoolEquals Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "value": {
+ "description": "The boolean filter value.",
+ "type": "boolean"
+ }
+ },
+ "x-ms-discriminator-value": "BoolEquals"
+ },
+ "StringInAdvancedFilter": {
+ "description": "StringIn Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "values": {
+ "description": "The set of filter values.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-discriminator-value": "StringIn"
+ },
+ "StringNotInAdvancedFilter": {
+ "description": "StringNotIn Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "values": {
+ "description": "The set of filter values.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-discriminator-value": "StringNotIn"
+ },
+ "StringBeginsWithAdvancedFilter": {
+ "description": "StringBeginsWith Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "values": {
+ "description": "The set of filter values.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-discriminator-value": "StringBeginsWith"
+ },
+ "StringEndsWithAdvancedFilter": {
+ "description": "StringEndsWith Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "values": {
+ "description": "The set of filter values.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-discriminator-value": "StringEndsWith"
+ },
+ "StringContainsAdvancedFilter": {
+ "description": "StringContains Advanced Filter.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AdvancedFilter"
+ }
+ ],
+ "properties": {
+ "values": {
+ "description": "The set of filter values.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "x-ms-discriminator-value": "StringContains"
+ },
+ "AdvancedFilter": {
+ "description": "This is the base type that represents an advanced filter. To configure an advanced filter, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class such as BoolEqualsAdvancedFilter, NumberInAdvancedFilter, StringEqualsAdvancedFilter etc. depending on the type of the key based on which you want to filter.",
+ "required": [
+ "operatorType"
+ ],
+ "type": "object",
+ "properties": {
+ "operatorType": {
+ "description": "The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
+ "enum": [
+ "NumberIn",
+ "NumberNotIn",
+ "NumberLessThan",
+ "NumberGreaterThan",
+ "NumberLessThanOrEquals",
+ "NumberGreaterThanOrEquals",
+ "BoolEquals",
+ "StringIn",
+ "StringNotIn",
+ "StringBeginsWith",
+ "StringEndsWith",
+ "StringContains"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "AdvancedFilterOperatorType",
+ "modelAsString": true
+ }
+ },
+ "key": {
+ "description": "The field/property in the event based on which you want to filter.",
+ "type": "string"
+ }
+ },
+ "discriminator": "operatorType"
+ },
+ "WebHookEventSubscriptionDestination": {
+ "description": "Information about the webhook destination for an event subscription.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/EventSubscriptionDestination"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/WebHookEventSubscriptionDestinationProperties",
+ "description": "WebHook Properties of the event subscription destination.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "x-ms-discriminator-value": "WebHook"
+ },
+ "DeadLetterDestination": {
+ "description": "Information about the dead letter destination for an event subscription. To configure a deadletter destination, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class. Currently, StorageBlobDeadLetterDestination is the only class that derives from this class.",
+ "type": "object",
+ "required": [
+ "endpointType"
+ ],
+ "properties": {
+ "endpointType": {
+ "description": "Type of the endpoint for the dead letter destination",
+ "enum": [
+ "StorageBlob"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "DeadLetterEndPointType",
+ "modelAsString": true
+ }
+ }
+ },
+ "discriminator": "endpointType"
+ },
+ "EventHubEventSubscriptionDestinationProperties": {
+ "description": "The properties for a event hub destination.",
+ "type": "object",
+ "properties": {
+ "resourceId": {
+ "description": "The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.",
+ "type": "string"
+ }
+ }
+ },
+ "EventHubEventSubscriptionDestination": {
+ "description": "Information about the event hub destination for an event subscription.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/EventSubscriptionDestination"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/EventHubEventSubscriptionDestinationProperties",
+ "description": "Event Hub Properties of the event subscription destination.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "x-ms-discriminator-value": "EventHub"
+ },
+ "StorageQueueEventSubscriptionDestinationProperties": {
+ "description": "The properties for a storage queue destination.",
+ "type": "object",
+ "properties": {
+ "resourceId": {
+ "description": "The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.",
+ "type": "string"
+ },
+ "queueName": {
+ "description": "The name of the Storage queue under a storage account that is the destination of an event subscription.",
+ "type": "string"
+ }
+ }
+ },
+ "StorageQueueEventSubscriptionDestination": {
+ "description": "Information about the storage queue destination for an event subscription.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/EventSubscriptionDestination"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/StorageQueueEventSubscriptionDestinationProperties",
+ "description": "Storage Queue Properties of the event subscription destination.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "x-ms-discriminator-value": "StorageQueue"
+ },
+ "HybridConnectionEventSubscriptionDestinationProperties": {
+ "description": "The properties for a hybrid connection destination.",
+ "type": "object",
+ "properties": {
+ "resourceId": {
+ "description": "The Azure Resource ID of an hybrid connection that is the destination of an event subscription.",
+ "type": "string"
+ }
+ }
+ },
+ "HybridConnectionEventSubscriptionDestination": {
+ "description": "Information about the HybridConnection destination for an event subscription.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/EventSubscriptionDestination"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/HybridConnectionEventSubscriptionDestinationProperties",
+ "description": "Hybrid connection Properties of the event subscription destination.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "x-ms-discriminator-value": "HybridConnection"
+ },
+ "ServiceBusQueueEventSubscriptionDestinationProperties": {
+ "description": "The properties that represent the Service Bus destination of an event subscription.",
+ "type": "object",
+ "properties": {
+ "resourceId": {
+ "description": "The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.",
+ "type": "string"
+ }
+ }
+ },
+ "ServiceBusQueueEventSubscriptionDestination": {
+ "description": "Information about the service bus destination for an event subscription.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/EventSubscriptionDestination"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/ServiceBusQueueEventSubscriptionDestinationProperties",
+ "description": "Service Bus Properties of the event subscription destination.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "x-ms-discriminator-value": "ServiceBusQueue"
+ },
+ "ServiceBusTopicEventSubscriptionDestinationProperties": {
+ "description": "The properties that represent the Service Bus Topic destination of an event subscription.",
+ "type": "object",
+ "properties": {
+ "resourceId": {
+ "description": "The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event subscription.",
+ "type": "string"
+ }
+ }
+ },
+ "ServiceBusTopicEventSubscriptionDestination": {
+ "description": "Information about the service bus topic destination for an event subscription.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/EventSubscriptionDestination"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/ServiceBusTopicEventSubscriptionDestinationProperties",
+ "description": "Service Bus Topic Properties of the event subscription destination.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "x-ms-discriminator-value": "ServiceBusTopic"
+ },
+ "AzureFunctionEventSubscriptionDestinationProperties": {
+ "description": "The properties that represent the Azure Function destination of an event subscription.",
+ "type": "object",
+ "properties": {
+ "resourceId": {
+ "description": "The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.",
+ "type": "string"
+ },
+ "maxEventsPerBatch": {
+ "format": "int32",
+ "description": "Maximum number of events per batch.",
+ "type": "integer"
+ },
+ "preferredBatchSizeInKilobytes": {
+ "format": "int32",
+ "description": "Preferred batch size in Kilobytes.",
+ "type": "integer"
+ }
+ }
+ },
+ "AzureFunctionEventSubscriptionDestination": {
+ "description": "Information about the azure function destination for an event subscription.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/EventSubscriptionDestination"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/AzureFunctionEventSubscriptionDestinationProperties",
+ "description": "Azure Function Properties of the event subscription destination.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "x-ms-discriminator-value": "AzureFunction"
+ },
+ "EventSubscriptionDestination": {
+ "description": "Information about the destination for an event subscription.",
+ "required": [
+ "endpointType"
+ ],
+ "type": "object",
+ "properties": {
+ "endpointType": {
+ "description": "Type of the endpoint for the event subscription destination.",
+ "enum": [
+ "WebHook",
+ "EventHub",
+ "StorageQueue",
+ "HybridConnection",
+ "ServiceBusQueue",
+ "ServiceBusTopic",
+ "AzureFunction"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "EndpointType",
+ "modelAsString": true
+ }
+ }
+ },
+ "discriminator": "endpointType"
+ },
+ "EventSubscription": {
+ "description": "Event Subscription",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/EventSubscriptionProperties",
+ "description": "Properties of the event subscription.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "EventSubscriptionUpdateParameters": {
+ "description": "Properties of the Event Subscription update.",
+ "type": "object",
+ "properties": {
+ "destination": {
+ "$ref": "#/definitions/EventSubscriptionDestination",
+ "description": "Information about the destination where events have to be delivered for the event subscription."
+ },
+ "filter": {
+ "$ref": "#/definitions/EventSubscriptionFilter",
+ "description": "Information about the filter for the event subscription."
+ },
+ "labels": {
+ "description": "List of user defined labels.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "expirationTimeUtc": {
+ "format": "date-time",
+ "description": "Information about the expiration time for the event subscription.",
+ "type": "string"
+ },
+ "eventDeliverySchema": {
+ "description": "The event delivery schema for the event subscription.",
+ "enum": [
+ "EventGridSchema",
+ "CustomInputSchema",
+ "CloudEventSchemaV1_0"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "EventDeliverySchema",
+ "modelAsString": true
+ }
+ },
+ "retryPolicy": {
+ "$ref": "#/definitions/RetryPolicy",
+ "description": "The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events."
+ },
+ "deadLetterDestination": {
+ "$ref": "#/definitions/DeadLetterDestination",
+ "description": "The DeadLetter destination of the event subscription."
+ }
+ }
+ },
+ "EventSubscriptionFullUrl": {
+ "description": "Full endpoint url of an event subscription",
+ "type": "object",
+ "properties": {
+ "endpointUrl": {
+ "description": "The URL that represents the endpoint of the destination of an event subscription.",
+ "type": "string"
+ }
+ }
+ },
+ "EventSubscriptionsListResult": {
+ "description": "Result of the List EventSubscriptions operation",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of EventSubscriptions",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EventSubscription"
+ }
+ },
+ "nextLink": {
+ "description": "A link for the next page of event subscriptions",
+ "type": "string"
+ }
+ }
+ },
+ "OperationsListResult": {
+ "description": "Result of the List Operations operation",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of operations",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ }
+ }
+ }
+ },
+ "Operation": {
+ "description": "Represents an operation returned by the GetOperations request",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the operation",
+ "type": "string"
+ },
+ "display": {
+ "$ref": "#/definitions/OperationInfo",
+ "description": "Display name of the operation"
+ },
+ "origin": {
+ "description": "Origin of the operation",
+ "type": "string"
+ },
+ "properties": {
+ "description": "Properties of the operation",
+ "type": "object",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "OperationInfo": {
+ "description": "Information about an operation",
+ "type": "object",
+ "properties": {
+ "provider": {
+ "description": "Name of the provider",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Name of the resource type",
+ "type": "string"
+ },
+ "operation": {
+ "description": "Name of the operation",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description of the operation",
+ "type": "string"
+ }
+ }
+ },
+ "PrivateEndpointConnectionListResult": {
+ "description": "Result of the list of all private endpoint connections operation.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of private endpoint connection resources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "nextLink": {
+ "description": "A link for the next page of private endpoint connection resources.",
+ "type": "string"
+ }
+ }
+ },
+ "PrivateLinkResource": {
+ "description": "Information of the private link resource.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateLinkResourceProperties",
+ "description": "Properties of the private link resource.",
+ "x-ms-client-flatten": true
+ },
+ "id": {
+ "description": "Fully qualified identifier of the resource.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Name of the resource",
+ "type": "string"
+ },
+ "type": {
+ "description": "Type of the resource",
+ "type": "string"
+ }
+ }
+ },
+ "PrivateLinkResourceProperties": {
+ "type": "object",
+ "properties": {
+ "groupId": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "requiredMembers": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "requiredZoneNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "PrivateLinkResourcesListResult": {
+ "description": "Result of the List private link resources operation.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of private link resources",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ }
+ },
+ "nextLink": {
+ "description": "A link for the next page of private link resources.",
+ "type": "string"
+ }
+ }
+ },
+ "TopicProperties": {
+ "description": "Properties of the Topic",
+ "type": "object",
+ "properties": {
+ "privateEndpointConnections": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "provisioningState": {
+ "description": "Provisioning state of the topic.",
+ "enum": [
+ "Creating",
+ "Updating",
+ "Deleting",
+ "Succeeded",
+ "Canceled",
+ "Failed"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "TopicProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "endpoint": {
+ "description": "Endpoint for the topic.",
+ "type": "string",
+ "readOnly": true
+ },
+ "inputSchema": {
+ "description": "This determines the format that Event Grid should expect for incoming events published to the topic.",
+ "enum": [
+ "EventGridSchema",
+ "CustomEventSchema",
+ "CloudEventSchemaV1_0"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "InputSchema",
+ "modelAsString": true
+ },
+ "default": "EventGridSchema"
+ },
+ "inputSchemaMapping": {
+ "$ref": "#/definitions/InputSchemaMapping",
+ "description": "This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema."
+ },
+ "metricResourceId": {
+ "description": "Metric resource id for the topic.",
+ "type": "string",
+ "readOnly": true
+ },
+ "publicNetworkAccess": {
+ "description": "This determines if traffic is allowed over public network. By default it is enabled. \r\nYou can further restrict to specific IPs by configuring ",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PublicNetworkAccess",
+ "modelAsString": true
+ }
+ },
+ "inboundIpRules": {
+ "description": "This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/InboundIpRule"
+ }
+ }
+ }
+ },
+ "Topic": {
+ "description": "EventGrid Topic",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/TopicProperties",
+ "description": "Properties of the topic.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "TopicUpdateParameters": {
+ "description": "Properties of the Topic update",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "description": "Tags of the resource.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "properties": {
+ "$ref": "#/definitions/TopicUpdateParameterProperties",
+ "description": "Properties of the resource.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "TopicUpdateParameterProperties": {
+ "description": "Information of topic update parameter properties.",
+ "type": "object",
+ "properties": {
+ "publicNetworkAccess": {
+ "description": "This determines if traffic is allowed over public network. By default it is enabled. \r\nYou can further restrict to specific IPs by configuring ",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PublicNetworkAccess",
+ "modelAsString": true
+ }
+ },
+ "inboundIpRules": {
+ "description": "This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/InboundIpRule"
+ }
+ }
+ }
+ },
+ "TopicsListResult": {
+ "description": "Result of the List Topics operation",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of Topics",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Topic"
+ }
+ },
+ "nextLink": {
+ "description": "A link for the next page of topics",
+ "type": "string"
+ }
+ }
+ },
+ "TopicSharedAccessKeys": {
+ "description": "Shared access keys of the Topic",
+ "type": "object",
+ "properties": {
+ "key1": {
+ "description": "Shared access key1 for the topic.",
+ "type": "string"
+ },
+ "key2": {
+ "description": "Shared access key2 for the topic.",
+ "type": "string"
+ }
+ }
+ },
+ "TopicRegenerateKeyRequest": {
+ "description": "Topic regenerate share access key request",
+ "required": [
+ "keyName"
+ ],
+ "type": "object",
+ "properties": {
+ "keyName": {
+ "description": "Key name to regenerate key1 or key2",
+ "type": "string"
+ }
+ }
+ },
+ "EventTypesListResult": {
+ "description": "Result of the List Event Types operation",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of event types",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EventType"
+ }
+ }
+ }
+ },
+ "EventTypeProperties": {
+ "description": "Properties of the event type",
+ "type": "object",
+ "properties": {
+ "displayName": {
+ "description": "Display name of the event type.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description of the event type.",
+ "type": "string"
+ },
+ "schemaUrl": {
+ "description": "Url of the schema for this event type.",
+ "type": "string"
+ },
+ "isInDefaultSet": {
+ "description": "IsInDefaultSet flag of the event type.",
+ "type": "boolean"
+ }
+ }
+ },
+ "EventType": {
+ "description": "Event Type for a subject under a topic",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/EventTypeProperties",
+ "description": "Properties of the event type.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "TopicTypesListResult": {
+ "description": "Result of the List Topic Types operation",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "A collection of topic types",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TopicTypeInfo"
+ }
+ }
+ }
+ },
+ "TopicTypeProperties": {
+ "description": "Properties of a topic type.",
+ "type": "object",
+ "properties": {
+ "provider": {
+ "description": "Namespace of the provider of the topic type.",
+ "type": "string"
+ },
+ "displayName": {
+ "description": "Display Name for the topic type.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description of the topic type.",
+ "type": "string"
+ },
+ "resourceRegionType": {
+ "description": "Region type of the resource.",
+ "enum": [
+ "RegionalResource",
+ "GlobalResource"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ResourceRegionType",
+ "modelAsString": true
+ }
+ },
+ "provisioningState": {
+ "description": "Provisioning state of the topic type",
+ "enum": [
+ "Creating",
+ "Updating",
+ "Deleting",
+ "Succeeded",
+ "Canceled",
+ "Failed"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "TopicTypeProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "supportedLocations": {
+ "description": "List of locations supported by this topic type.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "sourceResourceFormat": {
+ "description": "Source resource format.",
+ "type": "string"
+ }
+ }
+ },
+ "TopicTypeInfo": {
+ "description": "Properties of a topic type info.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/TopicTypeProperties",
+ "description": "Properties of the topic type info",
+ "x-ms-client-flatten": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
+ "required": true,
+ "type": "string"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "description": "Version of the API to be used with the client request.",
+ "required": true,
+ "type": "string"
+ },
+ "FilterParameter": {
+ "name": "$filter",
+ "in": "query",
+ "description": "The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These operations are: the 'contains' function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.",
+ "required": false,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "TopParameter": {
+ "name": "$top",
+ "in": "query",
+ "description": "The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 items per page.",
+ "required": false,
+ "type": "integer",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_CreateOrUpdate.json
new file mode 100644
index 000000000000..ede0597d632c
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_CreateOrUpdate.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain1",
+ "domainTopicName": "exampledomaintopic1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1/topics/exampledomaintopic1",
+ "name": "exampledomaintopic1",
+ "type": "Microsoft.EventGrid/domains/topics"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_Delete.json
new file mode 100644
index 000000000000..2f7779e09554
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_Delete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain1",
+ "domainTopicName": "exampledomaintopic1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_Get.json
new file mode 100644
index 000000000000..71d3a4e79f5b
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_Get.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain2",
+ "domainTopicName": "topic1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2/topics/topic1",
+ "name": "topic1",
+ "properties": {
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.EventGrid/domains/topics"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_ListByDomain.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_ListByDomain.json
new file mode 100644
index 000000000000..e2b8d873c8a1
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/DomainTopics_ListByDomain.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic1",
+ "name": "domainCli100topic1",
+ "properties": {
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.EventGrid/domains/topics"
+ },
+ {
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/devexprg/providers/Microsoft.EventGrid/domains/domainCli100/topics/domainCli100topic2",
+ "name": "domainCli100topic2",
+ "properties": {
+ "provisioningState": "Succeeded"
+ },
+ "type": "Microsoft.EventGrid/domains/topics"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_CreateOrUpdate.json
new file mode 100644
index 000000000000..75423f7c4dd3
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_CreateOrUpdate.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain1",
+ "api-version": "2020-04-01-preview",
+ "domainInfo": {
+ "location": "westus2",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "publicNetworkAccess": "Enabled",
+ "inboundIpRules": [
+ {
+ "ipMask": "12.18.30.15",
+ "action": "Allow"
+ },
+ {
+ "ipMask": "12.18.176.1",
+ "action": "Allow"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded",
+ "publicNetworkAccess": "Enabled",
+ "inboundIpRules": [
+ {
+ "ipMask": "12.18.30.15",
+ "action": "Allow"
+ },
+ {
+ "ipMask": "12.18.176.1",
+ "action": "Allow"
+ }
+ ]
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1",
+ "location": "westus2",
+ "name": "exampledomain1",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/domains"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Delete.json
new file mode 100644
index 000000000000..a963710c69a0
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Delete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Get.json
new file mode 100644
index 000000000000..958fd7e429fe
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Get.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2",
+ "location": "westcentralus",
+ "name": "exampledomain2",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/domains"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListByResourceGroup.json
new file mode 100644
index 000000000000..a5615d47e6f4
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListByResourceGroup.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1",
+ "location": "westus2",
+ "name": "exampledomain1",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/domains"
+ },
+ {
+ "properties": {
+ "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2",
+ "location": "westcentralus",
+ "name": "exampledomain2",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/domains"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListBySubscription.json
new file mode 100644
index 000000000000..065fd4370397
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListBySubscription.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1",
+ "location": "westus2",
+ "name": "exampledomain1",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/domains"
+ },
+ {
+ "properties": {
+ "endpoint": "https://exampledomain2.westcentralus-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain2",
+ "location": "westcentralus",
+ "name": "exampledomain2",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/domains"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListSharedAccessKeys.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListSharedAccessKeys.json
new file mode 100644
index 000000000000..bb783cf243eb
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_ListSharedAccessKeys.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=",
+ "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA="
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_RegenerateKey.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_RegenerateKey.json
new file mode 100644
index 000000000000..4183eca19edb
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_RegenerateKey.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain2",
+ "api-version": "2020-04-01-preview",
+ "regenerateKeyRequest": {
+ "keyName": "key1"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=",
+ "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA="
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Update.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Update.json
new file mode 100644
index 000000000000..3e59834b75b9
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Domains_Update.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "exampledomain1",
+ "api-version": "2020-04-01-preview",
+ "domainUpdateParameters": {
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "publicNetworkAccess": "Enabled",
+ "inboundIpRules": [
+ {
+ "ipMask": "12.18.30.15",
+ "action": "Allow"
+ },
+ {
+ "ipMask": "12.18.176.1",
+ "action": "Allow"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {},
+ "201": {
+ "body": {
+ "properties": {
+ "endpoint": "https://exampledomain1.westus2-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded",
+ "publicNetworkAccess": "Enabled",
+ "inboundIpRules": [
+ {
+ "ipMask": "12.18.30.15",
+ "action": "Allow"
+ },
+ {
+ "ipMask": "12.18.176.1",
+ "action": "Allow"
+ }
+ ]
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/exampledomain1",
+ "location": "westus2",
+ "name": "exampledomain1",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/domains"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json
new file mode 100644
index 000000000000..10b5ef006c40
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json
@@ -0,0 +1,61 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "eventSubscriptionName": "examplesubscription1",
+ "eventSubscriptionInfo": {
+ "properties": {
+ "destination": {
+ "endpointType": "EventHub",
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "deadLetterDestination": {
+ "endpointType": "StorageBlob",
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
+ "blobContainerName": "contosocontainer"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"
+ },
+ "endpointType": "EventHub"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "provisioningState": "Creating",
+ "labels": null,
+ "deadLetterDestination": {
+ "endpointType": "StorageBlob",
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
+ "blobContainerName": "contosocontainer"
+ }
+ }
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json
new file mode 100644
index 000000000000..85f8874c8544
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json
@@ -0,0 +1,61 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "eventSubscriptionName": "examplesubscription1",
+ "eventSubscriptionInfo": {
+ "properties": {
+ "destination": {
+ "endpointType": "HybridConnection",
+ "properties": {
+ "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "deadLetterDestination": {
+ "endpointType": "StorageBlob",
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
+ "blobContainerName": "contosocontainer"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Relay/namespaces/ContosoNamespace/hybridConnections/HC1"
+ },
+ "endpointType": "HybridConnection"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "provisioningState": "Creating",
+ "labels": null,
+ "deadLetterDestination": {
+ "endpointType": "StorageBlob",
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
+ "blobContainerName": "contosocontainer"
+ }
+ }
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json
new file mode 100644
index 000000000000..9a43e885730f
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json
@@ -0,0 +1,63 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "eventSubscriptionName": "examplesubscription1",
+ "eventSubscriptionInfo": {
+ "properties": {
+ "destination": {
+ "endpointType": "StorageQueue",
+ "properties": {
+ "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
+ "queueName": "queue1"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "deadLetterDestination": {
+ "endpointType": "StorageBlob",
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
+ "blobContainerName": "contosocontainer"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "resourceId": "/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
+ "queueName": "queue1"
+ },
+ "endpointType": "StorageQueue"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "provisioningState": "Creating",
+ "labels": null,
+ "deadLetterDestination": {
+ "endpointType": "StorageBlob",
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg",
+ "blobContainerName": "contosocontainer"
+ }
+ }
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json
new file mode 100644
index 000000000000..2fbdb457220b
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "eventSubscriptionName": "examplesubscription1",
+ "eventSubscriptionInfo": {
+ "properties": {
+ "destination": {
+ "endpointType": "EventHub",
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json
new file mode 100644
index 000000000000..c59f022421cf
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForResource.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "eventSubscriptionName": "examplesubscription10",
+ "api-version": "2020-04-01-preview",
+ "eventSubscriptionInfo": {
+ "properties": {
+ "destination": {
+ "endpointType": "WebHook",
+ "properties": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10",
+ "name": "examplesubscription10",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json
new file mode 100644
index 000000000000..04328d84faca
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForResourceGroup.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
+ "eventSubscriptionName": "examplesubscription2",
+ "api-version": "2020-04-01-preview",
+ "eventSubscriptionInfo": {
+ "properties": {
+ "destination": {
+ "endpointType": "WebHook",
+ "properties": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2",
+ "name": "examplesubscription2",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json
new file mode 100644
index 000000000000..21ec84b751b7
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_CreateOrUpdateForSubscription.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "eventSubscriptionName": "examplesubscription3",
+ "api-version": "2020-04-01-preview",
+ "eventSubscriptionInfo": {
+ "properties": {
+ "destination": {
+ "endpointType": "WebHook",
+ "properties": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3",
+ "name": "examplesubscription3",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json
new file mode 100644
index 000000000000..cb910cec146b
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForCustomTopic.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "eventSubscriptionName": "examplesubscription1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "202": {},
+ "204": {},
+ "200": {}
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForResource.json
new file mode 100644
index 000000000000..a36dd4a32c41
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForResource.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "eventSubscriptionName": "examplesubscription10",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "202": {},
+ "204": {},
+ "200": {}
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json
new file mode 100644
index 000000000000..bbb6787b1c16
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForResourceGroup.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
+ "eventSubscriptionName": "examplesubscription2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "202": {},
+ "204": {},
+ "200": {}
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForSubscription.json
new file mode 100644
index 000000000000..c49193c06193
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_DeleteForSubscription.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "eventSubscriptionName": "examplesubscription3",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "202": {},
+ "204": {},
+ "200": {}
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForCustomTopic.json
new file mode 100644
index 000000000000..86bf95ba4550
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForCustomTopic.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "eventSubscriptionName": "examplesubscription1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "label1",
+ "label2"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForResource.json
new file mode 100644
index 000000000000..a7e3c1d00558
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForResource.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "eventSubscriptionName": "examplesubscription1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"
+ },
+ "endpointType": "EventHub"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "label1",
+ "label2"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForResourceGroup.json
new file mode 100644
index 000000000000..0bd3f3bf5d49
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForResourceGroup.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
+ "eventSubscriptionName": "examplesubscription2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "label1",
+ "label2"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2",
+ "name": "examplesubscription2",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForSubscription.json
new file mode 100644
index 000000000000..fc62fa15469d
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetForSubscription.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "eventSubscriptionName": "examplesubscription3",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "label1",
+ "label2"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3",
+ "name": "examplesubscription3",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json
new file mode 100644
index 000000000000..29de0d132965
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForCustomTopic.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "eventSubscriptionName": "examplesubscription1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForResource.json
new file mode 100644
index 000000000000..6946be90eca8
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForResource.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "eventSubscriptionName": "examplesubscription1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json
new file mode 100644
index 000000000000..e5fe18fe955b
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForResourceGroup.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
+ "eventSubscriptionName": "examplesubscription2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json
new file mode 100644
index 000000000000..d93adff17991
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_GetFullUrlForSubscription.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "eventSubscriptionName": "examplesubscription3",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListByDomainTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListByDomainTopic.json
new file mode 100644
index 000000000000..27c0593c0f98
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListByDomainTopic.json
@@ -0,0 +1,78 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "domainName": "domain1",
+ "topicName": "topic1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2",
+ "name": "examplesubscription2",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "labels": [],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/domains/domain1/topics/topic1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/domains/domain1/topics/topic1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3",
+ "name": "examplesubscription3",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListByResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListByResource.json
new file mode 100644
index 000000000000..3db6b0fd2706
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListByResource.json
@@ -0,0 +1,79 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "providerNamespace": "Microsoft.EventGrid",
+ "resourceTypeName": "topics",
+ "resourceName": "exampletopic2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2",
+ "name": "examplesubscription2",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "labels": [],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3",
+ "name": "examplesubscription3",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json
new file mode 100644
index 000000000000..2dc73fcc99eb
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalByResourceGroup.json
@@ -0,0 +1,55 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2",
+ "name": "examplesubscription2",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4",
+ "name": "examplesubscription4",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json
new file mode 100644
index 000000000000..b736f9c55616
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalByResourceGroupForTopicType.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "topicTypeName": "Microsoft.Resources.ResourceGroups",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3",
+ "name": "examplesubscription3",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json
new file mode 100644
index 000000000000..d36d2cfc0344
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalBySubscription.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2",
+ "name": "examplesubscription2",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "",
+ "subjectEndsWith": ""
+ },
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription4",
+ "name": "examplesubscription4",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json
new file mode 100644
index 000000000000..ccb726cbbdff
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListGlobalBySubscriptionForTopicType.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "topicTypeName": "Microsoft.Resources.Subscriptions",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3",
+ "name": "examplesubscription3",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json
new file mode 100644
index 000000000000..156d635fa0fc
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalByResourceGroup.json
@@ -0,0 +1,64 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "location": "westus2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10",
+ "name": "examplesubscription10",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11",
+ "name": "examplesubscription11",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json
new file mode 100644
index 000000000000..217df915989d
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalByResourceGroupForTopicType.json
@@ -0,0 +1,65 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "location": "westus2",
+ "topicTypeName": "Microsoft.EventHub.namespaces",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10",
+ "name": "examplesubscription10",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11",
+ "name": "examplesubscription11",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json
new file mode 100644
index 000000000000..704a5fb25abd
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalBySubscription.json
@@ -0,0 +1,63 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "location": "westus2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"
+ },
+ "endpointType": "EventHub"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10",
+ "name": "examplesubscription10",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11",
+ "name": "examplesubscription11",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json
new file mode 100644
index 000000000000..15c67841ca99
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_ListRegionalBySubscriptionForTopicType.json
@@ -0,0 +1,64 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "location": "westus2",
+ "topicTypeName": "Microsoft.EventHub.namespaces",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription10",
+ "name": "examplesubscription10",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ },
+ {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": false,
+ "subjectBeginsWith": "ExamplePrefix",
+ "subjectEndsWith": "ExampleSuffix"
+ },
+ "labels": [
+ "Finance",
+ "HR"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventhub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription11",
+ "name": "examplesubscription11",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json
new file mode 100644
index 000000000000..f90c2732c92c
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForCustomTopic.json
@@ -0,0 +1,52 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "eventSubscriptionName": "examplesubscription1",
+ "api-version": "2020-04-01-preview",
+ "eventSubscriptionUpdateParameters": {
+ "destination": {
+ "endpointType": "WebHook",
+ "properties": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": true,
+ "subjectBeginsWith": "existingPrefix",
+ "subjectEndsWith": "newSuffix"
+ },
+ "labels": [
+ "label1",
+ "label2"
+ ]
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": true,
+ "subjectBeginsWith": "existingPrefix",
+ "subjectEndsWith": "newSuffix"
+ },
+ "labels": [
+ "label1",
+ "label2"
+ ],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.eventgrid/topics/exampletopic2"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForResource.json
new file mode 100644
index 000000000000..bce346c335c4
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForResource.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "eventSubscriptionName": "examplesubscription1",
+ "api-version": "2020-04-01-preview",
+ "eventSubscriptionUpdateParameters": {
+ "destination": {
+ "endpointType": "WebHook",
+ "properties": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": true,
+ "subjectBeginsWith": "existingPrefix",
+ "subjectEndsWith": "newSuffix"
+ },
+ "labels": [
+ "label1",
+ "label2"
+ ]
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": true,
+ "subjectBeginsWith": "existingPrefix",
+ "subjectEndsWith": "newSuffix"
+ },
+ "labels": [],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription1",
+ "name": "examplesubscription1",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json
new file mode 100644
index 000000000000..59f8b6db5756
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForResourceGroup.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
+ "eventSubscriptionName": "examplesubscription2",
+ "api-version": "2020-04-01-preview",
+ "eventSubscriptionUpdateParameters": {
+ "destination": {
+ "endpointType": "EventHub",
+ "properties": {
+ "resourceId": "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": true,
+ "subjectBeginsWith": "existingPrefix",
+ "subjectEndsWith": "newSuffix"
+ },
+ "labels": [
+ "label1",
+ "label2"
+ ]
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": true,
+ "subjectBeginsWith": "existingPrefix",
+ "subjectEndsWith": "newSuffix"
+ },
+ "labels": [],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2",
+ "name": "examplesubscription2",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForSubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForSubscription.json
new file mode 100644
index 000000000000..673dc543afef
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/EventSubscriptions_UpdateForSubscription.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "scope": "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "eventSubscriptionName": "examplesubscription3",
+ "api-version": "2020-04-01-preview",
+ "eventSubscriptionUpdateParameters": {
+ "destination": {
+ "endpointType": "WebHook",
+ "properties": {
+ "endpointUrl": "https://requestb.in/15ksip71"
+ }
+ },
+ "filter": {
+ "isSubjectCaseSensitive": true,
+ "subjectBeginsWith": "existingPrefix",
+ "subjectEndsWith": "newSuffix"
+ },
+ "labels": [
+ "label1",
+ "label2"
+ ]
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "destination": {
+ "properties": {
+ "endpointBaseUrl": "https://requestb.in/15ksip71"
+ },
+ "endpointType": "WebHook"
+ },
+ "filter": {
+ "isSubjectCaseSensitive": true,
+ "subjectBeginsWith": "existingPrefix",
+ "subjectEndsWith": "newSuffix"
+ },
+ "labels": [],
+ "provisioningState": "Succeeded",
+ "topic": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/providers/Microsoft.EventGrid/topics/exampletopic2/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3",
+ "name": "examplesubscription3",
+ "type": "Microsoft.EventGrid/eventSubscriptions"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Operations_List.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Operations_List.json
new file mode 100644
index 000000000000..e0bc0bbee3dd
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Operations_List.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.EventGrid/register/action",
+ "display": {
+ "provider": "Microsoft Event Grid",
+ "resource": "EventGrid Resource Provider",
+ "operation": "Registers the EventGrid Resource Provider",
+ "description": "Registers the eventSubscription for the EventGrid resource provider and enables the creation of Event Grid subscriptions."
+ },
+ "origin": "UserAndSystem"
+ },
+ {
+ "name": "Microsoft.EventGrid/eventSubscriptions/write",
+ "display": {
+ "provider": "Microsoft Event Grid",
+ "resource": "eventSubscriptions",
+ "operation": "Write EventSubscription",
+ "description": "Create or update a eventSubscription"
+ },
+ "origin": "UserAndSystem"
+ },
+ {
+ "name": "Microsoft.EventGrid/eventSubscriptions/read",
+ "display": {
+ "provider": "Microsoft Event Grid",
+ "resource": "eventSubscriptions",
+ "operation": "Read EventSubscription",
+ "description": "Read a eventSubscription"
+ },
+ "origin": "UserAndSystem"
+ },
+ {
+ "name": "Microsoft.EventGrid/eventSubscriptions/delete",
+ "display": {
+ "provider": "Microsoft Event Grid",
+ "resource": "eventSubscriptions",
+ "operation": "Delete EventSubscription",
+ "description": "Delete a eventSubscription"
+ },
+ "origin": "UserAndSystem"
+ },
+ {
+ "name": "Microsoft.EventGrid/topics/write",
+ "display": {
+ "provider": "Microsoft Event Grid",
+ "resource": "topics",
+ "operation": "Write Topic",
+ "description": "Create or update a topic"
+ },
+ "origin": "UserAndSystem"
+ },
+ {
+ "name": "Microsoft.EventGrid/topics/read",
+ "display": {
+ "provider": "Microsoft Event Grid",
+ "resource": "topics",
+ "operation": "Read Topic",
+ "description": "Read a topic"
+ },
+ "origin": "UserAndSystem"
+ },
+ {
+ "name": "Microsoft.EventGrid/topics/delete",
+ "display": {
+ "provider": "Microsoft Event Grid",
+ "resource": "topics",
+ "operation": "Delete Topic",
+ "description": "Delete a topic"
+ },
+ "origin": "UserAndSystem"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Delete.json
new file mode 100644
index 000000000000..0b9b52011235
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Delete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "parentType": "topics",
+ "parentName": "exampletopic1",
+ "privateEndpointConnectionName": "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json
new file mode 100644
index 000000000000..650d12fc40e1
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "parentType": "topics",
+ "parentName": "exampletopic1",
+ "privateEndpointConnectionName": "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.Network/privateEndpoints/bmtpe5"
+ },
+ "groupIds": [
+ "topic"
+ ],
+ "privateLinkServiceConnectionState": {
+ "status": "Pending",
+ "description": "Test",
+ "actionsRequired": "None"
+ },
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5B4B650E-28B9-4790-B3AB-DDBD88D727C4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/privateEndpointConnections/BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "name": "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "type": "Microsoft.EventGrid/topics/privateEndpointConnections"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json
new file mode 100644
index 000000000000..c16c488defbc
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "parentType": "topics",
+ "parentName": "exampletopic1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.Network/privateEndpoints/bmtpe5"
+ },
+ "groupIds": [
+ "topic"
+ ],
+ "privateLinkServiceConnectionState": {
+ "status": "Pending",
+ "description": "Test",
+ "actionsRequired": "None"
+ },
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5B4B650E-28B9-4790-B3AB-DDBD88D727C4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/privateEndpointConnections/BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "name": "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "type": "Microsoft.EventGrid/topics/privateEndpointConnections"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Update.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Update.json
new file mode 100644
index 000000000000..05dbe5771842
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateEndpointConnections_Update.json
@@ -0,0 +1,63 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "parentType": "topics",
+ "parentName": "exampletopic1",
+ "privateEndpointConnectionName": "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "api-version": "2020-04-01-preview",
+ "privateEndpointConnection": {
+ "properties": {
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "approving connection",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.Network/privateEndpoints/bmtpe5"
+ },
+ "groupIds": [
+ "topic"
+ ],
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "approving connection",
+ "actionsRequired": "None"
+ },
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5B4B650E-28B9-4790-B3AB-DDBD88D727C4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/privateEndpointConnections/BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "name": "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "type": "Microsoft.EventGrid/topics/privateEndpointConnections"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.Network/privateEndpoints/bmtpe5"
+ },
+ "groupIds": [
+ "topic"
+ ],
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "approving connection",
+ "actionsRequired": "None"
+ },
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5B4B650E-28B9-4790-B3AB-DDBD88D727C4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1/privateEndpointConnections/BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "name": "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B",
+ "type": "Microsoft.EventGrid/topics/privateEndpointConnections"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateLinkResources_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateLinkResources_Get.json
new file mode 100644
index 000000000000..aaca5edd77a2
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateLinkResources_Get.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "parentType": "topics",
+ "parentName": "exampletopic1",
+ "privateLinkResourceName": "topic",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "groupId": "topic",
+ "displayName": "Event Grid topic",
+ "requiredMembers": [
+ "topic"
+ ],
+ "requiredZoneNames": [
+ "privatelink.eventgrid.azure.net"
+ ]
+ },
+ "id": "/subscriptions/5B4B650E-28B9-4790-B3AB-DDBD88D727C4/resourceGroups/amh/providers/Microsoft.EventGrid/topics/exampletopic1/privateLinkResources/topic",
+ "name": "topic",
+ "type": "Microsoft.EventGrid/topics/privateLinkResources"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateLinkResources_ListByResource.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateLinkResources_ListByResource.json
new file mode 100644
index 000000000000..613d05b44e05
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/PrivateLinkResources_ListByResource.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "parentType": "topics",
+ "parentName": "exampletopic1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "groupId": "topic",
+ "displayName": "Event Grid topic",
+ "requiredMembers": [
+ "topic"
+ ],
+ "requiredZoneNames": [
+ "privatelink.eventgrid.azure.net"
+ ]
+ },
+ "id": "/subscriptions/5B4B650E-28B9-4790-B3AB-DDBD88D727C4/resourceGroups/amh/providers/Microsoft.EventGrid/topics/exampletopic1/privateLinkResources/topic",
+ "name": "topic",
+ "type": "Microsoft.EventGrid/topics/privateLinkResources"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_Get.json
new file mode 100644
index 000000000000..8a5b5b95dc18
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_Get.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "topicTypeName": "Microsoft.Storage.StorageAccounts",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "description": "Microsoft Storage service events.",
+ "displayName": "Storage Accounts",
+ "provider": "Microsoft.Storage",
+ "provisioningState": "Succeeded",
+ "resourceRegionType": "RegionalResource"
+ },
+ "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts",
+ "name": "Microsoft.Storage.StorageAccounts",
+ "type": "Microsoft.EventGrid/topicTypes"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_List.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_List.json
new file mode 100644
index 000000000000..06bb41c66f85
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_List.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "description": "Microsoft EventHubs service events.",
+ "displayName": "EventHubs Namespace",
+ "provider": "Microsoft.Eventhub",
+ "provisioningState": "Succeeded",
+ "resourceRegionType": "RegionalResource"
+ },
+ "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces",
+ "name": "Microsoft.Eventhub.Namespaces",
+ "type": "Microsoft.EventGrid/topicTypes"
+ },
+ {
+ "properties": {
+ "description": "Microsoft Storage service events.",
+ "displayName": "Storage Accounts",
+ "provider": "Microsoft.Storage",
+ "provisioningState": "Succeeded",
+ "resourceRegionType": "RegionalResource"
+ },
+ "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts",
+ "name": "Microsoft.Storage.StorageAccounts",
+ "type": "Microsoft.EventGrid/topicTypes"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_ListEventTypes.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_ListEventTypes.json
new file mode 100644
index 000000000000..98e62df5aa9e
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/TopicTypes_ListEventTypes.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "topicTypeName": "Microsoft.Storage.StorageAccounts",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "displayName": "Blob Created",
+ "description": "Raised when a blob is created.",
+ "schemaUrl": "tbd"
+ },
+ "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated",
+ "name": "Microsoft.Storage.BlobCreated",
+ "type": "Microsoft.EventGrid/topicTypes/eventTypes"
+ },
+ {
+ "properties": {
+ "description": "Raised when a blob is deleted.",
+ "schemaUrl": "tbd",
+ "displayName": "Blob Deleted"
+ },
+ "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted",
+ "name": "Microsoft.Storage.BlobDeleted",
+ "type": "Microsoft.EventGrid/topicTypes/eventTypes"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_CreateOrUpdate.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_CreateOrUpdate.json
new file mode 100644
index 000000000000..5df2e89d6b4c
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_CreateOrUpdate.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "topicName": "exampletopic1",
+ "api-version": "2020-04-01-preview",
+ "topicInfo": {
+ "location": "westus2",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "publicNetworkAccess": "Enabled",
+ "inboundIpRules": [
+ {
+ "ipMask": "12.18.30.15",
+ "action": "Allow"
+ },
+ {
+ "ipMask": "12.18.176.1",
+ "action": "Allow"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded",
+ "publicNetworkAccess": "Enabled",
+ "inboundIpRules": [
+ {
+ "ipMask": "12.18.30.15",
+ "action": "Allow"
+ },
+ {
+ "ipMask": "12.18.176.1",
+ "action": "Allow"
+ }
+ ]
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "location": "westus2",
+ "name": "exampletopic1",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/topics"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Delete.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Delete.json
new file mode 100644
index 000000000000..8ad5954e6073
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Delete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "topicName": "exampletopic1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Get.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Get.json
new file mode 100644
index 000000000000..5a447d1cbf5a
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Get.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "topicName": "exampletopic2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "location": "westcentralus",
+ "name": "exampletopic2",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/topics"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListByResourceGroup.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListByResourceGroup.json
new file mode 100644
index 000000000000..26462c27abda
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListByResourceGroup.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "location": "westus2",
+ "name": "exampletopic1",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/topics"
+ },
+ {
+ "properties": {
+ "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "location": "westcentralus",
+ "name": "exampletopic2",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/topics"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListBySubscription.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListBySubscription.json
new file mode 100644
index 000000000000..12aef1a81833
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListBySubscription.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "location": "westus2",
+ "name": "exampletopic1",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/topics"
+ },
+ {
+ "properties": {
+ "endpoint": "https://exampletopic2.westcentralus-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "location": "westcentralus",
+ "name": "exampletopic2",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/topics"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListEventTypes.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListEventTypes.json
new file mode 100644
index 000000000000..5e5180b28c06
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListEventTypes.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "providerNamespace": "Microsoft.Storage",
+ "resourceTypeName": "storageAccounts",
+ "resourceName": "ExampleStorageAccount",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "description": "Raised when a blob is created.",
+ "schemaUrl": "tbd",
+ "displayName": "Blob Created"
+ },
+ "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated",
+ "name": "Microsoft.Storage.BlobCreated",
+ "type": "Microsoft.EventGrid/topicTypes/eventTypes"
+ },
+ {
+ "properties": {
+ "description": "Raised when a blob is deleted.",
+ "schemaUrl": "tbd",
+ "displayName": "Blob Deleted"
+ },
+ "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted",
+ "name": "Microsoft.Storage.BlobDeleted",
+ "type": "Microsoft.EventGrid/topicTypes/eventTypes"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListSharedAccessKeys.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListSharedAccessKeys.json
new file mode 100644
index 000000000000..069d13770226
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_ListSharedAccessKeys.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "topicName": "exampletopic2",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=",
+ "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA="
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_RegenerateKey.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_RegenerateKey.json
new file mode 100644
index 000000000000..a60093e80029
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_RegenerateKey.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "topicName": "exampletopic2",
+ "api-version": "2020-04-01-preview",
+ "regenerateKeyRequest": {
+ "keyName": "key1"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "key1": "Rqfq5wWxtQnIQJyswP0Uh/hqQfDDMUOYyQSYEpx5e5g=",
+ "key2": "sesymbkIXMtZVqXEFHarJmdGmZjjnY+BZC8yRD/FeuA="
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Update.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Update.json
new file mode 100644
index 000000000000..71edda7cf0a7
--- /dev/null
+++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/examples/Topics_Update.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "subscriptionId": "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
+ "resourceGroupName": "examplerg",
+ "topicName": "exampletopic1",
+ "api-version": "2020-04-01-preview",
+ "topicUpdateParameters": {
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "publicNetworkAccess": "Enabled",
+ "inboundIpRules": [
+ {
+ "ipMask": "12.18.30.15",
+ "action": "Allow"
+ },
+ {
+ "ipMask": "12.18.176.1",
+ "action": "Allow"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {},
+ "201": {
+ "body": {
+ "properties": {
+ "endpoint": "https://exampletopic1.westus2-1.eventgrid.azure.net/api/events",
+ "provisioningState": "Succeeded",
+ "publicNetworkAccess": "Enabled",
+ "inboundIpRules": [
+ {
+ "ipMask": "12.18.30.15",
+ "action": "Allow"
+ },
+ {
+ "ipMask": "12.18.176.1",
+ "action": "Allow"
+ }
+ ]
+ },
+ "id": "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "location": "westus2",
+ "name": "exampletopic1",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.EventGrid/topics"
+ }
+ }
+ }
+}
diff --git a/specification/eventgrid/resource-manager/readme.go.md b/specification/eventgrid/resource-manager/readme.go.md
index f1cac68b146f..a3120a996830 100644
--- a/specification/eventgrid/resource-manager/readme.go.md
+++ b/specification/eventgrid/resource-manager/readme.go.md
@@ -13,6 +13,7 @@ go:
``` yaml $(go) && $(multiapi)
batch:
+ - tag: package-2020-06
- tag: package-2020-04-preview
- tag: package-2020-01-preview
- tag: package-2019-06
@@ -25,6 +26,15 @@ batch:
- tag: package-2017-06-preview
```
+### Tag: package-2020-06 and go
+
+These settings apply only when `--tag=package-2020-06 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-06' && $(go)
+output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-06-01/$(namespace)
+```
+
### Tag: package-2020-04-preview and go
These settings apply only when `--tag=package-2020-04-preview --go` is specified on the command line.
@@ -43,7 +53,6 @@ Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-06' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.eventgrid.v2020_06_01
+ output-folder: $(azure-libraries-for-java-folder)/sdk/eventgrid/mgmt-v2020_06_01
+regenerate-manager: true
+generate-interface: true
+```
+
### Tag: package-2020-04-preview and java
These settings apply only when `--tag=package-2020-04-preview --java` is specified on the command line.
diff --git a/specification/eventgrid/resource-manager/readme.md b/specification/eventgrid/resource-manager/readme.md
index e6f25e877148..85b509c238ed 100644
--- a/specification/eventgrid/resource-manager/readme.md
+++ b/specification/eventgrid/resource-manager/readme.md
@@ -26,7 +26,16 @@ These are the global settings for the Azure EventGrid API.
``` yaml
openapi-type: arm
-tag: package-2020-04-preview
+tag: package-2020-06
+```
+
+### Tag: package-2020-06
+
+These settings apply only when `--tag=package-2020-06` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-06'
+input-file:
+- Microsoft.EventGrid/stable/2020-06-01/EventGrid.json
```
### Tag: package-2020-04-preview
@@ -47,7 +56,6 @@ input-file:
- Microsoft.EventGrid/preview/2020-01-01-preview/EventGrid.json
```
-
### Tag: package-2019-06
These settings apply only when `--tag=package-2019-06` is specified on the command line.
@@ -202,6 +210,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json
- $(this-folder)/Microsoft.EventGrid/preview/2020-04-01-preview/EventGrid.json
- $(this-folder)/Microsoft.EventGrid/preview/2020-01-01-preview/EventGrid.json
- $(this-folder)/Microsoft.EventGrid/stable/2019-06-01/EventGrid.json
@@ -215,11 +224,10 @@ input-file:
```
-If there are files that should not be in the `all-api-versions` set,
+If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.
``` yaml $(tag) == 'all-api-versions'
-#exclude-file:
+#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
-
diff --git a/specification/eventgrid/resource-manager/readme.ruby.md b/specification/eventgrid/resource-manager/readme.ruby.md
index 0d2823e2c8a9..18381c4c396e 100644
--- a/specification/eventgrid/resource-manager/readme.ruby.md
+++ b/specification/eventgrid/resource-manager/readme.ruby.md
@@ -12,6 +12,7 @@ azure-arm: true
``` yaml $(ruby) && $(multiapi)
batch:
+ - tag: package-2020-06
- tag: package-2020-04-preview
- tag: package-2020-01-preview
- tag: package-2019-06
@@ -24,6 +25,16 @@ batch:
- tag: package-2017-06-preview
```
+### Tag: package-2020-06 and ruby
+These settings apply only when `--tag=package-2020-06 --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2020-06' && $(ruby)
+
+namespace: "Azure::EventGrid::Mgmt::V2020_06_01"
+output-folder: $(ruby-sdks-folder)/management/azure_mgmt_event_grid/lib
+```
+
### Tag: package-2020-01-preview and ruby
These settings apply only when `--tag=package-2020-04-preview --ruby` is specified on the command line.
Please also specify `--ruby-sdks-folder=`.
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/AvailableClusterRegions-preview.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/AvailableClusterRegions-preview.json
index a31517c688e1..4c22e44c12d0 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/AvailableClusterRegions-preview.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/AvailableClusterRegions-preview.json
@@ -37,9 +37,9 @@
"/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/availableClusterRegions": {
"get": {
"tags": [
- "Event Hubs Clusters"
+ "Event Hubs Clusters AvailableClusterRegions"
],
- "operationId": "Clusters_ListAvailableClusters",
+ "operationId": "Clusters_ListAvailableClusterRegion",
"x-ms-examples": {
"ListAvailableClusters": {
"$ref": "./examples/Clusters/ListAvailableClustersGet.json"
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/Clusters-preview.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/Clusters-preview.json
index e96bca0885db..548a7852cd5f 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/Clusters-preview.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/Clusters-preview.json
@@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters": {
"get": {
"tags": [
- "Event Hubs Clusters"
+ "EventHubs Clusters"
],
"operationId": "Clusters_ListByResourceGroup",
"x-ms-examples": {
@@ -79,7 +79,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}": {
"get": {
"tags": [
- "Event Hubs Cluster"
+ "EventHubs Clusters"
],
"operationId": "Clusters_Get",
"x-ms-examples": {
@@ -119,9 +119,9 @@
},
"put": {
"tags": [
- "Event Hubs Cluster"
+ "EventHubs Clusters"
],
- "operationId": "Clusters_Put",
+ "operationId": "Clusters_CreateOrUpdate",
"x-ms-examples": {
"ClusterPut": {
"$ref": "./examples/Clusters/ClusterPut.json"
@@ -138,6 +138,18 @@
{
"$ref": "../../common/v1/definitions.json#/parameters/ClusterNameParameter"
},
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Cluster",
+ "required": [
+ "location"
+ ]
+ },
+ "description": "Parameters for creating a eventhub cluster resource."
+ },
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
}
@@ -169,9 +181,9 @@
},
"patch": {
"tags": [
- "Event Hubs Cluster"
+ "EventHubs Clusters"
],
- "operationId": "Clusters_Patch",
+ "operationId": "Clusters_Update",
"x-ms-examples": {
"ClusterPatch": {
"$ref": "./examples/Clusters/ClusterPatch.json"
@@ -228,7 +240,7 @@
},
"delete": {
"tags": [
- "Event Hubs Cluster"
+ "EventHubs Clusters"
],
"operationId": "Clusters_Delete",
"x-ms-examples": {
@@ -274,7 +286,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/namespaces": {
"get": {
"tags": [
- "Event Hubs Namespace Enumeration in Cluster"
+ "EventHubs Clusters Namespace"
],
"operationId": "Clusters_ListNamespaces",
"parameters": [
@@ -324,12 +336,12 @@
"properties": {
"x-ms-client-flatten": true,
"properties": {
- "created": {
+ "createdAt": {
"readOnly": true,
"type": "string",
"description": "The UTC time when the Event Hubs Cluster was created."
},
- "updated": {
+ "updatedAt": {
"readOnly": true,
"type": "string",
"description": "The UTC time when the Event Hubs Cluster was last updated."
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterGet.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterGet.json
index decf1dc12a9f..60fa11022b25 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterGet.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterGet.json
@@ -21,8 +21,8 @@
"capacity": 4
},
"properties": {
- "created": "2017-05-24T23:23:27.877Z",
- "updated": "2017-05-24T23:23:27.877Z",
+ "createdAt": "2017-05-24T23:23:27.877Z",
+ "updatedAt": "2017-05-24T23:23:27.877Z",
"metricId": "SN6-008"
}
}
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterPatch.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterPatch.json
index 49d40843e81d..081bc32e0b32 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterPatch.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterPatch.json
@@ -28,8 +28,8 @@
"capacity": 4
},
"properties": {
- "created": "2017-06-01T21:37:04.46Z",
- "updated": "2017-06-01T21:37:53.413Z",
+ "createdAt": "2017-06-01T21:37:04.46Z",
+ "updatedAt": "2017-06-01T21:37:53.413Z",
"metricId": "SN6-008"
}
}
@@ -49,8 +49,8 @@
"capacity": 4
},
"properties": {
- "created": "2017-06-01T21:37:04.46Z",
- "updated": "2017-06-01T21:37:53.413Z",
+ "createdAt": "2017-06-01T21:37:04.46Z",
+ "updatedAt": "2017-06-01T21:37:53.413Z",
"metricId": "SN6-008"
}
}
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterPut.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterPut.json
index 47d7194db72e..26ea0cba1a87 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterPut.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClusterPut.json
@@ -6,7 +6,7 @@
"subscriptionId": "5f750a97-50d9-4e36-8081-c9ee4c0210d4",
"parameters": {
"sku": {
- "tier": "Dedicated",
+ "name": "Dedicated",
"capacity": 1
},
"location": "South Central US",
@@ -32,8 +32,8 @@
"capacity": 1
},
"properties": {
- "created": "2017-05-24T23:23:27.877Z",
- "updated": "2017-05-24T23:23:27.877Z",
+ "createdAt": "2017-05-24T23:23:27.877Z",
+ "updatedAt": "2017-05-24T23:23:27.877Z",
"metricId": "SN6-008"
}
}
@@ -53,8 +53,8 @@
"capacity": 1
},
"properties": {
- "created": "2017-05-24T23:23:27.877Z",
- "updated": "2017-05-24T23:23:27.877Z",
+ "createdAt": "2017-05-24T23:23:27.877Z",
+ "updatedAt": "2017-05-24T23:23:27.877Z",
"metricId": "SN6-008"
}
}
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClustersListByResourceGroup.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClustersListByResourceGroup.json
index 8f80c72ed5c0..e2e896382d1c 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClustersListByResourceGroup.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/examples/Clusters/ClustersListByResourceGroup.json
@@ -19,8 +19,8 @@
"capacity": 4
},
"properties": {
- "created": "2016-09-13T23:17:25.24Z",
- "updated": "2016-09-13T23:17:28.223Z",
+ "createdAt": "2016-09-13T23:17:25.24Z",
+ "updatedAt": "2016-09-13T23:17:28.223Z",
"metricId": "SN6-008"
}
}
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/ipfilterrules-preview.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/ipfilterrules-preview.json
index 3117aeec05db..7382364c2424 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/ipfilterrules-preview.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/ipfilterrules-preview.json
@@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules": {
"get": {
"tags": [
- "Namespaces"
+ "IpFilterRules"
],
"operationId": "Namespaces_ListIPFilterRules",
"x-ms-examples": {
@@ -82,7 +82,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}": {
"put": {
"tags": [
- "Namespaces"
+ "IpFilterRules"
],
"operationId": "Namespaces_CreateOrUpdateIpFilterRule",
"x-ms-examples": {
@@ -134,7 +134,7 @@
},
"delete": {
"tags": [
- "Namespaces"
+ "IpFilterRules"
],
"operationId": "Namespaces_DeleteIpFilterRule",
"x-ms-examples": {
@@ -177,7 +177,7 @@
},
"get": {
"tags": [
- "Namespaces"
+ "IpFilterRules"
],
"operationId": "Namespaces_GetIpFilterRule",
"x-ms-examples": {
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/namespaces-preview.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/namespaces-preview.json
index 05bbaf4fe1a8..0f2174cfb648 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/namespaces-preview.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/namespaces-preview.json
@@ -493,7 +493,11 @@
"x-ms-client-flatten": true,
"properties": {
"keyVaultProperties": {
- "$ref": "#/definitions/KeyVaultProperties",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/KeyVaultProperties"
+ },
+ "x-ms-client-name": "KeyVaultProperties",
"description": "Properties of KeyVault"
},
"keySource": {
@@ -515,11 +519,18 @@
"properties": {
"keyName": {
"type": "string",
- "description": "Name of the Key from KeyVault"
+ "description": "Name of the Key from KeyVault",
+ "x-ms-client-name": "KeyName"
},
"keyVaultUri": {
"type": "string",
- "description": "Uri of KeyVault"
+ "description": "Uri of KeyVault",
+ "x-ms-client-name": "KeyVaultUri"
+ },
+ "keyVersion": {
+ "type": "string",
+ "description": "Key Version",
+ "x-ms-client-name": "KeyVersion"
}
},
"description": "Properties to configure keyVault Properties"
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/networkrulessets-preview.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/networkrulessets-preview.json
index fbf741fc7b1f..ec6f1f0a20c5 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/networkrulessets-preview.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/networkrulessets-preview.json
@@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default": {
"put": {
"tags": [
- "Namespaces"
+ "NetworkRuleSets"
],
"x-ms-examples": {
"NameSpaceNetworkRuleSetCreate": {
@@ -86,7 +86,7 @@
},
"get": {
"tags": [
- "Namespaces"
+ "NetworkRuleSets"
],
"x-ms-examples": {
"NameSpaceNetworkRuleSetGet": {
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/quotaConfiguration-preview.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/quotaConfiguration-preview.json
index a5104a699020..bbadf4caec7d 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/quotaConfiguration-preview.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/quotaConfiguration-preview.json
@@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/quotaConfiguration/default": {
"patch": {
"tags": [
- "Event Hubs Cluster Configuration"
+ "Event Hubs Clusters Configuration"
],
"operationId": "Configuration_Patch",
"parameters": [
@@ -98,7 +98,7 @@
},
"get": {
"tags": [
- "Event Hubs Cluster Configuration"
+ "Event Hubs Clusters Configuration"
],
"operationId": "Configuration_Get",
"parameters": [
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/virtualnetworkrules-preview.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/virtualnetworkrules-preview.json
index 4e1b10f54503..fc417f5a93f5 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/virtualnetworkrules-preview.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/virtualnetworkrules-preview.json
@@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules": {
"get": {
"tags": [
- "Namespaces"
+ "VirtualNetworkRules"
],
"operationId": "Namespaces_ListVirtualNetworkRules",
"x-ms-examples": {
@@ -82,7 +82,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}": {
"put": {
"tags": [
- "Namespaces"
+ "VirtualNetworkRules"
],
"operationId": "Namespaces_CreateOrUpdateVirtualNetworkRule",
"x-ms-examples": {
@@ -134,7 +134,7 @@
},
"delete": {
"tags": [
- "Namespaces"
+ "VirtualNetworkRules"
],
"operationId": "Namespaces_DeleteVirtualNetworkRule",
"x-ms-examples": {
@@ -177,7 +177,7 @@
},
"get": {
"tags": [
- "Namespaces"
+ "VirtualNetworkRules"
],
"operationId": "Namespaces_GetVirtualNetworkRule",
"x-ms-examples": {
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/AuthorizationRules.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/AuthorizationRules.json
index a9a69b03b22c..28d3422cedb3 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/AuthorizationRules.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/AuthorizationRules.json
@@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules": {
"get": {
"tags": [
- "Namespaces"
+ "AuthorizationRules Namespaces"
],
"operationId": "Namespaces_ListAuthorizationRules",
"x-ms-examples": {
@@ -82,7 +82,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}": {
"put": {
"tags": [
- "Namespaces"
+ "AuthorizationRules Namespaces"
],
"operationId": "Namespaces_CreateOrUpdateAuthorizationRule",
"x-ms-examples": {
@@ -134,7 +134,7 @@
},
"delete": {
"tags": [
- "Namespaces"
+ "AuthorizationRules Namespaces"
],
"operationId": "Namespaces_DeleteAuthorizationRule",
"x-ms-examples": {
@@ -177,7 +177,7 @@
},
"get": {
"tags": [
- "Namespaces"
+ "AuthorizationRules Namespaces"
],
"operationId": "Namespaces_GetAuthorizationRule",
"x-ms-examples": {
@@ -222,7 +222,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys": {
"post": {
"tags": [
- "Namespaces"
+ "AuthorizationRules Namespaces"
],
"operationId": "Namespaces_ListKeys",
"x-ms-examples": {
@@ -267,7 +267,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys": {
"post": {
"tags": [
- "Namespaces"
+ "AuthorizationRules Namespaces"
],
"operationId": "Namespaces_RegenerateKeys",
"x-ms-examples": {
@@ -321,7 +321,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules": {
"get": {
"tags": [
- "DisasterRecoveryConfigs"
+ "AuthorizationRules DisasterRecoveryConfigs"
],
"operationId": "DisasterRecoveryConfigs_ListAuthorizationRules",
"x-ms-examples": {
@@ -369,7 +369,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}": {
"get": {
"tags": [
- "DisasterRecoveryConfigs"
+ "AuthorizationRules DisasterRecoveryConfigs"
],
"operationId": "DisasterRecoveryConfigs_GetAuthorizationRule",
"x-ms-examples": {
@@ -417,7 +417,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}/listKeys": {
"post": {
"tags": [
- "DisasterRecoveryConfigs"
+ "AuthorizationRules DisasterRecoveryConfigs"
],
"operationId": "DisasterRecoveryConfigs_ListKeys",
"x-ms-examples": {
@@ -465,7 +465,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules": {
"get": {
"tags": [
- "EventHubs"
+ "AuthorizationRules EventHubs"
],
"operationId": "EventHubs_ListAuthorizationRules",
"x-ms-examples": {
@@ -513,7 +513,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}": {
"put": {
"tags": [
- "EventHubs"
+ "AuthorizationRules EventHubs"
],
"operationId": "EventHubs_CreateOrUpdateAuthorizationRule",
"x-ms-examples": {
@@ -662,7 +662,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/listKeys": {
"post": {
"tags": [
- "EventHubs"
+ "AuthorizationRules EventHubs"
],
"operationId": "EventHubs_ListKeys",
"x-ms-examples": {
@@ -710,7 +710,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": {
"post": {
"tags": [
- "EventHubs"
+ "AuthorizationRules EventHubs"
],
"operationId": "EventHubs_RegenerateKeys",
"x-ms-examples": {
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/CheckNameAvailability.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/CheckNameAvailability.json
index 3dbed5304f40..d8b451acdd39 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/CheckNameAvailability.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/CheckNameAvailability.json
@@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability": {
"post": {
"tags": [
- "Namespaces"
+ "CheckNameAvailability Namespaces"
],
"operationId": "Namespaces_CheckNameAvailability",
"x-ms-examples": {
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/disasterRecoveryConfigs.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/disasterRecoveryConfigs.json
index c9ab9ef1e42a..68c26c6f4bba 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/disasterRecoveryConfigs.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/disasterRecoveryConfigs.json
@@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/checkNameAvailability": {
"post": {
"tags": [
- "DisasterRecoveryConfigs"
+ "CheckNameAvailability DisasterRecoveryConfigs"
],
"operationId": "DisasterRecoveryConfigs_CheckNameAvailability",
"x-ms-examples": {
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/namespaces.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/namespaces.json
index 83abb842fa9f..b58303be6651 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/namespaces.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/namespaces.json
@@ -330,7 +330,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/messagingplan": {
"get": {
"tags": [
- "Namespaces"
+ "MessagingPlan"
],
"operationId": "Namespaces_GetMessagingPlan",
"x-ms-examples": {
diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/networkRuleSets.json b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/networkRuleSets.json
index d32c36ffc602..edb72a67288c 100644
--- a/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/networkRuleSets.json
+++ b/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2017-04-01/networkRuleSets.json
@@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default": {
"put": {
"tags": [
- "Namespaces"
+ "NetworkRuleSets"
],
"x-ms-examples": {
"NameSpaceNetworkRuleSetCreate": {
@@ -86,7 +86,7 @@
},
"get": {
"tags": [
- "Namespaces"
+ "NetworkRuleSets"
],
"x-ms-examples": {
"NameSpaceNetworkRuleSetGet": {
@@ -128,7 +128,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets": {
"get": {
"tags": [
- "Namespaces"
+ "NetWorkRuleSets"
],
"x-ms-examples": {
"NameSpaceNetworkRuleSetList": {
diff --git a/specification/eventhub/resource-manager/readme.md b/specification/eventhub/resource-manager/readme.md
index f1cda0ee1161..a8da92c7327c 100644
--- a/specification/eventhub/resource-manager/readme.md
+++ b/specification/eventhub/resource-manager/readme.md
@@ -106,6 +106,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
after_scripts:
- python ./scripts/multiapi_init_gen.py azure-mgmt-eventhub
+ - repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-01-01/frontdoor.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-01-01/frontdoor.json
index 1fac62bfeda9..5685f2ad81ed 100644
--- a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-01-01/frontdoor.json
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-01-01/frontdoor.json
@@ -1254,7 +1254,7 @@
],
"x-ms-enum": {
"name": "PrivateEndpointStatus",
- "modelAsString": false
+ "modelAsString": true
}
},
"privateLinkApprovalMessage": {
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/CheckFrontdoorNameAvailability.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/CheckFrontdoorNameAvailability.json
new file mode 100644
index 000000000000..6ed0361df5f9
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/CheckFrontdoorNameAvailability.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "checkFrontDoorNameAvailabilityInput": {
+ "name": "sampleName",
+ "type": "Microsoft.Network/frontDoors"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailability": "Unavailable",
+ "reason": "Name is already in use",
+ "message": "Name not available"
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/CheckFrontdoorNameAvailabilityWithSubscription.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/CheckFrontdoorNameAvailabilityWithSubscription.json
new file mode 100644
index 000000000000..a75e065770e8
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/CheckFrontdoorNameAvailabilityWithSubscription.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "checkFrontDoorNameAvailabilityInput": {
+ "name": "sampleName",
+ "type": "Microsoft.Network/frontDoors/frontendEndpoints"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailability": "Unavailable",
+ "reason": "Name is already in use",
+ "message": "Name not available"
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorCreate.json
new file mode 100644
index 000000000000..252b26e1fa78
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorCreate.json
@@ -0,0 +1,568 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1",
+ "frontDoorParameters": {
+ "location": "westus",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "routingRules": [
+ {
+ "name": "routingRule1",
+ "properties": {
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default"
+ }
+ ],
+ "acceptedProtocols": [
+ "Http"
+ ],
+ "patternsToMatch": [
+ "/*"
+ ],
+ "routeConfiguration": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ },
+ "rulesEngine": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
+ },
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ }
+ ],
+ "healthProbeSettings": [
+ {
+ "name": "healthProbeSettings1",
+ "properties": {
+ "path": "/",
+ "protocol": "Http",
+ "intervalInSeconds": 120,
+ "enabledState": "Enabled",
+ "healthProbeMethod": "HEAD"
+ }
+ }
+ ],
+ "loadBalancingSettings": [
+ {
+ "name": "loadBalancingSettings1",
+ "properties": {
+ "sampleSize": 4,
+ "successfulSamplesRequired": 2
+ }
+ }
+ ],
+ "backendPools": [
+ {
+ "name": "backendPool1",
+ "properties": {
+ "backends": [
+ {
+ "address": "w3.contoso.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "weight": 1,
+ "priority": 2
+ },
+ {
+ "address": "contoso.com.website-us-west-2.othercloud.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "weight": 2,
+ "priority": 1
+ },
+ {
+ "privateLinkAlias": "SQLSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice",
+ "privateLinkApprovalMessage": "Please approve this request to connect to the Private Link",
+ "address": "10.0.1.5",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "weight": 1,
+ "priority": 1
+ }
+ ],
+ "loadBalancingSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1"
+ },
+ "healthProbeSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1"
+ }
+ }
+ }
+ ],
+ "frontendEndpoints": [
+ {
+ "name": "frontendEndpoint1",
+ "properties": {
+ "hostName": "www.contoso.com",
+ "sessionAffinityEnabledState": "Enabled",
+ "sessionAffinityTtlSeconds": 60,
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ },
+ {
+ "name": "default",
+ "properties": {
+ "hostName": "frontDoor1.azurefd.net"
+ }
+ }
+ ],
+ "backendPoolsSettings": {
+ "enforceCertificateNameCheck": "Enabled",
+ "sendRecvTimeoutSeconds": 60
+ },
+ "enabledState": "Enabled"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1",
+ "name": "frontDoor1",
+ "type": "Microsoft.Network/frontDoor",
+ "location": "westus",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "routingRules": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1",
+ "name": "routingRule1",
+ "properties": {
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default"
+ }
+ ],
+ "acceptedProtocols": [
+ "Http"
+ ],
+ "patternsToMatch": [
+ "/*"
+ ],
+ "routeConfiguration": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "customForwardingPath": "",
+ "forwardingProtocol": "MatchRequest",
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ },
+ "rulesEngine": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
+ },
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ }
+ ],
+ "healthProbeSettings": [
+ {
+ "name": "healthProbeSettings1",
+ "properties": {
+ "path": "/",
+ "protocol": "Http",
+ "intervalInSeconds": 120,
+ "enabledState": "Enabled",
+ "healthProbeMethod": "HEAD"
+ }
+ }
+ ],
+ "loadBalancingSettings": [
+ {
+ "name": "loadBalancingSettings1",
+ "properties": {
+ "sampleSize": 4,
+ "successfulSamplesRequired": 2
+ }
+ }
+ ],
+ "backendPools": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1",
+ "name": "backendPool1",
+ "properties": {
+ "backends": [
+ {
+ "address": "w3.contoso.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 2
+ },
+ {
+ "address": "contoso.com.website-us-west-2.othercloud.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 2,
+ "priority": 1
+ },
+ {
+ "privateLinkAlias": "SQLSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice",
+ "privateEndpointStatus": "Pending",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "address": "10.0.1.5",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 1
+ }
+ ],
+ "loadBalancingSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1"
+ },
+ "healthProbeSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1"
+ }
+ }
+ }
+ ],
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1",
+ "name": "frontendEndpoint1",
+ "properties": {
+ "hostName": "www.contoso.com",
+ "sessionAffinityEnabledState": "Enabled",
+ "sessionAffinityTtlSeconds": 60,
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default",
+ "name": "default",
+ "properties": {
+ "hostName": "frontDoor1.azurefd.net"
+ }
+ }
+ ],
+ "backendPoolsSettings": {
+ "enforceCertificateNameCheck": "Enabled",
+ "sendRecvTimeoutSeconds": 60
+ },
+ "enabledState": "Enabled",
+ "resourceState": "Creating",
+ "provisioningState": "Succeeded",
+ "cname": "frontDoor1.azurefd.net"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1",
+ "name": "frontDoor1",
+ "type": "Microsoft.Network/frontDoor",
+ "location": "westus",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "routingRules": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1",
+ "name": "routingRule1",
+ "properties": {
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default"
+ }
+ ],
+ "acceptedProtocols": [
+ "Http"
+ ],
+ "patternsToMatch": [
+ "/*"
+ ],
+ "routeConfiguration": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "customForwardingPath": "",
+ "forwardingProtocol": "MatchRequest",
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ },
+ "rulesEngine": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
+ },
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ }
+ ],
+ "healthProbeSettings": [
+ {
+ "name": "healthProbeSettings1",
+ "properties": {
+ "path": "/",
+ "protocol": "Http",
+ "intervalInSeconds": 120,
+ "enabledState": "Enabled",
+ "healthProbeMethod": "HEAD"
+ }
+ }
+ ],
+ "loadBalancingSettings": [
+ {
+ "name": "loadBalancingSettings1",
+ "properties": {
+ "sampleSize": 4,
+ "successfulSamplesRequired": 2
+ }
+ }
+ ],
+ "backendPools": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1",
+ "name": "backendPool1",
+ "properties": {
+ "backends": [
+ {
+ "address": "w3.contoso.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 2
+ },
+ {
+ "address": "contoso.com.website-us-west-2.othercloud.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 2,
+ "priority": 1
+ },
+ {
+ "privateLinkAlias": "SQLSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice",
+ "privateEndpointStatus": "Approved",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "address": "10.0.1.5",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 1
+ }
+ ],
+ "loadBalancingSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1"
+ },
+ "healthProbeSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1"
+ }
+ }
+ }
+ ],
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1",
+ "name": "frontendEndpoint1",
+ "properties": {
+ "hostName": "www.contoso.com",
+ "sessionAffinityEnabledState": "Enabled",
+ "sessionAffinityTtlSeconds": 60,
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default",
+ "name": "default",
+ "properties": {
+ "hostName": "frontDoor1.azurefd.net"
+ }
+ }
+ ],
+ "backendPoolsSettings": {
+ "enforceCertificateNameCheck": "Enabled",
+ "sendRecvTimeoutSeconds": 60
+ },
+ "enabledState": "Enabled",
+ "resourceState": "Creating",
+ "provisioningState": "Provisioning",
+ "cname": "frontDoor1.azurefd.net"
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1",
+ "name": "frontDoor1",
+ "type": "Microsoft.Network/frontDoor",
+ "location": "westus",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "routingRules": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1",
+ "name": "routingRule1",
+ "properties": {
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default"
+ }
+ ],
+ "acceptedProtocols": [
+ "Http"
+ ],
+ "patternsToMatch": [
+ "/*"
+ ],
+ "routeConfiguration": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "customForwardingPath": "",
+ "forwardingProtocol": "MatchRequest",
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ },
+ "rulesEngine": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
+ },
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ }
+ ],
+ "healthProbeSettings": [
+ {
+ "name": "healthProbeSettings1",
+ "properties": {
+ "path": "/",
+ "protocol": "Http",
+ "intervalInSeconds": 120,
+ "enabledState": "Enabled",
+ "healthProbeMethod": "HEAD"
+ }
+ }
+ ],
+ "loadBalancingSettings": [
+ {
+ "name": "loadBalancingSettings1",
+ "properties": {
+ "sampleSize": 4,
+ "successfulSamplesRequired": 2
+ }
+ }
+ ],
+ "backendPools": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1",
+ "name": "backendPool1",
+ "properties": {
+ "backends": [
+ {
+ "address": "w3.contoso.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 2
+ },
+ {
+ "address": "contoso.com.website-us-west-2.othercloud.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 2,
+ "priority": 1
+ },
+ {
+ "privateLinkAlias": "SQLSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice",
+ "privateEndpointStatus": "Approved",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "address": "10.0.1.5",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 1
+ }
+ ],
+ "loadBalancingSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1"
+ },
+ "healthProbeSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1"
+ }
+ }
+ }
+ ],
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1",
+ "name": "frontendEndpoint1",
+ "properties": {
+ "hostName": "www.contoso.com",
+ "sessionAffinityEnabledState": "Enabled",
+ "sessionAffinityTtlSeconds": 60,
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default",
+ "name": "default",
+ "properties": {
+ "hostName": "frontDoor1.azurefd.net"
+ }
+ }
+ ],
+ "backendPoolsSettings": {
+ "enforceCertificateNameCheck": "Enabled",
+ "sendRecvTimeoutSeconds": 60
+ },
+ "enabledState": "Enabled",
+ "resourceState": "Creating",
+ "provisioningState": "Provisioning",
+ "cname": "frontDoor1.azurefd.net"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorDelete.json
new file mode 100644
index 000000000000..1c63c3650063
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorDelete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorDisableHttps.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorDisableHttps.json
new file mode 100644
index 000000000000..1b8eca16edf0
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorDisableHttps.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1",
+ "frontendEndpointName": "frontendEndpoint1"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorEnableHttps.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorEnableHttps.json
new file mode 100644
index 000000000000..d63017ce37d4
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorEnableHttps.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1",
+ "frontendEndpointName": "frontendEndpoint1",
+ "customHttpsConfiguration": {
+ "certificateSource": "AzureKeyVault",
+ "protocolType": "ServerNameIndication",
+ "minimumTlsVersion": "1.0",
+ "keyVaultCertificateSourceParameters": {
+ "vault": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.KeyVault/vaults/vault1"
+ },
+ "secretName": "secret1",
+ "secretVersion": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorFrontendEndpointGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorFrontendEndpointGet.json
new file mode 100644
index 000000000000..984e7328de72
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorFrontendEndpointGet.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1",
+ "frontendEndpointName": "frontendEndpoint1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1",
+ "name": "frontendEndpoint1",
+ "properties": {
+ "hostName": "www.contoso.com",
+ "sessionAffinityEnabledState": "Enabled",
+ "sessionAffinityTtlSeconds": 60,
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorFrontendEndpointList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorFrontendEndpointList.json
new file mode 100644
index 000000000000..f0ca66197a46
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorFrontendEndpointList.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1",
+ "name": "frontendEndpoint1",
+ "properties": {
+ "hostName": "www.contoso.com",
+ "sessionAffinityEnabledState": "Enabled",
+ "sessionAffinityTtlSeconds": 60,
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorGet.json
new file mode 100644
index 000000000000..d862d3b7c380
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorGet.json
@@ -0,0 +1,214 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1",
+ "name": "frontDoor1",
+ "type": "Microsoft.Network/frontDoor",
+ "location": "westus",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "routingRules": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1",
+ "name": "routingRule1",
+ "properties": {
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default"
+ }
+ ],
+ "acceptedProtocols": [
+ "Http"
+ ],
+ "patternsToMatch": [
+ "/*"
+ ],
+ "routeConfiguration": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "customForwardingPath": "",
+ "forwardingProtocol": "MatchRequest",
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ },
+ "rulesEngine": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
+ },
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ }
+ ],
+ "healthProbeSettings": [
+ {
+ "name": "healthProbeSettings1",
+ "properties": {
+ "path": "/",
+ "protocol": "Http",
+ "intervalInSeconds": 120,
+ "enabledState": "Enabled",
+ "healthProbeMethod": "HEAD"
+ }
+ }
+ ],
+ "loadBalancingSettings": [
+ {
+ "name": "loadBalancingSettings1",
+ "properties": {
+ "sampleSize": 4,
+ "successfulSamplesRequired": 2
+ }
+ }
+ ],
+ "backendPools": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1",
+ "name": "backendPool1",
+ "properties": {
+ "backends": [
+ {
+ "address": "w3.contoso.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 2
+ },
+ {
+ "address": "contoso.com.website-us-west-2.othercloud.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 2,
+ "priority": 1
+ },
+ {
+ "privateLinkAlias": "SQLSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice",
+ "privateEndpointStatus": "Approved",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "address": "10.0.1.5",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 1
+ }
+ ],
+ "loadBalancingSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1"
+ },
+ "healthProbeSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1"
+ }
+ }
+ }
+ ],
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1",
+ "name": "frontendEndpoint1",
+ "properties": {
+ "hostName": "www.contoso.com",
+ "sessionAffinityEnabledState": "Enabled",
+ "sessionAffinityTtlSeconds": 60,
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default",
+ "name": "default",
+ "properties": {
+ "hostName": "frontDoor1.azurefd.net"
+ }
+ }
+ ],
+ "rulesEngines": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1",
+ "name": "rulesEngine1",
+ "properties": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "redirectType": "Moved",
+ "redirectProtocol": "HttpsOnly",
+ "customHost": "www.bing.com",
+ "customPath": "/api",
+ "customFragment": "fragment",
+ "customQueryString": "a=b"
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RemoteAddr",
+ "rulesEngineOperator": "GeoMatch",
+ "rulesEngineMatchValue": [
+ "CH"
+ ]
+ }
+ ],
+ "matchProcessingBehavior": "Stop"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "action": {
+ "responseHeaderActions": [
+ {
+ "headerActionType": "Overwrite",
+ "headerName": "Cache-Control",
+ "value": "public, max-age=31536000"
+ }
+ ]
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "FilenameExtension",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "jpg"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "backendPoolsSettings": {
+ "enforceCertificateNameCheck": "Enabled",
+ "sendRecvTimeoutSeconds": 60
+ },
+ "enabledState": "Enabled",
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "cname": "frontDoor1.azurefd.net"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorList.json
new file mode 100644
index 000000000000..01f597e20f3f
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorList.json
@@ -0,0 +1,217 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1",
+ "name": "frontDoor1",
+ "type": "Microsoft.Network/frontDoor",
+ "location": "westus",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "routingRules": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1",
+ "name": "routingRule1",
+ "properties": {
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default"
+ }
+ ],
+ "acceptedProtocols": [
+ "Http"
+ ],
+ "patternsToMatch": [
+ "/*"
+ ],
+ "routeConfiguration": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "customForwardingPath": "",
+ "forwardingProtocol": "MatchRequest",
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ },
+ "rulesEngine": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
+ },
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ }
+ ],
+ "healthProbeSettings": [
+ {
+ "name": "healthProbeSettings1",
+ "properties": {
+ "path": "/",
+ "protocol": "Http",
+ "intervalInSeconds": 120,
+ "enabledState": "Enabled",
+ "healthProbeMethod": "HEAD"
+ }
+ }
+ ],
+ "loadBalancingSettings": [
+ {
+ "name": "loadBalancingSettings1",
+ "properties": {
+ "sampleSize": 4,
+ "successfulSamplesRequired": 2
+ }
+ }
+ ],
+ "backendPools": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1",
+ "name": "backendPool1",
+ "properties": {
+ "backends": [
+ {
+ "address": "w3.contoso.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 2
+ },
+ {
+ "address": "contoso.com.website-us-west-2.othercloud.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 2,
+ "priority": 1
+ },
+ {
+ "privateLinkAlias": "SQLSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice",
+ "privateEndpointStatus": "Approved",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "address": "10.0.1.5",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 1
+ }
+ ],
+ "loadBalancingSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1"
+ },
+ "healthProbeSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1"
+ }
+ }
+ }
+ ],
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1",
+ "name": "frontendEndpoint1",
+ "properties": {
+ "hostName": "www.contoso.com",
+ "sessionAffinityEnabledState": "Enabled",
+ "sessionAffinityTtlSeconds": 60,
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default",
+ "name": "default",
+ "properties": {
+ "hostName": "frontDoor1.azurefd.net"
+ }
+ }
+ ],
+ "rulesEngines": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/rulesEngine1",
+ "name": "rulesEngine1",
+ "properties": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "redirectType": "Moved",
+ "redirectProtocol": "HttpsOnly",
+ "customHost": "www.bing.com",
+ "customPath": "/api",
+ "customFragment": "fragment",
+ "customQueryString": "a=b"
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RemoteAddr",
+ "rulesEngineOperator": "GeoMatch",
+ "rulesEngineMatchValue": [
+ "CH"
+ ]
+ }
+ ],
+ "matchProcessingBehavior": "Stop"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "action": {
+ "responseHeaderActions": [
+ {
+ "headerActionType": "Overwrite",
+ "headerName": "Cache-Control",
+ "value": "public, max-age=31536000"
+ }
+ ]
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "FilenameExtension",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "jpg"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "backendPoolsSettings": {
+ "enforceCertificateNameCheck": "Enabled",
+ "sendRecvTimeoutSeconds": 60
+ },
+ "enabledState": "Enabled",
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "cname": "frontDoor1.azurefd.net"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorListAll.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorListAll.json
new file mode 100644
index 000000000000..144a1f8e33cb
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorListAll.json
@@ -0,0 +1,215 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1",
+ "name": "frontDoor1",
+ "type": "Microsoft.Network/frontDoor",
+ "location": "westus",
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "properties": {
+ "routingRules": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1",
+ "name": "routingRule1",
+ "properties": {
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1"
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default"
+ }
+ ],
+ "acceptedProtocols": [
+ "Http"
+ ],
+ "patternsToMatch": [
+ "/*"
+ ],
+ "routeConfiguration": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "customForwardingPath": "",
+ "forwardingProtocol": "MatchRequest",
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ },
+ "rulesEngine": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
+ },
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ }
+ ],
+ "healthProbeSettings": [
+ {
+ "name": "healthProbeSettings1",
+ "properties": {
+ "path": "/",
+ "protocol": "Http",
+ "intervalInSeconds": 120,
+ "enabledState": "Enabled",
+ "healthProbeMethod": "HEAD"
+ }
+ }
+ ],
+ "loadBalancingSettings": [
+ {
+ "name": "loadBalancingSettings1",
+ "properties": {
+ "sampleSize": 4,
+ "successfulSamplesRequired": 2
+ }
+ }
+ ],
+ "backendPools": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1",
+ "name": "backendPool1",
+ "properties": {
+ "backends": [
+ {
+ "address": "w3.contoso.com",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 2
+ },
+ {
+ "address": "contoso.com.website-us-west-2.othercloud.net",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 2,
+ "priority": 1
+ },
+ {
+ "privateLinkAlias": "SQLSERVER.d84e61f0-0870-4d24-9746-7438fa0019d1.westus2.azure.privatelinkservice",
+ "privateEndpointStatus": "Approved",
+ "privateLinkApprovalMessage": "Please approve the connection request for this Private Link",
+ "address": "10.0.1.5",
+ "httpPort": 80,
+ "httpsPort": 443,
+ "enabledState": "Enabled",
+ "weight": 1,
+ "priority": 1
+ }
+ ],
+ "loadBalancingSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1"
+ },
+ "healthProbeSettings": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1"
+ }
+ }
+ }
+ ],
+ "frontendEndpoints": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1",
+ "name": "frontendEndpoint1",
+ "properties": {
+ "hostName": "www.contoso.com",
+ "sessionAffinityEnabledState": "Enabled",
+ "sessionAffinityTtlSeconds": 60,
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default",
+ "name": "default",
+ "properties": {
+ "hostName": "frontDoor1.azurefd.net"
+ }
+ }
+ ],
+ "rulesEngines": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/rulesEngine1",
+ "name": "rulesEngine1",
+ "properties": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "redirectType": "Moved",
+ "redirectProtocol": "HttpsOnly",
+ "customHost": "www.bing.com",
+ "customPath": "/api",
+ "customFragment": "fragment",
+ "customQueryString": "a=b"
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RemoteAddr",
+ "rulesEngineOperator": "GeoMatch",
+ "rulesEngineMatchValue": [
+ "CH"
+ ]
+ }
+ ],
+ "matchProcessingBehavior": "Stop"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "action": {
+ "responseHeaderActions": [
+ {
+ "headerActionType": "Overwrite",
+ "headerName": "Cache-Control",
+ "value": "public, max-age=31536000"
+ }
+ ]
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "FilenameExtension",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "jpg"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "backendPoolsSettings": {
+ "enforceCertificateNameCheck": "Enabled"
+ },
+ "enabledState": "Enabled",
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "cname": "frontDoor1.azurefd.net"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorPurgeContent.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorPurgeContent.json
new file mode 100644
index 000000000000..a8d47724cba1
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorPurgeContent.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1",
+ "contentFilePaths": {
+ "contentPaths": [
+ "/pictures.aspx",
+ "/pictures/*"
+ ]
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineCreate.json
new file mode 100644
index 000000000000..4c929b3b0370
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineCreate.json
@@ -0,0 +1,281 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1",
+ "rulesEngineName": "rulesEngine1",
+ "rulesEngineParameters": {
+ "properties": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "redirectType": "Moved",
+ "redirectProtocol": "HttpsOnly",
+ "customHost": "www.bing.com",
+ "customPath": "/api",
+ "customFragment": "fragment",
+ "customQueryString": "a=b"
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RemoteAddr",
+ "rulesEngineOperator": "GeoMatch",
+ "rulesEngineMatchValue": [
+ "CH"
+ ]
+ }
+ ],
+ "matchProcessingBehavior": "Stop"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "action": {
+ "responseHeaderActions": [
+ {
+ "headerActionType": "Overwrite",
+ "headerName": "Cache-Control",
+ "value": "public, max-age=31536000"
+ }
+ ]
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RequestFilenameExtension",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "jpg"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Rule3",
+ "priority": 3,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "customForwardingPath": null,
+ "forwardingProtocol": "HttpsOnly",
+ "cacheConfiguration": {
+ "queryParameterStripDirective": "StripOnly",
+ "queryParameters": "a=b,p=q",
+ "dynamicCompression": "Disabled",
+ "cacheDuration": "P1DT12H20M30S"
+ },
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RequestHeader",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "allowoverride"
+ ],
+ "transforms": [
+ "Lowercase"
+ ],
+ "negateCondition": false,
+ "selector": "Rules-Engine-Route-Forward"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1",
+ "name": "rulesEngine1",
+ "properties": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "redirectType": "Moved",
+ "redirectProtocol": "HttpsOnly",
+ "customHost": "www.bing.com",
+ "customPath": "/api",
+ "customFragment": "fragment",
+ "customQueryString": "a=b"
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RemoteAddr",
+ "rulesEngineOperator": "GeoMatch",
+ "rulesEngineMatchValue": [
+ "CH"
+ ]
+ }
+ ],
+ "matchProcessingBehavior": "Stop"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "action": {
+ "responseHeaderActions": [
+ {
+ "headerActionType": "Overwrite",
+ "headerName": "Cache-Control",
+ "value": "public, max-age=31536000"
+ }
+ ]
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RequestFilenameExtension",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "jpg"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1",
+ "name": "rulesEngine1",
+ "properties": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "redirectType": "Moved",
+ "redirectProtocol": "HttpsOnly",
+ "customHost": "www.bing.com",
+ "customPath": "/api",
+ "customFragment": "fragment",
+ "customQueryString": "a=b"
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RemoteAddr",
+ "rulesEngineOperator": "GeoMatch",
+ "rulesEngineMatchValue": [
+ "CH"
+ ]
+ }
+ ],
+ "matchProcessingBehavior": "Stop"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "action": {
+ "responseHeaderActions": [
+ {
+ "headerActionType": "Overwrite",
+ "headerName": "Cache-Control",
+ "value": "public, max-age=31536000"
+ }
+ ]
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RequestFilenameExtension",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "jpg"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1",
+ "name": "rulesEngine1",
+ "properties": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "redirectType": "Moved",
+ "redirectProtocol": "HttpsOnly",
+ "customHost": "www.bing.com",
+ "customPath": "/api",
+ "customFragment": "fragment",
+ "customQueryString": "a=b"
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RemoteAddr",
+ "rulesEngineOperator": "GeoMatch",
+ "rulesEngineMatchValue": [
+ "CH"
+ ]
+ }
+ ],
+ "matchProcessingBehavior": "Stop"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "action": {
+ "responseHeaderActions": [
+ {
+ "headerActionType": "Overwrite",
+ "headerName": "Cache-Control",
+ "value": "public, max-age=31536000"
+ }
+ ]
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "FilenameExtension",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "jpg"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineDelete.json
new file mode 100644
index 000000000000..da67c4db4da2
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1",
+ "rulesEngineName": "rulesEngine1"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineGet.json
new file mode 100644
index 000000000000..d4171bdd7fd9
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineGet.json
@@ -0,0 +1,105 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1",
+ "rulesEngineName": "rulesEngine1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1",
+ "name": "rulesEngine1",
+ "properties": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "redirectType": "Moved",
+ "redirectProtocol": "HttpsOnly",
+ "customHost": "www.bing.com",
+ "customPath": "/api",
+ "customFragment": "fragment",
+ "customQueryString": "a=b"
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RemoteAddr",
+ "rulesEngineOperator": "GeoMatch",
+ "rulesEngineMatchValue": [
+ "CH"
+ ]
+ }
+ ],
+ "matchProcessingBehavior": "Stop"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "action": {
+ "responseHeaderActions": [
+ {
+ "headerActionType": "Overwrite",
+ "headerName": "Cache-Control",
+ "value": "public, max-age=31536000"
+ }
+ ]
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RequestFilenameExtension",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "jpg"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Rule3",
+ "priority": 3,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "customForwardingPath": null,
+ "forwardingProtocol": "HttpsOnly",
+ "cacheConfiguration": {
+ "queryParameterStripDirective": "StripOnly",
+ "queryParameters": "a=b,p=q",
+ "dynamicCompression": "Disabled",
+ "cacheDuration": "P1DT12H20M30S"
+ },
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RequestHeader",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "allowoverride"
+ ],
+ "transforms": [
+ "Lowercase"
+ ],
+ "negateCondition": false,
+ "selector": "Rules-Engine-Route-Forward"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineList.json
new file mode 100644
index 000000000000..5876451c7ebe
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorRulesEngineList.json
@@ -0,0 +1,108 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1",
+ "name": "rulesEngine1",
+ "properties": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "redirectType": "Moved",
+ "redirectProtocol": "HttpsOnly",
+ "customHost": "www.bing.com",
+ "customPath": "/api",
+ "customFragment": "fragment",
+ "customQueryString": "a=b"
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RemoteAddr",
+ "rulesEngineOperator": "GeoMatch",
+ "rulesEngineMatchValue": [
+ "CH"
+ ]
+ }
+ ],
+ "matchProcessingBehavior": "Stop"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "action": {
+ "responseHeaderActions": [
+ {
+ "headerActionType": "Overwrite",
+ "headerName": "Cache-Control",
+ "value": "public, max-age=31536000"
+ }
+ ]
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RequestFilenameExtension",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "jpg"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "Rule3",
+ "priority": 3,
+ "action": {
+ "routeConfigurationOverride": {
+ "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "customForwardingPath": null,
+ "forwardingProtocol": "HttpsOnly",
+ "cacheConfiguration": {
+ "queryParameterStripDirective": "StripOnly",
+ "queryParameters": "a=b,p=q",
+ "dynamicCompression": "Disabled",
+ "cacheDuration": "P1DT12H20M30S"
+ },
+ "backendPool": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1"
+ }
+ }
+ },
+ "matchConditions": [
+ {
+ "rulesEngineMatchVariable": "RequestHeader",
+ "rulesEngineOperator": "Equal",
+ "rulesEngineMatchValue": [
+ "allowoverride"
+ ],
+ "transforms": [
+ "Lowercase"
+ ],
+ "negateCondition": false,
+ "selector": "Rules-Engine-Route-Forward"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorValidateCustomDomain.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorValidateCustomDomain.json
new file mode 100644
index 000000000000..9e2e823963b4
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/FrontdoorValidateCustomDomain.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "frontDoorName": "frontDoor1",
+ "customDomainProperties": {
+ "hostName": "www.someDomain.com"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "customDomainValidated": true,
+ "message": null,
+ "reason": null
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafListManagedRuleSets.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafListManagedRuleSets.json
new file mode 100644
index 000000000000..67ffc7fc2499
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafListManagedRuleSets.json
@@ -0,0 +1,69 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "DefaultRuleSet_1.0",
+ "id": "/subscriptions/subid/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "ruleSetId": "8125d145-ddc5-4d90-9bc3-24c5f2de69a2",
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "ruleGroups": [
+ {
+ "ruleGroupName": "SQLI",
+ "description": "SQL injection",
+ "rules": [
+ {
+ "ruleId": "942100",
+ "description": "SQL Injection Attack Detected via libinjection",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ },
+ {
+ "ruleId": "942110",
+ "description": "SQL Injection Attack: Common Injection Testing Detected",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ }
+ ]
+ },
+ {
+ "ruleGroupName": "XSS",
+ "description": "Cross-site scripting",
+ "rules": [
+ {
+ "ruleId": "941100",
+ "description": "XSS Attack Detected via libinjection",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ },
+ {
+ "ruleId": "941101",
+ "description": "XSS Attack Detected via libinjection",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ },
+ {
+ "ruleId": "941110",
+ "description": "XSS Filter - Category 1: Script Tag Vector",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafListPolicies.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafListPolicies.json
new file mode 100644
index 000000000000..54bb6176f88d
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafListPolicies.json
@@ -0,0 +1,130 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontdoors/fd1/frontendendpoints/fd1-azurefd-net"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyCreateOrUpdate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyCreateOrUpdate.json
new file mode 100644
index 000000000000..dfbb5d06460e
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyCreateOrUpdate.json
@@ -0,0 +1,492 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "Policy1",
+ "parameters": {
+ "properties": {
+ "policySettings": {
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "ruleType": "RateLimitRule",
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "operator": "IPMatch",
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "ruleType": "MatchRule",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "operator": "GeoMatch",
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "operator": "Contains",
+ "selector": "UserAgent",
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "exclusions": [
+ {
+ "matchVariable": "RequestCookieNames",
+ "selectorMatchOperator": "StartsWith",
+ "selector": "token"
+ }
+ ],
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect",
+ "exclusions": [
+ {
+ "matchVariable": "QueryStringArgNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "query"
+ }
+ ]
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "exclusions": [
+ {
+ "matchVariable": "RequestCookieNames",
+ "selectorMatchOperator": "StartsWith",
+ "selector": "token"
+ }
+ ],
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect",
+ "exclusions": [
+ {
+ "matchVariable": "QueryStringArgNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "query"
+ }
+ ]
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": []
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "exclusions": [
+ {
+ "matchVariable": "RequestCookieNames",
+ "selectorMatchOperator": "StartsWith",
+ "selector": "token"
+ }
+ ],
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect",
+ "exclusions": [
+ {
+ "matchVariable": "QueryStringArgNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "query"
+ }
+ ]
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": []
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "exclusions": [
+ {
+ "matchVariable": "RequestCookieNames",
+ "selectorMatchOperator": "StartsWith",
+ "selector": "token"
+ }
+ ],
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect",
+ "exclusions": [
+ {
+ "matchVariable": "QueryStringArgNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "query"
+ }
+ ]
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyDelete.json
new file mode 100644
index 000000000000..fbb29b09b644
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "Policy1"
+ },
+ "responses": {
+ "200": {},
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyGet.json
new file mode 100644
index 000000000000..1311e82902db
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/examples/WafPolicyGet.json
@@ -0,0 +1,127 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "Policy1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontdoors/fd1/frontendendpoints/fd1-azurefd-net"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/frontdoor.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/frontdoor.json
new file mode 100644
index 000000000000..04ebb2c6a13b
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/frontdoor.json
@@ -0,0 +1,2350 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-04-01",
+ "title": "FrontDoorManagementClient",
+ "description": "Use these APIs to manage Azure Front Door resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.Network/checkFrontDoorNameAvailability": {
+ "post": {
+ "tags": [
+ "CheckFrontDoorNameAvailability"
+ ],
+ "description": "Check the availability of a Front Door resource name.",
+ "operationId": "CheckFrontDoorNameAvailability",
+ "x-ms-examples": {
+ "CheckNameAvailability": {
+ "$ref": "./examples/CheckFrontdoorNameAvailability.json"
+ }
+ },
+ "parameters": [
+ {
+ "name": "checkFrontDoorNameAvailabilityInput",
+ "in": "body",
+ "description": "Input to check.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityInput"
+ }
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityOutput"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability": {
+ "post": {
+ "tags": [
+ "CheckFrontDoorNameAvailabilityWithSubscription"
+ ],
+ "description": "Check the availability of a Front Door subdomain.",
+ "operationId": "CheckFrontDoorNameAvailabilityWithSubscription",
+ "x-ms-examples": {
+ "CheckNameAvailabilityWithSubscription": {
+ "$ref": "./examples/CheckFrontdoorNameAvailabilityWithSubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "name": "checkFrontDoorNameAvailabilityInput",
+ "in": "body",
+ "description": "Input to check.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityInput"
+ }
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityOutput"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors": {
+ "get": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Lists all of the Front Doors within an Azure subscription.",
+ "operationId": "FrontDoors_List",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/FrontDoorListResult"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List all Front Doors": {
+ "$ref": "./examples/FrontdoorListAll.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors": {
+ "get": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Lists all of the Front Doors within a resource group under a subscription.",
+ "operationId": "FrontDoors_ListByResourceGroup",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/FrontDoorListResult"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Front Doors in a Resource Group": {
+ "$ref": "./examples/FrontdoorList.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}": {
+ "get": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Gets a Front Door with the specified Front Door name under the specified subscription and resource group.",
+ "operationId": "FrontDoors_Get",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/FrontDoor"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Front Door": {
+ "$ref": "./examples/FrontdoorGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Creates a new Front Door with a Front Door name under the specified subscription and resource group.",
+ "operationId": "FrontDoors_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "description": "Front Door properties needed to create a new Front Door.",
+ "in": "body",
+ "name": "frontDoorParameters",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/FrontDoor"
+ }
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/FrontDoor"
+ }
+ },
+ "201": {
+ "description": "Created. The request has been fulfilled and a new Front Door has been created.",
+ "schema": {
+ "$ref": "#/definitions/FrontDoor"
+ }
+ },
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/FrontDoor"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or update specific Front Door": {
+ "$ref": "./examples/FrontdoorCreate.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ },
+ "delete": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Deletes an existing Front Door with the specified parameters.",
+ "operationId": "FrontDoors_Delete",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously."
+ },
+ "204": {
+ "description": "No Content. The request has been accepted but the Front Door was not found."
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Front Door": {
+ "$ref": "./examples/FrontdoorDelete.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints": {
+ "get": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Lists all of the frontend endpoints within a Front Door.",
+ "operationId": "FrontendEndpoints_ListByFrontDoor",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/FrontendEndpointsListResult"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Frontend endpoints in a Front Door": {
+ "$ref": "./examples/FrontdoorFrontendEndpointList.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}": {
+ "get": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Gets a Frontend endpoint with the specified name within the specified Front Door.",
+ "operationId": "FrontendEndpoints_Get",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontendEndpointNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/FrontendEndpoint"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Frontend Endpoint": {
+ "$ref": "./examples/FrontdoorFrontendEndpointGet.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge": {
+ "post": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Removes a content from Front Door.",
+ "operationId": "Endpoints_PurgeContent",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "name": "contentFilePaths",
+ "in": "body",
+ "description": "The path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PurgeParameters"
+ }
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded."
+ },
+ "202": {
+ "description": "Accepted and the operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Purge content from Front Door": {
+ "$ref": "./examples/FrontdoorPurgeContent.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps": {
+ "post": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Enables a frontendEndpoint for HTTPS traffic",
+ "operationId": "FrontendEndpoints_EnableHttps",
+ "x-ms-examples": {
+ "FrontendEndpoints_EnableHttps": {
+ "$ref": "./examples/FrontdoorEnableHttps.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontendEndpointNameParameter"
+ },
+ {
+ "name": "customHttpsConfiguration",
+ "in": "body",
+ "description": "The configuration specifying how to enable HTTPS",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CustomHttpsConfiguration"
+ }
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded."
+ },
+ "202": {
+ "description": "Accepted and the operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps": {
+ "post": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Disables a frontendEndpoint for HTTPS traffic",
+ "operationId": "FrontendEndpoints_DisableHttps",
+ "x-ms-examples": {
+ "FrontendEndpoints_DisableHttps": {
+ "$ref": "./examples/FrontdoorDisableHttps.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontendEndpointNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded."
+ },
+ "202": {
+ "description": "Accepted and the operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain": {
+ "post": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.",
+ "operationId": "FrontDoors_ValidateCustomDomain",
+ "x-ms-examples": {
+ "FrontDoor_ValidateCustomDomain": {
+ "$ref": "./examples/FrontdoorValidateCustomDomain.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "customDomainProperties",
+ "in": "body",
+ "description": "Custom domain to be validated.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ValidateCustomDomainInput"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/ValidateCustomDomainOutput"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines": {
+ "get": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Lists all of the Rules Engine Configurations within a Front Door.",
+ "operationId": "RulesEngines_ListByFrontDoor",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/RulesEngineListResult"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Rules Engine Configurations in a Front Door": {
+ "$ref": "./examples/FrontdoorRulesEngineList.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}": {
+ "get": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Gets a Rules Engine Configuration with the specified name within the specified Front Door.",
+ "operationId": "RulesEngines_Get",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "#/parameters/rulesEngineNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/RulesEngine"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Rules Engine Configuration": {
+ "$ref": "./examples/FrontdoorRulesEngineGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Creates a new Rules Engine Configuration with the specified name within the specified Front Door.",
+ "operationId": "RulesEngines_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "#/parameters/rulesEngineNameParameter"
+ },
+ {
+ "description": "Rules Engine Configuration properties needed to create a new Rules Engine Configuration.",
+ "in": "body",
+ "name": "rulesEngineParameters",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/RulesEngine"
+ }
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/RulesEngine"
+ }
+ },
+ "201": {
+ "description": "Created. The request has been fulfilled and a new RulesEngine has been created.",
+ "schema": {
+ "$ref": "#/definitions/RulesEngine"
+ }
+ },
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/RulesEngine"
+ }
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or update a specific Rules Engine Configuration": {
+ "$ref": "./examples/FrontdoorRulesEngineCreate.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ },
+ "delete": {
+ "tags": [
+ "FrontDoors"
+ ],
+ "description": "Deletes an existing Rules Engine Configuration with the specified parameters.",
+ "operationId": "RulesEngines_Delete",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/frontDoorNameParameter"
+ },
+ {
+ "$ref": "#/parameters/rulesEngineNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously."
+ },
+ "204": {
+ "description": "No Content. The request has been accepted but the Rules Engine Configuration was not found."
+ },
+ "default": {
+ "description": "Front Door error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Rules Engine Configuration": {
+ "$ref": "./examples/FrontdoorRulesEngineDelete.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "FrontDoor": {
+ "properties": {
+ "properties": {
+ "description": "Properties of the Front Door Load Balancer",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/FrontDoorProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/Resource"
+ }
+ ],
+ "description": "Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic is sent there."
+ },
+ "FrontDoorUpdateParameters": {
+ "description": "The properties needed to update a Front Door",
+ "properties": {
+ "friendlyName": {
+ "description": "A friendly name for the frontDoor",
+ "type": "string"
+ },
+ "routingRules": {
+ "description": "Routing rules associated with this Front Door.",
+ "type": "array",
+ "items": {
+ "description": "A routing rule",
+ "$ref": "#/definitions/RoutingRule"
+ }
+ },
+ "loadBalancingSettings": {
+ "description": "Load balancing settings associated with this Front Door instance.",
+ "type": "array",
+ "items": {
+ "description": "A load balancing settings",
+ "$ref": "#/definitions/LoadBalancingSettingsModel"
+ }
+ },
+ "healthProbeSettings": {
+ "description": "Health probe settings associated with this Front Door instance.",
+ "type": "array",
+ "items": {
+ "description": "A health probe settings",
+ "$ref": "#/definitions/HealthProbeSettingsModel"
+ }
+ },
+ "backendPools": {
+ "description": "Backend pools available to routing rules.",
+ "type": "array",
+ "items": {
+ "description": "A backend pool",
+ "$ref": "#/definitions/BackendPool"
+ }
+ },
+ "frontendEndpoints": {
+ "description": "Frontend endpoints available to routing rules.",
+ "type": "array",
+ "items": {
+ "description": "A frontend endpoint",
+ "$ref": "#/definitions/FrontendEndpoint"
+ }
+ },
+ "backendPoolsSettings": {
+ "description": "Settings for all backendPools",
+ "$ref": "#/definitions/BackendPoolsSettings"
+ },
+ "enabledState": {
+ "description": "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "FrontDoorEnabledState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "FrontDoorProperties": {
+ "description": "The JSON object that contains the properties required to create an endpoint.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/FrontDoorUpdateParameters"
+ }
+ ],
+ "properties": {
+ "resourceState": {
+ "description": "Resource status of the Front Door.",
+ "$ref": "#/definitions/ResourceState"
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Provisioning state of the Front Door."
+ },
+ "cname": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The host that each frontendEndpoint must CNAME to."
+ },
+ "frontdoorId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The Id of the frontdoor."
+ },
+ "rulesEngines": {
+ "readOnly": true,
+ "description": "Rules Engine Configurations available to routing rules.",
+ "type": "array",
+ "items": {
+ "description": "A rules engine configuration.",
+ "$ref": "#/definitions/RulesEngine"
+ }
+ }
+ }
+ },
+ "FrontDoorListResult": {
+ "description": "Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/FrontDoor"
+ },
+ "description": "List of Front Doors within a resource group."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of Front Door objects if there are any."
+ }
+ }
+ },
+ "PurgeParameters": {
+ "type": "object",
+ "description": "Parameters required for content purge.",
+ "required": [
+ "contentPaths"
+ ],
+ "properties": {
+ "contentPaths": {
+ "description": "The path to the content to be purged. Can describe a file path or a wild card directory.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "RoutingRule": {
+ "properties": {
+ "properties": {
+ "description": "Properties of the Front Door Routing Rule",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/RoutingRuleProperties"
+ },
+ "name": {
+ "type": "string",
+ "description": "Resource name."
+ },
+ "type": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Resource type."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/SubResource"
+ }
+ ],
+ "description": "A routing rule represents a specification for traffic to treat and where to send it, along with health probe information."
+ },
+ "RoutingRuleProperties": {
+ "description": "The JSON object that contains the properties required to create a routing rule.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/RoutingRuleUpdateParameters"
+ }
+ ],
+ "properties": {
+ "resourceState": {
+ "description": "Resource status.",
+ "$ref": "#/definitions/ResourceState"
+ }
+ }
+ },
+ "RoutingRuleListResult": {
+ "description": "Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/RoutingRule"
+ },
+ "description": "List of Routing Rules within a Front Door."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of RoutingRule objects if there are any."
+ }
+ }
+ },
+ "RoutingRuleUpdateParameters": {
+ "description": "Routing rules to apply to an endpoint",
+ "type": "object",
+ "properties": {
+ "frontendEndpoints": {
+ "description": "Frontend endpoints associated with this rule",
+ "type": "array",
+ "items": {
+ "description": "A reference to a frontend endpoint",
+ "$ref": "./network.json#/definitions/SubResource"
+ }
+ },
+ "acceptedProtocols": {
+ "description": "Protocol schemes to match for this rule",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "description": "Accepted protocol schemes.",
+ "enum": [
+ "Http",
+ "Https"
+ ],
+ "x-ms-enum": {
+ "name": "FrontDoorProtocol",
+ "modelAsString": true
+ }
+ }
+ },
+ "patternsToMatch": {
+ "description": "The route patterns of the rule.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "description": "A route pattern of the rule. Must not have any * except possibly after the final / at the end of the path."
+ }
+ },
+ "enabledState": {
+ "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "routingRuleEnabledState",
+ "modelAsString": true
+ }
+ },
+ "routeConfiguration": {
+ "description": "A reference to the routing configuration.",
+ "$ref": "#/definitions/RouteConfiguration"
+ },
+ "rulesEngine": {
+ "description": "A reference to a specific Rules Engine Configuration to apply to this route.",
+ "$ref": "./network.json#/definitions/SubResource"
+ },
+ "webApplicationFirewallPolicyLink": {
+ "description": "Defines the Web Application Firewall policy for each routing rule (if applicable)",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ }
+ }
+ }
+ },
+ "RouteConfiguration": {
+ "discriminator": "@odata.type",
+ "description": "Base class for all types of Route.",
+ "properties": {
+ "@odata.type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "@odata.type"
+ ]
+ },
+ "ForwardingConfiguration": {
+ "description": "Describes Forwarding Route.",
+ "x-ms-discriminator-value": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
+ "properties": {
+ "customForwardingPath": {
+ "description": "A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.",
+ "type": "string"
+ },
+ "forwardingProtocol": {
+ "description": "Protocol this rule will use when forwarding traffic to backends.",
+ "type": "string",
+ "enum": [
+ "HttpOnly",
+ "HttpsOnly",
+ "MatchRequest"
+ ],
+ "x-ms-enum": {
+ "name": "FrontDoorForwardingProtocol",
+ "modelAsString": true
+ }
+ },
+ "cacheConfiguration": {
+ "description": "The caching configuration associated with this rule.",
+ "$ref": "#/definitions/CacheConfiguration"
+ },
+ "backendPool": {
+ "description": "A reference to the BackendPool which this rule routes to.",
+ "$ref": "./network.json#/definitions/SubResource"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/RouteConfiguration"
+ }
+ ]
+ },
+ "RedirectConfiguration": {
+ "description": "Describes Redirect Route.",
+ "x-ms-discriminator-value": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration",
+ "properties": {
+ "redirectType": {
+ "description": "The redirect type the rule will use when redirecting traffic.",
+ "type": "string",
+ "enum": [
+ "Moved",
+ "Found",
+ "TemporaryRedirect",
+ "PermanentRedirect"
+ ],
+ "x-ms-enum": {
+ "name": "FrontDoorRedirectType",
+ "modelAsString": true
+ }
+ },
+ "redirectProtocol": {
+ "description": "The protocol of the destination to where the traffic is redirected",
+ "type": "string",
+ "enum": [
+ "HttpOnly",
+ "HttpsOnly",
+ "MatchRequest"
+ ],
+ "x-ms-enum": {
+ "name": "FrontDoorRedirectProtocol",
+ "modelAsString": true
+ }
+ },
+ "customHost": {
+ "type": "string",
+ "description": "Host to redirect. Leave empty to use the incoming host as the destination host."
+ },
+ "customPath": {
+ "type": "string",
+ "description": "The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path."
+ },
+ "customFragment": {
+ "type": "string",
+ "description": "Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #."
+ },
+ "customQueryString": {
+ "description": "The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.",
+ "type": "string"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/RouteConfiguration"
+ }
+ ]
+ },
+ "Backend": {
+ "description": "Backend address of a frontDoor load balancer.",
+ "type": "object",
+ "properties": {
+ "address": {
+ "description": "Location of the backend (IP address or FQDN)",
+ "type": "string"
+ },
+ "privateLinkAlias": {
+ "description": "The Alias of the Private Link resource. Populating this optional field indicates that this backend is 'Private'",
+ "type": "string"
+ },
+ "privateEndpointStatus": {
+ "description": "The Approval status for the connection to the Private Link",
+ "type": "string",
+ "readOnly": true,
+ "enum": [
+ "Pending",
+ "Approved",
+ "Rejected",
+ "Disconnected",
+ "Timeout"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateEndpointStatus",
+ "modelAsString": true
+ }
+ },
+ "privateLinkApprovalMessage": {
+ "description": "A custom message to be included in the approval request to connect to the Private Link",
+ "type": "string"
+ },
+ "httpPort": {
+ "description": "The HTTP TCP port number. Must be between 1 and 65535.",
+ "type": "integer",
+ "maximum": 65535,
+ "exclusiveMaximum": false,
+ "minimum": 1,
+ "exclusiveMinimum": false
+ },
+ "httpsPort": {
+ "description": "The HTTPS TCP port number. Must be between 1 and 65535.",
+ "type": "integer",
+ "maximum": 65535,
+ "exclusiveMaximum": false,
+ "minimum": 1,
+ "exclusiveMinimum": false
+ },
+ "enabledState": {
+ "description": "Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "backendEnabledState",
+ "modelAsString": true
+ }
+ },
+ "priority": {
+ "description": "Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy.",
+ "type": "integer",
+ "maximum": 5,
+ "minimum": 1
+ },
+ "weight": {
+ "description": "Weight of this endpoint for load balancing purposes.",
+ "type": "integer",
+ "maximum": 1000,
+ "minimum": 1
+ },
+ "backendHostHeader": {
+ "description": "The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host.",
+ "type": "string"
+ }
+ }
+ },
+ "LoadBalancingSettingsModel": {
+ "properties": {
+ "properties": {
+ "description": "Properties of the load balancing settings",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/LoadBalancingSettingsProperties"
+ },
+ "name": {
+ "type": "string",
+ "description": "Resource name."
+ },
+ "type": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Resource type."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/SubResource"
+ }
+ ],
+ "description": "Load balancing settings for a backend pool"
+ },
+ "LoadBalancingSettingsProperties": {
+ "description": "The JSON object that contains the properties required to create load balancing settings",
+ "allOf": [
+ {
+ "$ref": "#/definitions/LoadBalancingSettingsUpdateParameters"
+ }
+ ],
+ "properties": {
+ "resourceState": {
+ "description": "Resource status.",
+ "$ref": "#/definitions/ResourceState"
+ }
+ }
+ },
+ "LoadBalancingSettingsListResult": {
+ "description": "Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/LoadBalancingSettingsModel"
+ },
+ "description": "List of Backend Pools within a Front Door."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of LoadBalancingSettings objects if there are any."
+ }
+ }
+ },
+ "LoadBalancingSettingsUpdateParameters": {
+ "description": "Round-Robin load balancing settings for a backend pool",
+ "type": "object",
+ "properties": {
+ "sampleSize": {
+ "description": "The number of samples to consider for load balancing decisions",
+ "type": "integer"
+ },
+ "successfulSamplesRequired": {
+ "description": "The number of samples within the sample period that must succeed",
+ "type": "integer"
+ },
+ "additionalLatencyMilliseconds": {
+ "description": "The additional latency in milliseconds for probes to fall into the lowest latency bucket",
+ "type": "integer"
+ }
+ }
+ },
+ "HealthProbeSettingsModel": {
+ "properties": {
+ "properties": {
+ "description": "Properties of the health probe settings",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/HealthProbeSettingsProperties"
+ },
+ "name": {
+ "type": "string",
+ "description": "Resource name."
+ },
+ "type": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Resource type."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/SubResource"
+ }
+ ],
+ "description": "Load balancing settings for a backend pool"
+ },
+ "HealthProbeSettingsProperties": {
+ "description": "The JSON object that contains the properties required to create a health probe settings.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/HealthProbeSettingsUpdateParameters"
+ }
+ ],
+ "properties": {
+ "resourceState": {
+ "description": "Resource status.",
+ "$ref": "#/definitions/ResourceState"
+ }
+ }
+ },
+ "HealthProbeSettingsListResult": {
+ "description": "Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/HealthProbeSettingsModel"
+ },
+ "description": "List of HealthProbeSettings within a Front Door."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of HealthProbeSettings objects if there are any."
+ }
+ }
+ },
+ "HealthProbeSettingsUpdateParameters": {
+ "description": "L7 health probe settings for a backend pool",
+ "type": "object",
+ "properties": {
+ "path": {
+ "description": "The path to use for the health probe. Default is /",
+ "type": "string"
+ },
+ "protocol": {
+ "description": "Protocol scheme to use for this probe",
+ "type": "string",
+ "enum": [
+ "Http",
+ "Https"
+ ],
+ "x-ms-enum": {
+ "name": "FrontDoorProtocol",
+ "modelAsString": true
+ }
+ },
+ "intervalInSeconds": {
+ "description": "The number of seconds between health probes.",
+ "type": "integer"
+ },
+ "healthProbeMethod": {
+ "description": "Configures which HTTP method to use to probe the backends defined under backendPools.",
+ "type": "string",
+ "enum": [
+ "GET",
+ "HEAD"
+ ],
+ "x-ms-enum": {
+ "name": "FrontDoorHealthProbeMethod",
+ "modelAsString": true
+ },
+ "default": "HEAD"
+ },
+ "enabledState": {
+ "description": "Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.",
+ "type": "string",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "x-ms-enum": {
+ "name": "HealthProbeEnabled",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "BackendPool": {
+ "properties": {
+ "properties": {
+ "description": "Properties of the Front Door Backend Pool",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/BackendPoolProperties"
+ },
+ "name": {
+ "type": "string",
+ "description": "Resource name."
+ },
+ "type": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Resource type."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/SubResource"
+ }
+ ],
+ "description": "A backend pool is a collection of backends that can be routed to."
+ },
+ "BackendPoolUpdateParameters": {
+ "description": "A collection of backends that can be routed to.",
+ "type": "object",
+ "properties": {
+ "backends": {
+ "description": "The set of backends for this pool",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Backend"
+ }
+ },
+ "loadBalancingSettings": {
+ "description": "Load balancing settings for a backend pool",
+ "$ref": "./network.json#/definitions/SubResource"
+ },
+ "healthProbeSettings": {
+ "description": "L7 health probe settings for a backend pool",
+ "$ref": "./network.json#/definitions/SubResource"
+ }
+ }
+ },
+ "BackendPoolProperties": {
+ "description": "The JSON object that contains the properties required to create a Backend Pool.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BackendPoolUpdateParameters"
+ }
+ ],
+ "properties": {
+ "resourceState": {
+ "description": "Resource status.",
+ "$ref": "#/definitions/ResourceState"
+ }
+ }
+ },
+ "BackendPoolListResult": {
+ "description": "Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/BackendPool"
+ },
+ "description": "List of Backend Pools within a Front Door."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of BackendPool objects if there are any."
+ }
+ }
+ },
+ "CacheConfiguration": {
+ "description": "Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.",
+ "type": "object",
+ "properties": {
+ "queryParameterStripDirective": {
+ "description": "Treatment of URL query terms when forming the cache key.",
+ "enum": [
+ "StripNone",
+ "StripAll",
+ "StripOnly",
+ "StripAllExcept"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "FrontDoorQuery",
+ "modelAsString": true
+ }
+ },
+ "queryParameters": {
+ "description": "query parameters to include or exclude (comma separated).",
+ "type": "string"
+ },
+ "dynamicCompression": {
+ "description": "Whether to use dynamic compression for cached content",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "DynamicCompressionEnabled",
+ "modelAsString": true
+ }
+ },
+ "cacheDuration": {
+ "description": "The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year",
+ "type": "string",
+ "format": "duration"
+ }
+ }
+ },
+ "KeyVaultCertificateSourceParameters": {
+ "description": "Parameters required for bring-your-own-certification via Key Vault",
+ "type": "object",
+ "properties": {
+ "vault": {
+ "description": "The Key Vault containing the SSL certificate",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ }
+ },
+ "secretName": {
+ "type": "string",
+ "description": "The name of the Key Vault secret representing the full certificate PFX"
+ },
+ "secretVersion": {
+ "type": "string",
+ "description": "The version of the Key Vault secret representing the full certificate PFX"
+ }
+ }
+ },
+ "FrontDoorCertificateSourceParameters": {
+ "description": "Parameters required for enabling SSL with Front Door-managed certificates",
+ "type": "object",
+ "properties": {
+ "certificateType": {
+ "description": "Defines the type of the certificate used for secure connections to a frontendEndpoint",
+ "enum": [
+ "Dedicated"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "FrontDoorCertificateType",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "CustomHttpsConfiguration": {
+ "description": "Https settings for a domain",
+ "type": "object",
+ "required": [
+ "minimumTlsVersion",
+ "certificateSource",
+ "protocolType"
+ ],
+ "properties": {
+ "certificateSource": {
+ "description": "Defines the source of the SSL certificate",
+ "enum": [
+ "AzureKeyVault",
+ "FrontDoor"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "FrontDoorCertificateSource",
+ "modelAsString": true
+ }
+ },
+ "protocolType": {
+ "description": "Defines the TLS extension protocol that is used for secure delivery",
+ "enum": [
+ "ServerNameIndication"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "FrontDoorTlsProtocolType",
+ "modelAsString": true
+ }
+ },
+ "minimumTlsVersion": {
+ "description": "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.",
+ "enum": [
+ "1.0",
+ "1.2"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "MinimumTLSVersion",
+ "modelAsString": true
+ }
+ },
+ "keyVaultCertificateSourceParameters": {
+ "description": "KeyVault certificate source parameters (if certificateSource=AzureKeyVault)",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/KeyVaultCertificateSourceParameters"
+ },
+ "frontDoorCertificateSourceParameters": {
+ "description": "Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor)",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/FrontDoorCertificateSourceParameters"
+ }
+ }
+ },
+ "FrontendEndpoint": {
+ "properties": {
+ "properties": {
+ "description": "Properties of the Frontend endpoint",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/FrontendEndpointProperties"
+ },
+ "name": {
+ "type": "string",
+ "description": "Resource name."
+ },
+ "type": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Resource type."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/SubResource"
+ }
+ ],
+ "description": "A frontend endpoint used for routing."
+ },
+ "FrontendEndpointProperties": {
+ "description": "The JSON object that contains the properties required to create a frontend endpoint.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/FrontendEndpointUpdateParameters"
+ }
+ ],
+ "properties": {
+ "resourceState": {
+ "description": "Resource status.",
+ "$ref": "#/definitions/ResourceState"
+ },
+ "customHttpsProvisioningState": {
+ "description": "Provisioning status of Custom Https of the frontendEndpoint.",
+ "readOnly": true,
+ "enum": [
+ "Enabling",
+ "Enabled",
+ "Disabling",
+ "Disabled",
+ "Failed"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CustomHttpsProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "customHttpsProvisioningSubstate": {
+ "description": "Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.",
+ "readOnly": true,
+ "enum": [
+ "SubmittingDomainControlValidationRequest",
+ "PendingDomainControlValidationREquestApproval",
+ "DomainControlValidationRequestApproved",
+ "DomainControlValidationRequestRejected",
+ "DomainControlValidationRequestTimedOut",
+ "IssuingCertificate",
+ "DeployingCertificate",
+ "CertificateDeployed",
+ "DeletingCertificate",
+ "CertificateDeleted"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "CustomHttpsProvisioningSubstate",
+ "modelAsString": true
+ }
+ },
+ "customHttpsConfiguration": {
+ "description": "The configuration specifying how to enable HTTPS",
+ "readOnly": true,
+ "$ref": "#/definitions/CustomHttpsConfiguration"
+ }
+ }
+ },
+ "FrontendEndpointUpdateParameters": {
+ "description": "Frontend endpoint used in routing rule",
+ "type": "object",
+ "properties": {
+ "hostName": {
+ "description": "The host name of the frontendEndpoint. Must be a domain name.",
+ "type": "string"
+ },
+ "sessionAffinityEnabledState": {
+ "description": "Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SessionAffinityEnabledState",
+ "modelAsString": true
+ }
+ },
+ "sessionAffinityTtlSeconds": {
+ "description": "UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.",
+ "type": "integer"
+ },
+ "webApplicationFirewallPolicyLink": {
+ "description": "Defines the Web Application Firewall policy for each host (if applicable)",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ }
+ }
+ }
+ },
+ "FrontendEndpointsListResult": {
+ "description": "Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/FrontendEndpoint"
+ },
+ "description": "List of Frontend endpoints within a Front Door."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of frontend endpoints if there are any."
+ }
+ }
+ },
+ "BackendPoolsSettings": {
+ "description": "Settings that apply to all backend pools.",
+ "type": "object",
+ "properties": {
+ "enforceCertificateNameCheck": {
+ "description": "Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on non-HTTPS requests.",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "enforceCertificateNameCheckEnabledState",
+ "modelAsString": true
+ },
+ "default": "Enabled"
+ },
+ "sendRecvTimeoutSeconds": {
+ "description": "Send and receive timeout on forwarding request to the backend. When timeout is reached, the request fails and returns.",
+ "type": "integer",
+ "minimum": 16,
+ "exclusiveMinimum": false
+ }
+ }
+ },
+ "HeaderAction": {
+ "description": "An action that can manipulate an http header.",
+ "required": [
+ "headerActionType",
+ "headerName"
+ ],
+ "properties": {
+ "headerActionType": {
+ "description": "Which type of manipulation to apply to the header.",
+ "type": "string",
+ "enum": [
+ "Append",
+ "Delete",
+ "Overwrite"
+ ],
+ "x-ms-enum": {
+ "name": "headerActionType",
+ "modelAsString": true
+ }
+ },
+ "headerName": {
+ "description": "The name of the header this action will apply to.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value to update the given header name with. This value is not used if the actionType is Delete.",
+ "type": "string"
+ }
+ }
+ },
+ "RulesEngineMatchCondition": {
+ "description": "Define a match condition",
+ "required": [
+ "rulesEngineMatchVariable",
+ "rulesEngineOperator",
+ "rulesEngineMatchValue"
+ ],
+ "properties": {
+ "rulesEngineMatchVariable": {
+ "description": "Match Variable",
+ "type": "string",
+ "enum": [
+ "IsMobile",
+ "RemoteAddr",
+ "RequestMethod",
+ "QueryString",
+ "PostArgs",
+ "RequestUri",
+ "RequestPath",
+ "RequestFilename",
+ "RequestFilenameExtension",
+ "RequestHeader",
+ "RequestBody",
+ "RequestScheme"
+ ],
+ "x-ms-enum": {
+ "name": "RulesEngineMatchVariable",
+ "modelAsString": true
+ }
+ },
+ "selector": {
+ "description": "Name of selector in RequestHeader or RequestBody to be matched",
+ "type": "string"
+ },
+ "rulesEngineOperator": {
+ "description": "Describes operator to apply to the match condition.",
+ "type": "string",
+ "enum": [
+ "Any",
+ "IPMatch",
+ "GeoMatch",
+ "Equal",
+ "Contains",
+ "LessThan",
+ "GreaterThan",
+ "LessThanOrEqual",
+ "GreaterThanOrEqual",
+ "BeginsWith",
+ "EndsWith"
+ ],
+ "x-ms-enum": {
+ "name": "RulesEngineOperator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if this is negate condition or not",
+ "type": "boolean"
+ },
+ "rulesEngineMatchValue": {
+ "description": "Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/transform"
+ }
+ }
+ }
+ },
+ "ResourceState": {
+ "title": "Resource status of the Front Door or Front Door SubResource.",
+ "readOnly": true,
+ "enum": [
+ "Creating",
+ "Enabling",
+ "Enabled",
+ "Disabling",
+ "Disabled",
+ "Deleting"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "FrontDoorResourceState",
+ "modelAsString": true
+ }
+ },
+ "RulesEngineAction": {
+ "description": "One or more actions that will execute, modifying the request and/or response.",
+ "properties": {
+ "requestHeaderActions": {
+ "description": "A list of header actions to apply from the request from AFD to the origin.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/HeaderAction"
+ }
+ },
+ "responseHeaderActions": {
+ "description": "A list of header actions to apply from the response from AFD to the client.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/HeaderAction"
+ }
+ },
+ "routeConfigurationOverride": {
+ "description": "Override the route configuration.",
+ "$ref": "#/definitions/RouteConfiguration"
+ }
+ }
+ },
+ "RulesEngine": {
+ "description": "A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and response.",
+ "properties": {
+ "properties": {
+ "description": "Properties of the Rules Engine Configuration.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/RulesEngineProperties"
+ },
+ "name": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Resource name."
+ },
+ "type": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Resource type."
+ },
+ "id": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Resource ID."
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "RulesEngineListResult": {
+ "description": "Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/RulesEngine"
+ },
+ "description": "List of rulesEngines within a Front Door."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of RulesEngine objects if there are any."
+ }
+ }
+ },
+ "RulesEngineProperties": {
+ "description": "The JSON object that contains the properties required to create a Rules Engine Configuration.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/RulesEngineUpdateParameters"
+ }
+ ],
+ "properties": {
+ "resourceState": {
+ "description": "Resource status.",
+ "$ref": "#/definitions/ResourceState"
+ }
+ }
+ },
+ "RulesEngineRule": {
+ "description": "Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers manipulation.",
+ "required": [
+ "action",
+ "name",
+ "priority"
+ ],
+ "properties": {
+ "name": {
+ "description": "A name to refer to this specific rule.",
+ "type": "string"
+ },
+ "priority": {
+ "description": "A priority assigned to this rule. ",
+ "type": "integer"
+ },
+ "action": {
+ "description": "Actions to perform on the request and response if all of the match conditions are met.",
+ "$ref": "#/definitions/RulesEngineAction"
+ },
+ "matchConditions": {
+ "description": "A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RulesEngineMatchCondition"
+ }
+ },
+ "matchProcessingBehavior": {
+ "description": "If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.",
+ "type": "string",
+ "enum": [
+ "Continue",
+ "Stop"
+ ],
+ "x-ms-enum": {
+ "name": "MatchProcessingBehavior",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "RulesEngineUpdateParameters": {
+ "description": "Rules Engine Configuration to apply to a Routing Rule.",
+ "type": "object",
+ "properties": {
+ "rules": {
+ "description": "A list of rules that define a particular Rules Engine Configuration.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RulesEngineRule"
+ }
+ }
+ }
+ },
+ "transform": {
+ "description": "Describes what transforms are applied before matching",
+ "type": "string",
+ "enum": [
+ "Lowercase",
+ "Uppercase",
+ "Trim",
+ "UrlDecode",
+ "UrlEncode",
+ "RemoveNulls"
+ ],
+ "x-ms-enum": {
+ "name": "transform",
+ "modelAsString": true
+ }
+ },
+ "ValidateCustomDomainInput": {
+ "description": "Input of the custom domain to be validated for DNS mapping.",
+ "type": "object",
+ "required": [
+ "hostName"
+ ],
+ "properties": {
+ "hostName": {
+ "description": "The host name of the custom domain. Must be a domain name.",
+ "type": "string"
+ }
+ }
+ },
+ "ValidateCustomDomainOutput": {
+ "description": "Output of custom domain validation.",
+ "type": "object",
+ "properties": {
+ "customDomainValidated": {
+ "description": "Indicates whether the custom domain is valid or not.",
+ "readOnly": true,
+ "type": "boolean"
+ },
+ "reason": {
+ "description": "The reason why the custom domain is not valid.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message describing why the custom domain is not valid.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "ErrorResponse": {
+ "description": "Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the error message.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Error code.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message indicating why the operation failed.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "CheckNameAvailabilityInput": {
+ "description": "Input of CheckNameAvailability API.",
+ "type": "object",
+ "required": [
+ "name",
+ "type"
+ ],
+ "properties": {
+ "name": {
+ "description": "The resource name to validate.",
+ "type": "string"
+ },
+ "type": {
+ "description": "The type of the resource whose name is to be validated.",
+ "$ref": "#/definitions/ResourceType"
+ }
+ }
+ },
+ "CheckNameAvailabilityOutput": {
+ "description": "Output of check name availability API.",
+ "type": "object",
+ "properties": {
+ "nameAvailability": {
+ "description": "Indicates whether the name is available.",
+ "readOnly": true,
+ "enum": [
+ "Available",
+ "Unavailable"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "Availability",
+ "modelAsString": true
+ }
+ },
+ "reason": {
+ "description": "The reason why the name is not available.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "message": {
+ "description": "The detailed error message describing why the name is not available.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "ResourceType": {
+ "description": "Type of Front Door resource used in CheckNameAvailability.",
+ "enum": [
+ "Microsoft.Network/frontDoors",
+ "Microsoft.Network/frontDoors/frontendEndpoints"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ResourceType",
+ "modelAsString": false
+ }
+ }
+ },
+ "parameters": {
+ "resourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$",
+ "minLength": 1,
+ "maxLength": 80,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Resource group within the Azure subscription."
+ },
+ "frontDoorNameParameter": {
+ "name": "frontDoorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-new-pattern": "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$",
+ "pattern": "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$",
+ "minLength": 5,
+ "maxLength": 64,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Front Door which is globally unique."
+ },
+ "routingRuleNameParameter": {
+ "name": "routingRuleName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$",
+ "x-previous-pattern": "^[-\\w\\d\\._]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Routing Rule which is unique within the Front Door."
+ },
+ "healthProbeSettingsNameParameter": {
+ "name": "healthProbeSettingsName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$",
+ "x-previous-pattern": "^[-\\w\\d\\._]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the health probe settings which is unique within the Front Door."
+ },
+ "loadBalancingSettingsNameParameter": {
+ "name": "loadBalancingSettingsName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$",
+ "x-previous-pattern": "^[-\\w\\d\\._]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the load balancing settings which is unique within the Front Door."
+ },
+ "backendPoolNameParameter": {
+ "name": "backendPoolName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$",
+ "x-previous-pattern": "^[-\\w\\d\\._]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Backend Pool which is unique within the Front Door."
+ },
+ "frontendEndpointNameParameter": {
+ "name": "frontendEndpointName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$",
+ "x-previous-pattern": "^[-\\w\\d\\._]+$",
+ "minLength": 1,
+ "maxLength": 255,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Frontend endpoint which is unique within the Front Door."
+ },
+ "rulesEngineNameParameter": {
+ "name": "rulesEngineName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$",
+ "x-previous-pattern": "^[-\\w\\d\\._]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Rules Engine which is unique within the Front Door."
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/network.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/network.json
new file mode 100644
index 000000000000..953304d73a0e
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/network.json
@@ -0,0 +1,167 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "NetworkManagementClient",
+ "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.",
+ "version": "2020-04-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json",
+ "text/json"
+ ],
+ "produces": [
+ "application/json",
+ "text/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {},
+ "definitions": {
+ "ErrorDetails": {
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "target": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ }
+ },
+ "Error": {
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "target": {
+ "type": "string"
+ },
+ "details": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ },
+ "innerError": {
+ "type": "string"
+ }
+ }
+ },
+ "AzureAsyncOperationResult": {
+ "properties": {
+ "status": {
+ "type": "string",
+ "description": "Status of the Azure async operation. Possible values are: 'InProgress', 'Succeeded', and 'Failed'.",
+ "enum": [
+ "InProgress",
+ "Succeeded",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "NetworkOperationStatus",
+ "modelAsString": true
+ }
+ },
+ "error": {
+ "$ref": "#/definitions/Error"
+ }
+ },
+ "description": "The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure."
+ },
+ "Resource": {
+ "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."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags."
+ }
+ },
+ "description": "Common resource representation.",
+ "x-ms-azure-resource": true
+ },
+ "SubResource": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ },
+ "description": "Reference to another subresource.",
+ "x-ms-azure-resource": true
+ },
+ "TagsObject": {
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags."
+ }
+ },
+ "description": "Tags object for patch operations."
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The 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."
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/webapplicationfirewall.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/webapplicationfirewall.json
new file mode 100644
index 000000000000..19e3bb64f699
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-04-01/webapplicationfirewall.json
@@ -0,0 +1,902 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-04-01",
+ "title": "WebApplicationFirewallManagement",
+ "description": "APIs to manage web application firewall rules."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies": {
+ "get": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Lists all of the protection policies within a resource group.",
+ "operationId": "Policies_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicyList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Policies in a Resource Group": {
+ "$ref": "./examples/WafListPolicies.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}": {
+ "get": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Retrieve protection policy with specified name within a resource group.",
+ "operationId": "Policies_Get",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Policy": {
+ "$ref": "./examples/WafPolicyGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Create or update policy with specified rule set name within a resource group.",
+ "operationId": "Policies_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "description": "Policy to be created.",
+ "in": "body",
+ "name": "parameters",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ },
+ "201": {
+ "description": "Created. The request has been fulfilled and a new protection policy has been created.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ },
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Creates specific policy": {
+ "$ref": "./examples/WafPolicyCreateOrUpdate.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Deletes Policy",
+ "operationId": "Policies_Delete",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete successful."
+ },
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously."
+ },
+ "204": {
+ "description": "No Content. The request has been accepted but the policy was not found."
+ }
+ },
+ "x-ms-examples": {
+ "Delete protection policy": {
+ "$ref": "./examples/WafPolicyDelete.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets": {
+ "get": {
+ "tags": [
+ "WebApplicationFirewallManagedRuleSets"
+ ],
+ "description": "Lists all available managed rule sets.",
+ "operationId": "ManagedRuleSets_List",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The operation returns a list of all available web application firewall managed rule sets.",
+ "schema": {
+ "$ref": "#/definitions/ManagedRuleSetDefinitionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Policies in a Resource Group": {
+ "$ref": "./examples/WafListManagedRuleSets.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "WebApplicationFirewallPolicy": {
+ "description": "Defines web application firewall policy.",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties of the web application firewall policy.",
+ "$ref": "#/definitions/WebApplicationFirewallPolicyProperties"
+ },
+ "etag": {
+ "type": "string",
+ "description": "Gets a unique read-only string that changes whenever the resource is updated."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/Resource"
+ }
+ ]
+ },
+ "WebApplicationFirewallPolicyProperties": {
+ "description": "Defines web application firewall policy properties.",
+ "properties": {
+ "policySettings": {
+ "description": "Describes settings for the policy.",
+ "$ref": "#/definitions/PolicySettings"
+ },
+ "customRules": {
+ "description": "Describes custom rules inside the policy.",
+ "$ref": "#/definitions/CustomRuleList"
+ },
+ "managedRules": {
+ "description": "Describes managed rules inside the policy.",
+ "$ref": "#/definitions/ManagedRuleSetList"
+ },
+ "frontendEndpointLinks": {
+ "description": "Describes Frontend Endpoints associated with this Web Application Firewall policy.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/FrontendEndpointLink"
+ }
+ },
+ "routingRuleLinks": {
+ "description": "Describes Routing Rules associated with this Web Application Firewall policy.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/RoutingRuleLink"
+ }
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Provisioning state of the policy."
+ },
+ "resourceState": {
+ "title": "Resource status of the policy.",
+ "readOnly": true,
+ "enum": [
+ "Creating",
+ "Enabling",
+ "Enabled",
+ "Disabling",
+ "Disabled",
+ "Deleting"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PolicyResourceState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "WebApplicationFirewallPolicyList": {
+ "description": "Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ },
+ "description": "List of WebApplicationFirewallPolicies within a resource group."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of WebApplicationFirewallPolicy objects if there are any."
+ }
+ }
+ },
+ "PolicySettings": {
+ "description": "Defines top-level WebApplicationFirewallPolicy configuration settings.",
+ "properties": {
+ "enabledState": {
+ "description": "Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ],
+ "x-ms-enum": {
+ "name": "PolicyEnabledState",
+ "modelAsString": true
+ }
+ },
+ "mode": {
+ "description": "Describes if it is in detection mode or prevention mode at policy level.",
+ "type": "string",
+ "enum": [
+ "Prevention",
+ "Detection"
+ ],
+ "x-ms-enum": {
+ "name": "PolicyMode",
+ "modelAsString": true
+ }
+ },
+ "redirectUrl": {
+ "description": "If action type is redirect, this field represents redirect URL for the client.",
+ "type": "string"
+ },
+ "customBlockResponseStatusCode": {
+ "description": "If the action type is block, customer can override the response status code.",
+ "type": "integer"
+ },
+ "customBlockResponseBody": {
+ "description": "If the action type is block, customer can override the response body. The body must be specified in base64 encoding.",
+ "type": "string",
+ "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
+ }
+ }
+ },
+ "CustomRuleList": {
+ "description": "Defines contents of custom rules",
+ "properties": {
+ "rules": {
+ "description": "List of rules",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CustomRule"
+ }
+ }
+ }
+ },
+ "CustomRule": {
+ "description": "Defines contents of a web application rule",
+ "required": [
+ "priority",
+ "ruleType",
+ "matchConditions",
+ "action"
+ ],
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Describes the name of the rule.",
+ "maxLength": 128
+ },
+ "priority": {
+ "description": "Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.",
+ "type": "integer"
+ },
+ "enabledState": {
+ "description": "Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ],
+ "x-ms-enum": {
+ "name": "CustomRuleEnabledState",
+ "modelAsString": true
+ }
+ },
+ "ruleType": {
+ "description": "Describes type of rule.",
+ "type": "string",
+ "enum": [
+ "MatchRule",
+ "RateLimitRule"
+ ],
+ "x-ms-enum": {
+ "name": "RuleType",
+ "modelAsString": true
+ }
+ },
+ "rateLimitDurationInMinutes": {
+ "description": "Time window for resetting the rate limit count. Default is 1 minute.",
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 5
+ },
+ "rateLimitThreshold": {
+ "description": "Number of allowed requests per client within the time window.",
+ "type": "integer",
+ "minimum": 0
+ },
+ "matchConditions": {
+ "description": "List of match conditions.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MatchCondition"
+ }
+ },
+ "action": {
+ "description": "Describes what action to be applied when rule matches.",
+ "$ref": "#/definitions/ActionType"
+ }
+ }
+ },
+ "TransformType": {
+ "description": "Describes what transforms applied before matching.",
+ "type": "string",
+ "enum": [
+ "Lowercase",
+ "Uppercase",
+ "Trim",
+ "UrlDecode",
+ "UrlEncode",
+ "RemoveNulls"
+ ],
+ "x-ms-enum": {
+ "name": "TransformType",
+ "modelAsString": true
+ }
+ },
+ "MatchCondition": {
+ "description": "Define a match condition.",
+ "required": [
+ "matchVariable",
+ "operator",
+ "matchValue"
+ ],
+ "properties": {
+ "matchVariable": {
+ "description": "Request variable to compare with.",
+ "type": "string",
+ "enum": [
+ "RemoteAddr",
+ "RequestMethod",
+ "QueryString",
+ "PostArgs",
+ "RequestUri",
+ "RequestHeader",
+ "RequestBody",
+ "Cookies",
+ "SocketAddr"
+ ],
+ "x-ms-enum": {
+ "name": "MatchVariable",
+ "modelAsString": true
+ }
+ },
+ "selector": {
+ "description": "Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.",
+ "type": "string"
+ },
+ "operator": {
+ "description": "Comparison type to use for matching with the variable value.",
+ "type": "string",
+ "enum": [
+ "Any",
+ "IPMatch",
+ "GeoMatch",
+ "Equal",
+ "Contains",
+ "LessThan",
+ "GreaterThan",
+ "LessThanOrEqual",
+ "GreaterThanOrEqual",
+ "BeginsWith",
+ "EndsWith",
+ "RegEx"
+ ],
+ "x-ms-enum": {
+ "name": "Operator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if the result of this condition should be negated.",
+ "type": "boolean"
+ },
+ "matchValue": {
+ "description": "List of possible match values.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TransformType"
+ }
+ }
+ }
+ },
+ "ManagedRuleSetList": {
+ "description": "Defines the list of managed rule sets for the policy.",
+ "properties": {
+ "managedRuleSets": {
+ "description": "List of rule sets.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleSet"
+ }
+ }
+ }
+ },
+ "ManagedRuleSet": {
+ "type": "object",
+ "description": "Defines a managed rule set.",
+ "required": [
+ "ruleSetType",
+ "ruleSetVersion"
+ ],
+ "properties": {
+ "ruleSetType": {
+ "description": "Defines the rule set type to use.",
+ "type": "string"
+ },
+ "ruleSetVersion": {
+ "description": "Defines the version of the rule set to use.",
+ "type": "string"
+ },
+ "exclusions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleExclusion"
+ },
+ "description": "Describes the exclusions that are applied to all rules in the set."
+ },
+ "ruleGroupOverrides": {
+ "description": "Defines the rule group overrides to apply to the rule set.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleGroupOverride"
+ }
+ }
+ }
+ },
+ "ManagedRuleGroupOverride": {
+ "description": "Defines a managed rule group override setting.",
+ "required": [
+ "ruleGroupName"
+ ],
+ "properties": {
+ "ruleGroupName": {
+ "description": "Describes the managed rule group to override.",
+ "type": "string"
+ },
+ "exclusions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleExclusion"
+ },
+ "description": "Describes the exclusions that are applied to all rules in the group."
+ },
+ "rules": {
+ "description": "List of rules that will be disabled. If none specified, all rules in the group will be disabled.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleOverride"
+ }
+ }
+ }
+ },
+ "ManagedRuleOverride": {
+ "description": "Defines a managed rule group override setting.",
+ "required": [
+ "ruleId"
+ ],
+ "properties": {
+ "ruleId": {
+ "description": "Identifier for the managed rule.",
+ "type": "string"
+ },
+ "enabledState": {
+ "description": "Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.",
+ "$ref": "#/definitions/ManagedRuleEnabledState"
+ },
+ "action": {
+ "description": "Describes the override action to be applied when rule matches.",
+ "$ref": "#/definitions/ActionType"
+ },
+ "exclusions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleExclusion"
+ },
+ "description": "Describes the exclusions that are applied to this specific rule."
+ }
+ }
+ },
+ "ManagedRuleSetDefinitionList": {
+ "description": "List of managed rule set definitions available for use in a policy.",
+ "properties": {
+ "value": {
+ "description": "List of managed rule set definitions.",
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleSetDefinition"
+ }
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to retrieve next set of managed rule set definitions."
+ }
+ }
+ },
+ "ManagedRuleSetDefinition": {
+ "description": "Describes the a managed rule set definition.",
+ "properties": {
+ "properties": {
+ "description": "Properties for a managed rule set definition.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ManagedRuleSetDefinitionProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/Resource"
+ }
+ ]
+ },
+ "ManagedRuleSetDefinitionProperties": {
+ "description": "Properties for a managed rule set definition.",
+ "properties": {
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Provisioning state of the managed rule set."
+ },
+ "ruleSetId": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Id of the managed rule set."
+ },
+ "ruleSetType": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Type of the managed rule set."
+ },
+ "ruleSetVersion": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Version of the managed rule set type."
+ },
+ "ruleGroups": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/ManagedRuleGroupDefinition"
+ },
+ "description": "Rule groups of the managed rule set."
+ }
+ }
+ },
+ "ManagedRuleGroupDefinition": {
+ "description": "Describes a managed rule group.",
+ "properties": {
+ "ruleGroupName": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Name of the managed rule group."
+ },
+ "description": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Description of the managed rule group."
+ },
+ "rules": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/ManagedRuleDefinition"
+ },
+ "description": "List of rules within the managed rule group."
+ }
+ }
+ },
+ "ManagedRuleDefinition": {
+ "description": "Describes a managed rule definition.",
+ "properties": {
+ "ruleId": {
+ "description": "Identifier for the managed rule.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "defaultState": {
+ "description": "Describes the default state for the managed rule.",
+ "readOnly": true,
+ "$ref": "#/definitions/ManagedRuleEnabledState"
+ },
+ "defaultAction": {
+ "description": "Describes the default action to be applied when the managed rule matches.",
+ "readOnly": true,
+ "$ref": "#/definitions/ActionType"
+ },
+ "description": {
+ "description": "Describes the functionality of the managed rule.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "ManagedRuleExclusion": {
+ "required": [
+ "matchVariable",
+ "selectorMatchOperator",
+ "selector"
+ ],
+ "description": "Exclude variables from managed rule evaluation.",
+ "properties": {
+ "matchVariable": {
+ "type": "string",
+ "enum": [
+ "RequestHeaderNames",
+ "RequestCookieNames",
+ "QueryStringArgNames",
+ "RequestBodyPostArgNames"
+ ],
+ "description": "The variable type to be excluded.",
+ "x-ms-enum": {
+ "name": "ManagedRuleExclusionMatchVariable",
+ "modelAsString": true
+ }
+ },
+ "selectorMatchOperator": {
+ "type": "string",
+ "enum": [
+ "Equals",
+ "Contains",
+ "StartsWith",
+ "EndsWith",
+ "EqualsAny"
+ ],
+ "description": "Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.",
+ "x-ms-enum": {
+ "name": "ManagedRuleExclusionSelectorMatchOperator",
+ "modelAsString": true
+ }
+ },
+ "selector": {
+ "type": "string",
+ "description": "Selector value for which elements in the collection this exclusion applies to."
+ }
+ }
+ },
+ "ActionType": {
+ "description": "Defines the action to take on rule match.",
+ "type": "string",
+ "enum": [
+ "Allow",
+ "Block",
+ "Log",
+ "Redirect"
+ ],
+ "x-ms-enum": {
+ "name": "ActionType",
+ "modelAsString": true
+ }
+ },
+ "ManagedRuleEnabledState": {
+ "description": "Describes if the managed rule is in enabled or disabled state.",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ],
+ "x-ms-enum": {
+ "name": "ManagedRuleEnabledState",
+ "modelAsString": true
+ }
+ },
+ "ErrorResponse": {
+ "description": "Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the error message.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Error code.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message indicating why the operation failed.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "FrontendEndpointLink": {
+ "description": "Defines the Resource ID for a Frontend Endpoint.",
+ "type": "object",
+ "readOnly": true,
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ }
+ },
+ "RoutingRuleLink": {
+ "description": "Defines the Resource ID for a Routing Rule.",
+ "type": "object",
+ "readOnly": true,
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ }
+ }
+ },
+ "parameters": {
+ "PolicyNameParameter": {
+ "name": "policyName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "maxLength": 128,
+ "x-ms-parameter-location": "method",
+ "description": "The name of the Web Application Firewall Policy."
+ },
+ "ResourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$",
+ "minLength": 1,
+ "maxLength": 80,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Resource group within the Azure subscription."
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorCreate.json
index 5957738fe115..1138b58eb7f9 100644
--- a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorCreate.json
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorCreate.json
@@ -38,7 +38,10 @@
"rulesEngine": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
},
- "enabledState": "Enabled"
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
}
}
],
@@ -173,7 +176,10 @@
"rulesEngine": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
},
- "enabledState": "Enabled"
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
}
}
],
@@ -318,7 +324,10 @@
"rulesEngine": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
},
- "enabledState": "Enabled"
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
}
}
],
@@ -463,7 +472,10 @@
"rulesEngine": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
},
- "enabledState": "Enabled"
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
}
}
],
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorGet.json
index 64b071212fd3..36c43313a8d6 100644
--- a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorGet.json
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorGet.json
@@ -47,7 +47,10 @@
"rulesEngine": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
},
- "enabledState": "Enabled"
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
}
}
],
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorList.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorList.json
index f52102336d9c..d57b7873351e 100644
--- a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorList.json
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorList.json
@@ -48,7 +48,10 @@
"rulesEngine": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
},
- "enabledState": "Enabled"
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
}
}
],
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorListAll.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorListAll.json
index 418a3edbe906..2f72bfadff7d 100644
--- a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorListAll.json
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/FrontdoorListAll.json
@@ -47,7 +47,10 @@
"rulesEngine": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/rulesEngines/rulesEngine1"
},
- "enabledState": "Enabled"
+ "enabledState": "Enabled",
+ "webApplicationFirewallPolicyLink": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1"
+ }
}
}
],
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafListManagedRuleSets.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafListManagedRuleSets.json
new file mode 100644
index 000000000000..b6ee1c3ee4db
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafListManagedRuleSets.json
@@ -0,0 +1,69 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "DefaultRuleSet_1.0",
+ "id": "/subscriptions/subid/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "ruleSetId": "8125d145-ddc5-4d90-9bc3-24c5f2de69a2",
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "ruleGroups": [
+ {
+ "ruleGroupName": "SQLI",
+ "description": "SQL injection",
+ "rules": [
+ {
+ "ruleId": "942100",
+ "description": "SQL Injection Attack Detected via libinjection",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ },
+ {
+ "ruleId": "942110",
+ "description": "SQL Injection Attack: Common Injection Testing Detected",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ }
+ ]
+ },
+ {
+ "ruleGroupName": "XSS",
+ "description": "Cross-site scripting",
+ "rules": [
+ {
+ "ruleId": "941100",
+ "description": "XSS Attack Detected via libinjection",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ },
+ {
+ "ruleId": "941101",
+ "description": "XSS Attack Detected via libinjection",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ },
+ {
+ "ruleId": "941110",
+ "description": "XSS Filter - Category 1: Script Tag Vector",
+ "defaultState": "Enabled",
+ "defaultAction": "Block"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafListPolicies.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafListPolicies.json
new file mode 100644
index 000000000000..8617a12656df
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafListPolicies.json
@@ -0,0 +1,130 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontdoors/fd1/frontendendpoints/fd1-azurefd-net"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyCreateOrUpdate.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyCreateOrUpdate.json
new file mode 100644
index 000000000000..f4c1a6c18373
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyCreateOrUpdate.json
@@ -0,0 +1,492 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "Policy1",
+ "parameters": {
+ "properties": {
+ "policySettings": {
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "ruleType": "RateLimitRule",
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "operator": "IPMatch",
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ]
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "ruleType": "MatchRule",
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "operator": "GeoMatch",
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "operator": "Contains",
+ "selector": "UserAgent",
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "exclusions": [
+ {
+ "matchVariable": "RequestCookieNames",
+ "selectorMatchOperator": "StartsWith",
+ "selector": "token"
+ }
+ ],
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect",
+ "exclusions": [
+ {
+ "matchVariable": "QueryStringArgNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "query"
+ }
+ ]
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "exclusions": [
+ {
+ "matchVariable": "RequestCookieNames",
+ "selectorMatchOperator": "StartsWith",
+ "selector": "token"
+ }
+ ],
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect",
+ "exclusions": [
+ {
+ "matchVariable": "QueryStringArgNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "query"
+ }
+ ]
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": []
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "exclusions": [
+ {
+ "matchVariable": "RequestCookieNames",
+ "selectorMatchOperator": "StartsWith",
+ "selector": "token"
+ }
+ ],
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect",
+ "exclusions": [
+ {
+ "matchVariable": "QueryStringArgNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "query"
+ }
+ ]
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": []
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "exclusions": [
+ {
+ "matchVariable": "RequestCookieNames",
+ "selectorMatchOperator": "StartsWith",
+ "selector": "token"
+ }
+ ],
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect",
+ "exclusions": [
+ {
+ "matchVariable": "QueryStringArgNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "query"
+ }
+ ]
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyDelete.json
new file mode 100644
index 000000000000..c887714443bf
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "Policy1"
+ },
+ "responses": {
+ "200": {},
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyGet.json
new file mode 100644
index 000000000000..aef1b725a529
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/examples/WafPolicyGet.json
@@ -0,0 +1,127 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "policyName": "Policy1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "Policy1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
+ "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
+ "tags": {
+ "key1": "value1",
+ "key2": "value2"
+ },
+ "location": "WestUs",
+ "properties": {
+ "resourceState": "Enabled",
+ "provisioningState": "Succeeded",
+ "policySettings": {
+ "enabledState": "Enabled",
+ "mode": "Prevention",
+ "redirectUrl": "http://www.bing.com",
+ "customBlockResponseStatusCode": 499,
+ "customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
+ },
+ "customRules": {
+ "rules": [
+ {
+ "name": "Rule1",
+ "priority": 1,
+ "enabledState": "Enabled",
+ "ruleType": "RateLimitRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 1000,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "IPMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "192.168.1.0/24",
+ "10.0.0.0/24"
+ ],
+ "transforms": []
+ }
+ ],
+ "action": "Block"
+ },
+ {
+ "name": "Rule2",
+ "priority": 2,
+ "enabledState": "Enabled",
+ "ruleType": "MatchRule",
+ "rateLimitDurationInMinutes": 0,
+ "rateLimitThreshold": 0,
+ "matchConditions": [
+ {
+ "matchVariable": "RemoteAddr",
+ "selector": null,
+ "operator": "GeoMatch",
+ "negateCondition": false,
+ "matchValue": [
+ "CH"
+ ]
+ },
+ {
+ "matchVariable": "RequestHeader",
+ "selector": "UserAgent",
+ "operator": "Contains",
+ "negateCondition": false,
+ "matchValue": [
+ "windows"
+ ],
+ "transforms": [
+ "Lowercase"
+ ]
+ }
+ ],
+ "action": "Block"
+ }
+ ]
+ },
+ "managedRules": {
+ "managedRuleSets": [
+ {
+ "ruleSetType": "DefaultRuleSet",
+ "ruleSetVersion": "1.0",
+ "exclusions": [
+ {
+ "matchVariable": "RequestHeaderNames",
+ "selectorMatchOperator": "Equals",
+ "selector": "User-Agent"
+ }
+ ],
+ "ruleGroupOverrides": [
+ {
+ "ruleGroupName": "SQLI",
+ "rules": [
+ {
+ "ruleId": "942100",
+ "enabledState": "Enabled",
+ "action": "Redirect"
+ },
+ {
+ "ruleId": "942110",
+ "enabledState": "Disabled"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "frontendEndpointLinks": [
+ {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontdoors/fd1/frontendendpoints/fd1-azurefd-net"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/frontdoor.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/frontdoor.json
index 9358ce717d11..1aa59b036ba2 100644
--- a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/frontdoor.json
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/frontdoor.json
@@ -1124,6 +1124,16 @@
"rulesEngine": {
"description": "A reference to a specific Rules Engine Configuration to apply to this route.",
"$ref": "./network.json#/definitions/SubResource"
+ },
+ "webApplicationFirewallPolicyLink": {
+ "description": "Defines the Web Application Firewall policy for each routing rule (if applicable)",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ }
}
}
},
@@ -1262,7 +1272,7 @@
],
"x-ms-enum": {
"name": "PrivateEndpointStatus",
- "modelAsString": false
+ "modelAsString": true
}
},
"privateLinkApprovalMessage": {
diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/webapplicationfirewall.json b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/webapplicationfirewall.json
new file mode 100644
index 000000000000..e1deda8ac3cd
--- /dev/null
+++ b/specification/frontdoor/resource-manager/Microsoft.Network/stable/2020-05-01/webapplicationfirewall.json
@@ -0,0 +1,902 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-05-01",
+ "title": "WebApplicationFirewallManagement",
+ "description": "APIs to manage web application firewall rules."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies": {
+ "get": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Lists all of the protection policies within a resource group.",
+ "operationId": "Policies_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicyList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Policies in a Resource Group": {
+ "$ref": "./examples/WafListPolicies.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}": {
+ "get": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Retrieve protection policy with specified name within a resource group.",
+ "operationId": "Policies_Get",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Policy": {
+ "$ref": "./examples/WafPolicyGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Create or update policy with specified rule set name within a resource group.",
+ "operationId": "Policies_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "description": "Policy to be created.",
+ "in": "body",
+ "name": "parameters",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ },
+ "201": {
+ "description": "Created. The request has been fulfilled and a new protection policy has been created.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ },
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
+ "schema": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Creates specific policy": {
+ "$ref": "./examples/WafPolicyCreateOrUpdate.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "WebApplicationFirewallPolicies"
+ ],
+ "description": "Deletes Policy",
+ "operationId": "Policies_Delete",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PolicyNameParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Delete successful."
+ },
+ "202": {
+ "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously."
+ },
+ "204": {
+ "description": "No Content. The request has been accepted but the policy was not found."
+ }
+ },
+ "x-ms-examples": {
+ "Delete protection policy": {
+ "$ref": "./examples/WafPolicyDelete.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets": {
+ "get": {
+ "tags": [
+ "WebApplicationFirewallManagedRuleSets"
+ ],
+ "description": "Lists all available managed rule sets.",
+ "operationId": "ManagedRuleSets_List",
+ "parameters": [
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The operation returns a list of all available web application firewall managed rule sets.",
+ "schema": {
+ "$ref": "#/definitions/ManagedRuleSetDefinitionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Policies in a Resource Group": {
+ "$ref": "./examples/WafListManagedRuleSets.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "WebApplicationFirewallPolicy": {
+ "description": "Defines web application firewall policy.",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Properties of the web application firewall policy.",
+ "$ref": "#/definitions/WebApplicationFirewallPolicyProperties"
+ },
+ "etag": {
+ "type": "string",
+ "description": "Gets a unique read-only string that changes whenever the resource is updated."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/Resource"
+ }
+ ]
+ },
+ "WebApplicationFirewallPolicyProperties": {
+ "description": "Defines web application firewall policy properties.",
+ "properties": {
+ "policySettings": {
+ "description": "Describes settings for the policy.",
+ "$ref": "#/definitions/PolicySettings"
+ },
+ "customRules": {
+ "description": "Describes custom rules inside the policy.",
+ "$ref": "#/definitions/CustomRuleList"
+ },
+ "managedRules": {
+ "description": "Describes managed rules inside the policy.",
+ "$ref": "#/definitions/ManagedRuleSetList"
+ },
+ "frontendEndpointLinks": {
+ "description": "Describes Frontend Endpoints associated with this Web Application Firewall policy.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/FrontendEndpointLink"
+ }
+ },
+ "routingRuleLinks": {
+ "description": "Describes Routing Rules associated with this Web Application Firewall policy.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/RoutingRuleLink"
+ }
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Provisioning state of the policy."
+ },
+ "resourceState": {
+ "title": "Resource status of the policy.",
+ "readOnly": true,
+ "enum": [
+ "Creating",
+ "Enabling",
+ "Enabled",
+ "Disabling",
+ "Disabled",
+ "Deleting"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PolicyResourceState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "WebApplicationFirewallPolicyList": {
+ "description": "Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/WebApplicationFirewallPolicy"
+ },
+ "description": "List of WebApplicationFirewallPolicies within a resource group."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of WebApplicationFirewallPolicy objects if there are any."
+ }
+ }
+ },
+ "PolicySettings": {
+ "description": "Defines top-level WebApplicationFirewallPolicy configuration settings.",
+ "properties": {
+ "enabledState": {
+ "description": "Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ],
+ "x-ms-enum": {
+ "name": "PolicyEnabledState",
+ "modelAsString": true
+ }
+ },
+ "mode": {
+ "description": "Describes if it is in detection mode or prevention mode at policy level.",
+ "type": "string",
+ "enum": [
+ "Prevention",
+ "Detection"
+ ],
+ "x-ms-enum": {
+ "name": "PolicyMode",
+ "modelAsString": true
+ }
+ },
+ "redirectUrl": {
+ "description": "If action type is redirect, this field represents redirect URL for the client.",
+ "type": "string"
+ },
+ "customBlockResponseStatusCode": {
+ "description": "If the action type is block, customer can override the response status code.",
+ "type": "integer"
+ },
+ "customBlockResponseBody": {
+ "description": "If the action type is block, customer can override the response body. The body must be specified in base64 encoding.",
+ "type": "string",
+ "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
+ }
+ }
+ },
+ "CustomRuleList": {
+ "description": "Defines contents of custom rules",
+ "properties": {
+ "rules": {
+ "description": "List of rules",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CustomRule"
+ }
+ }
+ }
+ },
+ "CustomRule": {
+ "description": "Defines contents of a web application rule",
+ "required": [
+ "priority",
+ "ruleType",
+ "matchConditions",
+ "action"
+ ],
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Describes the name of the rule.",
+ "maxLength": 128
+ },
+ "priority": {
+ "description": "Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.",
+ "type": "integer"
+ },
+ "enabledState": {
+ "description": "Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ],
+ "x-ms-enum": {
+ "name": "CustomRuleEnabledState",
+ "modelAsString": true
+ }
+ },
+ "ruleType": {
+ "description": "Describes type of rule.",
+ "type": "string",
+ "enum": [
+ "MatchRule",
+ "RateLimitRule"
+ ],
+ "x-ms-enum": {
+ "name": "RuleType",
+ "modelAsString": true
+ }
+ },
+ "rateLimitDurationInMinutes": {
+ "description": "Time window for resetting the rate limit count. Default is 1 minute.",
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 5
+ },
+ "rateLimitThreshold": {
+ "description": "Number of allowed requests per client within the time window.",
+ "type": "integer",
+ "minimum": 0
+ },
+ "matchConditions": {
+ "description": "List of match conditions.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MatchCondition"
+ }
+ },
+ "action": {
+ "description": "Describes what action to be applied when rule matches.",
+ "$ref": "#/definitions/ActionType"
+ }
+ }
+ },
+ "TransformType": {
+ "description": "Describes what transforms applied before matching.",
+ "type": "string",
+ "enum": [
+ "Lowercase",
+ "Uppercase",
+ "Trim",
+ "UrlDecode",
+ "UrlEncode",
+ "RemoveNulls"
+ ],
+ "x-ms-enum": {
+ "name": "TransformType",
+ "modelAsString": true
+ }
+ },
+ "MatchCondition": {
+ "description": "Define a match condition.",
+ "required": [
+ "matchVariable",
+ "operator",
+ "matchValue"
+ ],
+ "properties": {
+ "matchVariable": {
+ "description": "Request variable to compare with.",
+ "type": "string",
+ "enum": [
+ "RemoteAddr",
+ "RequestMethod",
+ "QueryString",
+ "PostArgs",
+ "RequestUri",
+ "RequestHeader",
+ "RequestBody",
+ "Cookies",
+ "SocketAddr"
+ ],
+ "x-ms-enum": {
+ "name": "MatchVariable",
+ "modelAsString": true
+ }
+ },
+ "selector": {
+ "description": "Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.",
+ "type": "string"
+ },
+ "operator": {
+ "description": "Comparison type to use for matching with the variable value.",
+ "type": "string",
+ "enum": [
+ "Any",
+ "IPMatch",
+ "GeoMatch",
+ "Equal",
+ "Contains",
+ "LessThan",
+ "GreaterThan",
+ "LessThanOrEqual",
+ "GreaterThanOrEqual",
+ "BeginsWith",
+ "EndsWith",
+ "RegEx"
+ ],
+ "x-ms-enum": {
+ "name": "Operator",
+ "modelAsString": true
+ }
+ },
+ "negateCondition": {
+ "description": "Describes if the result of this condition should be negated.",
+ "type": "boolean"
+ },
+ "matchValue": {
+ "description": "List of possible match values.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transforms": {
+ "description": "List of transforms.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TransformType"
+ }
+ }
+ }
+ },
+ "ManagedRuleSetList": {
+ "description": "Defines the list of managed rule sets for the policy.",
+ "properties": {
+ "managedRuleSets": {
+ "description": "List of rule sets.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleSet"
+ }
+ }
+ }
+ },
+ "ManagedRuleSet": {
+ "type": "object",
+ "description": "Defines a managed rule set.",
+ "required": [
+ "ruleSetType",
+ "ruleSetVersion"
+ ],
+ "properties": {
+ "ruleSetType": {
+ "description": "Defines the rule set type to use.",
+ "type": "string"
+ },
+ "ruleSetVersion": {
+ "description": "Defines the version of the rule set to use.",
+ "type": "string"
+ },
+ "exclusions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleExclusion"
+ },
+ "description": "Describes the exclusions that are applied to all rules in the set."
+ },
+ "ruleGroupOverrides": {
+ "description": "Defines the rule group overrides to apply to the rule set.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleGroupOverride"
+ }
+ }
+ }
+ },
+ "ManagedRuleGroupOverride": {
+ "description": "Defines a managed rule group override setting.",
+ "required": [
+ "ruleGroupName"
+ ],
+ "properties": {
+ "ruleGroupName": {
+ "description": "Describes the managed rule group to override.",
+ "type": "string"
+ },
+ "exclusions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleExclusion"
+ },
+ "description": "Describes the exclusions that are applied to all rules in the group."
+ },
+ "rules": {
+ "description": "List of rules that will be disabled. If none specified, all rules in the group will be disabled.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleOverride"
+ }
+ }
+ }
+ },
+ "ManagedRuleOverride": {
+ "description": "Defines a managed rule group override setting.",
+ "required": [
+ "ruleId"
+ ],
+ "properties": {
+ "ruleId": {
+ "description": "Identifier for the managed rule.",
+ "type": "string"
+ },
+ "enabledState": {
+ "description": "Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.",
+ "$ref": "#/definitions/ManagedRuleEnabledState"
+ },
+ "action": {
+ "description": "Describes the override action to be applied when rule matches.",
+ "$ref": "#/definitions/ActionType"
+ },
+ "exclusions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleExclusion"
+ },
+ "description": "Describes the exclusions that are applied to this specific rule."
+ }
+ }
+ },
+ "ManagedRuleSetDefinitionList": {
+ "description": "List of managed rule set definitions available for use in a policy.",
+ "properties": {
+ "value": {
+ "description": "List of managed rule set definitions.",
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ManagedRuleSetDefinition"
+ }
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to retrieve next set of managed rule set definitions."
+ }
+ }
+ },
+ "ManagedRuleSetDefinition": {
+ "description": "Describes the a managed rule set definition.",
+ "properties": {
+ "properties": {
+ "description": "Properties for a managed rule set definition.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ManagedRuleSetDefinitionProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "./network.json#/definitions/Resource"
+ }
+ ]
+ },
+ "ManagedRuleSetDefinitionProperties": {
+ "description": "Properties for a managed rule set definition.",
+ "properties": {
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Provisioning state of the managed rule set."
+ },
+ "ruleSetId": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Id of the managed rule set."
+ },
+ "ruleSetType": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Type of the managed rule set."
+ },
+ "ruleSetVersion": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Version of the managed rule set type."
+ },
+ "ruleGroups": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/ManagedRuleGroupDefinition"
+ },
+ "description": "Rule groups of the managed rule set."
+ }
+ }
+ },
+ "ManagedRuleGroupDefinition": {
+ "description": "Describes a managed rule group.",
+ "properties": {
+ "ruleGroupName": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Name of the managed rule group."
+ },
+ "description": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Description of the managed rule group."
+ },
+ "rules": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/ManagedRuleDefinition"
+ },
+ "description": "List of rules within the managed rule group."
+ }
+ }
+ },
+ "ManagedRuleDefinition": {
+ "description": "Describes a managed rule definition.",
+ "properties": {
+ "ruleId": {
+ "description": "Identifier for the managed rule.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "defaultState": {
+ "description": "Describes the default state for the managed rule.",
+ "readOnly": true,
+ "$ref": "#/definitions/ManagedRuleEnabledState"
+ },
+ "defaultAction": {
+ "description": "Describes the default action to be applied when the managed rule matches.",
+ "readOnly": true,
+ "$ref": "#/definitions/ActionType"
+ },
+ "description": {
+ "description": "Describes the functionality of the managed rule.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "ManagedRuleExclusion": {
+ "required": [
+ "matchVariable",
+ "selectorMatchOperator",
+ "selector"
+ ],
+ "description": "Exclude variables from managed rule evaluation.",
+ "properties": {
+ "matchVariable": {
+ "type": "string",
+ "enum": [
+ "RequestHeaderNames",
+ "RequestCookieNames",
+ "QueryStringArgNames",
+ "RequestBodyPostArgNames"
+ ],
+ "description": "The variable type to be excluded.",
+ "x-ms-enum": {
+ "name": "ManagedRuleExclusionMatchVariable",
+ "modelAsString": true
+ }
+ },
+ "selectorMatchOperator": {
+ "type": "string",
+ "enum": [
+ "Equals",
+ "Contains",
+ "StartsWith",
+ "EndsWith",
+ "EqualsAny"
+ ],
+ "description": "Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.",
+ "x-ms-enum": {
+ "name": "ManagedRuleExclusionSelectorMatchOperator",
+ "modelAsString": true
+ }
+ },
+ "selector": {
+ "type": "string",
+ "description": "Selector value for which elements in the collection this exclusion applies to."
+ }
+ }
+ },
+ "ActionType": {
+ "description": "Defines the action to take on rule match.",
+ "type": "string",
+ "enum": [
+ "Allow",
+ "Block",
+ "Log",
+ "Redirect"
+ ],
+ "x-ms-enum": {
+ "name": "ActionType",
+ "modelAsString": true
+ }
+ },
+ "ManagedRuleEnabledState": {
+ "description": "Describes if the managed rule is in enabled or disabled state.",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ],
+ "x-ms-enum": {
+ "name": "ManagedRuleEnabledState",
+ "modelAsString": true
+ }
+ },
+ "ErrorResponse": {
+ "description": "Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the error message.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Error code.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message indicating why the operation failed.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "FrontendEndpointLink": {
+ "description": "Defines the Resource ID for a Frontend Endpoint.",
+ "type": "object",
+ "readOnly": true,
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ }
+ },
+ "RoutingRuleLink": {
+ "description": "Defines the Resource ID for a Routing Rule.",
+ "type": "object",
+ "readOnly": true,
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID."
+ }
+ }
+ }
+ },
+ "parameters": {
+ "PolicyNameParameter": {
+ "name": "policyName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "maxLength": 128,
+ "x-ms-parameter-location": "method",
+ "description": "The name of the Web Application Firewall Policy."
+ },
+ "ResourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$",
+ "minLength": 1,
+ "maxLength": 80,
+ "x-ms-parameter-location": "method",
+ "description": "Name of the Resource group within the Azure subscription."
+ }
+ }
+}
diff --git a/specification/frontdoor/resource-manager/readme.go.md b/specification/frontdoor/resource-manager/readme.go.md
index 7922be870998..e4b384f9f0c2 100644
--- a/specification/frontdoor/resource-manager/readme.go.md
+++ b/specification/frontdoor/resource-manager/readme.go.md
@@ -19,6 +19,7 @@ batch:
- tag: package-2019-04
- tag: package-2019-05
- tag: package-2020-01
+ - tag: package-2020-04
- tag: package-2020-05
```
@@ -31,6 +32,15 @@ Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-04' && $(go)
+output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-04-01/$(namespace)
+```
+
### Tag: package-2020-01 and go
These settings apply only when `--tag=package-2020-01 --go` is specified on the command line.
diff --git a/specification/frontdoor/resource-manager/readme.md b/specification/frontdoor/resource-manager/readme.md
index 2728dffd936e..4caa6148067b 100644
--- a/specification/frontdoor/resource-manager/readme.md
+++ b/specification/frontdoor/resource-manager/readme.md
@@ -40,7 +40,25 @@ input-file:
- Microsoft.Network/stable/2020-05-01/network.json
- Microsoft.Network/stable/2019-11-01/networkexperiment.json
- Microsoft.Network/stable/2020-05-01/frontdoor.json
-- Microsoft.Network/stable/2019-10-01/webapplicationfirewall.json
+- Microsoft.Network/stable/2020-05-01/webapplicationfirewall.json
+directive:
+ - where:
+ - $.paths
+ suppress:
+ - OperationsAPIImplementation
+```
+
+
+### Tag: package-2020-04
+
+These settings apply only when `--tag=package-2020-04` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-04'
+input-file:
+- Microsoft.Network/stable/2020-04-01/network.json
+- Microsoft.Network/stable/2019-11-01/networkexperiment.json
+- Microsoft.Network/stable/2020-04-01/frontdoor.json
+- Microsoft.Network/stable/2020-04-01/webapplicationfirewall.json
directive:
- where:
- $.paths
@@ -254,9 +272,13 @@ input-file:
- $(this-folder)/Microsoft.Network/stable/2020-05-01/network.json
- $(this-folder)/Microsoft.Network/stable/2019-11-01/networkexperiment.json
- $(this-folder)/Microsoft.Network/stable/2020-05-01/frontdoor.json
- - $(this-folder)/Microsoft.Network/stable/2019-10-01/webapplicationfirewall.json
+ - $(this-folder)/Microsoft.Network/stable/2020-05-01/webapplicationfirewall.json
+ - $(this-folder)/Microsoft.Network/stable/2020-04-01/network.json
+ - $(this-folder)/Microsoft.Network/stable/2020-04-01/frontdoor.json
+ - $(this-folder)/Microsoft.Network/stable/2020-04-01/webapplicationfirewall.json
- $(this-folder)/Microsoft.Network/stable/2020-01-01/network.json
- $(this-folder)/Microsoft.Network/stable/2020-01-01/frontdoor.json
+ - $(this-folder)/Microsoft.Network/stable/2019-10-01/webapplicationfirewall.json
- $(this-folder)/Microsoft.Network/stable/2019-11-01/network.json
- $(this-folder)/Microsoft.Network/stable/2019-05-01/frontdoor.json
- $(this-folder)/Microsoft.Network/stable/2019-05-01/network.json
diff --git a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/common/v1/definitions.json b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/common/v1/definitions.json
index e82904ba479c..e6b1fa62c385 100644
--- a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/common/v1/definitions.json
+++ b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/common/v1/definitions.json
@@ -26,9 +26,18 @@
"definitions": {
"ErrorResponse": {
"properties": {
- "message": {
- "description": "Error message indicating why the operation failed.",
- "type": "string"
+ "error": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Error code.",
+ "type": "string"
+ },
+ "message": {
+ "description": "Detail error message indicating why the operation failed.",
+ "type": "string"
+ }
+ }
}
},
"description": "Error response of an operation failure"
@@ -44,12 +53,12 @@
},
"name": {
"type": "string",
- "readOnly": true,
+ "readOnly": false,
"description": "Name of the guest configuration assignment."
},
"location": {
"type": "string",
- "readOnly": true,
+ "readOnly": false,
"description": "Region where the VM is located."
},
"type": {
@@ -178,6 +187,14 @@
"description": "The name of the virtual machine.",
"x-ms-parameter-location": "method"
},
+ "MachineNameParameter": {
+ "name": "machineName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the ARC machine.",
+ "x-ms-parameter-location": "method"
+ },
"ResourceGroupNameParameter": {
"name": "resourceGroupName",
"in": "path",
diff --git a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/createOrUpdateGuestConfigurationHCRPAssignment.json b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/createOrUpdateGuestConfigurationHCRPAssignment.json
new file mode 100644
index 000000000000..d85b484a1f0f
--- /dev/null
+++ b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/createOrUpdateGuestConfigurationHCRPAssignment.json
@@ -0,0 +1,104 @@
+{
+ "parameters": {
+ "subscriptionId": "mySubscriptionId",
+ "resourceGroupName": "myResourceGroupName",
+ "machineName": "myMachineName",
+ "guestConfigurationAssignmentName": "WhitelistedApplication",
+ "api-version": "2018-11-20",
+ "parameters": {
+ "location": "westcentralus",
+ "name": "WhitelistedApplication",
+ "properties": {
+ "context": "Azure policy",
+ "guestConfiguration": {
+ "name": "WhitelistedApplication",
+ "version": "1.*",
+ "configurationParameter": [
+ {
+ "name": "[InstalledApplication]bwhitelistedapp;Name",
+ "value": "NotePad,sql"
+ }
+ ],
+ "configurationSetting": {
+ "rebootIfNeeded": "False",
+ "actionAfterReboot": "ContinueConfiguration",
+ "configurationModeFrequencyMins": 15,
+ "configurationMode": "MonitorOnly"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "headers": {},
+ "body": {
+ "location": "westcentralus",
+ "id": null,
+ "name": "WhitelistedApplication",
+ "properties": {
+ "complianceStatus": "Pending",
+ "assignmentHash": null,
+ "latestReportId": null,
+ "lastComplianceStatusChecked": null,
+ "context": "Azure policy",
+ "guestConfiguration": {
+ "kind": null,
+ "name": "WhitelistedApplication",
+ "version": "1.0.0.3",
+ "contentUri": null,
+ "contentHash": null,
+ "configurationParameter": [
+ {
+ "name": "[InstalledApplication]bwhitelistedapp;Name",
+ "value": "NotePad,sql"
+ }
+ ],
+ "configurationSetting": {
+ "rebootIfNeeded": "False",
+ "actionAfterReboot": "ContinueConfiguration",
+ "configurationModeFrequencyMins": 15,
+ "configurationMode": "MonitorOnly"
+ }
+ },
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ "200": {
+ "headers": {},
+ "body": {
+ "location": "westcentralus",
+ "id": null,
+ "name": "WhitelistedApplication",
+ "properties": {
+ "complianceStatus": "Pending",
+ "assignmentHash": null,
+ "latestReportId": null,
+ "lastComplianceStatusChecked": null,
+ "context": "Azure policy",
+ "guestConfiguration": {
+ "kind": null,
+ "name": "WhitelistedApplication",
+ "version": "1.0.0.3",
+ "contentUri": null,
+ "contentHash": null,
+ "configurationParameter": [
+ {
+ "name": "[InstalledApplication]bwhitelistedapp;Name",
+ "value": "NotePad,sql"
+ }
+ ],
+ "configurationSetting": {
+ "rebootIfNeeded": "False",
+ "actionAfterReboot": "ContinueConfiguration",
+ "configurationModeFrequencyMins": 15,
+ "configurationMode": "MonitorOnly"
+ }
+ },
+ "provisioningState": "Succeeded"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/deleteGuestConfigurationHCRPAssignment.json b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/deleteGuestConfigurationHCRPAssignment.json
new file mode 100644
index 000000000000..4e192cdfbf22
--- /dev/null
+++ b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/deleteGuestConfigurationHCRPAssignment.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "mySubscriptionId",
+ "resourceGroupName": "myResourceGroupName",
+ "machineName": "myMachineName",
+ "guestConfigurationAssignmentName": "SecureProtocol",
+ "api-version": "2018-11-20"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/getGuestConfigurationHCRPAssignment.json b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/getGuestConfigurationHCRPAssignment.json
new file mode 100644
index 000000000000..65def9d2a1d4
--- /dev/null
+++ b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/getGuestConfigurationHCRPAssignment.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "subscriptionId": "mySubscriptionId",
+ "resourceGroupName": "myResourceGroupName",
+ "machineName": "myMachineName",
+ "guestConfigurationAssignmentName": "SecureProtocol",
+ "api-version": "2018-11-20"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "location": "centraluseuap",
+ "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol",
+ "name": "AuditSecureProtocol",
+ "properties": {
+ "complianceStatus": "Compliant",
+ "assignmentHash": "E0D8941DD713F284284561648C00C18FA76C8602943C7CD38AFD73B56AE4C35F.E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
+ "latestReportId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "lastComplianceStatusChecked": "2018-08-29T22:14:13Z",
+ "context": null,
+ "guestConfiguration": {
+ "kind": null,
+ "name": "AuditSecureProtocol",
+ "version": "1.0.0.3",
+ "contentUri": "https://mystorageaccount.blob.core.windows.net/builtinconfig/AuditSecureProtocol/AuditSecureProtocol_1.0.0.3.zip",
+ "contentHash": "content hash",
+ "configurationParameter": [],
+ "configurationSetting": null
+ },
+ "provisioningState": "Succeeded"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/getGuestConfigurationHCRPAssignmentReportById.json b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/getGuestConfigurationHCRPAssignmentReportById.json
new file mode 100644
index 000000000000..1d7d43e8929d
--- /dev/null
+++ b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/getGuestConfigurationHCRPAssignmentReportById.json
@@ -0,0 +1,95 @@
+{
+ "parameters": {
+ "subscriptionId": "mySubscriptionid",
+ "resourceGroupName": "myResourceGroupName",
+ "machineName": "myMachineName",
+ "guestConfigurationAssignmentName": "AuditSecureProtocol",
+ "reportId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "api-version": "2018-11-20"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "name": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "properties": {
+ "complianceStatus": "Compliant",
+ "assignment": {
+ "name": "AuditSecureProtocol",
+ "configuration": {
+ "name": "AuditSecureProtocol",
+ "version": "1.0.0.0"
+ }
+ },
+ "reportId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "vm": {
+ "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName",
+ "uuid": "vmuuid"
+ },
+ "details": {
+ "complianceStatus": "Compliant",
+ "startTime": "2018-08-29T22:13:53Z",
+ "endTime": "2018-08-29T22:14:13Z",
+ "jobId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "resources": [
+ {
+ "complianceStatus": "Compliant",
+ "reasons": [
+ {
+ "phrase": "Operation successful.",
+ "code": "DSC::RESOURCE::SUCCESS"
+ }
+ ],
+ "properties": {
+ "ConfigurationName": "IsWebServerSecure",
+ "DependsOn": null,
+ "IsSingleInstance": "Yes",
+ "ModuleName": "SecureProtocolWebServer",
+ "ModuleVersion": "1.0.0.3",
+ "Protocols": [
+ {
+ "Ensure": "Absent",
+ "Protocol": "SSL 2.0"
+ },
+ {
+ "Ensure": "Absent",
+ "Protocol": "SSL 3.0"
+ },
+ {
+ "Ensure": "Absent",
+ "Protocol": "TLS 1.0"
+ },
+ {
+ "Ensure": "Absent",
+ "Protocol": "PCT 1.0"
+ },
+ {
+ "Ensure": "Absent",
+ "Protocol": "Multi-Protocol Unified Hello"
+ },
+ {
+ "Ensure": "Absent",
+ "Protocol": "TLS 1.1"
+ },
+ {
+ "Ensure": "Absent",
+ "Protocol": "TLS 1.2"
+ }
+ ],
+ "PsDscRunAsCredential": null,
+ "Reasons": null,
+ "ResourceId": "[SecureWebServer]s1",
+ "SourceInfo": null
+ }
+ }
+ ],
+ "operationType": "Consistency"
+ },
+ "startTime": "2018-08-29T22:13:53Z",
+ "endTime": "2018-08-29T22:14:13Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/listAllGuestConfigurationHCRPAssignmentReports.json b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/listAllGuestConfigurationHCRPAssignmentReports.json
new file mode 100644
index 000000000000..381e33222be7
--- /dev/null
+++ b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/listAllGuestConfigurationHCRPAssignmentReports.json
@@ -0,0 +1,60 @@
+{
+ "parameters": {
+ "subscriptionId": "mySubscriptionid",
+ "resourceGroupName": "myResourceGroupName",
+ "machineName": "myMachineName",
+ "guestConfigurationAssignmentName": "AuditSecureProtocol",
+ "api-version": "2018-11-20"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "name": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "properties": {
+ "complianceStatus": "Compliant",
+ "assignment": {
+ "name": "AuditSecureProtocol",
+ "configuration": {
+ "name": "AuditSecureProtocol"
+ }
+ },
+ "reportId": "7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "vm": {
+ "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName",
+ "uuid": "vmuuid"
+ },
+ "details": null,
+ "startTime": "2018-08-29T22:13:53Z",
+ "endTime": "2018-08-29T22:14:13Z"
+ }
+ },
+ {
+ "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol/reports/41ee2caf-48f9-4999-a793-82ec7c6beb2c",
+ "name": "41ee2caf-48f9-4999-a793-82ec7c6beb2c",
+ "properties": {
+ "complianceStatus": "Compliant",
+ "assignment": {
+ "name": "AuditSecureProtocol",
+ "configuration": {
+ "name": "AuditSecureProtocol"
+ }
+ },
+ "reportId": "41ee2caf-48f9-4999-a793-82ec7c6beb2c",
+ "vm": {
+ "id": "/subscriptions/mysubscriptionid/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName",
+ "uuid": "vmuuid"
+ },
+ "details": null,
+ "startTime": "2018-08-29T20:13:53Z",
+ "endTime": "2018-08-29T20:14:13Z"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/listGuestConfigurationHCRPAssignments.json b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/listGuestConfigurationHCRPAssignments.json
new file mode 100644
index 000000000000..bfa7ad0de85d
--- /dev/null
+++ b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/examples/listGuestConfigurationHCRPAssignments.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "subscriptionId": "mySubscriptionId",
+ "resourceGroupName": "myResourceGroupName",
+ "machineName": "myMachineName",
+ "api-version": "2018-11-20"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": [
+ {
+ "location": "centraluseuap",
+ "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol2",
+ "name": "AuditSecureProtocol2",
+ "properties": {
+ "complianceStatus": "Compliant",
+ "assignmentHash": "content hash",
+ "latestReportId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/AuditSecureProtocol2/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "lastComplianceStatusChecked": "2018-08-29T22:14:13Z",
+ "context": null,
+ "guestConfiguration": {
+ "kind": null,
+ "name": "AuditSecureProtocol2",
+ "version": "1.0.0.3",
+ "contentUri": "https://mystorageaccount.blob.core.windows.net/builtinconfig/AuditSecureProtocol2/AuditSecureProtocol2_1.0.0.3.zip",
+ "contentHash": "content hash",
+ "configurationParameter": [],
+ "configurationSetting": null
+ },
+ "provisioningState": null
+ }
+ },
+ {
+ "location": "centraluseuap",
+ "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/myAssignment",
+ "name": "myAssignment",
+ "properties": {
+ "complianceStatus": "Compliant",
+ "assignmentHash": "content hash",
+ "latestReportId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/myAssignment/reports/7367cbb8-ae99-47d0-a33b-a283564d2cb1",
+ "lastComplianceStatusChecked": "2018-08-29T22:14:13Z",
+ "context": null,
+ "guestConfiguration": {
+ "kind": null,
+ "name": "myAssignment",
+ "version": "1.0.0.3",
+ "contentUri": "https://mystorageaccount.blob.core.windows.net/builtinconfig/myAssignment/myAssignment.0.0.3.zip",
+ "contentHash": "content hash",
+ "configurationParameter": [],
+ "configurationSetting": null
+ },
+ "provisioningState": null
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/guestconfiguration.json b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/guestconfiguration.json
index a2f4ef137443..db2acc806575 100644
--- a/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/guestconfiguration.json
+++ b/specification/guestconfiguration/resource-manager/Microsoft.GuestConfiguration/stable/2018-11-20/guestconfiguration.json
@@ -370,6 +370,349 @@
]
}
},
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/{guestConfigurationAssignmentName}": {
+ "put": {
+ "tags": [
+ "GuestConfigurationHCRPAssignments"
+ ],
+ "operationId": "GuestConfigurationHCRPAssignments_CreateOrUpdate",
+ "description": "Creates an association between a ARC machine and guest configuration",
+ "x-ms-examples": {
+ "Create or update guest configuration assignment": {
+ "$ref": "./examples/createOrUpdateGuestConfigurationHCRPAssignment.json"
+ }
+ },
+ "parameters": [
+ {
+ "name": "guestConfigurationAssignmentName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Name of the guest configuration assignment."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GuestConfigurationAssignment"
+ },
+ "description": "Parameters supplied to the create or update guest configuration assignment."
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/MachineNameParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created. The guest configuration assignment for the ARC machine was created successfully.",
+ "schema": {
+ "$ref": "#/definitions/GuestConfigurationAssignment"
+ }
+ },
+ "200": {
+ "description": "OK. The guest configuration assignment for the ARC machine was updated successfully.",
+ "schema": {
+ "$ref": "#/definitions/GuestConfigurationAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ]
+ },
+ "get": {
+ "tags": [
+ "GuestConfigurationHCRPAssignments"
+ ],
+ "operationId": "GuestConfigurationHCRPAssignments_Get",
+ "description": "Get information about a guest configuration assignment",
+ "x-ms-examples": {
+ "Get a guest configuration assignment": {
+ "$ref": "./examples/getGuestConfigurationHCRPAssignment.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "guestConfigurationAssignmentName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The guest configuration assignment name."
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/MachineNameParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The guest configuration assignment was returned successfully.",
+ "schema": {
+ "$ref": "#/definitions/GuestConfigurationAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ]
+ },
+ "delete": {
+ "tags": [
+ "GuestConfigurationHCRPAssignments"
+ ],
+ "operationId": "GuestConfigurationHCRPAssignments_Delete",
+ "description": "Delete a guest configuration assignment",
+ "x-ms-examples": {
+ "Delete an guest configuration assignment": {
+ "$ref": "./examples/deleteGuestConfigurationHCRPAssignment.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "guestConfigurationAssignmentName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Name of the guest configuration assignment"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/MachineNameParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ]
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments": {
+ "get": {
+ "tags": [
+ "GuestConfigurationHCRPAssignments"
+ ],
+ "operationId": "GuestConfigurationHCRPAssignments_List",
+ "description": "List all guest configuration assignments for an ARC machine.",
+ "x-ms-examples": {
+ "List all guest configuration assignments for a virtual machine": {
+ "$ref": "./examples/listGuestConfigurationHCRPAssignments.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/MachineNameParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/GuestConfigurationAssignmentList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ]
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/{guestConfigurationAssignmentName}/reports": {
+ "get": {
+ "tags": [
+ "GuestConfigurationAssignmentHCRPReports"
+ ],
+ "operationId": "GuestConfigurationHCRPAssignmentReports_List",
+ "description": "List all reports for the guest configuration assignment, latest report first.",
+ "x-ms-examples": {
+ "List all guest configuration assignments for a virtual machine": {
+ "$ref": "./examples/listAllGuestConfigurationHCRPAssignmentReports.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "guestConfigurationAssignmentName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The guest configuration assignment name."
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/MachineNameParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. This response is due one of these two reasons: 1. Reports were returned successfully 2. Guest configuration assignment was found, but machine is not registered yet, hence no reports returned.",
+ "schema": {
+ "$ref": "#/definitions/GuestConfigurationAssignmentReportList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ]
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/{guestConfigurationAssignmentName}/reports/{reportId}": {
+ "get": {
+ "tags": [
+ "GuestConfigurationAssignmentHCRPReports"
+ ],
+ "operationId": "GuestConfigurationHCRPAssignmentReports_Get",
+ "description": "Get a report for the guest configuration assignment, by reportId.",
+ "x-ms-examples": {
+ "Get a guest configuration assignment report by Id for a virtual machine": {
+ "$ref": "./examples/getGuestConfigurationHCRPAssignmentReportById.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "guestConfigurationAssignmentName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The guest configuration assignment name."
+ },
+ {
+ "name": "reportId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The GUID for the guest configuration assignment report."
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/MachineNameParameter"
+ },
+ {
+ "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. This response is due one of these two reasons: 1. Report was returned successfully 2. Guest configuration assignment was found, but machine is not registered yet, hence no report was returned.",
+ "schema": {
+ "$ref": "#/definitions/GuestConfigurationAssignmentReport"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ]
+ }
+ },
"/providers/Microsoft.GuestConfiguration/operations": {
"get": {
"tags": [
@@ -439,7 +782,7 @@
"$ref": "../../common/v1/definitions.json#/definitions/ProxyResource"
}
],
- "description": "Guest configuration assignment is an association between a VM and guest configuration."
+ "description": "Guest configuration assignment is an association between a machine and guest configuration."
},
"GuestConfigurationNavigation": {
"description": "Guest configuration is an artifact that encapsulates DSC configuration and its dependencies. The artifact is a zip file containing DSC configuration (as MOF) and dependent resources and other dependencies like modules.",
@@ -490,12 +833,12 @@
"properties": {
"name": {
"type": "string",
- "readOnly": true,
+ "readOnly": false,
"description": "Name of the configuration parameter."
},
"value": {
"type": "string",
- "readOnly": true,
+ "readOnly": false,
"description": "Value of the configuration parameter."
}
},
@@ -505,7 +848,7 @@
"properties": {
"configurationMode": {
"type": "string",
- "readOnly": true,
+ "readOnly": false,
"description": "Specifies how the LCM(Local Configuration Manager) actually applies the configuration to the target nodes. Possible values are ApplyOnly, ApplyAndMonitor, and ApplyAndAutoCorrect.",
"x-ms-enum": {
"name": "configurationMode",
@@ -531,7 +874,7 @@
},
"actionAfterReboot": {
"type": "string",
- "readOnly": true,
+ "readOnly": false,
"description": "Specifies what happens after a reboot during the application of a configuration. The possible values are ContinueConfiguration and StopConfiguration",
"x-ms-enum": {
"name": "actionAfterReboot",
@@ -544,13 +887,13 @@
},
"refreshFrequencyMins": {
"type": "number",
- "readOnly": true,
+ "readOnly": false,
"default": 30,
"description": "The time interval, in minutes, at which the LCM checks a pull service to get updated configurations. This value is ignored if the LCM is not configured in pull mode. The default value is 30."
},
"rebootIfNeeded": {
"type": "string",
- "readOnly": true,
+ "readOnly": false,
"default": "False",
"description": "Set this to true to automatically reboot the node after a configuration that requires reboot is applied. Otherwise, you will have to manually reboot the node for any configuration that requires it. The default value is false. To use this setting when a reboot condition is enacted by something other than DSC (such as Windows Installer), combine this setting with the xPendingReboot module.",
"x-ms-enum": {
@@ -564,7 +907,7 @@
},
"configurationModeFrequencyMins": {
"type": "number",
- "readOnly": true,
+ "readOnly": false,
"default": 15,
"description": "How often, in minutes, the current configuration is checked and applied. This property is ignored if the ConfigurationMode property is set to ApplyOnly. The default value is 15."
}
@@ -580,7 +923,7 @@
"complianceStatus": {
"type": "string",
"readOnly": true,
- "description": "A value indicating compliance status of the virtual machine for the assigned guest configuration.",
+ "description": "A value indicating compliance status of the machine for the assigned guest configuration.",
"x-ms-enum": {
"name": "complianceStatus",
"modelAsString": true
@@ -669,7 +1012,7 @@
"complianceStatus": {
"type": "string",
"readOnly": true,
- "description": "A value indicating compliance status of the virtual machine for the assigned guest configuration.",
+ "description": "A value indicating compliance status of the machine for the assigned guest configuration.",
"x-ms-enum": {
"name": "complianceStatus",
"modelAsString": true
@@ -762,7 +1105,7 @@
"complianceStatus": {
"type": "string",
"readOnly": true,
- "description": "A value indicating compliance status of the virtual machine for the assigned guest configuration.",
+ "description": "A value indicating compliance status of the machine for the assigned guest configuration.",
"x-ms-enum": {
"name": "complianceStatus",
"modelAsString": true
@@ -818,7 +1161,7 @@
"complianceStatus": {
"type": "string",
"readOnly": true,
- "description": "A value indicating compliance status of the virtual machine for the assigned guest configuration.",
+ "description": "A value indicating compliance status of the machine for the assigned guest configuration.",
"x-ms-enum": {
"name": "complianceStatus",
"modelAsString": true
diff --git a/specification/guestconfiguration/resource-manager/readme.az.md b/specification/guestconfiguration/resource-manager/readme.az.md
new file mode 100644
index 000000000000..319a17cc5022
--- /dev/null
+++ b/specification/guestconfiguration/resource-manager/readme.az.md
@@ -0,0 +1,21 @@
+## AZ
+
+These settings apply only when `--az` is specified on the command line.
+
+``` yaml $(az)
+az:
+ extensions: guestconfig
+ namespace: azure.mgmt.guestconfig
+ package-name: azure-mgmt-guestconfig
+az-output-folder: $(azure-cli-extension-folder)/src/guestconfig
+python-sdk-output-folder: "$(az-output-folder)/azext_guestconfig/vendored_sdks/guestconfig"
+
+cli:
+ cli-directive:
+ - where:
+ type: 'GuestConfigurationAssignment'
+ prop: 'properties'
+ flatten: true
+
+
+```
diff --git a/specification/guestconfiguration/resource-manager/readme.cli.md b/specification/guestconfiguration/resource-manager/readme.cli.md
new file mode 100644
index 000000000000..a9e918eefe21
--- /dev/null
+++ b/specification/guestconfiguration/resource-manager/readme.cli.md
@@ -0,0 +1,9 @@
+ CLI
+
+These settings apply only when `--cli` is specified on the command line.
+
+``` yaml $(cli)
+#cli:
+# test-scenario:
+# - name: Factories_CreateOrUpdate
+```
diff --git a/specification/guestconfiguration/resource-manager/readme.md b/specification/guestconfiguration/resource-manager/readme.md
index 0951302918bc..8c7d94f58edd 100644
--- a/specification/guestconfiguration/resource-manager/readme.md
+++ b/specification/guestconfiguration/resource-manager/readme.md
@@ -96,6 +96,17 @@ directive:
# Code Generation
+## Swagger to SDK
+
+This section describes what SDK should be generated by the automatic system.
+This is not used by Autorest itself.
+
+``` yaml $(swagger-to-sdk)
+swagger-to-sdk:
+ - repo: azure-cli-extensions
+```
+
+
## C#
These settings apply only when `--csharp` is specified on the command line.
diff --git a/specification/guestconfiguration/resource-manager/readme.python.md b/specification/guestconfiguration/resource-manager/readme.python.md
new file mode 100644
index 000000000000..ed4130e79a26
--- /dev/null
+++ b/specification/guestconfiguration/resource-manager/readme.python.md
@@ -0,0 +1,27 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
+
+``` yaml $(python)
+python-mode: create
+python:
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: azure.mgmt.guestconfig
+ package-name: azure-mgmt-guestconfig
+ package-version: 0.1.0
+ clear-output-folder: true
+```
+``` yaml $(python) && $(python-mode) == 'update'
+python:
+ no-namespace-folders: true
+ output-folder: $(python-sdks-folder)/machinelearning/azure-mgmt-guestconfig/azure/mgmt/guestconfig
+```
+``` yaml $(python) && $(python-mode) == 'create'
+python:
+ basic-setup-py: true
+ output-folder: $(python-sdks-folder)/machinelearning/azure-mgmt-guestconfig
+```
diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/HanaOperations_List.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/HanaOperations_List.json
new file mode 100644
index 000000000000..9b59fcbe3c96
--- /dev/null
+++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/HanaOperations_List.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "api-version": "2020-02-07-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "HanaOp1",
+ "display": {
+ "provider": "HanaOp1ProviderName",
+ "resource": "HanaOp1ResourceName",
+ "operation": "HanaOp1OperationName",
+ "description": "HanaOp1Description",
+ "origin": "HanaOp1Origin"
+ }
+ },
+ {
+ "name": "HanaOp2",
+ "display": {
+ "provider": "HanaOp2ProviderName",
+ "resource": "HanaOp2ResourceName",
+ "operation": "HanaOp2OperationName",
+ "description": "HanaOp2Description",
+ "origin": "HanaOp2Origin"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json
index df9837f434fc..3fcdd421d459 100644
--- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json
+++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json
@@ -22,7 +22,8 @@
"properties": {
"type": "hana",
"properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}",
- "metadata": "{\"key\":\"value\"}"
+ "metadata": "{\"key\":\"value\"}",
+ "provisioningState": "Accepted"
}
}
},
@@ -34,7 +35,8 @@
"properties": {
"type": "hana",
"properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}",
- "metadata": "{\"key\":\"value\"}"
+ "metadata": "{\"key\":\"value\"}",
+ "provisioningState": "Accepted"
}
}
}
diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/hanaonazure.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/hanaonazure.json
index 5f24eddee896..a1567dab1709 100644
--- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/hanaonazure.json
+++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/hanaonazure.json
@@ -27,6 +27,48 @@
}
},
"paths": {
+ "/providers/Microsoft.HanaOnAzure/operations": {
+ "get": {
+ "tags": [
+ "HanaOnAzure"
+ ],
+ "operationId": "Operations_List",
+ "description": "Gets a list of SAP HANA management operations.",
+ "x-ms-examples": {
+ "List all HANA management operations supported by HANA RP": {
+ "$ref": "./examples/HanaOperations_List.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/OperationList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
"/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/sapMonitors": {
"get": {
"tags": [
@@ -514,6 +556,65 @@
}
]
},
+ "OperationList": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "description": "List of HANA operations"
+ }
+ },
+ "description": "List of HANA operations"
+ },
+ "Operation": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service."
+ },
+ "display": {
+ "$ref": "#/definitions/Display",
+ "description": "Displayed HANA operation information"
+ }
+ },
+ "description": "HANA operation information"
+ },
+ "Display": {
+ "type": "object",
+ "properties": {
+ "provider": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. Use Title Casing. Begin with \"Microsoft\" for 1st party services."
+ },
+ "resource": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The localized friendly form of the resource type related to this action/operation. This form should match the public documentation for the resource provider. Use Title Casing. For examples, refer to the “name” section."
+ },
+ "operation": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The localized friendly name for the operation as shown to the user. This name should be concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the entity/resource to which it applies."
+ },
+ "description": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The localized friendly description for the operation as shown to the user. This description should be thorough, yet concise. It will be used in tool-tips and detailed views."
+ },
+ "origin": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is 'user,system'"
+ }
+ },
+ "description": "Detailed HANA operation information"
+ },
"ErrorResponse": {
"description": "Describes the format of Error response.",
"type": "object",
@@ -647,24 +748,6 @@
"x-ms-client-flatten": true,
"$ref": "#/definitions/ProviderInstanceProperties",
"description": "Provider Instance properties"
- },
- "provisioningState": {
- "readOnly": true,
- "type": "string",
- "enum": [
- "Accepted",
- "Creating",
- "Updating",
- "Failed",
- "Succeeded",
- "Deleting",
- "Migrating"
- ],
- "x-ms-enum": {
- "name": "HanaProvisioningStatesEnum",
- "modelAsString": true
- },
- "description": "State of provisioning of the provider instance"
}
},
"allOf": [
@@ -687,6 +770,24 @@
"metadata": {
"type": "string",
"description": "A JSON string containing metadata of the provider instance."
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "enum": [
+ "Accepted",
+ "Creating",
+ "Updating",
+ "Failed",
+ "Succeeded",
+ "Deleting",
+ "Migrating"
+ ],
+ "x-ms-enum": {
+ "name": "HanaProvisioningStatesEnum",
+ "modelAsString": true
+ },
+ "description": "State of provisioning of the provider instance"
}
},
"description": "Describes the properties of a provider instance."
diff --git a/specification/hanaonazure/resource-manager/readme.md b/specification/hanaonazure/resource-manager/readme.md
index e44a10cc10b4..301fed2c8de8 100644
--- a/specification/hanaonazure/resource-manager/readme.md
+++ b/specification/hanaonazure/resource-manager/readme.md
@@ -28,7 +28,7 @@ These are the global settings for the HANA on Azure API.
title: HanaManagementClient
description: HANA on Azure Client
openapi-type: arm
-tag: package-2017-11
+tag: package-2020-02-07-preview
azure-arm: true
```
diff --git a/specification/hardwaresecuritymodules/resource-manager/readme.cli.md b/specification/hardwaresecuritymodules/resource-manager/readme.cli.md
index 75ef2e409895..2f2ce5f3e86d 100644
--- a/specification/hardwaresecuritymodules/resource-manager/readme.cli.md
+++ b/specification/hardwaresecuritymodules/resource-manager/readme.cli.md
@@ -1,4 +1,4 @@
- CLI
+## CLI
These settings apply only when `--cli` is specified on the command line.
diff --git a/specification/hardwaresecuritymodules/resource-manager/readme.md b/specification/hardwaresecuritymodules/resource-manager/readme.md
index a5ccc9edd197..33848571baec 100644
--- a/specification/hardwaresecuritymodules/resource-manager/readme.md
+++ b/specification/hardwaresecuritymodules/resource-manager/readme.md
@@ -65,3 +65,16 @@ uncomment the `exclude-file` section below and add the file paths.
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
+# Code Generation
+
+
+## Swagger to SDK
+
+This section describes what SDK should be generated by the automatic system.
+This is not used by Autorest itself.
+
+``` yaml $(swagger-to-sdk)
+swagger-to-sdk:
+ - repo: azure-cli-extensions
+```
+
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkBatch.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkBatch.json
new file mode 100644
index 000000000000..c142db23107b
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkBatch.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "X-Requested-By": "admin",
+ "batchId": 123
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "msg": "deleted"
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkSessionJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkSessionJob.json
new file mode 100644
index 000000000000..1de611517d3d
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkSessionJob.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "x-Requested-By": "admin",
+ "sessionId": 123
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "msg": "deleted"
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkStatementJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkStatementJob.json
new file mode 100644
index 000000000000..66961d597b2f
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_DeleteSparkStatementJob.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "sessionId": 123,
+ "statementId": 123
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "msg": "canceled"
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_Get.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_Get.json
index d6b5d8d8977d..c246f56679d8 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_Get.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_Get.json
@@ -1,7 +1,7 @@
{
"parameters": {
"user.name": "admin",
- "clusterDnsName": "cluster.azurehdinsight.net",
+ "endpoint": "cluster.azurehdinsight.net",
"jobId": "job_1542085634998_0024",
"fields": "*"
},
@@ -62,9 +62,7 @@
"callback": null,
"completed": "done",
"userargs": {
- "statusdir": "2018-11-13T05-49-52-4418fce1-e92e-4732-bc12-f2a3b8ef4432",
"file": null,
- "enablejobreconnect": null,
"define": [],
"enablelog": "false",
"files": null,
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetAppState.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetAppState.json
index 7706db1f395a..50263f2566c5 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetAppState.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetAppState.json
@@ -1,7 +1,7 @@
{
"parameters": {
"appId": "application_1462754318084_0071",
- "clusterDnsName": "cluster.azurehdinsight.net"
+ "endpoint": "cluster.azurehdinsight.net"
},
"responses": {
"200": {
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchJob.json
new file mode 100644
index 000000000000..8834c36eba62
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchJob.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "batchId": 45
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": 45,
+ "appId": null,
+ "appInfo": {
+ "driverLogUrl": null,
+ "sparkUiUrl": null
+ },
+ "state": "starting",
+ "log": [
+ "\t queue: default",
+ "\t start time: 1590386942572",
+ "\t final status: UNDEFINED",
+ "\t tracking URL: https://shangwei-hdi-cmk-ps.azurehdinsight.net/yarnui/hn/proxy/application_1590286636717_0005/",
+ "\t user: livy",
+ "20/05/25 06:09:02 INFO ShutdownHookManager: Shutdown hook called",
+ "20/05/25 06:09:02 INFO ShutdownHookManager: Deleting directory /tmp/spark-9ddb6d73-f204-44a4-83e8-afdbd4ce1a0b",
+ "20/05/25 06:09:02 INFO ShutdownHookManager: Deleting directory /tmp/spark-ef198a0d-de24-4da9-aeb5-c1b78c5fdd5c",
+ "\nstderr: ",
+ "\nYARN Diagnostics: "
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchLog.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchLog.json
new file mode 100644
index 000000000000..19b0c392ee7e
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchLog.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "batchId": 45,
+ "from": 1,
+ "size": 10
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": 45,
+ "from": 1,
+ "size": 10,
+ "log": [
+ "SLF4J: Class path contains multiple SLF4J bindings.",
+ "SLF4J: Found binding in [jar:file:/usr/hdp/2.6.5.3015-8/spark2/jars/slf4j-log4j12-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]",
+ "SLF4J: Found binding in [jar:file:/usr/hdp/2.6.5.3015-8/spark_llap/spark-llap-assembly-1.0.0.2.6.5.3015-8.jar!/org/slf4j/impl/StaticLoggerBinder.class]",
+ "SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.",
+ "SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]",
+ "Warning: Master yarn-cluster is deprecated since 2.0. Please use master \"yarn\" with specified deploy mode instead.",
+ "20/05/25 06:08:59 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable",
+ "Warning: Skip remote jar wasbs://containercmk002@shangweistorageaccount.blob.core.windows.net/microsoft-spark-2.3.x-0.6.0.jar.",
+ "20/05/25 06:08:59 INFO MetricsConfig: loaded properties from hadoop-metrics2-azure-file-system.properties",
+ "20/05/25 06:08:59 INFO WasbAzureIaasSink: Init starting."
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchState.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchState.json
new file mode 100644
index 000000000000..c3444effea60
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkBatchState.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "batchId": 45
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": 45,
+ "state": "starting"
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionJob.json
new file mode 100644
index 000000000000..5008f9c51d27
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionJob.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "sessionId": 123
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": 34,
+ "appId": "application_1590286636717_0004",
+ "owner": null,
+ "proxyUser": null,
+ "state": "idle",
+ "kind": "spark",
+ "appInfo": {
+ "driverLogUrl": "http://wn2-shangw.4jhwm2oxfmoehnhvt2gwwtriqb.bx.internal.cloudapp.net:30060/node/containerlogs/container_e06_1590286636717_0004_01_000001/livy",
+ "sparkUiUrl": "https://shangwei-hdi-cmk-ps.azurehdinsight.net/yarnui/hn/proxy/application_1590286636717_0004/"
+ },
+ "log": [
+ "\t ApplicationMaster RPC port: -1",
+ "\t queue: default",
+ "\t start time: 1590384019312",
+ "\t final status: UNDEFINED",
+ "\t tracking URL: https://shangwei-hdi-cmk-ps.azurehdinsight.net/yarnui/hn/proxy/application_1590286636717_0004/",
+ "\t user: livy",
+ "20/05/25 05:20:19 INFO ShutdownHookManager: Shutdown hook called",
+ "20/05/25 05:20:19 INFO ShutdownHookManager: Deleting directory /tmp/spark-1557a190-880c-422d-a744-ce31d0fefa1d",
+ "20/05/25 05:20:19 INFO ShutdownHookManager: Deleting directory /tmp/spark-12bb0346-a2c9-4b9d-9f9b-feb91e30f554",
+ "\nYARN Diagnostics: "
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionLog.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionLog.json
new file mode 100644
index 000000000000..d2846f9b62ae
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionLog.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "sessionId": 34,
+ "from": 1,
+ "size": 10
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": 34,
+ "from": 0,
+ "total": 57,
+ "log": [
+ "stdout: ",
+ "\nstderr: ",
+ "SLF4J: Class path contains multiple SLF4J bindings.",
+ "SLF4J: Found binding in [jar:file:/usr/hdp/2.6.5.3015-8/spark2/jars/slf4j-log4j12-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]",
+ "SLF4J: Found binding in [jar:file:/usr/hdp/2.6.5.3015-8/spark_llap/spark-llap-assembly-1.0.0.2.6.5.3015-8.jar!/org/slf4j/impl/StaticLoggerBinder.class]",
+ "SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.",
+ "SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]",
+ "Warning: Master yarn-cluster is deprecated since 2.0. Please use master \"yarn\" with specified deploy mode instead.",
+ "20/05/25 05:20:14 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable",
+ "20/05/25 05:20:15 INFO MetricsConfig: loaded properties from hadoop-metrics2-azure-file-system.properties"
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionState.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionState.json
new file mode 100644
index 000000000000..3c73a94ce528
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkSessionState.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "sessionId": 34
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": 34,
+ "state": "idle"
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkStatementJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkStatementJob.json
new file mode 100644
index 000000000000..1c45ad23b01c
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_GetSparkStatementJob.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "sessionId": 34,
+ "statementId": 1
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": 0,
+ "code": "1 + 1",
+ "state": "available",
+ "output": {
+ "status": "ok",
+ "execution_count": 0,
+ "data": {
+ "text/plain": "res0: Int = 2"
+ }
+ },
+ "progress": 1.0
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_Kill.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_Kill.json
index a5574d18d08e..d0b67543a848 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_Kill.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_Kill.json
@@ -1,7 +1,7 @@
{
"parameters": {
"user.name": "admin",
- "clusterDnsName": "cluster.azurehdinsight.net",
+ "endpoint": "cluster.azurehdinsight.net",
"jobId": "job_1542085634998_0007"
},
"responses": {
@@ -62,7 +62,6 @@
"completed": null,
"userargs": {
"statusdir": "2018-11-13T05-35-01-6f79af0f-6157-494a-a03e-eabb190a0c10",
- "enablejobreconnect": null,
"arg": [
"10",
"1000"
@@ -73,11 +72,9 @@
"mapreduce.task.timeout=60000"
],
"enablelog": "false",
- "libjars": null,
"files": null,
"callback": null,
- "jar": "/example/jars/hadoop-mapreduce-examples.jar",
- "class": "pi"
+ "jar": "/example/jars/hadoop-mapreduce-examples.jar"
},
"msg": null
}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_List.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_List.json
index b4f85d1dd7a7..d19c3bc9109e 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_List.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_List.json
@@ -1,7 +1,7 @@
{
"parameters": {
"user.name": "admin",
- "clusterDnsName": "cluster.azurehdinsight.net",
+ "endpoint": "cluster.azurehdinsight.net",
"fields": "*",
"showall": "true"
},
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListAfterJobId.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListAfterJobId.json
index c1c106808005..0fea23c34a31 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListAfterJobId.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListAfterJobId.json
@@ -1,7 +1,7 @@
{
"parameters": {
"user.name": "admin",
- "clusterDnsName": "cluster.azurehdinsight.net",
+ "endpoint": "cluster.azurehdinsight.net",
"jobId": "job_1542085634998_0029",
"numrecords": 3,
"fields": "*",
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkBatchJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkBatchJob.json
new file mode 100644
index 000000000000..3c7db0140439
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkBatchJob.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "endpoint": "clustername.azurehdinsight.net",
+ "from": 0,
+ "size": 1
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "from": 0,
+ "total": 1,
+ "sessions": [
+ {
+ "id": 44,
+ "state": "starting",
+ "appId": null,
+ "appInfo": {
+ "driverLogUrl": null,
+ "sparkUiUrl": null
+ },
+ "log": [
+ "20/05/25 04:59:18 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable",
+ "Warning: Skip remote jar wasbs://containercmk002@shangweistorageaccount.blob.core.windows.net/microsoft-spark-2.3.x-0.6.0.jar.",
+ "20/05/25 04:59:18 INFO MetricsConfig: loaded properties from hadoop-metrics2-azure-file-system.properties",
+ "20/05/25 04:59:18 INFO WasbAzureIaasSink: Init starting.",
+ "20/05/25 04:59:18 INFO AzureIaasSink: Init starting. Initializing MdsLogger.",
+ "20/05/25 04:59:18 INFO AzureIaasSink: Init completed.",
+ "20/05/25 04:59:18 INFO WasbAzureIaasSink: Init completed.",
+ "20/05/25 04:59:18 INFO MetricsSinkAdapter: Sink azurefs2 started",
+ "\nstderr: ",
+ "\nYARN Diagnostics: "
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkSessionJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkSessionJob.json
new file mode 100644
index 000000000000..30f7a88887a4
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkSessionJob.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "from": 0,
+ "size": 1
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "from": 0,
+ "total": 1,
+ "sessions": [
+ {
+ "id": 34,
+ "appId": "application_1590286636717_0004",
+ "owner": null,
+ "proxyUser": null,
+ "state": "idle",
+ "kind": "spark",
+ "appInfo": {
+ "driverLogUrl": "http://wn2-shangw.4jhwm2oxfmoehnhvt2gwwtriqb.bx.internal.cloudapp.net:30060/node/containerlogs/container_e06_1590286636717_0004_01_000001/livy",
+ "sparkUiUrl": "https://shangwei-hdi-cmk-ps.azurehdinsight.net/yarnui/hn/proxy/application_1590286636717_0004/"
+ },
+ "log": [
+ "\t ApplicationMaster RPC port: -1",
+ "\t queue: default",
+ "\t start time: 1590384019312",
+ "\t final status: UNDEFINED",
+ "\t tracking URL: https://shangwei-hdi-cmk-ps.azurehdinsight.net/yarnui/hn/proxy/application_1590286636717_0004/",
+ "\t user: livy",
+ "20/05/25 05:20:19 INFO ShutdownHookManager: Shutdown hook called",
+ "20/05/25 05:20:19 INFO ShutdownHookManager: Deleting directory /tmp/spark-1557a190-880c-422d-a744-ce31d0fefa1d",
+ "20/05/25 05:20:19 INFO ShutdownHookManager: Deleting directory /tmp/spark-12bb0346-a2c9-4b9d-9f9b-feb91e30f554",
+ "\nYARN Diagnostics: "
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkStatementJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkStatementJob.json
new file mode 100644
index 000000000000..3e447a4f4318
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_ListSparkStatementJob.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "sessionId": 34
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "statements": [
+ {
+ "id": 0,
+ "code": "1 + 1",
+ "state": "available",
+ "output": {
+ "status": "ok",
+ "execution_count": 0,
+ "data": {
+ "text/plain": "res0: Int = 2"
+ }
+ },
+ "progress": 1.0
+ },
+ {
+ "id": 1,
+ "code": "1 + 1",
+ "state": "available",
+ "output": {
+ "status": "ok",
+ "execution_count": 1,
+ "data": {
+ "text/plain": "res1: Int = 2"
+ }
+ },
+ "progress": 1.0
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitHiveJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitHiveJob.json
index 314b5c13f31d..bcd62e40bfde 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitHiveJob.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitHiveJob.json
@@ -1,7 +1,7 @@
{
"parameters": {
"user.name": "admin",
- "clusterDnsName": "cluster.azurehdinsight.net",
+ "endpoint": "cluster.azurehdinsight.net",
"content": "execute=select%20querydwelltime%2B2%20from%20hivesampletable%20where%20clientid%20%3D%208&statusdir=2018-10-30T10-13-36-30513317-c398-4da0-a98c-57db43750f3a"
},
"responses": {
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitMapReduceJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitMapReduceJob.json
index 5cf12f4e0d8f..9a13c808f75a 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitMapReduceJob.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitMapReduceJob.json
@@ -1,7 +1,7 @@
{
"parameters": {
"user.name": "admin",
- "clusterDnsName": "cluster.azurehdinsight.net",
+ "endpoint": "cluster.azurehdinsight.net",
"content": "jar=%2Fexample%2Fjars%2Fhadoop-mapreduce-examples.jar&class=pi&arg=10&arg=1000&define=mapreduce.map.maxattempts%3D10&define=mapreduce.reduce.maxattempts%3D10&define=mapreduce.task.timeout%3D60000&statusdir=2018-10-30T10-12-29-595ef52d-583c-4b17-987b-675e4f8eea8f"
},
"responses": {
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitMapReduceStreamingJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitMapReduceStreamingJob.json
index b3cb16e542b2..506c4135ff63 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitMapReduceStreamingJob.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitMapReduceStreamingJob.json
@@ -1,7 +1,7 @@
{
"parameters": {
"user.name": "admin",
- "clusterDnsName": "cluster.azurehdinsight.net",
+ "endpoint": "cluster.azurehdinsight.net",
"content": "input=%2Fexample%2Fdata%2Fgutenberg%2Fdavinci.txt&output=%2Fexample%2Fdata%2Fgutenberg%2Fwcount%2F3745c39c-0115-4735-a9eb-c57de9a29dcd&mapper=cat&reducer=wc&statusdir=2018-10-30T11-40-44-eb9dc5c1-99dd-4282-9d4a-a77c8ffb6b35"
},
"responses": {
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitPigJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitPigJob.json
index 95f0e96fafde..ad2da4c1f308 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitPigJob.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitPigJob.json
@@ -1,7 +1,7 @@
{
"parameters": {
"user.name": "admin",
- "clusterDnsName": "cluster.azurehdinsight.net",
+ "endpoint": "cluster.azurehdinsight.net",
"content": "execute=LOGS%20%3D%20LOAD%20%27wasb%3A%2F%2F%2Fexample%2Fdata%2Fsample.log%27%3BLEVELS%20%3D%20foreach%20LOGS%20generate%20REGEX_EXTRACT%28%240%2C%20%27%28TRACE%7CDEBUG%7CINFO%7CWARN%7CERROR%7CFATAL%29%27%2C%201%29%20%20as%20LOGLEVEL%3BFILTEREDLEVELS%20%3D%20FILTER%20LEVELS%20by%20LOGLEVEL%20is%20not%20null%3BGROUPEDLEVELS%20%3D%20GROUP%20FILTEREDLEVELS%20by%20LOGLEVEL%3BFREQUENCIES%20%3D%20foreach%20GROUPEDLEVELS%20generate%20group%20as%20LOGLEVEL%2C%20COUNT%28FILTEREDLEVELS.LOGLEVEL%29%20as%20COUNT%3BRESULT%20%3D%20order%20FREQUENCIES%20by%20COUNT%20desc%3BDUMP%20RESULT%3B&statusdir=2018-10-30T12-44-24-bd642975-9a89-4480-aea7-3ee1f34016ec"
},
"responses": {
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkBatchJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkBatchJob.json
new file mode 100644
index 000000000000..9090b5329746
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkBatchJob.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "X-Requested-By": "admin",
+ "sparkBatchJobRequest": {
+ "file": "wasbs://containercmk002@shangweistorageaccount.blob.core.windows.net/microsoft-spark-2.3.x-0.6.0.jar",
+ "proxyUser": "",
+ "className": "org.apache.spark.deploy.dotnet.DotnetRunner12",
+ "args": [
+ "wasbs://containercmk002@shangweistorageaccount.blob.core.windows.net/wordcount.zip",
+ "WordCount",
+ "wasbs://containercmk002@shangweistorageaccount.blob.core.windows.net/user/sshroot/shakespeare.txt",
+ "wasbs://containercmk002@shangweistorageaccount.blob.core.windows.net/user/sshroot/result_livy.txt"
+ ],
+ "jars": [],
+ "pyFiles": [],
+ "files": [],
+ "driverMemory": "4g",
+ "driverCores": 4,
+ "executorMemory": "2g",
+ "executorCores": 2,
+ "numExecutors": 2,
+ "archives": [],
+ "queue": "default",
+ "name": "jobname",
+ "conf": null
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "id": 46,
+ "state": "starting",
+ "appId": null,
+ "appInfo": {
+ "driverLogUrl": null,
+ "sparkUiUrl": null
+ },
+ "log": [
+ "stdout: ",
+ "\nstderr: ",
+ "\nYARN Diagnostics: "
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkSessionJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkSessionJob.json
new file mode 100644
index 000000000000..cc0c91872f3e
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkSessionJob.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "X-Requested-By": "admin",
+ "sparkSessionJobRequest": {
+ "kind": "spark",
+ "proxyUser": "",
+ "jars": [],
+ "pyFiles": [],
+ "files": [],
+ "driverMemory": "4g",
+ "driverCores": 4,
+ "executorMemory": "2g",
+ "executorCores": 2,
+ "numExecutors": 2,
+ "archives": [],
+ "queue": "default",
+ "name": "jobname",
+ "conf": null,
+ "heartbeatTimeoutInSecond": 0
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "id": 34,
+ "appId": null,
+ "owner": null,
+ "proxyUser": null,
+ "kind": "spark",
+ "state": "starting",
+ "log": [
+ "stdout: ",
+ "\nstderr: ",
+ "\nYARN Diagnostics: "
+ ],
+ "appInfo": {
+ "driverLogUrl": null,
+ "sparkUiUrl": null
+ }
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkStatementJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkStatementJob.json
new file mode 100644
index 000000000000..0a288511d8aa
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSparkStatementJob.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "endpoint": "cluster.azurehdinsight.net",
+ "X-Requested-By": "admin",
+ "sessionId": 34,
+ "sparkStatementRequest": {
+ "code": "1 + 1",
+ "kind": "spark"
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "id": 0,
+ "code": "1 + 1",
+ "state": "waiting",
+ "output": null,
+ "progress": 0.0
+ }
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSqoopJob.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSqoopJob.json
index 2c26b24f605d..eddc3cb5cded 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSqoopJob.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/examples/HDI_Job_SubmitSqoopJob.json
@@ -1,7 +1,7 @@
{
"parameters": {
"user.name": "admin",
- "clusterDnsName": "cluster.azurehdinsight.net",
+ "endpoint": "cluster.azurehdinsight.net",
"content": "command=import%20--connect%20jdbc%3Asqlserver%3A%2F%2Fdongwwahdi.database.windows.net%3A1433%3Bdatabase%3DHdInsightJobTest%3Buser%3Ddongwwaadmin%3Bpassword%3DHDInsight123%21%3B%20--table%20dept%20--warehouse-dir%20%2Fuser%2Fadmin%2Fsqoop%2F25c8b9f9-dbc1-4096-aa42-45f2868ab782%20--hive-import%20-m%201%20--hive-table%20deptd3175062928d4170831ac17d2eefdaeb&statusdir=SqoopStatus"
},
"responses": {
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/job.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/job.json
index 9faa6c4282c0..544f3e29c9c8 100644
--- a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/job.json
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/job.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "title": "HDInsightJobManagementClient",
+ "title": "HDInsightJobClient",
"description": "The HDInsight Job Client.",
"version": "2018-11-01-preview",
"x-ms-code-generation-settings": {
@@ -9,10 +9,10 @@
}
},
"x-ms-parameterized-host": {
- "hostTemplate": "{clusterDnsName}",
+ "hostTemplate": "{endpoint}",
"parameters": [
{
- "$ref": "#/parameters/clusterDnsNameParameter"
+ "$ref": "#/parameters/endpointParameter"
}
]
},
@@ -911,13 +911,13 @@
}
},
"parameters": {
- "clusterDnsNameParameter": {
- "name": "clusterDnsName",
+ "endpointParameter": {
+ "name": "endpoint",
"in": "path",
"required": true,
"type": "string",
"x-ms-skip-url-encoding": true,
- "description": "The cluster dns name against which the job management is to be.",
+ "description": "The cluster endpoint, for example https://clustername.azurehdinsight.net.",
"x-ms-parameter-location": "client"
},
"UserNameParameter": {
diff --git a/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/livySpark.json b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/livySpark.json
new file mode 100644
index 000000000000..d5cbc84df867
--- /dev/null
+++ b/specification/hdinsight/data-plane/Microsoft.HDInsight/preview/2018-11-01-preview/livySpark.json
@@ -0,0 +1,1121 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "HDInsightJobClient",
+ "description": "The HDInsight Job Client.",
+ "version": "2018-11-01-preview",
+ "x-ms-code-generation-settings": {
+ "internalConstructors": true
+ }
+ },
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{endpoint}",
+ "parameters": [
+ {
+ "$ref": "#/parameters/endpointParameter"
+ }
+ ]
+ },
+ "schemes": [
+ "https"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/livy/batches": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "List all spark batch jobs",
+ "operationId": "Job_ListSparkBatchJob",
+ "x-ms-examples": {
+ "List all spark batch jobs": {
+ "$ref": "./examples/HDI_Job_ListSparkBatchJob.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "from",
+ "in": "query",
+ "description": "Optional param specifying which index the list should begin from.",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "size",
+ "in": "query",
+ "description": "Optional param specifying the size of the returned list.\r\n By default it is 20 and that is the maximum.",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkBatchJobCollection"
+ }
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Create a new spark batch job.",
+ "operationId": "Job_SubmitSparkBatchJob",
+ "x-ms-examples": {
+ "Create a spark batch job": {
+ "$ref": "./examples/HDI_Job_SubmitSparkBatchJob.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/requestedByParameter"
+ },
+ {
+ "name": "sparkBatchJobRequest",
+ "in": "body",
+ "description": "Livy compatible batch job request payload.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SparkBatchJobRequest"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/SparkBatchJob"
+ }
+ }
+ }
+ }
+ },
+ "/livy/batches/{batchId}": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Gets a single spark batch job.",
+ "operationId": "Job_GetSparkBatchJob",
+ "x-ms-examples": {
+ "Gets a single spark batch job": {
+ "$ref": "./examples/HDI_Job_GetSparkBatchJob.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "batchId",
+ "in": "path",
+ "description": "Identifier for the batch job.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkBatchJob"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Cancels a running spark batch job.",
+ "operationId": "Job_DeleteSparkBatch",
+ "x-ms-examples": {
+ "Cancels a running spark batch job": {
+ "$ref": "./examples/HDI_Job_DeleteSparkBatch.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/requestedByParameter"
+ },
+ {
+ "name": "batchId",
+ "in": "path",
+ "description": "Identifier for the batch job.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkJobDeletedResult"
+ }
+ }
+ }
+ }
+ },
+ "/livy/batches/{batchId}/log": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Gets a single spark batch job logs.",
+ "operationId": "Job_GetSparkBatchLog",
+ "x-ms-examples": {
+ "Gets a single spark batch job logs": {
+ "$ref": "./examples/HDI_Job_GetSparkBatchLog.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "batchId",
+ "in": "path",
+ "description": "Identifier for the batch job.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "from",
+ "in": "query",
+ "description": "Optional param specifying which index the list should begin from.",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "size",
+ "in": "query",
+ "description": "Optional param specifying the size of the returned list.\r\n By default it is 20 and that is the maximum.",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkJobLog"
+ }
+ }
+ }
+ }
+ },
+ "/livy/batches/{batchId}/state": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Gets a single spark batch state.",
+ "operationId": "Job_GetSparkBatchState",
+ "x-ms-examples": {
+ "Gets a single spark batch state": {
+ "$ref": "./examples/HDI_Job_GetSparkBatchState.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "batchId",
+ "in": "path",
+ "description": "Identifier for the batch job.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkJobState"
+ }
+ }
+ }
+ }
+ },
+ "/livy/sessions": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "List all spark sessions.",
+ "operationId": "Job_ListSparkSessionJob",
+ "x-ms-examples": {
+ "List all spark sessions": {
+ "$ref": "./examples/HDI_Job_ListSparkSessionJob.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "from",
+ "in": "query",
+ "description": "Optional param specifying which index the list should begin from.",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "size",
+ "in": "query",
+ "description": "Optional param specifying the size of the returned list.\r\n By default it is 20 and that is the maximum.",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkSessionCollection"
+ }
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Create a new spark session.",
+ "operationId": "Job_SubmitSparkSessionJob",
+ "x-ms-examples": {
+ "Create a new spark session": {
+ "$ref": "./examples/HDI_Job_SubmitSparkSessionJob.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/requestedByParameter"
+ },
+ {
+ "name": "sparkSessionJobRequest",
+ "in": "body",
+ "description": "Livy compatible session job request payload.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SparkSessionJobRequest"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/SparkSessionJob"
+ }
+ }
+ }
+ }
+ },
+ "/livy/sessions/{sessionId}": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Gets a single spark session.",
+ "operationId": "Job_GetSparkSessionJob",
+ "x-ms-examples": {
+ "Gets a single spark session": {
+ "$ref": "./examples/HDI_Job_GetSparkSessionJob.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "sessionId",
+ "in": "path",
+ "description": "Identifier for the session.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkSessionJob"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Cancels a running spark session.",
+ "operationId": "Job_DeleteSparkSessionJob",
+ "x-ms-examples": {
+ "Cancels a running spark session": {
+ "$ref": "./examples/HDI_Job_DeleteSparkSessionJob.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/requestedByParameter"
+ },
+ {
+ "name": "sessionId",
+ "in": "path",
+ "description": "Identifier for the session.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkJobDeletedResult"
+ }
+ }
+ }
+ }
+ },
+ "/livy/sessions/{sessionId}/log": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Gets a single spark session job logs.",
+ "operationId": "Job_GetSparkSessionLog",
+ "x-ms-examples": {
+ "Gets a single spark session job logs": {
+ "$ref": "./examples/HDI_Job_GetSparkSessionLog.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "sessionId",
+ "in": "path",
+ "description": "Identifier for the session job.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "from",
+ "in": "query",
+ "description": "Optional param specifying which index the list should begin from.",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "size",
+ "in": "query",
+ "description": "Optional param specifying the size of the returned list.\r\n By default it is 20 and that is the maximum.",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkJobLog"
+ }
+ }
+ }
+ }
+ },
+ "/livy/sessions/{sessionId}/state": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Gets a single spark session job state.",
+ "operationId": "Job_GetSparkSessionState",
+ "x-ms-examples": {
+ "Gets a single spark session job state": {
+ "$ref": "./examples/HDI_Job_GetSparkSessionState.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "sessionId",
+ "in": "path",
+ "description": "Identifier for the session job.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkJobState"
+ }
+ }
+ }
+ }
+ },
+ "/livy/sessions/{sessionId}/statements": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Gets a list of statements within a spark session.",
+ "operationId": "Job_ListSparkStatementJob",
+ "x-ms-examples": {
+ "Gets a list of statements within a spark session": {
+ "$ref": "./examples/HDI_Job_ListSparkStatementJob.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "sessionId",
+ "in": "path",
+ "description": "Identifier for the session.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkStatementCollection"
+ }
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Create a statement within a spark session.",
+ "operationId": "Job_SubmitSparkStatementJob",
+ "x-ms-examples": {
+ "Create a statement within a spark session": {
+ "$ref": "./examples/HDI_Job_SubmitSparkStatementJob.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/requestedByParameter"
+ },
+ {
+ "name": "sessionId",
+ "in": "path",
+ "description": "Identifier for the session.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "sparkStatementRequest",
+ "in": "body",
+ "description": "Livy compatible batch job request payload.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SparkStatementRequest"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/SparkStatement"
+ }
+ }
+ }
+ }
+ },
+ "/livy/sessions/{sessionId}/statements/{statementId}": {
+ "get": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Gets a single statement within a spark session.",
+ "operationId": "Job_GetSparkStatementJob",
+ "x-ms-examples": {
+ "Gets a single statement within a spark session": {
+ "$ref": "./examples/HDI_Job_GetSparkStatementJob.json"
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "sessionId",
+ "in": "path",
+ "description": "Identifier for the session.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "statementId",
+ "in": "path",
+ "description": "Identifier for the statement.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkStatement"
+ }
+ }
+ }
+ }
+ },
+ "/livy/sessions/{sessionId}/statements/{statementId}/cancel": {
+ "post": {
+ "tags": [
+ "Job"
+ ],
+ "description": "Kill a statement within a session.",
+ "operationId": "Job_DeleteSparkStatementJob",
+ "x-ms-examples": {
+ "Kill a statement within a session": {
+ "$ref": "./examples/HDI_Job_DeleteSparkStatementJob.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/requestedByParameter"
+ },
+ {
+ "name": "sessionId",
+ "in": "path",
+ "description": "Identifier for the session.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "name": "statementId",
+ "in": "path",
+ "description": "Identifier for the statement.",
+ "required": true,
+ "type": "integer",
+ "format": "int32"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/SparkStatementCancellationResult"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "SparkBatchJobCollection": {
+ "type": "object",
+ "properties": {
+ "from": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "total": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "sessions": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SparkBatchJob"
+ }
+ }
+ }
+ },
+ "SparkBatchJob": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "appId": {
+ "type": "string"
+ },
+ "appInfo": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "state": {
+ "type": "string"
+ },
+ "log": {
+ "x-ms-client-name": "logLines",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "SparkBatchJobRequest": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string"
+ },
+ "proxyUser": {
+ "type": "string"
+ },
+ "className": {
+ "type": "string"
+ },
+ "args": {
+ "x-ms-client-name": "arguments",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "jars": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "pyFiles": {
+ "x-ms-client-name": "pythonFiles",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "files": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "driverMemory": {
+ "type": "string"
+ },
+ "driverCores": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "executorMemory": {
+ "type": "string"
+ },
+ "executorCores": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "numExecutors": {
+ "x-ms-client-name": "executorCount",
+ "format": "int32",
+ "type": "integer"
+ },
+ "archives": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "queue": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "conf": {
+ "x-ms-client-name": "configuration",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "SparkSessionCollection": {
+ "type": "object",
+ "properties": {
+ "from": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "total": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "sessions": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SparkSessionJob"
+ }
+ }
+ }
+ },
+ "SparkSessionJob": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "appId": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "proxyUser": {
+ "type": "string"
+ },
+ "kind": {
+ "type": "string"
+ },
+ "log": {
+ "x-ms-client-name": "logLines",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "state": {
+ "type": "string"
+ },
+ "appInfo": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "SparkSessionJobRequest": {
+ "type": "object",
+ "properties": {
+ "kind": {
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SessionJobKind",
+ "modelAsString": true
+ },
+ "enum": [
+ "spark",
+ "pyspark",
+ "sparkr",
+ "sql"
+ ]
+ },
+ "proxyUser": {
+ "type": "string"
+ },
+ "jars": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "pyFiles": {
+ "x-ms-client-name": "pythonFiles",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "files": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "driverMemory": {
+ "type": "string"
+ },
+ "driverCores": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "executorMemory": {
+ "type": "string"
+ },
+ "executorCores": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "numExecutors": {
+ "x-ms-client-name": "executorCount",
+ "format": "int32",
+ "type": "integer"
+ },
+ "archives": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "queue": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "conf": {
+ "x-ms-client-name": "configuration",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "heartbeatTimeoutInSecond": {
+ "format": "int32",
+ "type": "integer"
+ }
+ }
+ },
+ "SparkJobLog": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "from": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "size": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "total": {
+ "format": "int64",
+ "type": "integer"
+ },
+ "log": {
+ "x-ms-client-name": "logLines",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "SparkJobState": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "state": {
+ "type": "string"
+ }
+ }
+ },
+ "SparkStatementCollection": {
+ "type": "object",
+ "properties": {
+ "statements": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SparkStatement"
+ }
+ }
+ }
+ },
+ "SparkStatement": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "code": {
+ "type": "string"
+ },
+ "state": {
+ "type": "string"
+ },
+ "output": {
+ "$ref": "#/definitions/SparkStatementOutput"
+ },
+ "progress": {
+ "type": "number",
+ "format": "double"
+ }
+ }
+ },
+ "SparkStatementOutput": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string"
+ },
+ "execution_count": {
+ "format": "int32",
+ "type": "integer"
+ },
+ "data": {
+ "type": "object"
+ }
+ }
+ },
+ "SparkStatementRequest": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "kind": {
+ "type": "string"
+ }
+ }
+ },
+ "SparkStatementCancellationResult": {
+ "type": "object",
+ "properties": {
+ "msg": {
+ "x-ms-client-name": "cancelMessage",
+ "type": "string"
+ }
+ }
+ },
+ "SparkJobDeletedResult": {
+ "type": "object",
+ "properties": {
+ "msg": {
+ "x-ms-client-name": "deletedMessage",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "requestedByParameter": {
+ "name": "X-Requested-By",
+ "x-ms-parameter-location": "method",
+ "x-ms-client-name": "requestedBy",
+ "description": "Add default value for X-Requested-By in header.",
+ "in": "header",
+ "required": false,
+ "default": "ambari",
+ "type": "string"
+ },
+ "endpointParameter": {
+ "name": "endpoint",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-skip-url-encoding": true,
+ "description": "The cluster endpoint, for example https://clustername.azurehdinsight.net.",
+ "x-ms-parameter-location": "client"
+ }
+ }
+}
diff --git a/specification/hdinsight/data-plane/readme.md b/specification/hdinsight/data-plane/readme.md
index ffd1eb557e82..7116c5692305 100644
--- a/specification/hdinsight/data-plane/readme.md
+++ b/specification/hdinsight/data-plane/readme.md
@@ -36,8 +36,18 @@ These settings apply only when `--tag=package-2018-11-preview` is specified on t
``` yaml $(tag) == 'package-2018-11-preview'
input-file:
- Microsoft.HDInsight/preview/2018-11-01-preview/job.json
+- Microsoft.HDInsight/preview/2018-11-01-preview/livySpark.json
```
+## Suppression
+``` yaml
+directive:
+ - suppress: DefinitionsPropertiesNamesCamelCase
+ reason: This would require a breaking change, and need to be consistent with the response from RP side.
+ from: livySpark.json
+ where:
+ - $.definitions.SparkStatementOutput.properties.execution_count
+```
---
# Code Generation
@@ -146,6 +156,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.HDInsight/preview/2018-11-01-preview/job.json
+ - $(this-folder)/Microsoft.HDInsight/preview/2018-11-01-preview/livySpark.json
```
diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetClusterVirtualMachines.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetClusterVirtualMachines.json
index ef9bdd0d2d1e..6e3d11ed1863 100644
--- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetClusterVirtualMachines.json
+++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/examples/GetClusterVirtualMachines.json
@@ -7,37 +7,35 @@
},
"responses": {
"200": {
- "body": {
- "value": [
- {
- "name": "gateway1"
- },
- {
- "name": "gateway3"
- },
- {
- "name": "headnode0"
- },
- {
- "name": "headnode3"
- },
- {
- "name": "workernode0"
- },
- {
- "name": "workernode1"
- },
- {
- "name": "zookeepernode0"
- },
- {
- "name": "zookeepernode2"
- },
- {
- "name": "zookeepernode3"
- }
- ]
- }
+ "body": [
+ {
+ "name": "gateway1"
+ },
+ {
+ "name": "gateway3"
+ },
+ {
+ "name": "headnode0"
+ },
+ {
+ "name": "headnode3"
+ },
+ {
+ "name": "workernode0"
+ },
+ {
+ "name": "workernode1"
+ },
+ {
+ "name": "zookeepernode0"
+ },
+ {
+ "name": "zookeepernode2"
+ },
+ {
+ "name": "zookeepernode3"
+ }
+ ]
}
}
}
diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/virtualMachines.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/virtualMachines.json
index 61878b4e0af6..4db9dc3a68d9 100644
--- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/virtualMachines.json
+++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/virtualMachines.json
@@ -142,14 +142,9 @@
},
"HostInfoListResult": {
"description": "Result of the request to list cluster hosts",
- "properties": {
- "value": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/HostInfo"
- },
- "description": "The list of cluster hosts."
- }
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/HostInfo"
},
"readOnly": true
},
diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/healthcare-apis.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/healthcare-apis.json
index 7d276651d131..2406d481db5a 100644
--- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/healthcare-apis.json
+++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/preview/2018-08-20-preview/healthcare-apis.json
@@ -483,15 +483,11 @@
"$ref": "#/definitions/ServiceCorsConfigurationInfo",
"description": "The settings for the CORS configuration of the service instance."
}
- },
- "required": [
- "accessPolicies"
- ]
+ }
},
"ServiceAccessPoliciesInfo": {
"description": "The access policies of the service instance.",
"type": "array",
- "minItems": 1,
"items": {
"$ref": "#/definitions/ServiceAccessPolicyEntry"
}
diff --git a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2019-09-16/healthcare-apis.json b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2019-09-16/healthcare-apis.json
index 6bd8b71ec5ae..1a83f1c8eedc 100644
--- a/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2019-09-16/healthcare-apis.json
+++ b/specification/healthcareapis/resource-manager/Microsoft.HealthcareApis/stable/2019-09-16/healthcare-apis.json
@@ -490,15 +490,11 @@
"$ref": "#/definitions/ServiceExportConfigurationInfo",
"description": "The settings for the export operation of the service instance."
}
- },
- "required": [
- "accessPolicies"
- ]
+ }
},
"ServiceAccessPoliciesInfo": {
"description": "The access policies of the service instance.",
"type": "array",
- "minItems": 1,
"items": {
"$ref": "#/definitions/ServiceAccessPolicyEntry"
}
diff --git a/specification/hybridkubernetes/resource-manager/Microsoft.Kubernetes/preview/2020-01-01-preview/connectedClusters.json b/specification/hybridkubernetes/resource-manager/Microsoft.Kubernetes/preview/2020-01-01-preview/connectedClusters.json
index 831f3567dbf4..d5551cc9c0ae 100644
--- a/specification/hybridkubernetes/resource-manager/Microsoft.Kubernetes/preview/2020-01-01-preview/connectedClusters.json
+++ b/specification/hybridkubernetes/resource-manager/Microsoft.Kubernetes/preview/2020-01-01-preview/connectedClusters.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "title": "KubernetesConnectRPClient",
+ "title": "ConnectedKubernetesClient",
"version": "2020-01-01-preview",
"description": "Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster"
},
diff --git a/specification/hybridkubernetes/resource-manager/readme.go.md b/specification/hybridkubernetes/resource-manager/readme.go.md
index d8aa1554afc0..b5fd96488df7 100644
--- a/specification/hybridkubernetes/resource-manager/readme.go.md
+++ b/specification/hybridkubernetes/resource-manager/readme.go.md
@@ -8,6 +8,13 @@ go:
clear-output-folder: true
```
+### Go multi-api
+
+``` yaml $(go) && $(multiapi)
+batch:
+ - tag: package-2020-01-01-preview
+```
+
### Tag: package-2020-01-01-preview and go
These settings apply only when `--tag=package-2020-01-01-preview --go` is specified on the command line.
diff --git a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/imagebuilder.json b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/imagebuilder.json
index bcd147e1d277..bf5741fa8dd5 100644
--- a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/imagebuilder.json
+++ b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/imagebuilder.json
@@ -879,7 +879,7 @@
],
"x-ms-enum": {
"name": "SharedImageStorageAccountType",
- "modelAsString": false
+ "modelAsString": true
},
"description": "Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS)."
}
diff --git a/specification/imagebuilder/resource-manager/readme.go.md b/specification/imagebuilder/resource-manager/readme.go.md
index 93711868114b..c006a0d7bdcf 100644
--- a/specification/imagebuilder/resource-manager/readme.go.md
+++ b/specification/imagebuilder/resource-manager/readme.go.md
@@ -12,11 +12,21 @@ These settings apply only when `--go` is specified on the command line.
``` yaml $(go) && $(multiapi)
batch:
+ - tag: package-2020-02
- tag: package-2018-02
- tag: package-2019-02
- tag: package-preview-2019-05
```
+### Tag: package-2020-02
+
+These settings apply only when `--tag=package-2020-02 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-02' && $(go)
+output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-02-01/$(namespace)
+```
+
### Tag: package-2018-02
These settings apply only when `--tag=package-2018-02 --go` is specified on the command line.
diff --git a/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_commands_send.json b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_commands_send.json
new file mode 100644
index 000000000000..3b9d697a25f8
--- /dev/null
+++ b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_commands_send.json
@@ -0,0 +1,26 @@
+{
+ "title": "Send command",
+ "description": "Send a command to a device.",
+ "parameters": {
+ "centralDnsSuffixInPath": "azureiotcentral.com",
+ "subdomain": "appsubdomain",
+ "device_id": "mx1",
+ "module_name": "Camera",
+ "component_name": "componentA",
+ "command_name": "Reboot",
+ "body": {
+ "request": {
+ "SafeMode": true
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "request": {
+ "SafeMode": true
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_commandshistory_get.json b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_commandshistory_get.json
new file mode 100644
index 000000000000..691d91a1f005
--- /dev/null
+++ b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_commandshistory_get.json
@@ -0,0 +1,24 @@
+{
+ "title": "Get command history within a module",
+ "description": "Get the most recent invocaion of a command from within a module.",
+ "parameters": {
+ "centralDnsSuffixInPath": "azureiotcentral.com",
+ "subdomain": "appsubdomain",
+ "device_id": "mx1",
+ "module_name": "camera",
+ "component_name": "componentA",
+ "command_name": "AdjustFrameRate"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "response": "Success",
+ "responseCode": 200
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_get.json b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_get.json
new file mode 100644
index 000000000000..8bbd4a655aab
--- /dev/null
+++ b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_get.json
@@ -0,0 +1,32 @@
+{
+ "title": "Get device properties",
+ "description": "Get the current values of all device properties.",
+ "parameters": {
+ "centralDnsSuffixInPath": "azureiotcentral.com",
+ "subdomain": "appsubdomain",
+ "device_id": "mx1",
+ "module_name": "module_env",
+ "component_name": "componentA"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "SensitivityDial": 50,
+ "Status": 66.82181229066656,
+ "$metadata": {
+ "SensitivityDial": {
+ "desiredValue": 50,
+ "desiredVersion": 3,
+ "ackVersion": 1,
+ "ackDescription": "Ok",
+ "ackCode": 200,
+ "lastUpdateTime": "2020-04-27T22:08:55.1149957Z"
+ },
+ "Status": {
+ "lastUpdateTime": "2020-04-27T22:09:25.1151948Z"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_set.json b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_set.json
new file mode 100644
index 000000000000..893cd68093bd
--- /dev/null
+++ b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_set.json
@@ -0,0 +1,31 @@
+{
+ "title": "Update properties of a module within a component",
+ "description": "Update the values of read-write properties of a module within a single component",
+ "parameters": {
+ "centralDnsSuffixInPath": "azureiotcentral.com",
+ "subdomain": "appsubdomain",
+ "device_id": "mx1",
+ "module_name": "module_env",
+ "component_name": "componentA",
+ "body": {
+ "SensitivityDial": 300
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "SensitivityDial": 50,
+ "$metadata": {
+ "SensitivityDial": {
+ "desiredValue": 300,
+ "desiredVersion": 3,
+ "ackVersion": 1,
+ "ackDescription": "Ok",
+ "ackCode": 200,
+ "lastUpdateTime": "2020-04-27T22:08:55.1149957Z"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_get.json b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_get.json
new file mode 100644
index 000000000000..9c90e967c92f
--- /dev/null
+++ b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_get.json
@@ -0,0 +1,33 @@
+{
+ "title": "Get properties of a module",
+ "description": "Get the current values of all device properties within a module.",
+ "parameters": {
+ "centralDnsSuffixInPath": "azureiotcentral.com",
+ "subdomain": "appsubdomain",
+ "device_id": "mx1",
+ "module_name": "module_env"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "componentA": {
+ "SensitivityDial": 50,
+ "Status": 25.494280816287844,
+ "$metadata": {
+ "SensitivityDial": {
+ "desiredValue": 50,
+ "desiredVersion": 3,
+ "ackVersion": 1,
+ "ackDescription": "Ok",
+ "ackCode": 200,
+ "lastUpdateTime": "2020-04-27T22:08:55.1149957Z"
+ },
+ "Status": {
+ "lastUpdateTime": "2020-04-27T22:19:31.9485342Z"
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_update.json b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_update.json
new file mode 100644
index 000000000000..3d22f4564d91
--- /dev/null
+++ b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_update.json
@@ -0,0 +1,34 @@
+{
+ "title": "Update properties of a module",
+ "description": "Update the values of read-write properties of a module",
+ "parameters": {
+ "centralDnsSuffixInPath": "azureiotcentral.com",
+ "subdomain": "appsubdomain",
+ "device_id": "mx1",
+ "module_name": "module_env",
+ "body": {
+ "componentA": {
+ "SensitivityDial": 200
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "componentA": {
+ "SensitivityDial": 75,
+ "$metadata": {
+ "SensitivityDial": {
+ "desiredValue": 200,
+ "desiredVersion": 3,
+ "ackVersion": 1,
+ "ackDescription": "Ok",
+ "ackCode": 200,
+ "lastUpdateTime": "2020-04-27T22:08:55.1149957Z"
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_telemetry_get.json b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_telemetry_get.json
new file mode 100644
index 000000000000..1a858851af2d
--- /dev/null
+++ b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_telemetry_get.json
@@ -0,0 +1,23 @@
+{
+ "title": "Get telemetry from a module",
+ "description": "Get the last known value of a telemetry stream from a module.",
+ "parameters": {
+ "centralDnsSuffixInPath": "azureiotcentral.com",
+ "subdomain": "appsubdomain",
+ "device_id": "mx1",
+ "module_name": "environment",
+ "component_name": "componentA",
+ "telemetry_name": "ambient"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": {
+ "temperature": 20.961113326000568,
+ "humidity": 24
+ },
+ "timestamp": "2020-04-16T03:24:44.84Z"
+ }
+ }
+ }
+}
diff --git a/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/iotcentral.json b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/iotcentral.json
index 80190d5f74d3..b6f625803b3a 100644
--- a/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/iotcentral.json
+++ b/specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/iotcentral.json
@@ -135,6 +135,112 @@
}
]
},
+ "ObjectSchema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/Entity"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "fields": {
+ "description": "The property fields of this object type.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SchemaField"
+ }
+ }
+ },
+ "required": [
+ "fields"
+ ]
+ }
+ ]
+ },
+ "EnumSchema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/Entity"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "valueSchema": {
+ "description": "The schema for values of this enum type."
+ },
+ "enumValues": {
+ "description": "The discreet named values of this enum type.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EnumValue"
+ }
+ }
+ },
+ "required": [
+ "valueSchema",
+ "enumValues"
+ ]
+ }
+ ]
+ },
+ "EnumValue": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/NamedEntity"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "enumValue": {
+ "description": "The resolved value of this enum entry."
+ }
+ },
+ "required": [
+ "enumValue"
+ ]
+ }
+ ]
+ },
+ "MapSchema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/Entity"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "mapKey": {
+ "description": "The schema for keys of this map type."
+ },
+ "mapValue": {
+ "description": "The schema for values of this map type."
+ }
+ },
+ "required": [
+ "mapKey",
+ "mapValue"
+ ]
+ }
+ ]
+ },
+ "ArraySchema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/Entity"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "elementSchema": {
+ "description": "The schema for values of this array type."
+ }
+ },
+ "required": [
+ "elementSchema"
+ ]
+ }
+ ]
+ },
"SchemaField": {
"allOf": [
{
@@ -222,9 +328,7 @@
"target": {
"description": "The target capability models for this relationship.",
"type": "array",
- "items": {
- "type": "string"
- },
+ "items": {},
"minItems": 1
},
"maxMultiplicity": {
@@ -266,14 +370,17 @@
"description": "The interface used by this component.",
"$ref": "#/definitions/Interface"
}
- }
+ },
+ "required": [
+ "schema"
+ ]
}
]
},
"CapabilityModel": {
"allOf": [
{
- "$ref": "#/definitions/Entity"
+ "$ref": "#/definitions/Interface"
},
{
"type": "object",
@@ -284,13 +391,6 @@
"items": {
"$ref": "#/definitions/Component"
}
- },
- "contents": {
- "description": "The relationships contained by the capability model.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Capability"
- }
}
}
}
@@ -452,10 +552,7 @@
"type": "boolean",
"readOnly": true
}
- },
- "required": [
- "instanceOf"
- ]
+ }
},
"DeviceCollection": {
"type": "object",
@@ -478,8 +575,8 @@
},
"DeviceCloudProperties": {
"description": "Cloud property values associated with the device.",
- "type": "object",
- "additionalProperties": true
+ "additionalProperties": true,
+ "type": "object"
},
"DeviceCommand": {
"type": "object",
@@ -548,8 +645,7 @@
},
"DeviceProperties": {
"description": "Property values associated with the device.",
- "type": "object",
- "additionalProperties": true
+ "type": "object"
},
"DeviceTelemetry": {
"type": "object",
@@ -859,7 +955,11 @@
"value": {
"description": "The initial value of the capability."
}
- }
+ },
+ "required": [
+ "capability",
+ "value"
+ ]
}
]
},
@@ -891,7 +991,10 @@
"description": "Visualization details for the referenced capability.",
"$ref": "#/definitions/ValueDetail"
}
- }
+ },
+ "required": [
+ "capability"
+ ]
}
]
},
@@ -992,7 +1095,11 @@
"description": "The name of the capability being referenced.",
"type": "string"
}
- }
+ },
+ "required": [
+ "component",
+ "reference"
+ ]
}
]
}
@@ -1654,17 +1761,12 @@
"$ref": "#/parameters/ComponentName"
},
{
- "in": "path",
- "name": "command_name",
- "description": "Name of this device command.",
- "x-ms-parameter-location": "method",
- "type": "string",
- "required": true
+ "$ref": "#/parameters/CommandName"
}
],
"get": {
- "operationId": "Devices_GetCommandHistory",
- "summary": "Get device command history",
+ "operationId": "Devices_GetComponentCommandHistory",
+ "summary": "Get command history for a component of the device",
"x-ms-examples": {
"Get command history": {
"$ref": "./examples/devices_commandshistory_get.json"
@@ -1683,14 +1785,71 @@
}
},
"post": {
- "operationId": "Devices_ExecuteCommand",
- "summary": "Execute a device command",
+ "operationId": "Devices_ExecuteComponentCommand",
+ "summary": "Execute a command on a component of a device",
"description": "Execute a command on a device.",
+ "parameters": [
+ {
+ "name": "body",
+ "in": "body",
+ "description": "Device command body.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DeviceCommand"
+ }
+ }
+ ],
"x-ms-examples": {
"Send command": {
"$ref": "./examples/devices_commands_send.json"
}
},
+ "responses": {
+ "201": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/DeviceCommand"
+ }
+ }
+ }
+ }
+ },
+ "/devices/{device_id}/modules/{module_name}/components/{component_name}/commands/{command_name}": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeviceId"
+ },
+ {
+ "$ref": "#/parameters/ModuleName"
+ },
+ {
+ "$ref": "#/parameters/ComponentName"
+ },
+ {
+ "$ref": "#/parameters/CommandName"
+ }
+ ],
+ "get": {
+ "operationId": "Devices_GetModuleComponentCommandHistory",
+ "summary": "Get module command history",
+ "x-ms-examples": {
+ "Get command history within module": {
+ "$ref": "./examples/modules_commandshistory_get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/DeviceCommandCollection"
+ }
+ }
+ }
+ },
+ "post": {
+ "operationId": "Devices_ExecuteModuleComponentCommand",
+ "summary": "Execute a module command",
+ "description": "Execute a command on a module.",
"parameters": [
{
"name": "body",
@@ -1702,6 +1861,11 @@
}
}
],
+ "x-ms-examples": {
+ "Send command to module": {
+ "$ref": "./examples/modules_commands_send.json"
+ }
+ },
"responses": {
"201": {
"description": "Success",
@@ -1845,6 +2009,121 @@
}
}
},
+ "/devices/{device_id}/modules/{module_name}/properties": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeviceId"
+ },
+ {
+ "$ref": "#/parameters/ModuleName"
+ }
+ ],
+ "get": {
+ "operationId": "Devices_GetModuleProperties",
+ "summary": "Get module properties",
+ "description": "Get all property values of a module.",
+ "x-ms-examples": {
+ "Get properties of a module": {
+ "$ref": "./examples/modules_properties_get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/DeviceProperties"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "Devices_UpdateModuleProperties",
+ "summary": "Update module properties",
+ "description": "Update all property values of a module.",
+ "parameters": [
+ {
+ "name": "body",
+ "in": "body",
+ "description": "Module properties.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DeviceProperties"
+ }
+ }
+ ],
+ "x-ms-examples": {
+ "Update properties of a module": {
+ "$ref": "./examples/modules_properties_update.json"
+ }
+ },
+ "responses": {
+ "202": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/DeviceProperties"
+ }
+ }
+ }
+ }
+ },
+ "/devices/{device_id}/modules/{module_name}/components/{component_name}/properties": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeviceId"
+ },
+ {
+ "$ref": "#/parameters/ModuleName"
+ },
+ {
+ "$ref": "#/parameters/ComponentName"
+ }
+ ],
+ "get": {
+ "operationId": "Devices_GetModuleComponentProperties",
+ "summary": "Get module properties for a specific component",
+ "x-ms-examples": {
+ "Get properties of a module": {
+ "$ref": "./examples/modules_properties_components_get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/DeviceProperties"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "Devices_UpdateModuleComponentProperties",
+ "summary": "Update module properties for a specific component",
+ "parameters": [
+ {
+ "name": "body",
+ "in": "body",
+ "description": "Module properties.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DeviceProperties"
+ }
+ }
+ ],
+ "x-ms-examples": {
+ "Update properties of a module within a component": {
+ "$ref": "./examples/modules_properties_components_set.json"
+ }
+ },
+ "responses": {
+ "202": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/DeviceProperties"
+ }
+ }
+ }
+ }
+ },
"/devices/{device_id}/components/{component_name}/telemetry/{telemetry_name}": {
"parameters": [
{
@@ -1854,16 +2133,11 @@
"$ref": "#/parameters/ComponentName"
},
{
- "in": "path",
- "name": "telemetry_name",
- "description": "Name of this device telemetry.",
- "x-ms-parameter-location": "method",
- "type": "string",
- "required": true
+ "$ref": "#/parameters/TelemetryName"
}
],
"get": {
- "operationId": "Devices_GetTelemetryValue",
+ "operationId": "Devices_GetComponentTelemetryValue",
"summary": "Get device telemetry value",
"x-ms-examples": {
"Get telemetry": {
@@ -1879,6 +2153,39 @@
}
}
}
+ },
+ "/devices/{device_id}/modules/{module_name}/components/{component_name}/telemetry/{telemetry_name}": {
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeviceId"
+ },
+ {
+ "$ref": "#/parameters/ModuleName"
+ },
+ {
+ "$ref": "#/parameters/ComponentName"
+ },
+ {
+ "$ref": "#/parameters/TelemetryName"
+ }
+ ],
+ "get": {
+ "operationId": "Devices_GetModuleComponentTelemetryValue",
+ "summary": "Get module telemetry value",
+ "x-ms-examples": {
+ "Get telemetry from module": {
+ "$ref": "./examples/modules_telemetry_get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/DeviceTelemetry"
+ }
+ }
+ }
+ }
}
},
"parameters": {
@@ -1898,6 +2205,14 @@
"type": "string",
"required": true
},
+ "ModuleName": {
+ "in": "path",
+ "name": "module_name",
+ "description": "Name of the device module.",
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "required": true
+ },
"ComponentName": {
"in": "path",
"name": "component_name",
@@ -1906,6 +2221,22 @@
"type": "string",
"required": true
},
+ "CommandName": {
+ "in": "path",
+ "name": "command_name",
+ "description": "Name of this device command.",
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "required": true
+ },
+ "TelemetryName": {
+ "in": "path",
+ "name": "telemetry_name",
+ "description": "Name of this device telemetry.",
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "required": true
+ },
"Subdomain": {
"in": "path",
"name": "subdomain",
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/IotHub_ManualFailover.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/IotHub_ManualFailover.json
new file mode 100644
index 000000000000..a1c04b705fe5
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/IotHub_ManualFailover.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "iotHubName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "failoverInput": {
+ "failoverRegion": "testHub"
+ }
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/checkNameAvailability.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/checkNameAvailability.json
new file mode 100644
index 000000000000..6581d7844be9
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/checkNameAvailability.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "operationInputs": {
+ "name": "test-request"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": true,
+ "reason": "Invalid",
+ "message": ""
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certificatescreateorupdate.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certificatescreateorupdate.json
new file mode 100644
index 000000000000..441418d317ce
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certificatescreateorupdate.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "resourceName": "iothub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "certificateName": "cert",
+ "certificateDescription": {
+ "certificate": "############################################"
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "subject": "CN=testdevice1",
+ "expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
+ "thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
+ "isVerified": false,
+ "created": "Thu, 12 Oct 2017 19:23:50 GMT",
+ "updated": "Thu, 12 Oct 2017 19:23:50 GMT"
+ },
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert",
+ "name": "cert",
+ "type": "Microsoft.Devices/IotHubs/Certificates",
+ "etag": "AAAAAAExpNs="
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "subject": "CN=testdevice1",
+ "expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
+ "thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
+ "isVerified": false,
+ "created": "Thu, 12 Oct 2017 19:23:50 GMT",
+ "updated": "Thu, 12 Oct 2017 19:23:50 GMT"
+ },
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert",
+ "name": "cert",
+ "type": "Microsoft.Devices/IotHubs/Certificates",
+ "etag": "AAAAAAExpNs="
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certificatesdelete.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certificatesdelete.json
new file mode 100644
index 000000000000..a6298b08f0c8
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certificatesdelete.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "resourceName": "myhub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "certificateName": "cert",
+ "If-Match": "AAAAAAAADGk="
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certverify.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certverify.json
new file mode 100644
index 000000000000..c21b660ba2cf
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_certverify.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "resourceName": "myFirstProvisioningService",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "certificateName": "cert",
+ "If-Match": "AAAAAAAADGk=",
+ "certificateVerificationBody": {
+ "certificate": "#####################################"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "subject": "CN=andbucdevice1",
+ "expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
+ "thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
+ "isVerified": true,
+ "created": "Thu, 12 Oct 2017 19:23:50 GMT",
+ "updated": "Thu, 12 Oct 2017 19:26:56 GMT"
+ },
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/certificates/cert",
+ "name": "cert",
+ "type": "Microsoft.Devices/IotHubs/Certificates",
+ "etag": "AAAAAAExpTQ="
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_createOrUpdate.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_createOrUpdate.json
new file mode 100644
index 000000000000..2cd2c5b5f4b5
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_createOrUpdate.json
@@ -0,0 +1,226 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "iotHubDescription": {
+ "location": "centraluseuap",
+ "tags": {},
+ "etag": "AAAAAAFD6M4=",
+ "properties": {
+ "ipFilterRules": [],
+ "eventHubEndpoints": {
+ "events": {
+ "retentionTimeInDays": 1,
+ "partitionCount": 2
+ }
+ },
+ "routing": {
+ "endpoints": {
+ "serviceBusQueues": [],
+ "serviceBusTopics": [],
+ "eventHubs": [],
+ "storageContainers": []
+ },
+ "routes": [],
+ "fallbackRoute": {
+ "name": "$fallback",
+ "source": "DeviceMessages",
+ "condition": "true",
+ "endpointNames": [
+ "events"
+ ],
+ "isEnabled": true
+ }
+ },
+ "storageEndpoints": {
+ "$default": {
+ "sasTtlAsIso8601": "PT1H",
+ "connectionString": "",
+ "containerName": ""
+ }
+ },
+ "messagingEndpoints": {
+ "fileNotifications": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "enableFileUploadNotifications": false,
+ "cloudToDevice": {
+ "maxDeliveryCount": 10,
+ "defaultTtlAsIso8601": "PT1H",
+ "feedback": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "features": "None",
+ "minTlsVersion": "1.2"
+ },
+ "sku": {
+ "name": "S1",
+ "capacity": 1
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
+ "name": "testHub",
+ "type": "Microsoft.Devices/IotHubs",
+ "location": "centraluseuap",
+ "tags": {},
+ "etag": "AAAAAAFD6M4=",
+ "properties": {
+ "state": "Active",
+ "provisioningState": "Succeeded",
+ "ipFilterRules": [],
+ "hostName": "iot-dps-cit-hub-1.azure-devices.net",
+ "eventHubEndpoints": {
+ "events": {
+ "retentionTimeInDays": 1,
+ "partitionCount": 2,
+ "partitionIds": [
+ "0",
+ "1"
+ ],
+ "path": "iot-dps-cit-hub-1",
+ "endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
+ }
+ },
+ "routing": {
+ "endpoints": {
+ "serviceBusQueues": [],
+ "serviceBusTopics": [],
+ "eventHubs": [],
+ "storageContainers": []
+ },
+ "routes": [],
+ "fallbackRoute": {
+ "name": "$fallback",
+ "source": "DeviceMessages",
+ "condition": "true",
+ "endpointNames": [
+ "events"
+ ],
+ "isEnabled": true
+ }
+ },
+ "storageEndpoints": {
+ "$default": {
+ "sasTtlAsIso8601": "PT1H",
+ "connectionString": "",
+ "containerName": ""
+ }
+ },
+ "messagingEndpoints": {
+ "fileNotifications": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "enableFileUploadNotifications": false,
+ "cloudToDevice": {
+ "maxDeliveryCount": 10,
+ "defaultTtlAsIso8601": "PT1H",
+ "feedback": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "features": "None",
+ "minTlsVersion": "1.2"
+ },
+ "sku": {
+ "name": "S1",
+ "tier": "Standard",
+ "capacity": 1
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
+ "name": "testHub",
+ "type": "Microsoft.Devices/IotHubs",
+ "location": "centraluseuap",
+ "tags": {},
+ "etag": "AAAAAAFD6M4=",
+ "properties": {
+ "state": "Active",
+ "provisioningState": "Succeeded",
+ "ipFilterRules": [],
+ "hostName": "iot-dps-cit-hub-1.azure-devices.net",
+ "eventHubEndpoints": {
+ "events": {
+ "retentionTimeInDays": 1,
+ "partitionCount": 2,
+ "partitionIds": [
+ "0",
+ "1"
+ ],
+ "path": "iot-dps-cit-hub-1",
+ "endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
+ }
+ },
+ "routing": {
+ "endpoints": {
+ "serviceBusQueues": [],
+ "serviceBusTopics": [],
+ "eventHubs": [],
+ "storageContainers": []
+ },
+ "routes": [],
+ "fallbackRoute": {
+ "name": "$fallback",
+ "source": "DeviceMessages",
+ "condition": "true",
+ "endpointNames": [
+ "events"
+ ],
+ "isEnabled": true
+ }
+ },
+ "storageEndpoints": {
+ "$default": {
+ "sasTtlAsIso8601": "PT1H",
+ "connectionString": "",
+ "containerName": ""
+ }
+ },
+ "messagingEndpoints": {
+ "fileNotifications": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "enableFileUploadNotifications": false,
+ "cloudToDevice": {
+ "maxDeliveryCount": 10,
+ "defaultTtlAsIso8601": "PT1H",
+ "feedback": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "features": "None",
+ "minTlsVersion": "1.2"
+ },
+ "sku": {
+ "name": "S1",
+ "tier": "Standard",
+ "capacity": 1
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_createconsumergroup.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_createconsumergroup.json
new file mode 100644
index 000000000000..5bade20d43d0
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_createconsumergroup.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "eventHubEndpointName": "events",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "name": "test"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "created": "Thu, 15 Jun 2017 19:20:58 GMT"
+ },
+ "id": "/subscriptions/cmd-sub-1/resourceGroups/cmd-rg-1/providers/Microsoft.Devices/IotHubs/test-hub-2/eventHubEndpoints/events/ConsumerGroups/%24Default",
+ "name": "test",
+ "type": "Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups",
+ "etag": "AAAAAAFD6M4="
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_delete.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_delete.json
new file mode 100644
index 000000000000..cc1a6c150d79
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_delete.json
@@ -0,0 +1,164 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
+ "name": "testHub",
+ "type": "Microsoft.Devices/IotHubs",
+ "location": "centraluseuap",
+ "tags": {},
+ "etag": "AAAAAAFD6M4=",
+ "properties": {
+ "state": "Active",
+ "provisioningState": "Succeeded",
+ "ipFilterRules": [],
+ "hostName": "iot-dps-cit-hub-1.azure-devices.net",
+ "eventHubEndpoints": {
+ "events": {
+ "retentionTimeInDays": 1,
+ "partitionCount": 2,
+ "partitionIds": [
+ "0",
+ "1"
+ ],
+ "path": "iot-dps-cit-hub-1",
+ "endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
+ }
+ },
+ "routing": {
+ "endpoints": {
+ "serviceBusQueues": [],
+ "serviceBusTopics": [],
+ "eventHubs": [],
+ "storageContainers": []
+ },
+ "routes": [],
+ "fallbackRoute": {
+ "source": "DeviceMessages",
+ "condition": "true",
+ "endpointNames": [
+ "events"
+ ],
+ "isEnabled": true
+ }
+ },
+ "storageEndpoints": {
+ "$default": {
+ "sasTtlAsIso8601": "PT1H",
+ "connectionString": "",
+ "containerName": ""
+ }
+ },
+ "messagingEndpoints": {
+ "fileNotifications": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "enableFileUploadNotifications": false,
+ "cloudToDevice": {
+ "maxDeliveryCount": 10,
+ "defaultTtlAsIso8601": "PT1H",
+ "feedback": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "features": "None"
+ },
+ "sku": {
+ "name": "S1",
+ "tier": "Standard",
+ "capacity": 1
+ }
+ }
+ },
+ "204": {},
+ "202": {
+ "body": {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
+ "name": "testHub",
+ "type": "Microsoft.Devices/IotHubs",
+ "location": "centraluseuap",
+ "tags": {},
+ "etag": "AAAAAAFD6M4=",
+ "properties": {
+ "state": "Active",
+ "provisioningState": "Succeeded",
+ "ipFilterRules": [],
+ "hostName": "iot-dps-cit-hub-1.azure-devices.net",
+ "eventHubEndpoints": {
+ "events": {
+ "retentionTimeInDays": 1,
+ "partitionCount": 2,
+ "partitionIds": [
+ "0",
+ "1"
+ ],
+ "path": "iot-dps-cit-hub-1",
+ "endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
+ }
+ },
+ "routing": {
+ "endpoints": {
+ "serviceBusQueues": [],
+ "serviceBusTopics": [],
+ "eventHubs": [],
+ "storageContainers": []
+ },
+ "routes": [],
+ "fallbackRoute": {
+ "source": "DeviceMessages",
+ "condition": "true",
+ "endpointNames": [
+ "events"
+ ],
+ "isEnabled": true
+ }
+ },
+ "storageEndpoints": {
+ "$default": {
+ "sasTtlAsIso8601": "PT1H",
+ "connectionString": "",
+ "containerName": ""
+ }
+ },
+ "messagingEndpoints": {
+ "fileNotifications": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "enableFileUploadNotifications": false,
+ "cloudToDevice": {
+ "maxDeliveryCount": 10,
+ "defaultTtlAsIso8601": "PT1H",
+ "feedback": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "features": "None"
+ },
+ "sku": {
+ "name": "S1",
+ "tier": "Standard",
+ "capacity": 1
+ }
+ }
+ },
+ "404": {
+ "body": {}
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_deleteconsumergroup.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_deleteconsumergroup.json
new file mode 100644
index 000000000000..255f559176e0
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_deleteconsumergroup.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "eventHubEndpointName": "events",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "name": "test"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_deleteprivateendpointconnection.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_deleteprivateendpointconnection.json
new file mode 100644
index 000000000000..a7f5281224b8
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_deleteprivateendpointconnection.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "privateEndpointConnectionName": "myPrivateEndpointConnection"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateEndpointConnections/myPrivateEndpointConnection",
+ "name": "myPrivateEndpointConnection",
+ "type": "Microsoft.Devices/IotHubs/PrivateEndpointConnections",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Disconnected",
+ "description": "Deleted",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ },
+ "202": {
+ "body": {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateEndpointConnections/myPrivateEndpointConnection",
+ "name": "myPrivateEndpointConnection",
+ "type": "Microsoft.Devices/IotHubs/PrivateEndpointConnections",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Disconnected",
+ "description": "Deleted",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_exportdevices.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_exportdevices.json
new file mode 100644
index 000000000000..b14348ff03cd
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_exportdevices.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "exportDevicesParameters": {
+ "exportBlobContainerUri": "testBlob",
+ "excludeKeys": true
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "jobId": "test",
+ "startTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
+ "endTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
+ "type": "unknown",
+ "status": "unknown"
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_generateverificationcode.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_generateverificationcode.json
new file mode 100644
index 000000000000..c30d68e5a172
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_generateverificationcode.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "certificateName": "cert",
+ "If-Match": "AAAAAAAADGk="
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cert",
+ "properties": {
+ "verificationCode": "##################################",
+ "subject": "CN=andbucdevice1",
+ "expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
+ "thumbprint": "##############################",
+ "isVerified": false,
+ "created": "Thu, 12 Oct 2017 19:23:50 GMT",
+ "updated": "Thu, 12 Oct 2017 19:26:56 GMT"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_get.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_get.json
new file mode 100644
index 000000000000..d6774f3b969f
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_get.json
@@ -0,0 +1,96 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
+ "name": "testHub",
+ "type": "Microsoft.Devices/IotHubs",
+ "location": "centraluseuap",
+ "tags": {},
+ "etag": "AAAAAAFD6M4=",
+ "properties": {
+ "state": "Active",
+ "provisioningState": "Succeeded",
+ "ipFilterRules": [],
+ "hostName": "iot-dps-cit-hub-1.azure-devices.net",
+ "eventHubEndpoints": {
+ "events": {
+ "retentionTimeInDays": 1,
+ "partitionCount": 2,
+ "partitionIds": [
+ "0",
+ "1"
+ ],
+ "path": "iot-dps-cit-hub-1",
+ "endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
+ }
+ },
+ "routing": {
+ "endpoints": {
+ "serviceBusQueues": [],
+ "serviceBusTopics": [],
+ "eventHubs": [],
+ "storageContainers": []
+ },
+ "routes": [],
+ "fallbackRoute": {
+ "source": "DeviceMessages",
+ "condition": "true",
+ "endpointNames": [
+ "events"
+ ],
+ "isEnabled": true
+ }
+ },
+ "storageEndpoints": {
+ "$default": {
+ "sasTtlAsIso8601": "PT1H",
+ "connectionString": "",
+ "containerName": ""
+ }
+ },
+ "messagingEndpoints": {
+ "fileNotifications": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "enableFileUploadNotifications": false,
+ "cloudToDevice": {
+ "maxDeliveryCount": 10,
+ "defaultTtlAsIso8601": "PT1H",
+ "feedback": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "features": "None",
+ "locations": [
+ {
+ "location": "West US",
+ "role": "primary"
+ },
+ {
+ "location": "East US",
+ "role": "secondary"
+ }
+ ],
+ "minTlsVersion": "1.2"
+ },
+ "sku": {
+ "name": "S1",
+ "tier": "Standard",
+ "capacity": 1
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getcertificate.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getcertificate.json
new file mode 100644
index 000000000000..29fea7c21df0
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getcertificate.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "resourceName": "testhub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "certificateName": "cert"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "subject": "CN=testdevice1",
+ "expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
+ "thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
+ "isVerified": false,
+ "created": "Thu, 12 Oct 2017 19:23:50 GMT",
+ "updated": "Thu, 12 Oct 2017 19:23:50 GMT"
+ },
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/andbuc-hub/certificates/cert",
+ "name": "cert",
+ "type": "Microsoft.Devices/IotHubs/Certificates",
+ "etag": "AAAAAAExpNs="
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getconsumergroup.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getconsumergroup.json
new file mode 100644
index 000000000000..5bade20d43d0
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getconsumergroup.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "eventHubEndpointName": "events",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "name": "test"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "created": "Thu, 15 Jun 2017 19:20:58 GMT"
+ },
+ "id": "/subscriptions/cmd-sub-1/resourceGroups/cmd-rg-1/providers/Microsoft.Devices/IotHubs/test-hub-2/eventHubEndpoints/events/ConsumerGroups/%24Default",
+ "name": "test",
+ "type": "Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups",
+ "etag": "AAAAAAFD6M4="
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getjob.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getjob.json
new file mode 100644
index 000000000000..515879a8e488
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getjob.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "jobId": "test"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "jobId": "test",
+ "startTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
+ "endTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
+ "type": "unknown",
+ "status": "unknown"
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getkey.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getkey.json
new file mode 100644
index 000000000000..15de768f8a86
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getkey.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "keyName": "iothubowner"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "keyName": "iothubowner",
+ "primaryKey": "2aWPrKloLLdcug12ZHNpA0e07yJmRRmYMXDLpEOTd/Y=",
+ "secondaryKey": "DLyFnDTGMDK0BU2QjT5TCkNBQ4h08mi20vOqWMC7TxU=",
+ "rights": "RegistryWrite, ServiceConnect, DeviceConnect"
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getprivateendpointconnection.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getprivateendpointconnection.json
new file mode 100644
index 000000000000..15d808b0a0b0
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getprivateendpointconnection.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "privateEndpointConnectionName": "myPrivateEndpointConnection"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateEndpointConnections/myPrivateEndpointConnection",
+ "name": "myPrivateEndpointConnection",
+ "type": "Microsoft.Devices/IotHubs/PrivateEndpointConnections",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Pending",
+ "description": "Please approve my request!",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getprivatelinkresources.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getprivatelinkresources.json
new file mode 100644
index 000000000000..4d836ee7745b
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getprivatelinkresources.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "groupId": "iotHub"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateLinkResources/iotHub",
+ "name": "iotHub",
+ "type": "Microsoft.Devices/IotHubs/PrivateLinkResources",
+ "properties": {
+ "groupId": "iotHub",
+ "requiredMembers": [
+ "iotHub"
+ ],
+ "requiredZoneNames": [
+ "privatelink.azure-devices.net"
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getskus.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getskus.json
new file mode 100644
index 000000000000..df66c6ab9b14
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_getskus.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "resourceType": "Microsoft.Devices/IotHubs",
+ "sku": {
+ "name": "S1",
+ "tier": "Standard"
+ },
+ "capacity": {
+ "default": 1,
+ "scaleType": "Manual"
+ }
+ },
+ {
+ "resourceType": "Microsoft.Devices/IotHubs",
+ "sku": {
+ "name": "S2",
+ "tier": "Standard"
+ },
+ "capacity": {
+ "minimum": 1,
+ "maximum": 200,
+ "default": 1,
+ "scaleType": "Manual"
+ }
+ },
+ {
+ "resourceType": "Microsoft.Devices/IotHubs",
+ "sku": {
+ "name": "S3",
+ "tier": "Standard"
+ },
+ "capacity": {
+ "minimum": 1,
+ "maximum": 10,
+ "default": 1,
+ "scaleType": "Manual"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_importdevices.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_importdevices.json
new file mode 100644
index 000000000000..dc1dca139ab5
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_importdevices.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "importDevicesParameters": {
+ "inputBlobContainerUri": "testBlob",
+ "outputBlobContainerUri": "testBlob"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "jobId": "test",
+ "startTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
+ "endTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
+ "type": "unknown",
+ "status": "unknown"
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listbyrg.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listbyrg.json
new file mode 100644
index 000000000000..1665155c13ea
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listbyrg.json
@@ -0,0 +1,90 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
+ "name": "testHub",
+ "type": "Microsoft.Devices/IotHubs",
+ "location": "centraluseuap",
+ "tags": {},
+ "etag": "AAAAAAFD6M4=",
+ "properties": {
+ "state": "Active",
+ "provisioningState": "Succeeded",
+ "ipFilterRules": [],
+ "hostName": "iot-dps-cit-hub-1.azure-devices.net",
+ "eventHubEndpoints": {
+ "events": {
+ "retentionTimeInDays": 1,
+ "partitionCount": 2,
+ "partitionIds": [
+ "0",
+ "1"
+ ],
+ "path": "iot-dps-cit-hub-1",
+ "endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
+ }
+ },
+ "routing": {
+ "endpoints": {
+ "serviceBusQueues": [],
+ "serviceBusTopics": [],
+ "eventHubs": [],
+ "storageContainers": []
+ },
+ "routes": [],
+ "fallbackRoute": {
+ "name": "$fallback",
+ "source": "DeviceMessages",
+ "condition": "true",
+ "endpointNames": [
+ "events"
+ ],
+ "isEnabled": true
+ }
+ },
+ "storageEndpoints": {
+ "$default": {
+ "sasTtlAsIso8601": "PT1H",
+ "connectionString": "",
+ "containerName": ""
+ }
+ },
+ "messagingEndpoints": {
+ "fileNotifications": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "enableFileUploadNotifications": false,
+ "cloudToDevice": {
+ "maxDeliveryCount": 10,
+ "defaultTtlAsIso8601": "PT1H",
+ "feedback": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "features": "None"
+ },
+ "sku": {
+ "name": "S1",
+ "tier": "Standard",
+ "capacity": 1
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listbysubscription.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listbysubscription.json
new file mode 100644
index 000000000000..8c498ded46de
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listbysubscription.json
@@ -0,0 +1,89 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
+ "name": "testHub",
+ "type": "Microsoft.Devices/IotHubs",
+ "location": "centraluseuap",
+ "tags": {},
+ "etag": "AAAAAAFD6M4=",
+ "properties": {
+ "state": "Active",
+ "provisioningState": "Succeeded",
+ "ipFilterRules": [],
+ "hostName": "iot-dps-cit-hub-1.azure-devices.net",
+ "eventHubEndpoints": {
+ "events": {
+ "retentionTimeInDays": 1,
+ "partitionCount": 2,
+ "partitionIds": [
+ "0",
+ "1"
+ ],
+ "path": "iot-dps-cit-hub-1",
+ "endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
+ }
+ },
+ "routing": {
+ "endpoints": {
+ "serviceBusQueues": [],
+ "serviceBusTopics": [],
+ "eventHubs": [],
+ "storageContainers": []
+ },
+ "routes": [],
+ "fallbackRoute": {
+ "name": "$fallback",
+ "source": "DeviceMessages",
+ "condition": "true",
+ "endpointNames": [
+ "events"
+ ],
+ "isEnabled": true
+ }
+ },
+ "storageEndpoints": {
+ "$default": {
+ "sasTtlAsIso8601": "PT1H",
+ "connectionString": "",
+ "containerName": ""
+ }
+ },
+ "messagingEndpoints": {
+ "fileNotifications": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "enableFileUploadNotifications": false,
+ "cloudToDevice": {
+ "maxDeliveryCount": 10,
+ "defaultTtlAsIso8601": "PT1H",
+ "feedback": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "features": "None"
+ },
+ "sku": {
+ "name": "S1",
+ "tier": "Standard",
+ "capacity": 1
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listcertificates.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listcertificates.json
new file mode 100644
index 000000000000..0bd695f362be
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listcertificates.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "resourceName": "testhub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "subject": "CN=testdevice1",
+ "expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
+ "thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
+ "isVerified": false,
+ "created": "Thu, 12 Oct 2017 19:23:50 GMT",
+ "updated": "Thu, 12 Oct 2017 19:23:50 GMT"
+ },
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/andbuc-hub/certificates/cert",
+ "name": "cert",
+ "type": "Microsoft.Devices/IotHubs/Certificates",
+ "etag": "AAAAAAExpNs="
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listehgroups.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listehgroups.json
new file mode 100644
index 000000000000..9a2a42b7b7a6
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listehgroups.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "eventHubEndpointName": "events",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "created": "Thu, 15 Jun 2017 19:20:58 GMT"
+ },
+ "id": "/subscriptions/cmd-sub-1/resourceGroups/cmd-rg-1/providers/Microsoft.Devices/IotHubs/test-hub-2/eventHubEndpoints/events/ConsumerGroups/%24Default",
+ "name": "$Default",
+ "type": "Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups",
+ "etag": "AAAAAAFD6M4="
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listjobs.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listjobs.json
new file mode 100644
index 000000000000..dcbab89398be
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listjobs.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "jobId": "test",
+ "startTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
+ "endTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
+ "type": "unknown",
+ "status": "unknown"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listkeys.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listkeys.json
new file mode 100644
index 000000000000..835b1270ebb7
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listkeys.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "keyName": "iothubowner",
+ "primaryKey": "2aWPrKloLLdcug12ZHNpA0e07yJmRRmYMXDLpEOTd/Y=",
+ "secondaryKey": "DLyFnDTGMDK0BU2QjT5TCkNBQ4h08mi20vOqWMC7TxU=",
+ "rights": "RegistryWrite, ServiceConnect, DeviceConnect"
+ },
+ {
+ "keyName": "service",
+ "primaryKey": "DinqxWW+s814W2Pc3dLxleelksqSYGy8Jfymt8J7a4c=",
+ "secondaryKey": "5G8KgJ9Wx2T0f6HRIn25TgYcFmJnBSivawNaHssiP9Y=",
+ "rights": "ServiceConnect"
+ },
+ {
+ "keyName": "device",
+ "primaryKey": "o/9gPc0oD8LY/r2lRurgl9U/sKFcL2c/tmFLKAiz+e0=",
+ "secondaryKey": "YOeBMHnYP95vH+ykR8OeapnhS6W8raMsXOdNFwqg4lg=",
+ "rights": "DeviceConnect"
+ },
+ {
+ "keyName": "registryRead",
+ "primaryKey": "h2d4mPxy6jPCWX6mO+katV9QPNJivzt4aFq0iGVc1A8=",
+ "secondaryKey": "3TdcalZNTB7BZHl88LGsG1Z5T6+ElEODunrs1vylwGg=",
+ "rights": "RegistryRead"
+ },
+ {
+ "keyName": "registryReadWrite",
+ "primaryKey": "tyNRcaI38fXL+gQTjCmrVZGTP4YFF7uACk7pppWLWzY=",
+ "secondaryKey": "6P6DXOp0W3HO5/IotzcPS1kx7PHiOdesaND07Im5cYI=",
+ "rights": "RegistryWrite"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listprivateendpointconnections.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listprivateendpointconnections.json
new file mode 100644
index 000000000000..0de50750b7bc
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listprivateendpointconnections.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": [
+ {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateEndpointConnections/myPrivateEndpointConnection",
+ "name": "myPrivateEndpointConnection",
+ "type": "Microsoft.Devices/IotHubs/PrivateEndpointConnections",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Pending",
+ "description": "Please approve my request!",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listprivatelinkresources.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listprivatelinkresources.json
new file mode 100644
index 000000000000..d7aa5421fc46
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_listprivatelinkresources.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateLinkResources/iotHub",
+ "name": "iotHub",
+ "type": "Microsoft.Devices/IotHubs/PrivateLinkResources",
+ "properties": {
+ "groupId": "iotHub",
+ "requiredMembers": [
+ "iotHub"
+ ],
+ "requiredZoneNames": [
+ "privatelink.azure-devices.net"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_operations.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_operations.json
new file mode 100644
index 000000000000..c3373a3cad9e
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_operations.json
@@ -0,0 +1,328 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.Devices/register/action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Register Resource Provider",
+ "description": "Register the subscription for the IotHub resource provider and enables the creation of IotHub resources"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/IotHubs/diagnosticSettings/read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get Diagnostic Setting",
+ "description": "Gets the diagnostic setting for the resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/IotHubs/diagnosticSettings/write",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Set Diagnostic Setting",
+ "description": "Creates or updates the diagnostic setting for the resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/IotHubs/metricDefinitions/read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Read IotHub service metric definitions",
+ "description": "Gets the available metrics for the IotHub service"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/IotHubs/logDefinitions/read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Read IotHub service log definitions",
+ "description": "Gets the available log definitions for the IotHub Service"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/operations/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get All ResourceProvider Operations",
+ "description": "Get All ResourceProvider Operations"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/checkNameAvailability/Action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Check If IotHub name is available",
+ "description": "Check If IotHub name is available"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/usages/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get Subscription Usages",
+ "description": "Get subscription usage details for this provider."
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get IotHub(s)",
+ "description": "Gets the IotHub resource(s)"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/Write",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Create or update IotHub Resource",
+ "description": "Create or update IotHub Resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/Delete",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Delete IotHub Resource",
+ "description": "Delete IotHub Resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/iotHubStats/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get IotHub Statistics",
+ "description": "Get IotHub Statistics"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/skus/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get valid IotHub Skus",
+ "description": "Get valid IotHub Skus"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/listkeys/Action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get all IotHub Keys",
+ "description": "Get all IotHub Keys"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/iotHubKeys/listkeys/Action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get IotHub Key for the given name",
+ "description": "Get IotHub Key for the given name"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/eventHubEndpoints/consumerGroups/Write",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Create EventHub Consumer Group",
+ "description": "Create EventHub Consumer Group"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/eventHubEndpoints/consumerGroups/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get EventHub Consumer Group(s)",
+ "description": "Get EventHub Consumer Group(s)"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/eventHubEndpoints/consumerGroups/Delete",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Delete EventHub Consumer Group",
+ "description": "Delete EventHub Consumer Group"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/exportDevices/Action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Export Devices",
+ "description": "Export Devices"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/importDevices/Action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Import Devices",
+ "description": "Import Devices"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/jobs/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get the Job(s) on IotHub",
+ "description": "Get Job(s) details submitted on given IotHub"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/quotaMetrics/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get Quota Metrics",
+ "description": "Get Quota Metrics"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/routing/routes/$testall/Action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Routing Rule Test All",
+ "description": "Test a message against all existing Routes"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/routing/routes/$testnew/Action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Routing Rule Test Route",
+ "description": "Test a message against a provided test Route"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/iotHubs/routingEndpointsHealth/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get Endpoint Health",
+ "description": "Gets the health of all routing Endpoints for an IotHub"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/ProvisioningServices/diagnosticSettings/read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Get Diagnostic Setting",
+ "description": "Gets the diagnostic setting for the resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/ProvisioningServices/diagnosticSettings/write",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Set Diagnostic Setting",
+ "description": "Creates or updates the diagnostic setting for the resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/ProvisioningServices/metricDefinitions/read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Read DPS service metric definitions",
+ "description": "Gets the available metrics for the DPS service"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/ProvisioningServices/logDefinitions/read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "IotHubs",
+ "operation": "Read DPS service log definitions",
+ "description": "Gets the available log definitions for the DPS Service"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/checkProvisioningServiceNameAvailability/Action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "ProvisioningServives",
+ "operation": "Check If Provisioning Service name is available",
+ "description": "Check If Provisioning Service name is available"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/provisioningServices/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "ProvisioningServices",
+ "operation": "Get Provisioning Service resource",
+ "description": "Get Provisioning Service resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/provisioningServices/Write",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "ProvisioningServices",
+ "operation": "Create Provisioning Service resource",
+ "description": "Create Provisioning Service resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/provisioningServices/Delete",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "ProvisioningServices",
+ "operation": "Delete Provisioning Service resource",
+ "description": "Delete Provisioning Service resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/provisioningServices/skus/Read",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "ProvisioningServices",
+ "operation": "Delete Provisioning Service resource",
+ "description": "Delete Provisioning Service resource"
+ }
+ },
+ {
+ "name": "Microsoft.Devices/provisioningServices/listkeys/Action",
+ "display": {
+ "provider": "Microsoft Devices",
+ "resource": "ProvisioningServices",
+ "operation": "get security related metadata",
+ "description": "get security related metadata"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_patch.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_patch.json
new file mode 100644
index 000000000000..1638859936f7
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_patch.json
@@ -0,0 +1,95 @@
+{
+ "parameters": {
+ "resourceName": "myHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "location": "East US",
+ "type": "Microsoft.Devices/IotHubs",
+ "IotHubTags": {
+ "tags": {
+ "foo": "bar"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
+ "name": "testHub",
+ "type": "Microsoft.Devices/IotHubs",
+ "location": "centraluseuap",
+ "tags": {
+ "foo": "bar"
+ },
+ "etag": "AAAAAAFD6M4=",
+ "properties": {
+ "state": "Active",
+ "provisioningState": "Succeeded",
+ "ipFilterRules": [],
+ "hostName": "iot-dps-cit-hub-1.azure-devices.net",
+ "eventHubEndpoints": {
+ "events": {
+ "retentionTimeInDays": 1,
+ "partitionCount": 2,
+ "partitionIds": [
+ "0",
+ "1"
+ ],
+ "path": "iot-dps-cit-hub-1",
+ "endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
+ }
+ },
+ "routing": {
+ "endpoints": {
+ "serviceBusQueues": [],
+ "serviceBusTopics": [],
+ "eventHubs": [],
+ "storageContainers": []
+ },
+ "routes": [],
+ "fallbackRoute": {
+ "name": "$fallback",
+ "source": "DeviceMessages",
+ "condition": "true",
+ "endpointNames": [
+ "events"
+ ],
+ "isEnabled": true
+ }
+ },
+ "storageEndpoints": {
+ "$default": {
+ "sasTtlAsIso8601": "PT1H",
+ "connectionString": "",
+ "containerName": ""
+ }
+ },
+ "messagingEndpoints": {
+ "fileNotifications": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "enableFileUploadNotifications": false,
+ "cloudToDevice": {
+ "maxDeliveryCount": 10,
+ "defaultTtlAsIso8601": "PT1H",
+ "feedback": {
+ "lockDurationAsIso8601": "PT1M",
+ "ttlAsIso8601": "PT1H",
+ "maxDeliveryCount": 10
+ }
+ },
+ "features": "None"
+ },
+ "sku": {
+ "name": "S1",
+ "tier": "Standard",
+ "capacity": 1
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_quotametrics.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_quotametrics.json
new file mode 100644
index 000000000000..1a8cda78bde2
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_quotametrics.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "TotalMessages",
+ "currentValue": 0,
+ "maxValue": 400000
+ },
+ {
+ "name": "TotalDeviceCount",
+ "currentValue": 0,
+ "maxValue": 500000
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_routingendpointhealth.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_routingendpointhealth.json
new file mode 100644
index 000000000000..5a498fd47625
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_routingendpointhealth.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "iotHubName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "endpointId": "id1",
+ "healthStatus": "healthy",
+ "lastSuccessfulSendAttemptTime": "2020-03-26T21:20:57Z",
+ "lastSendAttemptTime": "2020-03-26T21:24:57Z"
+ },
+ {
+ "endpointId": "id2",
+ "healthStatus": "unknown"
+ },
+ {
+ "endpointId": "id3",
+ "healthStatus": "unhealthy",
+ "lastKnownError": "NotFound",
+ "lastKnownErrorTime": "2020-03-26T21:24:57Z",
+ "lastSuccessfulSendAttemptTime": "2020-03-26T21:20:57Z",
+ "lastSendAttemptTime": "2020-03-26T21:24:57Z"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_stats.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_stats.json
new file mode 100644
index 000000000000..1a7bcb918e7e
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_stats.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2018-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalDeviceCount": 0,
+ "enabledDeviceCount": 0,
+ "disabledDeviceCount": 0
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_testallroutes.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_testallroutes.json
new file mode 100644
index 000000000000..467482e1ac0f
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_testallroutes.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "iotHubName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "input": {
+ "routingSource": "DeviceMessages",
+ "message": {
+ "body": "Body of message",
+ "appProperties": {
+ "key1": "value1"
+ },
+ "systemProperties": {
+ "key1": "value1"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "routes": [
+ {
+ "properties": {
+ "name": "Routeid",
+ "source": "DeviceMessages",
+ "endpointNames": [
+ "id1"
+ ],
+ "isEnabled": true
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_testnewroute.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_testnewroute.json
new file mode 100644
index 000000000000..0a8d8c65611d
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_testnewroute.json
@@ -0,0 +1,52 @@
+{
+ "parameters": {
+ "iotHubName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "input": {
+ "message": {
+ "body": "Body of message",
+ "appProperties": {
+ "key1": "value1"
+ },
+ "systemProperties": {
+ "key1": "value1"
+ }
+ },
+ "route": {
+ "name": "Routeid",
+ "source": "DeviceMessages",
+ "endpointNames": [
+ "id1"
+ ],
+ "isEnabled": true
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "result": "false",
+ "details": {
+ "compilationErrors": [
+ {
+ "message": "string response",
+ "severity": "error",
+ "location": {
+ "start": {
+ "line": 12,
+ "column": 12
+ },
+ "end": {
+ "line": 12,
+ "column": 24
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_updateprivateendpointconnection.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_updateprivateendpointconnection.json
new file mode 100644
index 000000000000..b4563a4991cb
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_updateprivateendpointconnection.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "resourceName": "testHub",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
+ "privateEndpointConnectionName": "myPrivateEndpointConnection",
+ "privateEndpointConnection": {
+ "properties": {
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Approved by johndoe@contoso.com"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateEndpointConnections/myPrivateEndpointConnection",
+ "name": "myPrivateEndpointConnection",
+ "type": "Microsoft.Devices/IotHubs/PrivateEndpointConnections",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Approved by johndoe@contoso.com",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateEndpointConnections/myPrivateEndpointConnection",
+ "name": "myPrivateEndpointConnection",
+ "type": "Microsoft.Devices/IotHubs/PrivateEndpointConnections",
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/a9eba280-4734-4d49-878f-b5549d1d0453/resourceGroups/networkResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Approved by johndoe@contoso.com",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_usages.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_usages.json
new file mode 100644
index 000000000000..d5a118a3b06f
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/examples/iothub_usages.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01",
+ "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscription/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/usages/freeHubCount",
+ "type": "/subscription/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/usages",
+ "unit": "count",
+ "currentValue": 1,
+ "limit": 1,
+ "name": {
+ "value": "FreeHubCount",
+ "localizedValue": "Free Hub Count"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/iothub.json b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/iothub.json
new file mode 100644
index 000000000000..044be4a4acf5
--- /dev/null
+++ b/specification/iothub/resource-manager/Microsoft.Devices/stable/2020-04-01/iothub.json
@@ -0,0 +1,4168 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-04-01",
+ "title": "iotHubClient",
+ "description": "Use this API to manage the IoT hubs in your Azure subscription.",
+ "x-ms-code-generation-settings": {
+ "header": "MICROSOFT_MIT_NO_VERSION"
+ }
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.Devices/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "x-ms-examples": {
+ "Operations_List": {
+ "$ref": "./examples/iothub_operations.json"
+ }
+ },
+ "operationId": "Operations_List",
+ "description": "Lists all of the available IoT Hub REST API operations.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get the non-security related metadata of an IoT hub",
+ "description": "Get the non-security related metadata of an IoT hub.",
+ "operationId": "IotHubResource_Get",
+ "x-ms-examples": {
+ "IotHubResource_Get": {
+ "$ref": "./examples/iothub_get.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The body contains all the non-security properties of the IoT hub. Security-related properties are set to null.",
+ "schema": {
+ "$ref": "#/definitions/IotHubDescription"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ },
+ "put": {
+ "tags": [
+ "PUT"
+ ],
+ "summary": "Create or update the metadata of an IoT hub.",
+ "description": "Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub metadata and security metadata, and then combine them with the modified values in a new body to update the IoT hub.",
+ "operationId": "IotHubResource_CreateOrUpdate",
+ "x-ms-examples": {
+ "IotHubResource_CreateOrUpdate": {
+ "$ref": "./examples/iothub_createOrUpdate.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "name": "iotHubDescription",
+ "in": "body",
+ "description": "The IoT hub metadata and security metadata.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/IotHubDescription"
+ }
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "ETag of the IoT Hub. Do not specify for creating a brand new IoT Hub. Required to update an existing IoT Hub."
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "This is a long running operation. The operation returns a 201 if the validation is complete. The response includes an Azure-AsyncOperation header that contains a status URL. Clients are expected to poll the status URL for the status of the operation. If successful, the operation returns HTTP status code of 201 (OK).",
+ "schema": {
+ "$ref": "#/definitions/IotHubDescription"
+ }
+ },
+ "200": {
+ "description": "This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.",
+ "schema": {
+ "$ref": "#/definitions/IotHubDescription"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ },
+ "patch": {
+ "tags": [
+ "PATCH"
+ ],
+ "summary": "Update an existing IoT Hubs tags.",
+ "description": "Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method",
+ "x-ms-long-running-operation": true,
+ "operationId": "IotHubResource_Update",
+ "x-ms-examples": {
+ "IotHubResource_Update": {
+ "$ref": "./examples/iothub_patch.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Resource group identifier."
+ },
+ {
+ "name": "resourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Name of iot hub to update."
+ },
+ {
+ "name": "IotHubTags",
+ "in": "body",
+ "required": true,
+ "description": "Updated tag information to set into the iot hub instance.",
+ "schema": {
+ "$ref": "#/definitions/TagsResource"
+ }
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Iot Hub was successfully updated",
+ "schema": {
+ "$ref": "#/definitions/IotHubDescription"
+ }
+ }
+ },
+ "produces": [
+ "application/json"
+ ],
+ "consumes": [
+ "application/json"
+ ]
+ },
+ "delete": {
+ "tags": [
+ "DELETE"
+ ],
+ "summary": "Delete an IoT hub",
+ "description": "Delete an IoT hub.",
+ "operationId": "IotHubResource_Delete",
+ "x-ms-examples": {
+ "IotHubResource_Delete": {
+ "$ref": "./examples/iothub_delete.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "The Iot Hub resource provider always returns a 202 Accepted status code with valid Location and Retry-After headers. The resource provider also sets the Azure-AsyncOperation header with a URL that points to the operation resource for this operation. Subsequent GET attempts on the resource after a DELETE operation return a resource representation that indicates a transitional provisioning state (such as Terminating). To retrieve the status of the operation, a client can either poll the URL returned in the Location header after the Retry-After interval, get the IoT Hub service status directly, or query the operation resource.",
+ "schema": {
+ "$ref": "#/definitions/IotHubDescription"
+ }
+ },
+ "200": {
+ "description": "This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state.",
+ "schema": {
+ "$ref": "#/definitions/IotHubDescription"
+ }
+ },
+ "204": {
+ "description": "Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the Iot hub metadata in the service and the status of the delete operation is set to a completed state."
+ },
+ "404": {
+ "description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/IotHubs": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get all the IoT hubs in a subscription",
+ "description": "Get all the IoT hubs in a subscription.",
+ "operationId": "IotHubResource_ListBySubscription",
+ "x-ms-examples": {
+ "IotHubResource_ListBySubscription": {
+ "$ref": "./examples/iothub_listbysubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the IoT hubs in the subscription.",
+ "schema": {
+ "$ref": "#/definitions/IotHubDescriptionListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false,
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get all the IoT hubs in a resource group",
+ "description": "Get all the IoT hubs in a resource group.",
+ "operationId": "IotHubResource_ListByResourceGroup",
+ "x-ms-examples": {
+ "IotHubResource_ListByResourceGroup": {
+ "$ref": "./examples/iothub_listbyrg.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The body contains a JSON-serialized array of the metadata from all the IoT hubs in the resource group.",
+ "schema": {
+ "$ref": "#/definitions/IotHubDescriptionListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false,
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get the statistics from an IoT hub",
+ "description": "Get the statistics from an IoT hub.",
+ "operationId": "IotHubResource_GetStats",
+ "x-ms-examples": {
+ "IotHubResource_GetStats": {
+ "$ref": "./examples/iothub_stats.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The body contains JSON-serialized statistics from the identity registry in the IoT hub.",
+ "schema": {
+ "$ref": "#/definitions/RegistryStatistics"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/skus": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get the list of valid SKUs for an IoT hub",
+ "description": "Get the list of valid SKUs for an IoT hub.",
+ "operationId": "IotHubResource_GetValidSkus",
+ "x-ms-examples": {
+ "IotHubResource_GetValidSkus": {
+ "$ref": "./examples/iothub_getskus.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The body contains a JSON-serialized array of the valid SKUs for this IoT hub.",
+ "schema": {
+ "$ref": "#/definitions/IotHubSkuDescriptionListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false,
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub",
+ "description": "Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.",
+ "operationId": "IotHubResource_ListEventHubConsumerGroups",
+ "x-ms-examples": {
+ "IotHubResource_ListEventHubConsumerGroups": {
+ "$ref": "./examples/iothub_listehgroups.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "name": "eventHubEndpointName",
+ "in": "path",
+ "description": "The name of the Event Hub-compatible endpoint.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The body contains a JSON-serialized list of the consumer groups in the Event Hub-compatible endpoint in this IoT hub",
+ "schema": {
+ "$ref": "#/definitions/EventHubConsumerGroupsListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false,
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub",
+ "description": "Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.",
+ "operationId": "IotHubResource_GetEventHubConsumerGroup",
+ "x-ms-examples": {
+ "IotHubResource_ListEventHubConsumerGroups": {
+ "$ref": "./examples/iothub_getconsumergroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "name": "eventHubEndpointName",
+ "in": "path",
+ "description": "The name of the Event Hub-compatible endpoint in the IoT hub.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "in": "path",
+ "description": "The name of the consumer group to retrieve.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The body contains a JSON-serialized consumer group.",
+ "schema": {
+ "$ref": "#/definitions/EventHubConsumerGroupInfo"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ },
+ "put": {
+ "tags": [
+ "PUT"
+ ],
+ "summary": "Add a consumer group to an Event Hub-compatible endpoint in an IoT hub",
+ "description": "Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.",
+ "operationId": "IotHubResource_CreateEventHubConsumerGroup",
+ "x-ms-examples": {
+ "IotHubResource_CreateEventHubConsumerGroup": {
+ "$ref": "./examples/iothub_createconsumergroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "name": "eventHubEndpointName",
+ "in": "path",
+ "description": "The name of the Event Hub-compatible endpoint in the IoT hub.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "in": "path",
+ "description": "The name of the consumer group to add.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation.",
+ "schema": {
+ "$ref": "#/definitions/EventHubConsumerGroupInfo"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ },
+ "delete": {
+ "tags": [
+ "DELETE"
+ ],
+ "summary": "Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub",
+ "description": "Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.",
+ "operationId": "IotHubResource_DeleteEventHubConsumerGroup",
+ "x-ms-examples": {
+ "IotHubResource_DeleteEventHubConsumerGroup": {
+ "$ref": "./examples/iothub_deleteconsumergroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "name": "eventHubEndpointName",
+ "in": "path",
+ "description": "The name of the Event Hub-compatible endpoint in the IoT hub.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "in": "path",
+ "description": "The name of the consumer group to delete.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation."
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get a list of all the jobs in an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry",
+ "description": "Get a list of all the jobs in an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.",
+ "operationId": "IotHubResource_ListJobs",
+ "x-ms-examples": {
+ "IotHubResource_ListJobs": {
+ "$ref": "./examples/iothub_listjobs.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The response contains a JSON-serialized array of all the jobs in the IoT hub.",
+ "schema": {
+ "$ref": "#/definitions/JobResponseListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false,
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs/{jobId}": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get the details of a job from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry",
+ "description": "Get the details of a job from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.",
+ "operationId": "IotHubResource_GetJob",
+ "x-ms-examples": {
+ "IotHubResource_GetJob": {
+ "$ref": "./examples/iothub_getjob.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "name": "jobId",
+ "in": "path",
+ "description": "The job identifier.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The response contains a JSON-serialized description of the job in the IoT hub.",
+ "schema": {
+ "$ref": "#/definitions/JobResponse"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get the quota metrics for an IoT hub",
+ "description": "Get the quota metrics for an IoT hub.",
+ "operationId": "IotHubResource_GetQuotaMetrics",
+ "x-ms-examples": {
+ "IotHubResource_GetQuotaMetrics": {
+ "$ref": "./examples/iothub_quotametrics.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The response contains a JSON-serialized array of the quota metrics for the IoT hub.",
+ "schema": {
+ "$ref": "#/definitions/IotHubQuotaMetricInfoListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false,
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routingEndpointsHealth": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "operationId": "IotHubResource_GetEndpointHealth",
+ "summary": "Get the health for routing endpoints",
+ "description": "Get the health for routing endpoints.",
+ "x-ms-examples": {
+ "IotHubResource_GetEndpointHealth": {
+ "$ref": "./examples/iothub_routingendpointhealth.json"
+ }
+ },
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "iotHubName",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EndpointHealthDataListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false,
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkNameAvailability": {
+ "post": {
+ "tags": [
+ "POST"
+ ],
+ "summary": "Check if an IoT hub name is available",
+ "description": "Check if an IoT hub name is available.",
+ "operationId": "IotHubResource_CheckNameAvailability",
+ "x-ms-examples": {
+ "IotHubResource_CheckNameAvailability": {
+ "$ref": "./examples/checkNameAvailability.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "name": "operationInputs",
+ "in": "body",
+ "description": "Set the name parameter in the OperationInputs structure to the name of the IoT hub to check.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/OperationInputs"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The body contains a JSON-serialized response that specifies whether the IoT hub name is available. If the name is not available, the body contains the reason.",
+ "schema": {
+ "$ref": "#/definitions/IotHubNameAvailabilityInfo"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/usages": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get the number of iot hubs in the subscription",
+ "description": "Get the number of free and paid iot hubs in the subscription",
+ "operationId": "ResourceProviderCommon_GetSubscriptionQuota",
+ "x-ms-examples": {
+ "ResourceProviderCommon_GetSubscriptionQuota": {
+ "$ref": "./examples/iothub_usages.json"
+ }
+ },
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/UserSubscriptionQuotaListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testall": {
+ "post": {
+ "tags": [
+ "POST"
+ ],
+ "operationId": "IotHubResource_TestAllRoutes",
+ "summary": "Test all routes",
+ "description": "Test all routes configured in this Iot Hub",
+ "x-ms-examples": {
+ "IotHubResource_TestAllRoutes": {
+ "$ref": "./examples/iothub_testallroutes.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "input",
+ "description": "Input for testing all routes",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TestAllRoutesInput"
+ }
+ },
+ {
+ "name": "iotHubName",
+ "description": "IotHub to be tested",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "name": "resourceGroupName",
+ "description": "resource group which Iot Hub belongs to",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TestAllRoutesResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew": {
+ "post": {
+ "tags": [
+ "POST"
+ ],
+ "operationId": "IotHubResource_TestRoute",
+ "summary": "Test the new route",
+ "description": "Test the new route for this Iot Hub",
+ "x-ms-examples": {
+ "IotHubResource_TestRoute": {
+ "$ref": "./examples/iothub_testnewroute.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "input",
+ "description": "Route that needs to be tested",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TestRouteInput"
+ }
+ },
+ {
+ "name": "iotHubName",
+ "description": "IotHub to be tested",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "name": "resourceGroupName",
+ "description": "resource group which Iot Hub belongs to",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/TestRouteResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/listkeys": {
+ "post": {
+ "tags": [
+ "POST"
+ ],
+ "summary": "Get the security metadata for an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security",
+ "description": "Get the security metadata for an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.",
+ "operationId": "IotHubResource_ListKeys",
+ "x-ms-examples": {
+ "IotHubResource_ListKeys": {
+ "$ref": "./examples/iothub_listkeys.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The body contains a JSON-serialized array of shared access policies, including keys, that you can use to access the IoT hub endpoints.",
+ "schema": {
+ "$ref": "#/definitions/SharedAccessSignatureAuthorizationRuleListResult"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false,
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubKeys/{keyName}/listkeys": {
+ "post": {
+ "tags": [
+ "POST"
+ ],
+ "summary": "Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security",
+ "description": "Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.",
+ "operationId": "IotHubResource_GetKeysForKeyName",
+ "x-ms-examples": {
+ "IotHubResource_GetKeysForKeyName": {
+ "$ref": "./examples/iothub_getkey.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "name": "keyName",
+ "in": "path",
+ "description": "The name of the shared access policy.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "This is a synchronous operation. The body contains a JSON-serialized shared access policy, including keys, that you can use to access one or more IoT hub endpoints.",
+ "schema": {
+ "$ref": "#/definitions/SharedAccessSignatureAuthorizationRule"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/exportDevices": {
+ "post": {
+ "tags": [
+ "POST"
+ ],
+ "summary": "Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities",
+ "description": "Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.",
+ "operationId": "IotHubResource_ExportDevices",
+ "x-ms-examples": {
+ "IotHubResource_ExportDevices": {
+ "$ref": "./examples/iothub_exportdevices.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "name": "exportDevicesParameters",
+ "in": "body",
+ "description": "The parameters that specify the export devices operation.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ExportDevicesRequest"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/JobResponse"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/importDevices": {
+ "post": {
+ "tags": [
+ "POST"
+ ],
+ "summary": "Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities",
+ "description": "Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.",
+ "operationId": "IotHubResource_ImportDevices",
+ "x-ms-examples": {
+ "IotHubResource_ImportDevices": {
+ "$ref": "./examples/iothub_importdevices.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "name": "importDevicesParameters",
+ "in": "body",
+ "description": "The parameters that specify the import devices operation.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ImportDevicesRequest"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/JobResponse"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates": {
+ "get": {
+ "tags": [
+ "Certificates"
+ ],
+ "summary": "Get the certificate list.",
+ "description": "Returns the list of certificates.",
+ "operationId": "Certificates_ListByIotHub",
+ "x-ms-examples": {
+ "Certificates_ListByIotHub": {
+ "$ref": "./examples/iothub_listcertificates.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The body contains all the certificate list.",
+ "schema": {
+ "$ref": "#/definitions/CertificateListDescription"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}": {
+ "get": {
+ "tags": [
+ "Certificates"
+ ],
+ "summary": "Get the certificate.",
+ "description": "Returns the certificate.",
+ "operationId": "Certificates_Get",
+ "x-ms-examples": {
+ "Certificates_Get": {
+ "$ref": "./examples/iothub_getcertificate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "$ref": "#/parameters/certificateName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The body contains the certificate.",
+ "schema": {
+ "$ref": "#/definitions/CertificateDescription"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ },
+ "put": {
+ "tags": [
+ "Certificates"
+ ],
+ "summary": "Upload the certificate to the IoT hub.",
+ "description": "Adds new or replaces existing certificate.",
+ "operationId": "Certificates_CreateOrUpdate",
+ "x-ms-examples": {
+ "Certificates_CreateOrUpdate": {
+ "$ref": "./examples/iothub_certificatescreateorupdate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "$ref": "#/parameters/certificateName"
+ },
+ {
+ "name": "certificateDescription",
+ "in": "body",
+ "description": "The certificate body.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CertificateBodyDescription"
+ }
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "description": "ETag of the Certificate. Do not specify for creating a brand new certificate. Required to update an existing certificate."
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "If certificate didn't exist creation was successful, the operation returns HTTP status code of 201 (OK).",
+ "schema": {
+ "$ref": "#/definitions/CertificateDescription"
+ }
+ },
+ "200": {
+ "description": "If certificate already exist and update was successful, the operation returns HTTP status code of 201 (OK).",
+ "schema": {
+ "$ref": "#/definitions/CertificateDescription"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ },
+ "delete": {
+ "tags": [
+ "Certificates"
+ ],
+ "summary": "Delete an X509 certificate.",
+ "description": "Deletes an existing X509 certificate or does nothing if it does not exist.",
+ "operationId": "Certificates_Delete",
+ "x-ms-examples": {
+ "Certificates_Delete": {
+ "$ref": "./examples/iothub_certificatesdelete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "$ref": "#/parameters/certificateName"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": true,
+ "type": "string",
+ "description": "ETag of the Certificate."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Certificate has been deleted."
+ },
+ "204": {
+ "description": "Certificate does not exist."
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/generateVerificationCode": {
+ "post": {
+ "tags": [
+ "Certificates"
+ ],
+ "summary": "Generate verification code for proof of possession flow.",
+ "description": "Generates verification code for proof of possession flow. The verification code will be used to generate a leaf certificate.",
+ "operationId": "Certificates_GenerateVerificationCode",
+ "x-ms-examples": {
+ "Certificates_GenerateVerificationCode": {
+ "$ref": "./examples/iothub_generateverificationcode.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "$ref": "#/parameters/certificateName"
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": true,
+ "type": "string",
+ "description": "ETag of the Certificate."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The body contains the certificate.",
+ "schema": {
+ "$ref": "#/definitions/CertificateWithNonceDescription"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/verify": {
+ "post": {
+ "tags": [
+ "Certificates"
+ ],
+ "summary": "Verify certificate's private key possession.",
+ "description": "Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.",
+ "operationId": "Certificates_Verify",
+ "x-ms-examples": {
+ "Certificates_Verify": {
+ "$ref": "./examples/iothub_certverify.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "$ref": "#/parameters/certificateName"
+ },
+ {
+ "name": "certificateVerificationBody",
+ "in": "body",
+ "description": "The name of the certificate",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CertificateVerificationDescription"
+ }
+ },
+ {
+ "name": "If-Match",
+ "in": "header",
+ "required": true,
+ "type": "string",
+ "description": "ETag of the Certificate."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The body contains the certificate.",
+ "schema": {
+ "$ref": "#/definitions/CertificateDescription"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover": {
+ "post": {
+ "tags": [
+ "POST"
+ ],
+ "operationId": "IotHub_ManualFailover",
+ "summary": "Manually initiate a failover for the IoT Hub to its secondary region",
+ "description": "Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see https://aka.ms/manualfailover",
+ "x-ms-examples": {
+ "IotHub_ManualFailover": {
+ "$ref": "./examples/IotHub_ManualFailover.json"
+ }
+ },
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "name": "iotHubName",
+ "description": "Name of the IoT hub to failover",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "failoverInput",
+ "description": "Region to failover to. Must be the Azure paired region. Get the value from the secondary location in the locations property. To learn more, see https://aka.ms/manualfailover/region",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/FailoverInput"
+ }
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "name": "resourceGroupName",
+ "description": "Name of the resource group containing the IoT hub resource",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/api-version"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Long running manual failover operation for the IoT hub completed"
+ },
+ "202": {
+ "description": "Manual failover initiated"
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateLinkResources": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "List private link resources",
+ "description": "List private link resources for the given IotHub",
+ "operationId": "PrivateLinkResources_List",
+ "x-ms-examples": {
+ "PrivateLinkResources_List": {
+ "$ref": "./examples/iothub_listprivatelinkresources.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The body contains the list of private link resources",
+ "schema": {
+ "$ref": "#/definitions/PrivateLinkResources"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateLinkResources/{groupId}": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get the specified private link resource",
+ "description": "Get the specified private link resource for the given IotHub",
+ "operationId": "PrivateLinkResources_Get",
+ "x-ms-examples": {
+ "PrivateLinkResources_List": {
+ "$ref": "./examples/iothub_getprivatelinkresources.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "$ref": "#/parameters/groupId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The body contains the specified of private link resource",
+ "schema": {
+ "$ref": "#/definitions/GroupIdInformation"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "List private endpoint connections",
+ "description": "List private endpoint connection properties",
+ "operationId": "PrivateEndpointConnections_List",
+ "x-ms-examples": {
+ "PrivateEndpointConnections_List": {
+ "$ref": "./examples/iothub_listprivateendpointconnections.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The body contains the list of private endpoint connection properties",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnectionsList"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}": {
+ "get": {
+ "tags": [
+ "GET"
+ ],
+ "summary": "Get private endpoint connection",
+ "description": "Get private endpoint connection properties",
+ "operationId": "PrivateEndpointConnections_Get",
+ "x-ms-examples": {
+ "PrivateEndpointConnection_Get": {
+ "$ref": "./examples/iothub_getprivateendpointconnection.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "$ref": "#/parameters/privateEndpointConnectionName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The body contains the private endpoint connection properties",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ },
+ "put": {
+ "tags": [
+ "PUT"
+ ],
+ "summary": "Update private endpoint connection",
+ "description": "Update the status of a private endpoint connection with the specified name",
+ "operationId": "PrivateEndpointConnections_Update",
+ "x-ms-examples": {
+ "PrivateEndpointConnection_Update": {
+ "$ref": "./examples/iothub_updateprivateendpointconnection.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "$ref": "#/parameters/privateEndpointConnectionName"
+ },
+ {
+ "name": "privateEndpointConnection",
+ "in": "body",
+ "description": "The private endpoint connection with updated properties",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "This is a long running operation. The operation returns a 201 if the validation is complete. The response includes an Azure-AsyncOperation header that contains a status URL. Clients are expected to poll the status URL for the status of the operation. If successful, the operation returns HTTP status code of 201 (OK).",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "200": {
+ "description": "This is returned as a response to the status polling request for the update operation.",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ },
+ "delete": {
+ "tags": [
+ "DELETE"
+ ],
+ "summary": "Delete private endpoint connection",
+ "description": "Delete private endpoint connection with the specified name",
+ "operationId": "PrivateEndpointConnections_Delete",
+ "x-ms-examples": {
+ "PrivateEndpointConnection_Delete": {
+ "$ref": "./examples/iothub_deleteprivateendpointconnection.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "parameters": [
+ {
+ "$ref": "#/parameters/api-version"
+ },
+ {
+ "$ref": "#/parameters/subscriptionId"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/resourceName"
+ },
+ {
+ "$ref": "#/parameters/privateEndpointConnectionName"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "This is a long running operation. The operation returns a 202 if the validation is complete. The response includes an Azure-AsyncOperation header that contains a status URL. Clients are expected to poll the status URL for the status of the operation.",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "200": {
+ "description": "This is returned as a response to the status polling request for the delete operation.",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "204": {
+ "description": "PrivateEndpoint does not exist."
+ },
+ "default": {
+ "description": "DefaultErrorResponse",
+ "schema": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "deprecated": false
+ }
+ }
+ },
+ "definitions": {
+ "CertificateVerificationDescription": {
+ "description": "The JSON-serialized leaf certificate",
+ "type": "object",
+ "properties": {
+ "certificate": {
+ "description": "base-64 representation of X509 certificate .cer file or just .pem file content.",
+ "type": "string"
+ }
+ }
+ },
+ "CertificateListDescription": {
+ "description": "The JSON-serialized array of Certificate objects.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The array of Certificate objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CertificateDescription"
+ }
+ }
+ }
+ },
+ "CertificateBodyDescription": {
+ "description": "The JSON-serialized X509 Certificate.",
+ "type": "object",
+ "properties": {
+ "certificate": {
+ "description": "base-64 representation of the X509 leaf certificate .cer file or just .pem file content.",
+ "type": "string"
+ }
+ }
+ },
+ "CertificateDescription": {
+ "description": "The X509 Certificate.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/CertificateProperties"
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource identifier."
+ },
+ "name": {
+ "description": "The name of the certificate.",
+ "type": "string",
+ "readOnly": true
+ },
+ "etag": {
+ "description": "The entity tag.",
+ "type": "string",
+ "readOnly": true
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource type."
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "CertificateWithNonceDescription": {
+ "description": "The X509 Certificate.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/CertificatePropertiesWithNonce"
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource identifier."
+ },
+ "name": {
+ "description": "The name of the certificate.",
+ "type": "string",
+ "readOnly": true
+ },
+ "etag": {
+ "description": "The entity tag.",
+ "type": "string",
+ "readOnly": true
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource type."
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "SharedAccessSignatureAuthorizationRule": {
+ "description": "The properties of an IoT hub shared access policy.",
+ "type": "object",
+ "properties": {
+ "keyName": {
+ "description": "The name of the shared access policy.",
+ "type": "string"
+ },
+ "primaryKey": {
+ "description": "The primary key.",
+ "type": "string"
+ },
+ "secondaryKey": {
+ "description": "The secondary key.",
+ "type": "string"
+ },
+ "rights": {
+ "description": "The permissions assigned to the shared access policy.",
+ "enum": [
+ "RegistryRead",
+ "RegistryWrite",
+ "ServiceConnect",
+ "DeviceConnect",
+ "RegistryRead, RegistryWrite",
+ "RegistryRead, ServiceConnect",
+ "RegistryRead, DeviceConnect",
+ "RegistryWrite, ServiceConnect",
+ "RegistryWrite, DeviceConnect",
+ "ServiceConnect, DeviceConnect",
+ "RegistryRead, RegistryWrite, ServiceConnect",
+ "RegistryRead, RegistryWrite, DeviceConnect",
+ "RegistryRead, ServiceConnect, DeviceConnect",
+ "RegistryWrite, ServiceConnect, DeviceConnect",
+ "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "AccessRights",
+ "modelAsString": false
+ }
+ }
+ },
+ "required": [
+ "keyName",
+ "rights"
+ ]
+ },
+ "CertificateProperties": {
+ "description": "The description of an X509 CA Certificate.",
+ "type": "object",
+ "properties": {
+ "subject": {
+ "description": "The certificate's subject name.",
+ "type": "string",
+ "readOnly": true
+ },
+ "expiry": {
+ "description": "The certificate's expiration date and time.",
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "readOnly": true
+ },
+ "thumbprint": {
+ "description": "The certificate's thumbprint.",
+ "type": "string",
+ "readOnly": true
+ },
+ "isVerified": {
+ "description": "Determines whether certificate has been verified.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "created": {
+ "description": "The certificate's create date and time.",
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "readOnly": true
+ },
+ "updated": {
+ "description": "The certificate's last update date and time.",
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "readOnly": true
+ },
+ "certificate": {
+ "description": "The certificate content",
+ "type": "string"
+ }
+ }
+ },
+ "CertificatePropertiesWithNonce": {
+ "description": "The description of an X509 CA Certificate including the challenge nonce issued for the Proof-Of-Possession flow.",
+ "type": "object",
+ "properties": {
+ "subject": {
+ "description": "The certificate's subject name.",
+ "type": "string",
+ "readOnly": true
+ },
+ "expiry": {
+ "description": "The certificate's expiration date and time.",
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "readOnly": true
+ },
+ "thumbprint": {
+ "description": "The certificate's thumbprint.",
+ "type": "string",
+ "readOnly": true
+ },
+ "isVerified": {
+ "description": "Determines whether certificate has been verified.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "created": {
+ "description": "The certificate's create date and time.",
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "readOnly": true
+ },
+ "updated": {
+ "description": "The certificate's last update date and time.",
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "readOnly": true
+ },
+ "verificationCode": {
+ "description": "The certificate's verification code that will be used for proof of possession.",
+ "type": "string",
+ "readOnly": true
+ },
+ "certificate": {
+ "description": "The certificate content",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "IotHubProperties": {
+ "description": "The properties of an IoT hub.",
+ "type": "object",
+ "properties": {
+ "authorizationPolicies": {
+ "description": "The shared access policies you can use to secure a connection to the IoT hub.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SharedAccessSignatureAuthorizationRule"
+ }
+ },
+ "publicNetworkAccess": {
+ "type": "string",
+ "description": "Whether requests from Public Network are allowed",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "x-ms-enum": {
+ "modelAsString": true,
+ "name": "PublicNetworkAccess"
+ }
+ },
+ "ipFilterRules": {
+ "description": "The IP filter rules.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IpFilterRule"
+ }
+ },
+ "minTlsVersion": {
+ "type": "string",
+ "description": "Specifies the minimum TLS version to support for this hub. Can be set to \"1.2\" to have clients that use a TLS version below 1.2 to be rejected."
+ },
+ "privateEndpointConnections": {
+ "description": "Private endpoint connections created on this IotHub",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "provisioningState": {
+ "description": "The provisioning state.",
+ "type": "string",
+ "readOnly": true
+ },
+ "state": {
+ "description": "The hub state.",
+ "type": "string",
+ "readOnly": true
+ },
+ "hostName": {
+ "description": "The name of the host.",
+ "type": "string",
+ "readOnly": true
+ },
+ "eventHubEndpoints": {
+ "description": "The Event Hub-compatible endpoint properties. The only possible keys to this dictionary is events. This key has to be present in the dictionary while making create or update calls for the IoT hub.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/EventHubProperties"
+ }
+ },
+ "routing": {
+ "$ref": "#/definitions/RoutingProperties"
+ },
+ "storageEndpoints": {
+ "description": "The list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/StorageEndpointProperties"
+ }
+ },
+ "messagingEndpoints": {
+ "description": "The messaging endpoint properties for the file upload notification queue.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/MessagingEndpointProperties"
+ }
+ },
+ "enableFileUploadNotifications": {
+ "description": "If True, file upload notifications are enabled.",
+ "type": "boolean"
+ },
+ "cloudToDevice": {
+ "$ref": "#/definitions/CloudToDeviceProperties"
+ },
+ "comments": {
+ "description": "IoT hub comments.",
+ "type": "string"
+ },
+ "features": {
+ "description": "The capabilities and features enabled for the IoT hub.",
+ "enum": [
+ "None",
+ "DeviceManagement"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "Capabilities",
+ "modelAsString": true
+ }
+ },
+ "locations": {
+ "description": "Primary and secondary location for iot hub",
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IotHubLocationDescription"
+ }
+ }
+ }
+ },
+ "IotHubSkuInfo": {
+ "description": "Information about the SKU of the IoT hub.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the SKU.",
+ "enum": [
+ "F1",
+ "S1",
+ "S2",
+ "S3",
+ "B1",
+ "B2",
+ "B3"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "IotHubSku",
+ "modelAsString": true
+ }
+ },
+ "tier": {
+ "description": "The billing tier for the IoT hub.",
+ "enum": [
+ "Free",
+ "Standard",
+ "Basic"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "IotHubSkuTier",
+ "modelAsString": false
+ }
+ },
+ "capacity": {
+ "format": "int64",
+ "description": "The number of provisioned IoT Hub units. See: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "EventHubProperties": {
+ "description": "The properties of the provisioned Event Hub-compatible endpoint used by the IoT hub.",
+ "type": "object",
+ "properties": {
+ "retentionTimeInDays": {
+ "format": "int64",
+ "description": "The retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages",
+ "type": "integer"
+ },
+ "partitionCount": {
+ "format": "int32",
+ "description": "The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.",
+ "type": "integer"
+ },
+ "partitionIds": {
+ "description": "The partition ids in the Event Hub-compatible endpoint.",
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "path": {
+ "description": "The Event Hub-compatible name.",
+ "type": "string",
+ "readOnly": true
+ },
+ "endpoint": {
+ "description": "The Event Hub-compatible endpoint.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "StorageEndpointProperties": {
+ "description": "The properties of the Azure Storage endpoint for file upload.",
+ "type": "object",
+ "properties": {
+ "sasTtlAsIso8601": {
+ "description": "The period of time for which the SAS URI generated by IoT Hub for file upload is valid. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options.",
+ "type": "string",
+ "format": "duration"
+ },
+ "connectionString": {
+ "description": "The connection string for the Azure Storage account to which files are uploaded.",
+ "type": "string"
+ },
+ "containerName": {
+ "description": "The name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified.",
+ "type": "string"
+ },
+ "authenticationType": {
+ "description": "Specifies authentication type being used for connecting to the storage account.",
+ "enum": [
+ "keyBased",
+ "identityBased"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "AuthenticationType",
+ "modelAsString": true
+ }
+ }
+ },
+ "required": [
+ "connectionString",
+ "containerName"
+ ]
+ },
+ "MessagingEndpointProperties": {
+ "description": "The properties of the messaging endpoints used by this IoT hub.",
+ "type": "object",
+ "properties": {
+ "lockDurationAsIso8601": {
+ "description": "The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.",
+ "type": "string",
+ "format": "duration"
+ },
+ "ttlAsIso8601": {
+ "description": "The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.",
+ "type": "string",
+ "format": "duration"
+ },
+ "maxDeliveryCount": {
+ "description": "The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.",
+ "format": "int32",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100
+ }
+ }
+ },
+ "CloudToDeviceProperties": {
+ "description": "The IoT hub cloud-to-device messaging properties.",
+ "type": "object",
+ "properties": {
+ "maxDeliveryCount": {
+ "description": "The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.",
+ "format": "int32",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100
+ },
+ "defaultTtlAsIso8601": {
+ "description": "The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.",
+ "type": "string",
+ "format": "duration"
+ },
+ "feedback": {
+ "$ref": "#/definitions/FeedbackProperties"
+ }
+ }
+ },
+ "IpFilterRule": {
+ "description": "The IP filter rules for the IoT hub.",
+ "type": "object",
+ "properties": {
+ "filterName": {
+ "description": "The name of the IP filter rule.",
+ "type": "string"
+ },
+ "action": {
+ "description": "The desired action for requests captured by this rule.",
+ "enum": [
+ "Accept",
+ "Reject"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "IpFilterActionType",
+ "modelAsString": false
+ }
+ },
+ "ipMask": {
+ "description": "A string that contains the IP address range in CIDR notation for the rule.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "filterName",
+ "action",
+ "ipMask"
+ ]
+ },
+ "PrivateLinkResources": {
+ "description": "The available private link resources for an IotHub",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of available private link resources for an IotHub",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/GroupIdInformation"
+ }
+ }
+ }
+ },
+ "GroupIdInformation": {
+ "description": "The group information for creating a private endpoint on an IotHub",
+ "type": "object",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource identifier."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource name.",
+ "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$"
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource type."
+ },
+ "properties": {
+ "$ref": "#/definitions/GroupIdInformationProperties"
+ }
+ },
+ "required": [
+ "properties"
+ ]
+ },
+ "GroupIdInformationProperties": {
+ "description": "The properties for a group information object",
+ "type": "object",
+ "properties": {
+ "groupId": {
+ "type": "string",
+ "description": "The group id"
+ },
+ "requiredMembers": {
+ "description": "The required members for a specific group id",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "requiredZoneNames": {
+ "description": "The required DNS zones for a specific group id",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "PrivateEndpointConnectionsList": {
+ "description": "The list of private endpoint connections for an IotHub",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "PrivateEndpointConnection": {
+ "description": "The private endpoint connection of an IotHub",
+ "x-ms-azure-resource": true,
+ "type": "object",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource identifier."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource name.",
+ "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$"
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource type."
+ },
+ "properties": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProperties"
+ }
+ },
+ "required": [
+ "properties"
+ ]
+ },
+ "PrivateEndpointConnectionProperties": {
+ "description": "The properties of a private endpoint connection",
+ "type": "object",
+ "properties": {
+ "privateEndpoint": {
+ "$ref": "#/definitions/PrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "$ref": "#/definitions/PrivateLinkServiceConnectionState"
+ }
+ },
+ "required": [
+ "privateLinkServiceConnectionState"
+ ]
+ },
+ "PrivateEndpoint": {
+ "description": "The private endpoint property of a private endpoint connection",
+ "type": "object",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource identifier."
+ }
+ }
+ },
+ "PrivateLinkServiceConnectionState": {
+ "description": "The current state of a private endpoint connection",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The status of a private endpoint connection",
+ "enum": [
+ "Pending",
+ "Approved",
+ "Rejected",
+ "Disconnected"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PrivateLinkServiceConnectionStatus",
+ "modelAsString": true
+ }
+ },
+ "description": {
+ "type": "string",
+ "description": "The description for the current state of a private endpoint connection"
+ },
+ "actionsRequired": {
+ "type": "string",
+ "description": "Actions required for a private endpoint connection"
+ }
+ },
+ "required": [
+ "status",
+ "description"
+ ]
+ },
+ "FeedbackProperties": {
+ "description": "The properties of the feedback queue for cloud-to-device messages.",
+ "type": "object",
+ "properties": {
+ "lockDurationAsIso8601": {
+ "description": "The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.",
+ "type": "string",
+ "format": "duration"
+ },
+ "ttlAsIso8601": {
+ "description": "The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.",
+ "type": "string",
+ "format": "duration"
+ },
+ "maxDeliveryCount": {
+ "description": "The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.",
+ "format": "int32",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100
+ }
+ }
+ },
+ "RoutingProperties": {
+ "description": "The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging",
+ "type": "object",
+ "properties": {
+ "endpoints": {
+ "$ref": "#/definitions/RoutingEndpoints"
+ },
+ "routes": {
+ "description": "The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RouteProperties"
+ }
+ },
+ "fallbackRoute": {
+ "description": "The properties of the route that is used as a fall-back route when none of the conditions specified in the 'routes' section are met. This is an optional parameter. When this property is not set, the messages which do not meet any of the conditions specified in the 'routes' section get routed to the built-in eventhub endpoint.",
+ "$ref": "#/definitions/FallbackRouteProperties"
+ },
+ "enrichments": {
+ "description": "The list of user-provided enrichments that the IoT hub applies to messages to be delivered to built-in and custom endpoints. See: https://aka.ms/telemetryoneventgrid",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EnrichmentProperties"
+ }
+ }
+ }
+ },
+ "RoutingEndpoints": {
+ "description": "The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs.",
+ "type": "object",
+ "properties": {
+ "serviceBusQueues": {
+ "description": "The list of Service Bus queue endpoints that IoT hub routes the messages to, based on the routing rules.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RoutingServiceBusQueueEndpointProperties"
+ }
+ },
+ "serviceBusTopics": {
+ "description": "The list of Service Bus topic endpoints that the IoT hub routes the messages to, based on the routing rules.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RoutingServiceBusTopicEndpointProperties"
+ }
+ },
+ "eventHubs": {
+ "description": "The list of Event Hubs endpoints that IoT hub routes messages to, based on the routing rules. This list does not include the built-in Event Hubs endpoint.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RoutingEventHubProperties"
+ }
+ },
+ "storageContainers": {
+ "description": "The list of storage container endpoints that IoT hub routes messages to, based on the routing rules.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RoutingStorageContainerProperties"
+ }
+ }
+ }
+ },
+ "RoutingServiceBusQueueEndpointProperties": {
+ "description": "The properties related to service bus queue endpoint types.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Id of the service bus queue endpoint",
+ "type": "string"
+ },
+ "connectionString": {
+ "description": "The connection string of the service bus queue endpoint.",
+ "type": "string"
+ },
+ "endpointUri": {
+ "description": "The url of the service bus queue endpoint. It must include the protocol sb://",
+ "type": "string"
+ },
+ "entityPath": {
+ "description": "Queue name on the service bus namespace",
+ "type": "string"
+ },
+ "authenticationType": {
+ "description": "Method used to authenticate against the service bus queue endpoint",
+ "enum": [
+ "keyBased",
+ "identityBased"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "authenticationType",
+ "modelAsString": true
+ }
+ },
+ "name": {
+ "description": "The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual queue name.",
+ "type": "string",
+ "pattern": "^[A-Za-z0-9-._]{1,64}$"
+ },
+ "subscriptionId": {
+ "description": "The subscription identifier of the service bus queue endpoint.",
+ "type": "string"
+ },
+ "resourceGroup": {
+ "description": "The name of the resource group of the service bus queue endpoint.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "RoutingServiceBusTopicEndpointProperties": {
+ "description": "The properties related to service bus topic endpoint types.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Id of the service bus topic endpoint",
+ "type": "string"
+ },
+ "connectionString": {
+ "description": "The connection string of the service bus topic endpoint.",
+ "type": "string"
+ },
+ "endpointUri": {
+ "description": "The url of the service bus topic endpoint. It must include the protocol sb://",
+ "type": "string"
+ },
+ "entityPath": {
+ "description": "Queue name on the service bus topic",
+ "type": "string"
+ },
+ "authenticationType": {
+ "description": "Method used to authenticate against the service bus topic endpoint",
+ "enum": [
+ "keyBased",
+ "identityBased"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "authenticationType",
+ "modelAsString": true
+ }
+ },
+ "name": {
+ "description": "The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types. The name need not be the same as the actual topic name.",
+ "type": "string",
+ "pattern": "^[A-Za-z0-9-._]{1,64}$"
+ },
+ "subscriptionId": {
+ "description": "The subscription identifier of the service bus topic endpoint.",
+ "type": "string"
+ },
+ "resourceGroup": {
+ "description": "The name of the resource group of the service bus topic endpoint.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "RoutingEventHubProperties": {
+ "description": "The properties related to an event hub endpoint.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Id of the event hub endpoint",
+ "type": "string"
+ },
+ "connectionString": {
+ "description": "The connection string of the event hub endpoint. ",
+ "type": "string"
+ },
+ "endpointUri": {
+ "description": "The url of the event hub endpoint. It must include the protocol sb://",
+ "type": "string"
+ },
+ "entityPath": {
+ "description": "Event hub name on the event hub namespace",
+ "type": "string"
+ },
+ "authenticationType": {
+ "description": "Method used to authenticate against the event hub endpoint",
+ "enum": [
+ "keyBased",
+ "identityBased"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "authenticationType",
+ "modelAsString": true
+ }
+ },
+ "name": {
+ "description": "The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types.",
+ "type": "string",
+ "pattern": "^[A-Za-z0-9-._]{1,64}$"
+ },
+ "subscriptionId": {
+ "description": "The subscription identifier of the event hub endpoint.",
+ "type": "string"
+ },
+ "resourceGroup": {
+ "description": "The name of the resource group of the event hub endpoint.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "RoutingStorageContainerProperties": {
+ "description": "The properties related to a storage container endpoint.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Id of the storage container endpoint",
+ "type": "string"
+ },
+ "connectionString": {
+ "description": "The connection string of the storage account.",
+ "type": "string"
+ },
+ "endpointUri": {
+ "description": "The url of the storage endpoint. It must include the protocol https://",
+ "type": "string"
+ },
+ "authenticationType": {
+ "description": "Method used to authenticate against the storage endpoint",
+ "enum": [
+ "keyBased",
+ "identityBased"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "authenticationType",
+ "modelAsString": true
+ }
+ },
+ "name": {
+ "description": "The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are reserved: events, fileNotifications, $default. Endpoint names must be unique across endpoint types.",
+ "type": "string",
+ "pattern": "^[A-Za-z0-9-._]{1,64}$"
+ },
+ "subscriptionId": {
+ "description": "The subscription identifier of the storage account.",
+ "type": "string"
+ },
+ "resourceGroup": {
+ "description": "The name of the resource group of the storage account.",
+ "type": "string"
+ },
+ "containerName": {
+ "description": "The name of storage container in the storage account.",
+ "type": "string"
+ },
+ "fileNameFormat": {
+ "description": "File name format for the blob. Default format is {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are mandatory but can be reordered.",
+ "type": "string"
+ },
+ "batchFrequencyInSeconds": {
+ "description": "Time interval at which blobs are written to storage. Value should be between 60 and 720 seconds. Default value is 300 seconds.",
+ "format": "int32",
+ "type": "integer",
+ "maximum": 720,
+ "minimum": 60
+ },
+ "maxChunkSizeInBytes": {
+ "description": "Maximum number of bytes for each blob written to storage. Value should be between 10485760(10MB) and 524288000(500MB). Default value is 314572800(300MB).",
+ "format": "int32",
+ "type": "integer",
+ "maximum": 524288000,
+ "minimum": 10485760
+ },
+ "encoding": {
+ "description": "Encoding that is used to serialize messages to blobs. Supported values are 'avro', 'avrodeflate', and 'JSON'. Default value is 'avro'.",
+ "type": "string",
+ "enum": [
+ "Avro",
+ "AvroDeflate",
+ "JSON"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "containerName"
+ ]
+ },
+ "RouteProperties": {
+ "description": "The properties of a routing rule that your IoT hub uses to route messages to endpoints.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.",
+ "type": "string",
+ "pattern": "^[A-Za-z0-9-._]{1,64}$"
+ },
+ "source": {
+ "description": "The source that the routing rule is to be applied to, such as DeviceMessages.",
+ "enum": [
+ "Invalid",
+ "DeviceMessages",
+ "TwinChangeEvents",
+ "DeviceLifecycleEvents",
+ "DeviceJobLifecycleEvents"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "RoutingSource",
+ "modelAsString": true
+ }
+ },
+ "condition": {
+ "description": "The condition that is evaluated to apply the routing rule. If no condition is provided, it evaluates to true by default. For grammar, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language",
+ "type": "string"
+ },
+ "endpointNames": {
+ "description": "The list of endpoints to which messages that satisfy the condition are routed. Currently only one endpoint is allowed.",
+ "minItems": 1,
+ "maxItems": 1,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "isEnabled": {
+ "description": "Used to specify whether a route is enabled.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "name",
+ "endpointNames",
+ "source",
+ "isEnabled"
+ ]
+ },
+ "FallbackRouteProperties": {
+ "description": "The properties of the fallback route. IoT Hub uses these properties when it routes messages to the fallback endpoint.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the route. The name can only include alphanumeric characters, periods, underscores, hyphens, has a maximum length of 64 characters, and must be unique.",
+ "type": "string"
+ },
+ "source": {
+ "description": "The source to which the routing rule is to be applied to. For example, DeviceMessages",
+ "enum": [
+ "DeviceMessages"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "RoutingSource",
+ "modelAsString": true
+ }
+ },
+ "condition": {
+ "description": "The condition which is evaluated in order to apply the fallback route. If the condition is not provided it will evaluate to true by default. For grammar, See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language",
+ "type": "string"
+ },
+ "endpointNames": {
+ "description": "The list of endpoints to which the messages that satisfy the condition are routed to. Currently only 1 endpoint is allowed.",
+ "minItems": 1,
+ "maxItems": 1,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "isEnabled": {
+ "description": "Used to specify whether the fallback route is enabled.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "endpointNames",
+ "source",
+ "isEnabled"
+ ]
+ },
+ "EnrichmentProperties": {
+ "description": "The properties of an enrichment that your IoT hub applies to messages delivered to endpoints.",
+ "type": "object",
+ "properties": {
+ "key": {
+ "description": "The key or name for the enrichment property.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the enrichment property.",
+ "type": "string"
+ },
+ "endpointNames": {
+ "description": "The list of endpoints for which the enrichment is applied to the message.",
+ "minItems": 1,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "key",
+ "value",
+ "endpointNames"
+ ]
+ },
+ "IotHubDescription": {
+ "description": "The description of the IoT hub.",
+ "type": "object",
+ "properties": {
+ "etag": {
+ "description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.",
+ "type": "string"
+ },
+ "properties": {
+ "description": "IotHub properties",
+ "$ref": "#/definitions/IotHubProperties"
+ },
+ "sku": {
+ "description": "IotHub SKU info",
+ "$ref": "#/definitions/IotHubSkuInfo"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "required": [
+ "sku"
+ ]
+ },
+ "Resource": {
+ "description": "The common properties of an Azure resource.",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource identifier."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource name.",
+ "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$"
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource type."
+ },
+ "location": {
+ "type": "string",
+ "description": "The resource location."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The resource tags."
+ }
+ },
+ "x-ms-azure-resource": true,
+ "required": [
+ "location"
+ ]
+ },
+ "SharedAccessSignatureAuthorizationRuleListResult": {
+ "description": "The list of shared access policies with a next link.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of shared access policies.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SharedAccessSignatureAuthorizationRule"
+ }
+ },
+ "nextLink": {
+ "description": "The next link.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "OperationListResult": {
+ "description": "Result of the request to list IoT Hub operations. It contains a list of operations and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "description": "List of IoT Hub operations supported by the Microsoft.Devices resource provider.",
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/Operation"
+ }
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "URL to get the next set of operation list results if there are any."
+ }
+ }
+ },
+ "Operation": {
+ "description": "IoT Hub REST API operation",
+ "type": "object",
+ "properties": {
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Operation name: {provider}/{resource}/{read | write | action | delete}"
+ },
+ "display": {
+ "description": "The object that represents the operation.",
+ "properties": {
+ "provider": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Service provider: Microsoft Devices"
+ },
+ "resource": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Resource Type: IotHubs"
+ },
+ "operation": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the operation"
+ },
+ "description": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Description of the operation"
+ }
+ }
+ }
+ }
+ },
+ "ErrorDetails": {
+ "description": "Error details.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "The error code.",
+ "type": "string",
+ "readOnly": true
+ },
+ "httpStatusCode": {
+ "description": "The HTTP status code.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "The error message.",
+ "type": "string",
+ "readOnly": true
+ },
+ "details": {
+ "description": "The error details.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "IotHubQuotaMetricInfoListResult": {
+ "description": "The JSON-serialized array of IotHubQuotaMetricInfo objects with a next link.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The array of quota metrics objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IotHubQuotaMetricInfo"
+ }
+ },
+ "nextLink": {
+ "description": "The next link.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "EndpointHealthDataListResult": {
+ "description": "The JSON-serialized array of EndpointHealthData objects with a next link.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "JSON-serialized array of Endpoint health data",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EndpointHealthData"
+ }
+ },
+ "nextLink": {
+ "description": "Link to more results",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "EndpointHealthData": {
+ "description": "The health data for an endpoint",
+ "type": "object",
+ "properties": {
+ "endpointId": {
+ "description": "Id of the endpoint",
+ "type": "string"
+ },
+ "healthStatus": {
+ "description": "Health statuses have following meanings. The 'healthy' status shows that the endpoint is accepting messages as expected. The 'unhealthy' status shows that the endpoint is not accepting messages as expected and IoT Hub is retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT Hub has established an eventually consistent state of health. The 'dead' status shows that the endpoint is not accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to identify errors and monitor issues with endpoints. The 'unknown' status shows that the IoT Hub has not established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint",
+ "enum": [
+ "unknown",
+ "healthy",
+ "degraded",
+ "unhealthy",
+ "dead"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "EndpointHealthStatus",
+ "modelAsString": true
+ }
+ },
+ "lastKnownError": {
+ "description": "Last error obtained when a message failed to be delivered to iot hub",
+ "type": "string"
+ },
+ "lastKnownErrorTime": {
+ "description": "Time at which the last known error occurred",
+ "type": "string",
+ "format": "date-time-rfc1123"
+ },
+ "lastSuccessfulSendAttemptTime": {
+ "description": "Last time iot hub successfully sent a message to the endpoint",
+ "type": "string",
+ "format": "date-time-rfc1123"
+ },
+ "lastSendAttemptTime": {
+ "description": "Last time iot hub tried to send a message to the endpoint",
+ "type": "string",
+ "format": "date-time-rfc1123"
+ }
+ }
+ },
+ "RegistryStatistics": {
+ "description": "Identity registry statistics.",
+ "type": "object",
+ "properties": {
+ "totalDeviceCount": {
+ "format": "int64",
+ "description": "The total count of devices in the identity registry.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "enabledDeviceCount": {
+ "format": "int64",
+ "description": "The count of enabled devices in the identity registry.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "disabledDeviceCount": {
+ "format": "int64",
+ "description": "The count of disabled devices in the identity registry.",
+ "type": "integer",
+ "readOnly": true
+ }
+ }
+ },
+ "JobResponseListResult": {
+ "description": "The JSON-serialized array of JobResponse objects with a next link.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The array of JobResponse objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/JobResponse"
+ }
+ },
+ "nextLink": {
+ "description": "The next link.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "IotHubSkuDescription": {
+ "description": "SKU properties.",
+ "type": "object",
+ "properties": {
+ "resourceType": {
+ "description": "The type of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "sku": {
+ "description": "The type of the resource.",
+ "$ref": "#/definitions/IotHubSkuInfo"
+ },
+ "capacity": {
+ "description": "IotHub capacity",
+ "$ref": "#/definitions/IotHubCapacity"
+ }
+ },
+ "required": [
+ "sku",
+ "capacity"
+ ]
+ },
+ "TagsResource": {
+ "properties": {
+ "tags": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "description": "A container holding only the Tags for a resource, allowing the user to update the tags on an IoT Hub instance."
+ },
+ "IotHubCapacity": {
+ "description": "IoT Hub capacity information.",
+ "type": "object",
+ "properties": {
+ "minimum": {
+ "format": "int64",
+ "description": "The minimum number of units.",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 1,
+ "readOnly": true
+ },
+ "maximum": {
+ "format": "int64",
+ "description": "The maximum number of units.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "default": {
+ "format": "int64",
+ "description": "The default number of units.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "scaleType": {
+ "description": "The type of the scaling enabled.",
+ "enum": [
+ "Automatic",
+ "Manual",
+ "None"
+ ],
+ "readOnly": true,
+ "type": "string",
+ "x-ms-enum": {
+ "name": "IotHubScaleType",
+ "modelAsString": false
+ }
+ }
+ }
+ },
+ "EventHubConsumerGroupsListResult": {
+ "description": "The JSON-serialized array of Event Hub-compatible consumer group names with a next link.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "List of consumer groups objects",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EventHubConsumerGroupInfo"
+ }
+ },
+ "nextLink": {
+ "description": "The next link.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "EventHubConsumerGroupInfo": {
+ "description": "The properties of the EventHubConsumerGroupInfo object.",
+ "x-ms-azure-resource": true,
+ "type": "object",
+ "properties": {
+ "properties": {
+ "description": "The tags.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "description": "The Event Hub-compatible consumer group identifier.",
+ "type": "string",
+ "readOnly": true
+ },
+ "name": {
+ "description": "The Event Hub-compatible consumer group name.",
+ "type": "string",
+ "readOnly": true
+ },
+ "type": {
+ "description": "the resource type.",
+ "type": "string",
+ "readOnly": true
+ },
+ "etag": {
+ "description": "The etag.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "IotHubSkuDescriptionListResult": {
+ "description": "The JSON-serialized array of IotHubSkuDescription objects with a next link.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The array of IotHubSkuDescription.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IotHubSkuDescription"
+ }
+ },
+ "nextLink": {
+ "description": "The next link.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "JobResponse": {
+ "description": "The properties of the Job Response object.",
+ "type": "object",
+ "properties": {
+ "jobId": {
+ "description": "The job identifier.",
+ "type": "string",
+ "readOnly": true
+ },
+ "startTimeUtc": {
+ "format": "date-time-rfc1123",
+ "description": "The start time of the job.",
+ "type": "string",
+ "readOnly": true
+ },
+ "endTimeUtc": {
+ "format": "date-time-rfc1123",
+ "description": "The time the job stopped processing.",
+ "type": "string",
+ "readOnly": true
+ },
+ "type": {
+ "description": "The type of the job.",
+ "enum": [
+ "unknown",
+ "export",
+ "import",
+ "backup",
+ "readDeviceProperties",
+ "writeDeviceProperties",
+ "updateDeviceConfiguration",
+ "rebootDevice",
+ "factoryResetDevice",
+ "firmwareUpdate"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "JobType",
+ "modelAsString": true
+ }
+ },
+ "status": {
+ "description": "The status of the job.",
+ "enum": [
+ "unknown",
+ "enqueued",
+ "running",
+ "completed",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "JobStatus",
+ "modelAsString": false
+ }
+ },
+ "failureReason": {
+ "description": "If status == failed, this string containing the reason for the failure.",
+ "type": "string",
+ "readOnly": true
+ },
+ "statusMessage": {
+ "description": "The status message for the job.",
+ "type": "string",
+ "readOnly": true
+ },
+ "parentJobId": {
+ "description": "The job identifier of the parent job, if any.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "IotHubDescriptionListResult": {
+ "description": "The JSON-serialized array of IotHubDescription objects with a next link.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The array of IotHubDescription objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/IotHubDescription"
+ }
+ },
+ "nextLink": {
+ "description": "The next link.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "IotHubQuotaMetricInfo": {
+ "description": "Quota metrics properties.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the quota metric.",
+ "type": "string",
+ "readOnly": true
+ },
+ "currentValue": {
+ "format": "int64",
+ "description": "The current value for the quota metric.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "maxValue": {
+ "format": "int64",
+ "description": "The maximum value of the quota metric.",
+ "type": "integer",
+ "readOnly": true
+ }
+ }
+ },
+ "OperationInputs": {
+ "description": "Input values.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the IoT hub to check.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "IotHubNameAvailabilityInfo": {
+ "description": "The properties indicating whether a given IoT hub name is available.",
+ "type": "object",
+ "properties": {
+ "nameAvailable": {
+ "description": "The value which indicates whether the provided name is available.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "reason": {
+ "description": "The reason for unavailability.",
+ "enum": [
+ "Invalid",
+ "AlreadyExists"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "IotHubNameUnavailabilityReason",
+ "modelAsString": false
+ }
+ },
+ "message": {
+ "description": "The detailed reason message.",
+ "type": "string"
+ }
+ }
+ },
+ "UserSubscriptionQuotaListResult": {
+ "type": "object",
+ "description": "Json-serialized array of User subscription quota response",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/UserSubscriptionQuota"
+ }
+ },
+ "nextLink": {
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "UserSubscriptionQuota": {
+ "description": "User subscription quota response",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "IotHub type id",
+ "type": "string"
+ },
+ "type": {
+ "description": "Response type",
+ "type": "string"
+ },
+ "unit": {
+ "description": "Unit of IotHub type",
+ "type": "string"
+ },
+ "currentValue": {
+ "description": "Current number of IotHub type",
+ "format": "int32",
+ "type": "integer"
+ },
+ "limit": {
+ "description": "Numerical limit on IotHub type",
+ "format": "int32",
+ "type": "integer"
+ },
+ "name": {
+ "description": "IotHub type",
+ "$ref": "#/definitions/Name"
+ }
+ }
+ },
+ "Name": {
+ "description": "Name of Iot Hub type",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "IotHub type",
+ "type": "string"
+ },
+ "localizedValue": {
+ "description": "Localized value of name",
+ "type": "string"
+ }
+ }
+ },
+ "TestAllRoutesInput": {
+ "description": "Input for testing all routes",
+ "type": "object",
+ "properties": {
+ "routingSource": {
+ "description": "Routing source",
+ "enum": [
+ "Invalid",
+ "DeviceMessages",
+ "TwinChangeEvents",
+ "DeviceLifecycleEvents",
+ "DeviceJobLifecycleEvents"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "RoutingSource",
+ "modelAsString": true
+ }
+ },
+ "message": {
+ "description": "Routing message",
+ "$ref": "#/definitions/RoutingMessage"
+ },
+ "twin": {
+ "description": "Routing Twin Reference",
+ "$ref": "#/definitions/RoutingTwin"
+ }
+ }
+ },
+ "RoutingTwin": {
+ "description": "Twin reference input parameter. This is an optional parameter",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "description": "Twin Tags",
+ "type": "object"
+ },
+ "properties": {
+ "properties": {
+ "desired": {
+ "description": "Twin desired properties",
+ "type": "object"
+ },
+ "reported": {
+ "description": "Twin desired properties",
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "RoutingMessage": {
+ "description": "Routing message",
+ "type": "object",
+ "properties": {
+ "body": {
+ "description": "Body of routing message",
+ "type": "string"
+ },
+ "appProperties": {
+ "description": "App properties",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "systemProperties": {
+ "description": "System properties",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "TestAllRoutesResult": {
+ "description": "Result of testing all routes",
+ "type": "object",
+ "properties": {
+ "routes": {
+ "description": "JSON-serialized array of matched routes",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MatchedRoute"
+ }
+ }
+ }
+ },
+ "MatchedRoute": {
+ "description": "Routes that matched",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "description": "Properties of routes that matched",
+ "$ref": "#/definitions/RouteProperties"
+ }
+ }
+ },
+ "TestRouteInput": {
+ "required": [
+ "route"
+ ],
+ "description": "Input for testing route",
+ "type": "object",
+ "properties": {
+ "message": {
+ "description": "Routing message",
+ "$ref": "#/definitions/RoutingMessage"
+ },
+ "route": {
+ "description": "Route properties",
+ "$ref": "#/definitions/RouteProperties"
+ },
+ "twin": {
+ "description": "Routing Twin Reference",
+ "$ref": "#/definitions/RoutingTwin"
+ }
+ }
+ },
+ "TestRouteResult": {
+ "description": "Result of testing one route",
+ "type": "object",
+ "properties": {
+ "result": {
+ "description": "Result of testing route",
+ "enum": [
+ "undefined",
+ "false",
+ "true"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "TestResultStatus",
+ "modelAsString": true
+ }
+ },
+ "details": {
+ "description": "Detailed result of testing route",
+ "$ref": "#/definitions/TestRouteResultDetails"
+ }
+ }
+ },
+ "TestRouteResultDetails": {
+ "description": "Detailed result of testing a route",
+ "type": "object",
+ "properties": {
+ "compilationErrors": {
+ "description": "JSON-serialized list of route compilation errors",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RouteCompilationError"
+ }
+ }
+ }
+ },
+ "RouteCompilationError": {
+ "description": "Compilation error when evaluating route",
+ "type": "object",
+ "properties": {
+ "message": {
+ "description": "Route error message",
+ "type": "string"
+ },
+ "severity": {
+ "description": "Severity of the route error",
+ "enum": [
+ "error",
+ "warning"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "RouteErrorSeverity",
+ "modelAsString": true
+ }
+ },
+ "location": {
+ "description": "Location where the route error happened",
+ "$ref": "#/definitions/RouteErrorRange"
+ }
+ }
+ },
+ "RouteErrorRange": {
+ "description": "Range of route errors",
+ "type": "object",
+ "properties": {
+ "start": {
+ "description": "Start where the route error happened",
+ "$ref": "#/definitions/RouteErrorPosition"
+ },
+ "end": {
+ "description": "End where the route error happened",
+ "$ref": "#/definitions/RouteErrorPosition"
+ }
+ }
+ },
+ "RouteErrorPosition": {
+ "description": "Position where the route error happened",
+ "type": "object",
+ "properties": {
+ "line": {
+ "description": "Line where the route error happened",
+ "format": "int32",
+ "type": "integer"
+ },
+ "column": {
+ "description": "Column where the route error happened",
+ "format": "int32",
+ "type": "integer"
+ }
+ }
+ },
+ "ExportDevicesRequest": {
+ "description": "Use to provide parameters when requesting an export of all devices in the IoT hub.",
+ "type": "object",
+ "properties": {
+ "exportBlobContainerUri": {
+ "description": "The export blob container URI.",
+ "type": "string"
+ },
+ "excludeKeys": {
+ "description": "The value indicating whether keys should be excluded during export.",
+ "type": "boolean"
+ },
+ "exportBlobName": {
+ "description": "The name of the blob that will be created in the provided output blob container. This blob will contain the exported device registry information for the IoT Hub.",
+ "type": "string"
+ },
+ "authenticationType": {
+ "description": "Specifies authentication type being used for connecting to the storage account.",
+ "enum": [
+ "keyBased",
+ "identityBased"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "AuthenticationType",
+ "modelAsString": true
+ }
+ }
+ },
+ "required": [
+ "exportBlobContainerUri",
+ "excludeKeys"
+ ]
+ },
+ "ImportDevicesRequest": {
+ "description": "Use to provide parameters when requesting an import of all devices in the hub.",
+ "type": "object",
+ "properties": {
+ "inputBlobContainerUri": {
+ "description": "The input blob container URI.",
+ "type": "string"
+ },
+ "outputBlobContainerUri": {
+ "description": "The output blob container URI.",
+ "type": "string"
+ },
+ "inputBlobName": {
+ "description": "The blob name to be used when importing from the provided input blob container.",
+ "type": "string"
+ },
+ "outputBlobName": {
+ "description": "The blob name to use for storing the status of the import job.",
+ "type": "string"
+ },
+ "authenticationType": {
+ "description": "Specifies authentication type being used for connecting to the storage account.",
+ "enum": [
+ "keyBased",
+ "identityBased"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "AuthenticationType",
+ "modelAsString": true
+ }
+ }
+ },
+ "required": [
+ "inputBlobContainerUri",
+ "outputBlobContainerUri"
+ ]
+ },
+ "FailoverInput": {
+ "description": "Use to provide failover region when requesting manual Failover for a hub.",
+ "type": "object",
+ "properties": {
+ "failoverRegion": {
+ "description": "Region the hub will be failed over to",
+ "type": "string"
+ }
+ },
+ "required": [
+ "failoverRegion"
+ ]
+ },
+ "IotHubLocationDescription": {
+ "description": "Public representation of one of the locations where a resource is provisioned.",
+ "type": "object",
+ "properties": {
+ "location": {
+ "description": "The name of the Azure region",
+ "type": "string"
+ },
+ "role": {
+ "description": "The role of the region, can be either primary or secondary. The primary region is where the IoT hub is currently provisioned. The secondary region is the Azure disaster recovery (DR) paired region and also the region where the IoT hub can failover to.",
+ "enum": [
+ "primary",
+ "secondary"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "IotHubReplicaRoleType",
+ "modelAsString": true
+ }
+ }
+ }
+ }
+ },
+ "parameters": {
+ "subscriptionId": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "The subscription identifier.",
+ "required": true,
+ "type": "string"
+ },
+ "api-version": {
+ "name": "api-version",
+ "in": "query",
+ "description": "The version of the API.",
+ "required": true,
+ "type": "string"
+ },
+ "resourceGroupName": {
+ "name": "resourceGroupName",
+ "description": "The name of the resource group that contains the IoT hub.",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "resourceName": {
+ "name": "resourceName",
+ "in": "path",
+ "description": "The name of the IoT hub.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "certificateName": {
+ "name": "certificateName",
+ "in": "path",
+ "description": "The name of the certificate",
+ "required": true,
+ "type": "string",
+ "pattern": "^[A-Za-z0-9-._]{1,64}$",
+ "x-ms-parameter-location": "method"
+ },
+ "groupId": {
+ "name": "groupId",
+ "in": "path",
+ "description": "The name of the private link resource",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "privateEndpointConnectionName": {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "description": "The name of the private endpoint connection",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/iothub/resource-manager/readme.md b/specification/iothub/resource-manager/readme.md
index 8e78febbb821..cc0782d00196 100644
--- a/specification/iothub/resource-manager/readme.md
+++ b/specification/iothub/resource-manager/readme.md
@@ -26,18 +26,27 @@ These are the global settings for the IotHub API.
``` yaml
openapi-type: arm
-tag: package-2020-03
+tag: package-2020-04
```
+### Tag: package-2020-04
+
+These settings apply only when `--tag=package-2020-04` is specified on the command line.
+
+```yaml $(tag) == 'package-2020-04'
+input-file:
+ - Microsoft.Devices/stable/2020-04-01/iothub.json
+```
### Tag: package-2020-03
These settings apply only when `--tag=package-2020-03` is specified on the command line.
-```yaml $(tag) == 'package-2020-03'
+``` yaml $(tag) == 'package-2020-03'
input-file:
- Microsoft.Devices/stable/2020-03-01/iothub.json
```
+
### Tag: package-2019-11
These settings apply only when `--tag=package-2019-11` is specified on the command line.
diff --git a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/backuprestore.json b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/backuprestore.json
index d3539a6a3040..9a6587443dd8 100644
--- a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/backuprestore.json
+++ b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/backuprestore.json
@@ -5,6 +5,21 @@
"description": "The key vault client performs cryptographic key operations and vault operations against the Key Vault service.",
"version": "7.2-preview"
},
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{vaultBaseUrl}",
+ "useSchemePrefix": false,
+ "positionInOperation": "first",
+ "parameters": [
+ {
+ "name": "vaultBaseUrl",
+ "description": "The vault name, for example https://myvault.vault.azure.net.",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true
+ }
+ ]
+ },
"consumes": [
"application/json"
],
@@ -193,6 +208,64 @@
}
}
}
+ },
+ "/keys/{keyName}/restore": {
+ "put": {
+ "tags": [
+ "Keys"
+ ],
+ "operationId": "SelectiveKeyRestoreOperation",
+ "description": "Restores all key versions of a given key using user supplied SAS token pointing to a previously stored Azure Blob storage backup folder",
+ "parameters": [
+ {
+ "name": "keyName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the key to be restored from the user supplied backup"
+ },
+ {
+ "name": "restoreBlobDetails",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/SelectiveKeyRestoreOperationParameters"
+ },
+ "description": "The Azure blob SAS token pointing to a folder where the previous successful full backup was stored"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Started selective key restore operation from the previously stored backup",
+ "headers": {
+ "Retry-After": {
+ "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.",
+ "type": "integer"
+ },
+ "Azure-AsyncOperation": {
+ "description": "The URI to poll for completion status.",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/SelectiveKeyRestoreOperation"
+ }
+ },
+ "default": {
+ "description": "Key Vault error response describing why the operation failed.",
+ "schema": {
+ "$ref": "common.json#/definitions/KeyVaultError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Selectively restore key from a backup": {
+ "$ref": "./examples/SelectiveRestore-example.json"
+ }
+ }
+ }
}
},
"definitions": {
@@ -211,6 +284,52 @@
"sasTokenParameters"
]
},
+ "SelectiveKeyRestoreOperationParameters": {
+ "properties": {
+ "sasTokenParameters": {
+ "$ref": "#/definitions/SASTokenParameter"
+ },
+ "folder": {
+ "type": "string",
+ "description": "The Folder name of the blob where the previous successful full backup was stored"
+ }
+ },
+ "required": [
+ "folder",
+ "sasTokenParameters"
+ ]
+ },
+ "SelectiveKeyRestoreOperation": {
+ "properties": {
+ "status": {
+ "type": "string",
+ "description": "Status of the restore operation."
+ },
+ "statusDetails": {
+ "type": "string",
+ "description": "The status details of restore operation."
+ },
+ "error": {
+ "$ref": "common.json#/definitions/Error",
+ "description": "Error encountered, if any, during the selective key restore operation."
+ },
+ "jobId": {
+ "type": "string",
+ "description": "Identifier for the selective key restore operation."
+ },
+ "startTime": {
+ "type": "integer",
+ "format": "unixtime",
+ "description": "The start time of the restore operation"
+ },
+ "endTime": {
+ "type": "integer",
+ "format": "unixtime",
+ "description": "The end time of the restore operation"
+ }
+ },
+ "description": "Selective Key Restore operation"
+ },
"SASTokenParameter": {
"properties": {
"storageResourceUri": {
diff --git a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/ExportKey-example.json b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/ExportKey-example.json
new file mode 100644
index 000000000000..8cb42488f38b
--- /dev/null
+++ b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/ExportKey-example.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "vaultBaseUrl": "https://myvault.vault.azure.net/",
+ "key-name": "exportable-aes-key",
+ "key-version": "4eb68492b5f6421e835d961ad2be3155",
+ "api-version": "7.2-preview",
+ "parameters": {
+ "env": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkdXQXkxNk5ieFJJQ3lCUzVKckJxRk5DdXdjS2YxYUVYbS1hUDVsUlJ4UEUiLCJqa3UiOiJodHRwOi8vbG9jYWxob3N0OjgwMjMva2V5cyJ9.eyJhYXMtZWhkIjoiZXlKclpYbHpJanBiZXlKbElqb2lRVkZCUWlJc0ltdGxlVjl2Y0hNaU9sc2laR1ZqY25sd2RDSXNJbVZ1WTNKNWNIUWlYU3dpYTJsa0lqb2lOVE16TmpReU5HTXRaV1kzWlMxaU1tRm1MVFU1WmprdE5HUXdPRGhtTURRMFpHVTFJaXdpYTNSNUlqb2lVbE5CSWl3aWJpSTZJbkJPYkhoWVNuRTNPSGRPUkVVd2FXMVNOa1JCWWs5alNrRXpUekp1UlZvNVdFaGtjMDVQTjB0b00xWlJRVTh5VWt0eFlqQk9iRXh4TVhwUFRVOTVZVlJPUW5rNWMzUTRjbG95TURWYU1EWTFjalY2YlRKa1FrSllkRkJUU21Sc1VtSm9WRXd0TlRCcWFFVXpiRUV4WjFVemVYcDJaR0o1U1Zob2NtMDNkWEJFVGtKemFXeFNlR1ZVUW1KUGNWOW1XSE5vT1dGMVVHeGxVM0pOWlZCR2JGbElkVmRNTjJacGNYWktiMHMyZUZSSVZFSmZUa2R1WjBWMlFrMTVPRGRxWlVsbExWbEJUbUYxWkRsRk5GYzFhWHBLZFVwNmJGOHhORkJFY1VWdWVGcFNTM0F5YW1WUGJsZEpTRXRVVm0wMWFsRmhiakZoTlVkdmJGWmxRV2szWlhoalNtRXlNaTFLZERSRWEwNHlWakZMTUZCZlR6YzJSME5ETjNCWlVYVlpTWEkxZFZWclExUmtWVVYxYmxKSWIyaFRWbTFHZVZGaldFSlVkVmxuUVdNMVJFZEpaVGQ1UjNSRFdtOW9WRjlsVmxGQ2NESldVU0lzSW5WelpTSTZJbVZ1WXlKOVhYMCIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODAyMy8iLCJzZ3gtbXJlbmNsYXZlIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsInNneC1tcnNpZ25lciI6Ijg2Nzg4ZmU0MDQ0OGYyYTEyZTIwYmY4ZDVlN2ExYzMxMzliYzVmZGMxNDMyYjM3MGMxZGEzNDg5YWI2NDlhODUiLCJpcy1kZWJ1Z2dhYmxlIjp0cnVlLCJ0ZWUiOiJzZ3giLCJpYXQiOjE1ODc0MjUxNzMsImV4cCI6MTU4ODAyOTk3M30.CA9gO0kRMHt6e9xTKopwEnDt-Mc52oAAe6zicFwX3REZd5E0m3WzJuSYS8H9iKTGL1dfusflPx74C5xLTZiHe0D2YFHYoW3efEm3r55DwkpTbA6tbDjMY7OIC9XuC7prAf4nQ5hYRk0LATzwytYIZ-c-R08ZEt5CV5XqR5MuSDKWWslPm36BHD3l03VVNEEG4hC9KuCIZ2z9YK5ofGze-IY1J9x1EwnG-y_1RF6rDKENjOROOaOH9JvohHGIfK0FKVj8_7E6JxMTQMb7K-45GfE20tTVdCs4A4k3jXNrIRcGmSK5EMrB_LbHzk0PIc6sjl-VuPZVqGxhsaAyoH3cdA"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "attributes": {
+ "created": 1587425174,
+ "enabled": true,
+ "exportable": true,
+ "recoverableDays": 90,
+ "recoveryLevel": "Recoverable+Purgeable",
+ "updated": 1587425174
+ },
+ "key": {
+ "key_ops": [
+ "decrypt",
+ "encrypt"
+ ],
+ "kid": "https://myvault.vault.azure.net/keys/exportable-aes-key/903fab0c1bab0b30266200be85f5f2ed",
+ "kty": "oct",
+ "key_hsm": "CxX3qVTt22ZvjwdS-fmMSsLpaQQ8IcfGAC2TYWo3FXIPnOrSmZWdWN3gLMNSLUtUOhXqwXCe6jOxH2jMr6suO4Q0mfrKurAB-IC5gbDZGGD9XksrAkyYS-0p4p4I4Q4QxEOCtCKYPYWWu91dg5xg5aYjVRyR5G3C6O0haotp1FL1FiOB1PVcW9HchDIdHMFCszsb33pbvDuYvJXPPqdSIGIT8P8ExVG9_RwYTZl2Kj3MTSbe9zjOEEW-EnA6Phr0EFO0h94dWK0Y2tPhyzGYOSBScJCWIdwD9lT1aaHNFE0rSLJ9wv0qGezR10nD7V7ALZiEscsrAcwrWTtmmCJMAIJpGf0u9rN1_JQiXuO4Q9Cf4b73nSP1kIIAPkZ3r6Fqmrm8F7NeKis"
+ },
+ "release_policy": {
+ "anyOf": [
+ {
+ "allOf": [
+ {
+ "claim": "sgx-mrsigner",
+ "condition": "equals",
+ "value": "86788fe40448f2a12e20bf8d5e7a1c3139bc5fdc1432b370c1da3489ab649a85"
+ },
+ {
+ "claim": "is-debuggable",
+ "condition": "equals",
+ "value": "false"
+ }
+ ],
+ "authority": "http://localhost:8023/"
+ }
+ ],
+ "version": "0.2"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullBackup-example.json b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullBackup-example.json
index 94db87470eab..ce343dfcfba5 100644
--- a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullBackup-example.json
+++ b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullBackup-example.json
@@ -1,5 +1,6 @@
{
"parameters": {
+ "vaultBaseUrl": "https://myvault.vault.azure.net/",
"azureStorageBlobContainerUri": {
"storageResourceUri": "https://myaccount.blob.core.windows.net/sascontainer/sasContainer",
"token": "se=2018-02-01T00%3A00Z&spr=https&sv=2017-04-17&sr=b&sig=XXFNfuMCHYrBx0bhemJ7PWn0xGfImMXT6LfbXWvtRUk%3D"
diff --git a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullBackup-pending-example.json b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullBackup-pending-example.json
index 9396af3e5d5d..e634afa229d0 100644
--- a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullBackup-pending-example.json
+++ b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullBackup-pending-example.json
@@ -1,5 +1,6 @@
{
"parameters": {
+ "vaultBaseUrl": "https://myvault.vault.azure.net/",
"jobId": "45aacd568ab049a2803861e8dd3ae21f",
"api-version": "7.2-preview"
},
diff --git a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullRestore-example.json b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullRestore-example.json
index cd9c7278ab29..08b8c336100b 100644
--- a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullRestore-example.json
+++ b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullRestore-example.json
@@ -1,11 +1,12 @@
{
"parameters": {
+ "vaultBaseUrl": "https://myhsm.managedhsm.azure.net",
"restoreBlobDetails": {
"sasTokenParameters": {
"storageResourceUri": "https://myaccount.blob.core.windows.net/sascontainer/sasContainer",
"token": "se=2018-02-01T00%3A00Z&spr=https&sv=2017-04-17&sr=b&sig=XXFNfuMCHYrBx0bhemJ7PWn0xGfImMXT6LfbXWvtRUk%3D"
},
- "folderToRestore": "1490790332"
+ "folderToRestore": "mhsm-mypool-20200303062926785"
},
"api-version": "7.2-preview"
},
diff --git a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullRestore-pending-example.json b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullRestore-pending-example.json
index 70786dedfba1..5cc1666fc91f 100644
--- a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullRestore-pending-example.json
+++ b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/FullRestore-pending-example.json
@@ -1,5 +1,6 @@
{
"parameters": {
+ "vaultBaseUrl": "https://myvault.vault.azure.net/",
"jobId": "45aacd568ab049a2803861e8dd3ae21f",
"api-version": "7.2-preview"
},
diff --git a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/SelectiveRestore-example.json b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/SelectiveRestore-example.json
new file mode 100644
index 000000000000..91815d730b80
--- /dev/null
+++ b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/examples/SelectiveRestore-example.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "vaultBaseUrl": "https://myvault.vault.azure.net",
+ "keyName": "hsm-mail-key",
+ "restoreBlobDetails": {
+ "sasTokenParameters": {
+ "storageResourceUri": "https://myaccount.blob.core.windows.net/sascontainer/sasContainer",
+ "token": "se=2018-02-01T00%3A00Z&spr=https&sv=2017-04-17&sr=b&sig=XXFNfuMCH112BxhemJ7PWn0xGfImMXT6LfbXWvtRUk%3D"
+ },
+ "folder": "mhsm-mypool-20200303062926785"
+ },
+ "api-version": "7.2-preview"
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Retry-After": 5,
+ "Azure-AsyncOperation": "https://myvault.vault.azure.net/restore/45aacd568a23b0s49a2803861e8dd3ase21f/pending"
+ },
+ "body": {
+ "status": "InProgress",
+ "statusDetails": "Selective Key restore is in progress",
+ "jobId": "45aacd568a23b0s49a2803861e8dd3ase21f",
+ "startTime": 1490790000,
+ "endTime": 0
+ }
+ }
+ }
+}
diff --git a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/keys.json b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/keys.json
index 99327bcef69d..755c98196453 100644
--- a/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/keys.json
+++ b/specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.2/keys.json
@@ -808,6 +808,64 @@
}
}
},
+ "/keys/{key-name}/{key-version}/export": {
+ "post": {
+ "tags": [
+ "Keys"
+ ],
+ "operationId": "exportKey",
+ "summary": "Exports a key.",
+ "description": "The export key operation is applicable to all key types. The target key must be marked exportable. This operation requires the keys/export permission.",
+ "parameters": [
+ {
+ "name": "key-name",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the key to get."
+ },
+ {
+ "name": "key-version",
+ "required": true,
+ "in": "path",
+ "type": "string",
+ "description": "Adding the version parameter retrieves a specific version of a key."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "x-ms-client-flatten": true,
+ "schema": {
+ "$ref": "#/definitions/KeyExportParameters"
+ },
+ "description": "The parameters for the key export operation."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "A key bundle containing the key and its attributes.",
+ "schema": {
+ "$ref": "#/definitions/KeyBundle"
+ }
+ },
+ "default": {
+ "description": "Key Vault error response describing why the operation failed.",
+ "schema": {
+ "$ref": "common.json#/definitions/KeyVaultError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Export key": {
+ "$ref": "./examples/ExportKey-example.json"
+ }
+ }
+ }
+ },
"/deletedkeys": {
"get": {
"tags": [
@@ -975,6 +1033,83 @@
}
},
"definitions": {
+ "KeyReleaseCondition": {
+ "properties": {
+ "claim": {
+ "x-ms-client-name": "claimType",
+ "type": "string",
+ "minLength": 1,
+ "description": "claim type name"
+ },
+ "condition": {
+ "x-ms-client-name": "claimCondition",
+ "type": "string",
+ "minLength": 1,
+ "description": "condition to test",
+ "enum": [
+ "equals"
+ ],
+ "x-ms-enum": {
+ "name": "KeyReleaseConditionCondition",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "equals",
+ "description": "equals comparison."
+ }
+ ]
+ }
+ },
+ "value": {
+ "type": "string"
+ }
+ }
+ },
+ "KeyReleaseAuthority": {
+ "properties": {
+ "authority": {
+ "x-ms-client-name": "authorityURL",
+ "type": "string",
+ "minLength": 1,
+ "description": "Base URL of the attestation service."
+ },
+ "allOf": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/KeyReleaseCondition",
+ "description": "The set of claim conditions that must be met."
+ }
+ }
+ }
+ },
+ "KeyReleasePolicy": {
+ "properties": {
+ "version": {
+ "description": "key release policy version",
+ "type": "string",
+ "enum": [
+ "0.2"
+ ],
+ "x-ms-enum": {
+ "name": "KeyReleasePolicyVersion",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "0.2",
+ "description": "Schema version 0.2"
+ }
+ ]
+ }
+ },
+ "anyOf": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/KeyReleaseAuthority",
+ "description": "Authorities."
+ }
+ }
+ }
+ },
"JsonWebKey": {
"properties": {
"kid": {
@@ -1082,7 +1217,7 @@
"x-ms-client-name": "t",
"type": "string",
"format": "base64url",
- "description": "HSM Token, used with 'Bring Your Own Key'."
+ "description": "Protected Key, used with 'Bring Your Own Key'."
},
"crv": {
"type": "string",
@@ -1160,6 +1295,10 @@
},
"readOnly": true,
"x-nullable": false
+ },
+ "exportable": {
+ "type": "boolean",
+ "description": "Indicates if the private key can be exported."
}
},
"description": "The attributes of a key managed by the key vault service."
@@ -1185,6 +1324,10 @@
"type": "boolean",
"readOnly": true,
"description": "True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true."
+ },
+ "release_policy": {
+ "$ref": "#/definitions/KeyReleasePolicy",
+ "description": "The policy rules under which the key can be exported."
}
},
"description": "A KeyBundle consisting of a WebKey plus its attributes."
@@ -1340,6 +1483,11 @@
"format": "int32",
"description": "The key size in bits. For example: 2048, 3072, or 4096 for RSA."
},
+ "public_exponent": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The public exponent for a RSA key."
+ },
"key_ops": {
"type": "array",
"items": {
@@ -1352,7 +1500,8 @@
"verify",
"wrapKey",
"unwrapKey",
- "import"
+ "import",
+ "export"
],
"x-ms-enum": {
"name": "JsonWebKeyOperation",
@@ -1385,6 +1534,10 @@
"name": "JsonWebKeyCurveName",
"modelAsString": true
}
+ },
+ "release_policy": {
+ "$ref": "#/definitions/KeyReleasePolicy",
+ "description": "The policy rules under which the key can be exported."
}
},
"description": "The key create parameters.",
@@ -1413,6 +1566,10 @@
"type": "string"
},
"description": "Application specific metadata in the form of key-value pairs."
+ },
+ "release_policy": {
+ "$ref": "#/definitions/KeyReleasePolicy",
+ "description": "The policy rules under which the key can be exported."
}
},
"description": "The key import parameters.",
@@ -1420,6 +1577,20 @@
"key"
]
},
+ "KeyExportParameters": {
+ "properties": {
+ "env": {
+ "x-ms-client-name": "environment",
+ "type": "string",
+ "minLength": 1,
+ "description": "The target environment assertion."
+ }
+ },
+ "description": "The export key parameters.",
+ "required": [
+ "env"
+ ]
+ },
"KeyOperationsParameters": {
"properties": {
"alg": {
@@ -1436,7 +1607,13 @@
"A256GCM",
"A128KW",
"A192KW",
- "A256KW"
+ "A256KW",
+ "A128CBC",
+ "A192CBC",
+ "A256CBC",
+ "A128CBCPAD",
+ "A192CBCPAD",
+ "A256CBCPAD"
],
"x-ms-enum": {
"name": "JsonWebKeyEncryptionAlgorithm",
@@ -1609,7 +1786,8 @@
"verify",
"wrapKey",
"unwrapKey",
- "import"
+ "import",
+ "export"
],
"x-ms-enum": {
"name": "JsonWebKeyOperation",
@@ -1628,6 +1806,10 @@
"type": "string"
},
"description": "Application specific metadata in the form of key-value pairs."
+ },
+ "release_policy": {
+ "$ref": "#/definitions/KeyReleasePolicy",
+ "description": "The policy rules under which the key can be exported."
}
},
"description": "The key update parameters."
diff --git a/specification/keyvault/data-plane/readme.md b/specification/keyvault/data-plane/readme.md
index eb859f72ce78..9db0128e0f77 100644
--- a/specification/keyvault/data-plane/readme.md
+++ b/specification/keyvault/data-plane/readme.md
@@ -44,6 +44,22 @@ input-file:
- Microsoft.KeyVault/preview/7.2/backuprestore.json
```
+### Tag: package-7.2-preview
+
+These settings apply only when `--tag=package-7.2-preview` is specified on the command line.
+
+```yaml $(tag) == 'package-7.2-preview'
+input-file:
+- Microsoft.KeyVault/preview/7.2/certificates.json
+- Microsoft.KeyVault/preview/7.2/common.json
+- Microsoft.KeyVault/preview/7.2/keys.json
+- Microsoft.KeyVault/preview/7.2/rbac.json
+- Microsoft.KeyVault/preview/7.2/secrets.json
+- Microsoft.KeyVault/preview/7.2/storage.json
+- Microsoft.KeyVault/preview/7.2/backuprestore.json
+```
+
+
### Tag: package-7.1-preview
These settings apply only when `--tag=package-7.1-preview` is specified on the command line.
@@ -288,10 +304,22 @@ directive:
from: keys.json
where: $.definitions.JsonWebKey.properties.key_hsm
reason: Merely refactored existing definitions into new files.
+ - suppress: DefinitionsPropertiesNamesCamelCase
+ from: keys.json
+ where: $.definitions.KeyBundle.properties.release_policy
+ reason: Consistency with other properties.
- suppress: DefinitionsPropertiesNamesCamelCase
from: keys.json
where: $.definitions.KeyCreateParameters.properties.key_size
reason: Merely refactored existing definitions into new files.
+ - suppress: DefinitionsPropertiesNamesCamelCase
+ from: keys.json
+ where: $.definitions.KeyCreateParameters.properties.public_exponent
+ reason: Consistency with other properties.
+ - suppress: DefinitionsPropertiesNamesCamelCase
+ from: keys.json
+ where: $.definitions.KeyCreateParameters.properties.release_policy
+ reason: Consistency with other properties.
- suppress: DefinitionsPropertiesNamesCamelCase
from: keys.json
where: $.definitions.KeyCreateParameters.properties.key_ops
@@ -300,10 +328,18 @@ directive:
from: keys.json
where: $.definitions.KeyImportParameters.properties.Hsm
reason: Merely refactored existing definitions into new files.
+ - suppress: DefinitionsPropertiesNamesCamelCase
+ from: keys.json
+ where: $.definitions.KeyImportParameters.properties.release_policy
+ reason: Consistency with other properties.
- suppress: DefinitionsPropertiesNamesCamelCase
from: keys.json
where: $.definitions.KeyUpdateParameters.properties.key_ops
reason: Merely refactored existing definitions into new files.
+ - suppress: DefinitionsPropertiesNamesCamelCase
+ from: keys.json
+ where: $.definitions.KeyUpdateParameters.properties.release_policy
+ reason: Consistency with other properties.
- suppress: MISSING_REQUIRED_PARAMETER
from: certificates.json
where: $..parameters[?(@.name=='vaultBaseUrl')]
diff --git a/specification/logic/resource-manager/readme.az.md b/specification/logic/resource-manager/readme.az.md
index 0ebc4fc8a32b..bc9b6c244824 100644
--- a/specification/logic/resource-manager/readme.az.md
+++ b/specification/logic/resource-manager/readme.az.md
@@ -11,16 +11,5 @@ az-output-folder: $(azure-cli-extension-folder)/src/logic
python-sdk-output-folder: "$(az-output-folder)/azext_logic/vendored_sdks/logic"
# uncomment following to use json instead of flatten
-#cli:
-# cli-directive:
-# - where:
-# group: 'Workflows'
-# op: 'CreateOrUpdate'
-# param: 'workflow'
-# json: true
-# - where:
-# type: 'workflow'
-# prop: 'properties'
-# flatten: false
```
diff --git a/specification/logic/resource-manager/readme.md b/specification/logic/resource-manager/readme.md
index 995fb1b4b1bc..8fc4874a384f 100644
--- a/specification/logic/resource-manager/readme.md
+++ b/specification/logic/resource-manager/readme.md
@@ -128,6 +128,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
+ - repo: azure-sdk-for-trenton
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
@@ -272,3 +273,17 @@ uncomment the `exclude-file` section below and add the file paths.
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
+## trenton
+
+These settings apply only when `--trenton` is specified on the command line.
+
+``` yaml $(trenton)
+trenton:
+ cli-name: logic
+ azure_arm: true
+ license_header: MICROSOFT_MIT_NO_VERSION
+ payload_flattening_threshold: 2
+ namespace: logic
+ package-name: logic
+ clear_output_folder: false
+```
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListSkus.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListSkus.json
new file mode 100644
index 000000000000..38d64c4de09e
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListSkus.json
@@ -0,0 +1,79 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "{subscription-id}"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "resourceType": "workspaces",
+ "name": "Basic",
+ "tier": "Basic",
+ "locations": [
+ "westus"
+ ],
+ "locationInfo": [
+ {
+ "location": "westus",
+ "zones": [
+ "westus-AZ02",
+ "westus-AZ01"
+ ]
+ }
+ ],
+ "capabilities": [
+ {
+ "name": "automatedml_readhyperdrivesdk",
+ "value": "{\n \"id\": \"automatedml_ readhyperdrivesdk\",\n \"name\": \"Read hyperdrive SDK\",\n \"description\": \"Read only access to Hyperdrive in the SDK\"\n}"
+ },
+ {
+ "name": "workspace_upgradeworkspacesdk",
+ "value": "{\n \"id\": \"workspace_upgradeworkspacesdk\",\n \"name\": \"Upgrade workspace SDK\",\n \"description\": \"Upgrade workspace from Basic to enterprise from the SDK\"\n}"
+ }
+ ],
+ "restrictions": []
+ },
+ {
+ "resourceType": "workspaces",
+ "name": "Enterprise",
+ "tier": "Enterprise",
+ "locations": [
+ "westus"
+ ],
+ "locationInfo": [
+ {
+ "location": "westus",
+ "zones": [
+ "westus-AZ01"
+ ],
+ "zoneDetails": [
+ {
+ "name": [
+ "westus-AZ01"
+ ],
+ "capabilities": [
+ {
+ "name": "automatedml_createeditexperimentssdk",
+ "value": "{\n \"id\": \"automatedml_createeditexperimentssdk\",\n \"name\": \"Create edit experiments SDK\",\n \"description\": \"Create, edit or delete AutoML experiments in the SDK\"\n}"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "capabilities": [
+ {
+ "name": "automatedml_createeditexperimentssdk",
+ "value": "{\n \"id\": \"automatedml_createeditexperimentssdk\",\n \"name\": \"Create edit experiments SDK\",\n \"description\": \"Create, edit or delete AutoML experiments in the SDK\"\n}"
+ }
+ ],
+ "restrictions": []
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListUsages.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListUsages.json
new file mode 100644
index 000000000000..cdeefc855b53
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListUsages.json
@@ -0,0 +1,400 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "location": "eastus",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages",
+ "type": "Microsoft.MachineLearningServices/totalCores/usages",
+ "currentValue": 7,
+ "limit": 100,
+ "name": {
+ "localizedValue": "Clusters",
+ "value": "Clusters"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages",
+ "type": "Microsoft.MachineLearningServices/dedicatedCores/usages",
+ "currentValue": 14,
+ "limit": 24,
+ "name": {
+ "localizedValue": "Total Cluster Dedicated Regional vCPUs",
+ "value": "Total Cluster Dedicated Regional vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_D_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": 48,
+ "name": {
+ "localizedValue": "Standard D Family Cluster Dedicated vCPUs",
+ "value": "Standard D Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 2,
+ "limit": 24,
+ "name": {
+ "value": "Standard DSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard DSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/usages/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/usages",
+ "currentValue": 2,
+ "limit": 24,
+ "name": {
+ "value": "Standard DSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard DSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/computes/demo_cluster1_dsv2/usages/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes/usages",
+ "currentValue": 2,
+ "limit": 24,
+ "name": {
+ "value": "Standard DSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard DSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/computes/demo_cluster2_dsv2/usages/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes/usages",
+ "currentValue": 0,
+ "limit": 24,
+ "name": {
+ "value": "Standard DSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard DSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_Dv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": 24,
+ "name": {
+ "localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs",
+ "value": "Standard Dv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_FSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": 24,
+ "name": {
+ "value": "Standard FSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard FSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NC_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 12,
+ "limit": 24,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster Dedicated vCPUs",
+ "value": "Standard NC Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/usages/Standard_NC_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspace/usages",
+ "currentValue": 6,
+ "limit": 24,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster Dedicated vCPUs",
+ "value": "Standard NC Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/computes/demo_cluster1_nc/usages/Standard_NC_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspace/computes/usages",
+ "currentValue": 6,
+ "limit": 24,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster Dedicated vCPUs",
+ "value": "Standard NC Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/usages/Standard_NC_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/usages",
+ "currentValue": 6,
+ "limit": 24,
+ "name": {
+ "value": "Standard NC Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NC Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/computes/demo_cluser1_nc/usages/Standard_NC_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes/usages",
+ "currentValue": 6,
+ "limit": 24,
+ "name": {
+ "value": "Standard NC Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NC Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NCv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": 0,
+ "name": {
+ "localizedValue": "Standard NCv2 Family Cluster Dedicated vCPUs",
+ "value": "Standard NCv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NCv3_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": 0,
+ "name": {
+ "localizedValue": "Standard NCv3 Family Cluster Dedicated vCPUs",
+ "value": "Standard NCv3 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_ND_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": 0,
+ "name": {
+ "localizedValue": "Standard ND Family Cluster Dedicated vCPUs",
+ "value": "Standard ND Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NDv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": 0,
+ "name": {
+ "value": "Standard NDv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NDv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NV_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": 24,
+ "name": {
+ "localizedValue": "Standard NV Family Cluster Dedicated vCPUs",
+ "value": "Standard NV Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages",
+ "type": "Microsoft.MachineLearningServices/lowPriorityCores/usages",
+ "currentValue": 18,
+ "limit": 50,
+ "name": {
+ "localizedValue": "Total Cluster LowPriority Regional vCPUs",
+ "value": "Total Cluster LowPriority Regional vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_D_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": -1,
+ "name": {
+ "value": "Standard D Family Cluster LowPriority vCPUs",
+ "localizedValue": "Standard D Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_DSv2_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard DSv2 Family Cluster LowPriority vCPUs",
+ "value": "Standard DSv2 Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_Dv2_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard Dv2 Family Cluster LowPriority vCPUs",
+ "value": "Standard Dv2 Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_FSv2_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard FSv2 Family Cluster LowPriority vCPUs",
+ "value": "Standard FSv2 Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NC_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 18,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster LowPriority vCPUs",
+ "value": "Standard NC Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/usages/Standard_NC_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspace/usages",
+ "currentValue": 6,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster LowPriority vCPUs",
+ "value": "Standard NC Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/computes/demo_cluster1_lowPriority_nc/usages/Standard_NC_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspace/computes/usages",
+ "currentValue": 6,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster LowPriority vCPUs",
+ "value": "Standard NC Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/usages/Standard_NC_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspace/usages",
+ "currentValue": 12,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster LowPriority vCPUs",
+ "value": "Standard NC Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/computes/demo_cluster2_lowPriority_nc/usages/Standard_NC_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspace/computes/usages",
+ "currentValue": 6,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster LowPriority vCPUs",
+ "value": "Standard NC Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/computes/demo_cluster3_lowPriority_nc/usages/Standard_NC_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspace/computes/usages",
+ "currentValue": 6,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster LowPriority vCPUs",
+ "value": "Standard NC Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NCv2_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NCv2 Family Cluster LowPriority vCPUs",
+ "value": "Standard NCv2 Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NCv3_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NCv3 Family Cluster LowPriority vCPUs",
+ "value": "Standard NCv3 Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_ND_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard ND Family Cluster LowPriority vCPUs",
+ "value": "Standard ND Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NDv2_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NDv2 Family Cluster LowPriority vCPUs",
+ "value": "Standard NDv2 Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/usages/Standard_NV_Family_Cluster_LowPriority_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/usages",
+ "currentValue": 0,
+ "limit": -1,
+ "name": {
+ "localizedValue": "Standard NV Family Cluster LowPriority vCPUs",
+ "value": "Standard NV Family Cluster LowPriority vCPUs"
+ },
+ "unit": "Count"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListVMSizesResult.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListVMSizesResult.json
new file mode 100644
index 000000000000..b028e1cd3cc8
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListVMSizesResult.json
@@ -0,0 +1,455 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "api-version": "2020-03-01",
+ "location": "eastus"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "amlCompute": [
+ {
+ "name": "Standard_F2s_v2",
+ "family": "standardFSv2Family",
+ "vCPUs": 2,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 16384,
+ "memoryGB": 4.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_F4s_v2",
+ "family": "standardFSv2Family",
+ "vCPUs": 4,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 32768,
+ "memoryGB": 8.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_F8s_v2",
+ "family": "standardFSv2Family",
+ "vCPUs": 8,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 65536,
+ "memoryGB": 16.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_F16s_v2",
+ "family": "standardFSv2Family",
+ "vCPUs": 16,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 131072,
+ "memoryGB": 32.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_F32s_v2",
+ "family": "standardFSv2Family",
+ "vCPUs": 32,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 262144,
+ "memoryGB": 64.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_F64s_v2",
+ "family": "standardFSv2Family",
+ "vCPUs": 64,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 524288,
+ "memoryGB": 128.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_F72s_v2",
+ "family": "standardFSv2Family",
+ "vCPUs": 72,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 589824,
+ "memoryGB": 144.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_D1_v2",
+ "family": "standardDv2Family",
+ "vCPUs": 1,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 51200,
+ "memoryGB": 3.5,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_D2_v2",
+ "family": "standardDv2Family",
+ "vCPUs": 2,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 102400,
+ "memoryGB": 7.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_D3_v2",
+ "family": "standardDv2Family",
+ "vCPUs": 4,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 204800,
+ "memoryGB": 14.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_D4_v2",
+ "family": "standardDv2Family",
+ "vCPUs": 8,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 409600,
+ "memoryGB": 28.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_D11_v2",
+ "family": "standardDv2Family",
+ "vCPUs": 2,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 102400,
+ "memoryGB": 14.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_D12_v2",
+ "family": "standardDv2Family",
+ "vCPUs": 4,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 204800,
+ "memoryGB": 28.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_D13_v2",
+ "family": "standardDv2Family",
+ "vCPUs": 8,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 409600,
+ "memoryGB": 56.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_D14_v2",
+ "family": "standardDv2Family",
+ "vCPUs": 16,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 819200,
+ "memoryGB": 112.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_DS1_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 1,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 7168,
+ "memoryGB": 3.5,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_DS2_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 2,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 14336,
+ "memoryGB": 7.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_DS3_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 4,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 28672,
+ "memoryGB": 14.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_DS4_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 8,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 57344,
+ "memoryGB": 28.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_DS5_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 16,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 114688,
+ "memoryGB": 56.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_DS11_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 2,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 28672,
+ "memoryGB": 14.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_DS12_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 4,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 57344,
+ "memoryGB": 28.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_DS13_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 8,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 114688,
+ "memoryGB": 56.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_DS14_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 16,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 229376,
+ "memoryGB": 112.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_DS15_v2",
+ "family": "standardDSv2Family",
+ "vCPUs": 20,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 286720,
+ "memoryGB": 140.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_NC6s_v2",
+ "family": "standardNCSv2Family",
+ "vCPUs": 6,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 344064,
+ "memoryGB": 112.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_NC12s_v2",
+ "family": "standardNCSv2Family",
+ "vCPUs": 12,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 688128,
+ "memoryGB": 224.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_NC24rs_v2",
+ "family": "standardNCSv2Family",
+ "vCPUs": 24,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 1376256,
+ "memoryGB": 448.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_NC24s_v2",
+ "family": "standardNCSv2Family",
+ "vCPUs": 24,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 1376256,
+ "memoryGB": 448.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_NC6s_v3",
+ "family": "standardNCSv3Family",
+ "vCPUs": 6,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 344064,
+ "memoryGB": 112.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_NC12s_v3",
+ "family": "standardNCSv3Family",
+ "vCPUs": 12,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 688128,
+ "memoryGB": 224.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_NC24rs_v3",
+ "family": "standardNCSv3Family",
+ "vCPUs": 24,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 1376256,
+ "memoryGB": 448.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_NC24s_v3",
+ "family": "standardNCSv3Family",
+ "vCPUs": 24,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 1376256,
+ "memoryGB": 448.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_NC6",
+ "family": "standardNCFamily",
+ "vCPUs": 6,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 389120,
+ "memoryGB": 56.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_NC12",
+ "family": "standardNCFamily",
+ "vCPUs": 12,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 696320,
+ "memoryGB": 112.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_NC24",
+ "family": "standardNCFamily",
+ "vCPUs": 24,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 1474560,
+ "memoryGB": 224.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_NC24r",
+ "family": "standardNCFamily",
+ "vCPUs": 24,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 1474560,
+ "memoryGB": 224.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_NV6",
+ "family": "standardNVFamily",
+ "vCPUs": 6,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 389120,
+ "memoryGB": 56.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_NV12",
+ "family": "standardNVFamily",
+ "vCPUs": 12,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 696320,
+ "memoryGB": 112.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_NV24",
+ "family": "standardNVFamily",
+ "vCPUs": 24,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 1474560,
+ "memoryGB": 224.0,
+ "lowPriorityCapable": true,
+ "premiumIO": false
+ },
+ {
+ "name": "Standard_ND6s",
+ "family": "standardNDSFamily",
+ "vCPUs": 6,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 344064,
+ "memoryGB": 112.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_ND12s",
+ "family": "standardNDSFamily",
+ "vCPUs": 12,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 688128,
+ "memoryGB": 224.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_ND24rs",
+ "family": "standardNDSFamily",
+ "vCPUs": 24,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 1376256,
+ "memoryGB": 448.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ },
+ {
+ "name": "Standard_ND24s",
+ "family": "standardNDSFamily",
+ "vCPUs": 24,
+ "osVhdSizeMB": 1047552,
+ "maxResourceVolumeMB": 1376256,
+ "memoryGB": 448.0,
+ "lowPriorityCapable": true,
+ "premiumIO": true
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListWorkspaceFeatures.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListWorkspaceFeatures.json
new file mode 100644
index 000000000000..580620035090
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListWorkspaceFeatures.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "workspaceName": "testworkspace"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "automatedml_createeditexperimentsui",
+ "displayName": "Create edit experiments UI",
+ "description": "Create, edit or delete AutoML experiments in the SDK"
+ },
+ {
+ "id": "workspace_upgradeworkspaceui",
+ "displayName": "Upgrade workspace UI",
+ "description": "Upgrade workspace from Basic to enterprise from the UI"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListWorkspaceQuotasByVMFamily.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListWorkspaceQuotasByVMFamily.json
new file mode 100644
index 000000000000..8d352d678eb6
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/ListWorkspaceQuotasByVMFamily.json
@@ -0,0 +1,415 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "location": "eastus",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_D_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quotas",
+ "limit": 48,
+ "name": {
+ "localizedValue": "Standard D Family Cluster Dedicated vCPUs",
+ "value": "Standard D Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_D_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 12,
+ "name": {
+ "value": "Standard D Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard D Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_D_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 12,
+ "name": {
+ "value": "Standard D Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard D Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_D_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard D Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard D Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quota",
+ "limit": 24,
+ "name": {
+ "value": "Standard DSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard DSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard DSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard DSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 12,
+ "name": {
+ "value": "Standard DSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard DSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 12,
+ "name": {
+ "value": "Standard DSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard DSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_Dv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quotas",
+ "limit": 24,
+ "name": {
+ "localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs",
+ "value": "Standard Dv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_Dv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard Dv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_Dv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard Dv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_Dv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard Dv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_FSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard FSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard FSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_FSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard FSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard FSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_FSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard FSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard FSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_FSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 12,
+ "name": {
+ "value": "Standard FSv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard FSv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_NC_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quotas",
+ "limit": 24,
+ "name": {
+ "localizedValue": "Standard NC Family Cluster Dedicated vCPUs",
+ "value": "Standard NC Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_NC_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard NC Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NC Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_NC_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard NC Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NC Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_NC_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard NC Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NC Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_NCv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quotas",
+ "limit": 0,
+ "name": {
+ "localizedValue": "Standard NCv2 Family Cluster Dedicated vCPUs",
+ "value": "Standard NCv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_NCv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NCv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NCv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_NCv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NCv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NCv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_NCv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NCv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NCv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_NCv3_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quotas",
+ "limit": 0,
+ "name": {
+ "localizedValue": "Standard NCv3 Family Cluster Dedicated vCPUs",
+ "value": "Standard NCv3 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_NCv3_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NCv3 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NCv3 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_NCv3_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NCv3 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NCv3 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_NCv3_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NCv3 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NCv3 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_ND_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quotas",
+ "limit": 0,
+ "name": {
+ "localizedValue": "Standard ND Family Cluster Dedicated vCPUs",
+ "value": "Standard ND Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_ND_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard ND Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard ND Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_ND_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard ND Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard ND Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_ND_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard ND Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard ND Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_NDv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NDv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NDv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_NDv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NDv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NDv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_NDv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NDv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NDv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_NDv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 0,
+ "name": {
+ "value": "Standard NDv2 Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NDv2 Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/quotas/Standard_NV_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/vmFamily/quotas",
+ "limit": 24,
+ "name": {
+ "localizedValue": "Standard NV Family Cluster Dedicated vCPUs",
+ "value": "Standard NV Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_NV_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard NV Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NV Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_NV_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard NV Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NV Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace3/quotas/Standard_NV_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 24,
+ "name": {
+ "value": "Standard NV Family Cluster Dedicated vCPUs",
+ "localizedValue": "Standard NV Family Cluster Dedicated vCPUs"
+ },
+ "unit": "Count"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/amlComputeListNodes.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/amlComputeListNodes.json
new file mode 100644
index 000000000000..bf422bf16f77
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/amlComputeListNodes.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "computeType": "AmlCompute",
+ "nodes": [
+ {
+ "nodeId": "tvm-3601533753_1-20170719t162906z",
+ "privateIpAddress": "13.84.190.124",
+ "publicIpAddress": "13.84.190.134",
+ "port": 50000,
+ "nodeState": "running",
+ "runId": "2f378a44-38f2-443a-9f0d-9909d0b47890"
+ },
+ {
+ "nodeId": "tvm-3601533753_2-20170719t162906z",
+ "privateIpAddress": "13.84.190.124",
+ "publicIpAddress": "13.84.190.134",
+ "port": 50001,
+ "nodeState": "idle"
+ }
+ ],
+ "nextLink": "nextLink"
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicAKSCompute.json
new file mode 100644
index 000000000000..3593ab691c22
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicAKSCompute.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "computeType": "AKS"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "computeType": "AKS",
+ "provisioningState": "Creating"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "computeType": "AKS",
+ "provisioningState": "Creating"
+ }
+ },
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicAmlCompute.json
new file mode 100644
index 000000000000..b2dc9a2db2f4
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicAmlCompute.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "computeType": "AmlCompute",
+ "properties": {
+ "vmSize": "STANDARD_NC6",
+ "vmPriority": "Dedicated",
+ "scaleSettings": {
+ "maxNodeCount": 1,
+ "minNodeCount": 0,
+ "nodeIdleTimeBeforeScaleDown": "PT5M"
+ },
+ "remoteLoginPortPublicAccess": "NotSpecified"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "computeType": "AmlCompute",
+ "provisioningState": "Creating"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "computeType": "AmlCompute",
+ "provisioningState": "Creating"
+ }
+ },
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicDataFactoryCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicDataFactoryCompute.json
new file mode 100644
index 000000000000..81c9b689aae5
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createBasicDataFactoryCompute.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "computeType": "DataFactory"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "computeType": "DataFactory",
+ "provisioningState": "Creating"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "computeType": "DataFactory",
+ "provisioningState": "Creating"
+ }
+ },
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createLinkedWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createLinkedWorkspace.json
new file mode 100644
index 000000000000..f7e2d3d06c9d
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createLinkedWorkspace.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "resourceGroup-1",
+ "workspaceName": "workspace-1",
+ "linkName": "link-1",
+ "api-version": "2020-04-01-preview",
+ "parameters": {
+ "name": "link-1",
+ "properties": {
+ "linkedWorkspaceResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1",
+ "userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/linkedWorkspaces/link-1",
+ "name": "link-1",
+ "type": "linkedWorkspaces",
+ "properties": {
+ "linkedWorkspaceResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1",
+ "userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createWorkspace.json
new file mode 100644
index 000000000000..6f1de6f5b9f2
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/createWorkspace.json
@@ -0,0 +1,140 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "workspace-1234",
+ "workspaceName": "testworkspace",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "location": "eastus2euap",
+ "sku": {
+ "name": "Basic",
+ "tier": "Basic"
+ },
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "properties": {
+ "friendlyName": "HelloName",
+ "description": "test description",
+ "containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry",
+ "keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
+ "storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
+ "encryption": {
+ "status": "Enabled",
+ "keyVaultProperties": {
+ "keyVaultArmId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "keyIdentifier": "https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb",
+ "identityClientId": ""
+ }
+ },
+ "hbiWorkspace": false,
+ "sharedPrivateLinkResources": [
+ {
+ "name": "testdbresource",
+ "properties": {
+ "privateLinkResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql",
+ "groupId": "Sql",
+ "requestMessage": "Please approve",
+ "status": "Approved"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace",
+ "name": "testworkspace",
+ "type": "Microsoft.MachineLearningServices/workspaces",
+ "location": "eastus2euap",
+ "identity": {
+ "principalId": "00000000-1111-2222-3333-444444444444",
+ "tenantId": "00000000-1111-2222-3333-444444444444",
+ "type": "SystemAssigned"
+ },
+ "sku": {
+ "name": "Basic",
+ "tier": "Basic"
+ },
+ "properties": {
+ "containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry",
+ "keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
+ "storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
+ "discoveryUrl": "http://example.com",
+ "creationTime": "2017-03-01T23:14:37.0707808Z",
+ "friendlyName": "HelloName",
+ "description": "test description",
+ "encryption": {
+ "status": "Enabled",
+ "keyVaultProperties": {
+ "keyVaultArmId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "keyIdentifier": "https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb",
+ "identityClientId": ""
+ }
+ },
+ "hbiWorkspace": false,
+ "allowPublicAccessWhenBehindVnet": false,
+ "sharedPrivateLinkResources": [
+ {
+ "name": "testdbresource",
+ "properties": {
+ "privateLinkResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql",
+ "groupId": "Sql",
+ "requestMessage": "Please approve",
+ "status": "Approved"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace",
+ "name": "testworkspace",
+ "type": "Microsoft.MachineLearningServices/workspaces",
+ "location": "eastus2euap",
+ "sku": {
+ "name": "Basic",
+ "tier": "Basic"
+ },
+ "properties": {
+ "containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry",
+ "keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
+ "storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
+ "discoveryUrl": "http://example.com",
+ "creationTime": "2017-03-01T23:14:37.0707808Z",
+ "friendlyName": "HelloName",
+ "description": "test description",
+ "encryption": {
+ "status": "Enabled",
+ "keyVaultProperties": {
+ "keyVaultArmId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "keyIdentifier": "https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb",
+ "identityClientId": ""
+ }
+ },
+ "hbiWorkspace": false,
+ "allowPublicAccessWhenBehindVnet": false,
+ "sharedPrivateLinkResources": [
+ {
+ "name": "testdbresource",
+ "properties": {
+ "privateLinkResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql",
+ "groupId": "Sql",
+ "requestMessage": "Please approve",
+ "status": "Approved"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteCompute.json
new file mode 100644
index 000000000000..0c62d5a99ac4
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteCompute.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01",
+ "underlyingResourceAction": "Delete"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus...",
+ "Location": "https://management.azure.com/subscriptions/...pathToOperationResult..."
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteLinkedWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteLinkedWorkspace.json
new file mode 100644
index 000000000000..e6e30e2b4bdd
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteLinkedWorkspace.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "resourceGroup-1",
+ "workspaceName": "workspace-1",
+ "linkName": "link-1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteWorkspace.json
new file mode 100644
index 000000000000..9b433ad2b4c6
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/deleteWorkspace.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "workspace-1234",
+ "workspaceName": "testworkspace",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getAKSCompute.json
new file mode 100644
index 000000000000..6c84edb3d88e
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getAKSCompute.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "description": "some compute",
+ "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute123-56826-c9b00420020b2",
+ "computeType": "AKS",
+ "provisioningState": "Succeeded"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getAmlCompute.json
new file mode 100644
index 000000000000..0070b3bed219
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getAmlCompute.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus2",
+ "properties": {
+ "description": "some compute",
+ "computeType": "AmlCompute",
+ "createdOn": "2017-09-26T22:28:08.327Z",
+ "provisioningState": "Succeeded",
+ "properties": {
+ "vmSize": "STANDARD_NC6",
+ "vmPriority": "Dedicated",
+ "subnet": "test-subnet-resource-id",
+ "scaleSettings": {
+ "maxNodeCount": 1,
+ "minNodeCount": 0,
+ "nodeIdleTimeBeforeScaleDown": "PT5M"
+ },
+ "remoteLoginPortPublicAccess": "Enabled",
+ "allocationState": "Resizing",
+ "allocationStateTransitionTime": "2017-09-27T22:28:08.998Z",
+ "errors": null,
+ "currentNodeCount": 0,
+ "targetNodeCount": 1,
+ "nodeStateCounts": {
+ "preparingNodeCount": 0,
+ "runningNodeCount": 0,
+ "idleNodeCount": 0,
+ "unusableNodeCount": 0,
+ "leavingNodeCount": 0,
+ "preemptedNodeCount": 0
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getComputes.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getComputes.json
new file mode 100644
index 000000000000..ce37e26e1627
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getComputes.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "description": "some compute",
+ "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute123-56826-c9b00420020b2",
+ "computeType": "AKS",
+ "provisioningState": "Succeeded"
+ }
+ },
+ {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute1234",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute1234",
+ "location": "eastus",
+ "properties": {
+ "description": "some compute",
+ "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute1234-56826-c9b00420020b2",
+ "computeType": "AKS",
+ "provisioningState": "Succeeded"
+ }
+ }
+ ],
+ "nextLink": "nextLink"
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getLinkedWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getLinkedWorkspace.json
new file mode 100644
index 000000000000..97803b44a0f3
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getLinkedWorkspace.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "resourceGroup-1",
+ "workspaceName": "workspace-1",
+ "linkName": "link-1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/linkedWorkspaces/link-1",
+ "name": "link-1",
+ "type": "linkedWorkspaces",
+ "properties": {
+ "linkedWorkspaceResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1",
+ "userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspace.json
new file mode 100644
index 000000000000..045fd3332604
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspace.json
@@ -0,0 +1,74 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "workspace-1234",
+ "workspaceName": "testworkspace",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace",
+ "name": "testworkspace",
+ "type": "Microsoft.MachineLearningServices/workspaces",
+ "location": "eastus2euap",
+ "sku": {
+ "name": "Enterprise",
+ "tier": "Enterprise"
+ },
+ "properties": {
+ "containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry",
+ "keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
+ "storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
+ "discoveryUrl": "http://example.com",
+ "creationTime": "2017-03-01T23:14:37.0707808Z",
+ "friendlyName": "HelloName",
+ "description": "test description",
+ "encryption": {
+ "status": "Enabled",
+ "keyVaultProperties": {
+ "keyVaultArmId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "keyIdentifier": "https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb",
+ "identityClientId": ""
+ }
+ },
+ "hbiWorkspace": false,
+ "serviceProvisionedResourceGroup": "testworkspace_0000111122223333",
+ "privateLinkCount": 0,
+ "allowPublicAccessWhenBehindVnet": false,
+ "imageBuildCompute": "testcompute",
+ "privateEndpointConnections": [
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/privateEndpointConnections/testprivatelinkconnection",
+ "name": "testprivatelinkconnection",
+ "type": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg-1234/providers/Microsoft.Network/privateEndpoints/petest01"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Auto-Approved",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ ],
+ "sharedPrivateLinkResources": [
+ {
+ "name": "testcosmosdbresource",
+ "properties": {
+ "privateLinkResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testcosmosdbresource/privateLinkResources/Sql",
+ "groupId": "Sql",
+ "requestMessage": "Please approve",
+ "status": "Approved"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspacesByResourceGroup.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspacesByResourceGroup.json
new file mode 100644
index 000000000000..c028c686089e
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspacesByResourceGroup.json
@@ -0,0 +1,56 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "workspace-1234",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace",
+ "name": "testworkspace",
+ "type": "Microsoft.MachineLearningServices/workspaces",
+ "location": "eastus2euap",
+ "sku": {
+ "name": "Basic",
+ "tier": "Basic"
+ },
+ "properties": {
+ "containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry",
+ "keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
+ "storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
+ "discoveryUrl": "http://example.com",
+ "creationTime": "2017-03-01T23:14:37.0707808Z",
+ "friendlyName": "HelloName",
+ "description": "test description"
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace1",
+ "name": "testworkspace1",
+ "type": "Microsoft.MachineLearningServices/workspaces",
+ "location": "eastus2euap",
+ "sku": {
+ "name": "Basic",
+ "tier": "Basic"
+ },
+ "properties": {
+ "containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistryNew",
+ "keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkvNew",
+ "applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
+ "storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccountOld",
+ "discoveryUrl": "http://example.com",
+ "creationTime": "2017-03-01T23:14:37.0707808Z",
+ "friendlyName": "HelloName 1",
+ "description": "test description"
+ }
+ }
+ ],
+ "nextLink": "nextLink"
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspacesBySubscription.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspacesBySubscription.json
new file mode 100644
index 000000000000..c12f24c3a78f
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/getWorkspacesBySubscription.json
@@ -0,0 +1,55 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace",
+ "name": "testworkspace",
+ "type": "Microsoft.MachineLearningServices/workspaces",
+ "location": "eastus2euap",
+ "sku": {
+ "name": "Enterprise",
+ "tier": "Enterprise"
+ },
+ "properties": {
+ "containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry",
+ "keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
+ "storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
+ "discoveryUrl": "http://example.com",
+ "creationTime": "2017-03-01T23:14:37.0707808Z",
+ "friendlyName": "HelloName",
+ "description": "test description"
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-5678/providers/Microsoft.MachineLearningServices/workspaces/testworkspace",
+ "name": "testworkspace",
+ "type": "Microsoft.MachineLearningServices/workspaces",
+ "location": "eastus2euap",
+ "sku": {
+ "name": "Enterprise",
+ "tier": "Enterprise"
+ },
+ "properties": {
+ "containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistryNew",
+ "keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkvNew",
+ "applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
+ "storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccountOld",
+ "discoveryUrl": "http://example.com",
+ "creationTime": "2017-03-01T23:14:37.0707808Z",
+ "friendlyName": "HelloName",
+ "description": "test description"
+ }
+ }
+ ],
+ "nextLink": "nextLink"
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listKeysAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listKeysAKSCompute.json
new file mode 100644
index 000000000000..ac102dbef366
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listKeysAKSCompute.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "computeType": "AKS",
+ "userKubeConfig": "user kube config...",
+ "adminKubeConfig": "admin kube config...",
+ "imagePullSecretName": "the image pull secret name"
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listLinkedWorkspaces.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listLinkedWorkspaces.json
new file mode 100644
index 000000000000..66e3c333bccb
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listLinkedWorkspaces.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "resourceGroup-1",
+ "workspaceName": "workspace-1",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": [
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/linkedWorkspaces/link-1",
+ "name": "link-1",
+ "type": "linkedWorkspaces",
+ "properties": {
+ "linkedWorkspaceResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/linkRg-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1",
+ "userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1"
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/linkedWorkspaces/link-2",
+ "name": "link-2",
+ "type": "linkedWorkspaces",
+ "properties": {
+ "linkedWorkspaceResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/linkRg-2/providers/Microsoft.Synapse/workspaces/linkedWorkspace-2",
+ "userAssignedIdentityResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai2"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listWorkspaceKeys.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listWorkspaceKeys.json
new file mode 100644
index 000000000000..298a3d18e5ce
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/listWorkspaceKeys.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "userStorageKey": "r5rKCJ018TLk+bdAi/9YaVzgcQ0nkLsUqGyUN03KsdCFtqG0SjFGPV8+vT1frWqkvBL0bGoPpLc1BlZSSaZmOA==",
+ "userStorageResourceId": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ragargeastus2euap/providers/Microsoft.Storage/storageAccounts/testdemoworkazashomr",
+ "appInsightsInstrumentationKey": null,
+ "containerRegistryCredentials": {
+ "location": null,
+ "username": "testdemoworkjmjmeykp",
+ "passwords": [
+ {
+ "name": "password",
+ "value": "vBvVhYgAGtUSewVCUv3w95p4/q5Yrsnw"
+ },
+ {
+ "name": "password2",
+ "value": "0KARRQoQHSUq1yViPWg7YFernOS=Ic/t"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/patchAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/patchAmlCompute.json
new file mode 100644
index 000000000000..869dcacec863
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/patchAmlCompute.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "properties": {
+ "scaleSettings": {
+ "maxNodeCount": 4,
+ "minNodeCount": 4,
+ "nodeIdleTimeBeforeScaleDown": "PT5M"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus2",
+ "properties": {
+ "description": "some compute",
+ "computeType": "AmlCompute",
+ "provisioningState": "Updating"
+ }
+ },
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/resyncWorkspaceKeys.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/resyncWorkspaceKeys.json
new file mode 100644
index 000000000000..691fa053dcbe
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/resyncWorkspaceKeys.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateAKSCompute.json
new file mode 100644
index 000000000000..a303aed3d81d
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateAKSCompute.json
@@ -0,0 +1,53 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "description": "some compute",
+ "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute123-56826-c9b00420020b2",
+ "computeType": "AKS",
+ "properties": {
+ "agentCount": 4
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "description": "some compute",
+ "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute123-56826-c9b00420020b2",
+ "computeType": "AKS",
+ "provisioningState": "Updating"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus",
+ "properties": {
+ "description": "some compute",
+ "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute123-56826-c9b00420020b2",
+ "computeType": "AKS",
+ "provisioningState": "Updating"
+ }
+ },
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateAmlCompute.json
new file mode 100644
index 000000000000..d6c6c9a24e36
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateAmlCompute.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "computeName": "compute123",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "computeType": "AmlCompute",
+ "description": "some compute",
+ "properties": {
+ "scaleSettings": {
+ "maxNodeCount": 4,
+ "minNodeCount": 4,
+ "nodeIdleTimeBeforeScaleDown": "PT5M"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus2",
+ "properties": {
+ "description": "some compute",
+ "computeType": "AmlCompute",
+ "provisioningState": "Updating"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123",
+ "type": "Microsoft.MachineLearningServices/workspaces/computes",
+ "name": "compute123",
+ "location": "eastus2",
+ "properties": {
+ "description": "some compute",
+ "computeType": "AmlCompute",
+ "provisioningState": "Updating"
+ }
+ },
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateQuota.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateQuota.json
new file mode 100644
index 000000000000..aaca8dcb2ec3
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateQuota.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "location": "eastus",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 100,
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 200,
+ "unit": "Count"
+ }
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 100,
+ "unit": "Count",
+ "status": "Success"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs",
+ "type": "Microsoft.MachineLearningServices/workspaces/quotas",
+ "limit": 200,
+ "unit": "Count",
+ "status": "Success"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateWorkspace.json
new file mode 100644
index 000000000000..8b097ee2aeda
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/updateWorkspace.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "workspace-1234",
+ "workspaceName": "testworkspace",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "sku": {
+ "name": "Enterprise",
+ "tier": "Enterprise"
+ },
+ "properties": {
+ "friendlyName": "New friendly name",
+ "description": "new description"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace",
+ "name": "testworkspace",
+ "type": "Microsoft.MachineLearningServices/workspaces",
+ "location": "eastus2euap",
+ "sku": {
+ "name": "Enterprise",
+ "tier": "Enterprise"
+ },
+ "properties": {
+ "containerRegistry": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry",
+ "keyVault": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
+ "applicationInsights": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
+ "storageAccount": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
+ "discoveryUrl": "http://example.com",
+ "creationTime": "2017-03-01T23:14:37.0707808Z",
+ "friendlyName": "New friendly name",
+ "description": "new description"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceDeletePrivateEndpointConnection.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceDeletePrivateEndpointConnection.json
new file mode 100644
index 000000000000..5d42b9f60f62
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceDeletePrivateEndpointConnection.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg-1234",
+ "workspaceName": "testworkspace",
+ "privateEndpointConnectionName": "{privateEndpointConnectionName}",
+ "api-version": "2020-03-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceGetPrivateEndpointConnection.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceGetPrivateEndpointConnection.json
new file mode 100644
index 000000000000..f7c835a59cdb
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceGetPrivateEndpointConnection.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg-1234",
+ "workspaceName": "testworkspace",
+ "privateEndpointConnectionName": "{privateEndpointConnectionName}",
+ "api-version": "2020-03-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/privateEndpointConnections/{privateEndpointConnectionName}",
+ "name": "{privateEndpointConnectionName}",
+ "type": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg-1234/providers/Microsoft.Network/privateEndpoints/petest01"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Auto-Approved",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceListPrivateLinkResources.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceListPrivateLinkResources.json
new file mode 100644
index 000000000000..4ea136739207
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspaceListPrivateLinkResources.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg-1234",
+ "workspaceName": "testworkspace",
+ "api-version": "2020-03-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/privateLinkResources/amlworkspace",
+ "name": "amlworkspace",
+ "type": "Microsoft.Storage/workspaces/privateLinkResources",
+ "properties": {
+ "groupId": "amlworkspace",
+ "requiredMembers": [
+ "default"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspacePutPrivateEndpointConnection.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspacePutPrivateEndpointConnection.json
new file mode 100644
index 000000000000..0f56bfbef7c8
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/examples/workspacePutPrivateEndpointConnection.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "rg-1234",
+ "workspaceName": "testworkspace",
+ "privateEndpointConnectionName": "{privateEndpointConnectionName}",
+ "api-version": "2020-03-01",
+ "monitor": "true",
+ "properties": {
+ "properties": {
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Auto-Approved"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/privateEndpointConnections/{privateEndpointConnectionName}",
+ "name": "{privateEndpointConnectionName}",
+ "type": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg-1234/providers/Microsoft.Network/privateEndpoints/petest01"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Auto-Approved",
+ "actionsRequired": "None"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/machineLearningServices.json
new file mode 100644
index 000000000000..0b6a2b9f8378
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-04-01-preview/machineLearningServices.json
@@ -0,0 +1,3592 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Azure Machine Learning Workspaces",
+ "description": "These APIs allow end users to operate on Azure Machine Learning Workspace resources.",
+ "version": "2020-03-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.MachineLearningServices/operations": {
+ "get": {
+ "tags": [
+ "Operation"
+ ],
+ "description": "Lists all of the available Azure Machine Learning Workspaces REST API operations.",
+ "operationId": "Operations_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}": {
+ "get": {
+ "tags": [
+ "Workspaces"
+ ],
+ "description": "Gets the properties of the specified machine learning workspace.",
+ "operationId": "Workspaces_Get",
+ "x-ms-examples": {
+ "Get Workspace": {
+ "$ref": "./examples/getWorkspace.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/Workspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Workspaces"
+ ],
+ "description": "Creates or updates a workspace with the specified parameters.",
+ "operationId": "Workspaces_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create Workspace": {
+ "$ref": "./examples/createWorkspace.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The parameters for creating or updating a machine learning workspace.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Workspace"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/Workspace"
+ }
+ },
+ "201": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/Workspace"
+ }
+ },
+ "202": {
+ "description": "The request was successful; the request was well-formed and received properly."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Workspaces"
+ ],
+ "description": "Deletes a machine learning workspace.",
+ "operationId": "Workspaces_Delete",
+ "x-ms-examples": {
+ "Delete Workspace": {
+ "$ref": "./examples/deleteWorkspace.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly."
+ },
+ "204": {
+ "description": "The machine learning workspace does not exist in the subscription."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Workspaces"
+ ],
+ "description": "Updates a machine learning workspace with the specified parameters.",
+ "operationId": "Workspaces_Update",
+ "x-ms-examples": {
+ "Update Workspace": {
+ "$ref": "./examples/updateWorkspace.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The parameters for updating a machine learning workspace.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/WorkspaceUpdateParameters"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/Workspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features": {
+ "get": {
+ "tags": [
+ "Workspaces"
+ ],
+ "description": "Lists all enabled features for a workspace",
+ "operationId": "WorkspaceFeatures_List",
+ "x-ms-examples": {
+ "List Workspace features": {
+ "$ref": "./examples/ListWorkspaceFeatures.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/ListAmlUserFeatureResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces": {
+ "get": {
+ "tags": [
+ "Workspaces"
+ ],
+ "description": "Lists all the available machine learning workspaces under the specified resource group.",
+ "operationId": "Workspaces_ListByResourceGroup",
+ "x-ms-examples": {
+ "Get Workspaces by Resource Group": {
+ "$ref": "./examples/getWorkspacesByResourceGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PaginationParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/WorkspaceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys": {
+ "post": {
+ "tags": [
+ "Workspaces"
+ ],
+ "description": "Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry",
+ "operationId": "Workspaces_ListKeys",
+ "x-ms-examples": {
+ "List Workspace Keys": {
+ "$ref": "./examples/listWorkspaceKeys.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/ListWorkspaceKeysResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys": {
+ "post": {
+ "tags": [
+ "Workspaces"
+ ],
+ "description": "Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry",
+ "operationId": "Workspaces_ResyncKeys",
+ "x-ms-examples": {
+ "Resync Workspace Keys": {
+ "$ref": "./examples/resyncWorkspaceKeys.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/usages": {
+ "get": {
+ "tags": [
+ "Usage"
+ ],
+ "operationId": "Usages_List",
+ "description": "Gets the current usage information as well as limits for AML resources for given subscription and location.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "location",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The location for which resource usage is queried.",
+ "pattern": "^[-\\w\\._]+$"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ListUsagesResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List Usages": {
+ "$ref": "./examples/ListUsages.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/vmSizes": {
+ "get": {
+ "tags": [
+ "VirtualMachineSizes"
+ ],
+ "operationId": "VirtualMachineSizes_List",
+ "description": "Returns supported VM Sizes in a location",
+ "parameters": [
+ {
+ "name": "location",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The location upon which virtual-machine-sizes is queried.",
+ "pattern": "^[-\\w\\._]+$"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/VirtualMachineSizeListResult"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List VM Sizes": {
+ "$ref": "./examples/ListVMSizesResult.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/updateQuotas": {
+ "post": {
+ "tags": [
+ "Quota"
+ ],
+ "operationId": "Quotas_Update",
+ "description": "Update quota for each VM family in workspace.",
+ "parameters": [
+ {
+ "name": "location",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The location for update quota is queried.",
+ "pattern": "^[-\\w\\._]+$"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/QuotaUpdateParameters"
+ },
+ "description": "Quota update parameters."
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful.",
+ "schema": {
+ "$ref": "#/definitions/UpdateWorkspaceQuotasResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "update quotas": {
+ "$ref": "./examples/updateQuota.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/Quotas": {
+ "get": {
+ "tags": [
+ "Quota"
+ ],
+ "operationId": "Quotas_List",
+ "description": "Gets the currently assigned Workspace Quotas based on VMFamily.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "location",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The location for which resource usage is queried.",
+ "pattern": "^[-\\w\\._]+$"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ListWorkspaceQuotas"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List workspace quotas by VMFamily": {
+ "$ref": "./examples/ListWorkspaceQuotasByVMFamily.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces": {
+ "get": {
+ "tags": [
+ "Workspaces"
+ ],
+ "description": "Lists all the available machine learning workspaces under the specified subscription.",
+ "operationId": "Workspaces_ListBySubscription",
+ "x-ms-examples": {
+ "Get Workspaces by subscription": {
+ "$ref": "./examples/getWorkspacesBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/PaginationParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/WorkspaceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes": {
+ "get": {
+ "tags": [
+ "OperationalizationClusters",
+ "MachineLearningComputes"
+ ],
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "operationId": "MachineLearningCompute_ListByWorkspace",
+ "description": "Gets computes in specified workspace.",
+ "x-ms-examples": {
+ "Get Computes": {
+ "$ref": "./examples/getComputes.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/PaginationParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The response includes a paginated array of Machine Learning computes and a URI to the next set of results, if any. For the more information the limits of the number of items in a resource group, see https://azure.microsoft.com/en-us/documentation/articles/azure-subscription-service-limits/.",
+ "schema": {
+ "$ref": "#/definitions/PaginatedComputeResourcesList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the request failed.",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}": {
+ "get": {
+ "tags": [
+ "OperationalizationClusters",
+ "MachineLearningComputes"
+ ],
+ "operationId": "MachineLearningCompute_Get",
+ "description": "Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them.",
+ "x-ms-examples": {
+ "Get a AKS Compute": {
+ "$ref": "./examples/getAKSCompute.json"
+ },
+ "Get a AML Compute": {
+ "$ref": "./examples/getAmlCompute.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ComputeNameParameter"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "schema": {
+ "$ref": "#/definitions/ComputeResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the request failed.",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "OperationalizationClusters",
+ "MachineLearningComputes"
+ ],
+ "operationId": "MachineLearningCompute_CreateOrUpdate",
+ "description": "Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet.",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create a AML Compute": {
+ "$ref": "./examples/createBasicAmlCompute.json"
+ },
+ "Create AKS Compute": {
+ "$ref": "./examples/createBasicAKSCompute.json"
+ },
+ "Create a DataFactory Compute": {
+ "$ref": "./examples/createBasicDataFactoryCompute.json"
+ },
+ "Update a AML Compute": {
+ "$ref": "./examples/updateAmlCompute.json"
+ },
+ "Update a AKS Compute": {
+ "$ref": "./examples/updateAKSCompute.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ComputeNameParameter"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ComputeDefinitionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Compute creation or update initiated.",
+ "schema": {
+ "$ref": "#/definitions/ComputeResource"
+ }
+ },
+ "201": {
+ "description": "Compute creation or update initiated.",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "URI to poll for asynchronous operation status.",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/ComputeResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the request failed.",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "OperationalizationClusters",
+ "MachineLearningComputes"
+ ],
+ "operationId": "MachineLearningCompute_Update",
+ "description": "Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Update a AmlCompute Compute": {
+ "$ref": "./examples/patchAmlCompute.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ComputeNameParameter"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ClusterUpdateParameters"
+ },
+ "description": "Additional parameters for cluster update."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Compute update initiated.",
+ "schema": {
+ "$ref": "#/definitions/ComputeResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the request failed.",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "OperationalizationClusters",
+ "MachineLearningComputes"
+ ],
+ "operationId": "MachineLearningCompute_Delete",
+ "description": "Deletes specified Machine Learning compute.",
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Delete Compute": {
+ "$ref": "./examples/deleteCompute.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ComputeNameParameter"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/UnderlyingResourceActionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly."
+ },
+ "202": {
+ "description": "Compute deletion initiated.",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "URI to poll for asynchronous operation status.",
+ "type": "string"
+ },
+ "Location": {
+ "description": "URI to poll for asynchronous operation result.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the request failed.",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes": {
+ "post": {
+ "tags": [
+ "MachineLearningComputes"
+ ],
+ "operationId": "MachineLearningCompute_ListNodes",
+ "description": "Get the details (e.g IP address, port etc) of all the compute nodes in the compute.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ComputeNameParameter"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The operation was successful. The response contains the list of IP addresses.",
+ "schema": {
+ "$ref": "#/definitions/AmlComputeNodesInformation"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get compute nodes information for a compute": {
+ "$ref": "./examples/amlComputeListNodes.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys": {
+ "post": {
+ "tags": [
+ "OperationalizationClusters",
+ "MachineLearningComputes"
+ ],
+ "operationId": "MachineLearningCompute_ListKeys",
+ "description": "Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).",
+ "x-ms-examples": {
+ "List AKS Compute Keys": {
+ "$ref": "./examples/listKeysAKSCompute.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ComputeNameParameter"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "schema": {
+ "$ref": "#/definitions/ComputeSecrets"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces/skus": {
+ "get": {
+ "tags": [
+ "WorkspaceSkus"
+ ],
+ "description": "Lists all skus with associated features",
+ "operationId": "ListSkus",
+ "x-ms-examples": {
+ "List Skus": {
+ "$ref": "./examples/ListSkus.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The request was successful; the request was well-formed and received properly.",
+ "schema": {
+ "$ref": "#/definitions/SkuListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}": {
+ "get": {
+ "tags": [
+ "WorkspacePrivateEndpointConnections"
+ ],
+ "operationId": "PrivateEndpointConnections_Get",
+ "description": "Gets the specified private endpoint connection associated with the workspace.",
+ "x-ms-examples": {
+ "WorkspaceGetPrivateEndpointConnection": {
+ "$ref": "./examples/workspaceGetPrivateEndpointConnection.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PrivateEndpointConnectionName"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Get the private endpoint connection properties successfully.",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "WorkspacePrivateEndpointConnections"
+ ],
+ "operationId": "PrivateEndpointConnections_Put",
+ "description": "Update the state of specified private endpoint connection associated with the workspace.",
+ "x-ms-examples": {
+ "WorkspacePutPrivateEndpointConnection": {
+ "$ref": "./examples/workspacePutPrivateEndpointConnection.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PrivateEndpointConnectionName"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "name": "properties",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ },
+ "description": "The private endpoint connection properties."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Update the private endpoint connection properties successfully.",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "WorkspacePrivateEndpointConnections"
+ ],
+ "operationId": "PrivateEndpointConnections_Delete",
+ "description": "Deletes the specified private endpoint connection associated with the workspace.",
+ "x-ms-examples": {
+ "WorkspaceDeletePrivateEndpointConnection": {
+ "$ref": "./examples/workspaceDeletePrivateEndpointConnection.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/PrivateEndpointConnectionName"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Delete the private endpoint connection successfully."
+ },
+ "204": {
+ "description": "No Content -- The private endpoint connection does not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources": {
+ "get": {
+ "tags": [
+ "WorkspacePrivateLinkResources"
+ ],
+ "operationId": "PrivateLinkResources_ListByWorkspace",
+ "description": "Gets the private link resources that need to be created for a workspace.",
+ "x-ms-examples": {
+ "WorkspaceListPrivateLinkResources": {
+ "$ref": "./examples/workspaceListPrivateLinkResources.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved private link resources.",
+ "schema": {
+ "$ref": "#/definitions/PrivateLinkResourceListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.MachineLearningServices/workspaces/{workspaceName}/linkedWorkspaces": {
+ "get": {
+ "tags": [
+ "LinkedWorkspaces"
+ ],
+ "x-ms-examples": {
+ "ListLinkedWorkspaces": {
+ "$ref": "./examples/listLinkedWorkspaces.json"
+ }
+ },
+ "operationId": "LinkedWorkspaces_List",
+ "description": "List all linked workspaces under a AML workspace.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved the linked workspaces.",
+ "schema": {
+ "type": "array",
+ "description": "array of linked workspaces.",
+ "items": {
+ "$ref": "#/definitions/LinkedWorkspace"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.MachineLearningServices/workspaces/{workspaceName}/linkedWorkspaces/{linkName}": {
+ "put": {
+ "tags": [
+ "LinkedWorkspaces"
+ ],
+ "operationId": "LinkedWorkspaces_Create",
+ "description": "Add a new linked workspace.",
+ "x-ms-examples": {
+ "CreateLinkedWorkspace": {
+ "$ref": "./examples/createLinkedWorkspace.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/LinkName"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The object for creating or updating a new linked workspace",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/LinkedWorkspaceDto"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully created the linked workspace.",
+ "schema": {
+ "$ref": "#/definitions/LinkedWorkspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "LinkedWorkspaces"
+ ],
+ "operationId": "LinkedWorkspaces_Get",
+ "description": "Get the detail of a linked workspace.",
+ "x-ms-examples": {
+ "GetLinkedWorkspace": {
+ "$ref": "./examples/getLinkedWorkspace.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/LinkName"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved the detail of the linked workspace.",
+ "schema": {
+ "$ref": "#/definitions/LinkedWorkspace"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "LinkedWorkspaces"
+ ],
+ "operationId": "LinkedWorkspaces_Delete",
+ "description": "Delete a linked workspace.",
+ "x-ms-examples": {
+ "DeleteLinkedWorkspace": {
+ "$ref": "./examples/deleteLinkedWorkspace.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/LinkName"
+ },
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully deleted the linked workspace."
+ },
+ "204": {
+ "description": "Specific linked workspace not found."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "description": "Azure subscription identifier.",
+ "in": "path",
+ "type": "string",
+ "required": true
+ },
+ "ResourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "description": "Name of the resource group in which workspace is located.",
+ "in": "path",
+ "type": "string",
+ "required": true,
+ "x-ms-parameter-location": "method"
+ },
+ "WorkspaceNameParameter": {
+ "name": "workspaceName",
+ "description": "Name of Azure Machine Learning workspace.",
+ "in": "path",
+ "type": "string",
+ "required": true,
+ "x-ms-parameter-location": "method"
+ },
+ "ComputeNameParameter": {
+ "name": "computeName",
+ "description": "Name of the Azure Machine Learning compute.",
+ "in": "path",
+ "type": "string",
+ "required": true,
+ "x-ms-parameter-location": "method"
+ },
+ "AsyncOperationIdParameter": {
+ "name": "asyncOperationId",
+ "description": "Identifier of an asynchronous Azure Machine Learning compute operation.",
+ "in": "path",
+ "type": "string",
+ "required": true,
+ "x-ms-parameter-location": "method"
+ },
+ "LocationParameter": {
+ "name": "location",
+ "description": "The name of the Azure location/region.",
+ "in": "path",
+ "type": "string",
+ "required": true,
+ "x-ms-parameter-location": "method"
+ },
+ "APIVersionParameter": {
+ "in": "query",
+ "name": "api-version",
+ "type": "string",
+ "description": "Version of Azure Machine Learning resource provider API.",
+ "required": true
+ },
+ "PaginationParameter": {
+ "in": "query",
+ "name": "$skiptoken",
+ "type": "string",
+ "description": "Continuation token for pagination.",
+ "required": false,
+ "x-ms-parameter-location": "method"
+ },
+ "ComputeDefinitionParameter": {
+ "in": "body",
+ "name": "parameters",
+ "description": "Payload with Machine Learning compute definition.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ComputeResource"
+ },
+ "x-ms-parameter-location": "method"
+ },
+ "ComputeTypeParameter": {
+ "in": "query",
+ "name": "compute-type",
+ "type": "string",
+ "description": "Type of compute to filter by.",
+ "required": false,
+ "x-ms-parameter-location": "method"
+ },
+ "UnderlyingResourceActionParameter": {
+ "in": "query",
+ "name": "underlyingResourceAction",
+ "type": "string",
+ "description": "Delete the underlying compute if 'Delete', or detach the underlying compute from workspace if 'Detach'.",
+ "required": true,
+ "enum": [
+ "Delete",
+ "Detach"
+ ],
+ "x-ms-enum": {
+ "name": "UnderlyingResourceAction",
+ "modelAsString": true
+ },
+ "x-ms-parameter-location": "method"
+ },
+ "PrivateEndpointConnectionName": {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the private endpoint connection associated with the workspace",
+ "x-ms-parameter-location": "method"
+ },
+ "LinkName": {
+ "name": "linkName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Friendly name of the linked workspace",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "definitions": {
+ "Operation": {
+ "description": "Azure Machine Learning workspace REST API operation",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}",
+ "type": "string"
+ },
+ "display": {
+ "description": "Display name of operation",
+ "properties": {
+ "provider": {
+ "description": "The resource provider name: Microsoft.MachineLearningExperimentation",
+ "type": "string"
+ },
+ "resource": {
+ "description": "The resource on which the operation is performed.",
+ "type": "string"
+ },
+ "operation": {
+ "description": "The operation that users can perform.",
+ "type": "string"
+ },
+ "description": {
+ "description": "The description for the operation.",
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "OperationListResult": {
+ "description": "An array of operations supported by the resource provider.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "description": "List of AML workspace operations supported by the AML workspace resource provider."
+ }
+ }
+ },
+ "Workspace": {
+ "type": "object",
+ "description": "An object that represents a machine learning workspace.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/WorkspaceProperties",
+ "description": "The properties of the machine learning workspace.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "WorkspaceProperties": {
+ "type": "object",
+ "description": "The properties of a machine learning workspace.",
+ "properties": {
+ "workspaceId": {
+ "description": "The immutable id associated with this workspace.",
+ "type": "string",
+ "readOnly": true
+ },
+ "description": {
+ "description": "The description of this workspace.",
+ "type": "string"
+ },
+ "friendlyName": {
+ "description": "The friendly name for this workspace. This name in mutable",
+ "type": "string"
+ },
+ "creationTime": {
+ "format": "date-time",
+ "description": "The creation time of the machine learning workspace in ISO8601 format.",
+ "type": "string",
+ "readOnly": true
+ },
+ "keyVault": {
+ "description": "ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created",
+ "type": "string"
+ },
+ "applicationInsights": {
+ "description": "ARM id of the application insights associated with this workspace. This cannot be changed once the workspace has been created",
+ "type": "string"
+ },
+ "containerRegistry": {
+ "description": "ARM id of the container registry associated with this workspace. This cannot be changed once the workspace has been created",
+ "type": "string"
+ },
+ "storageAccount": {
+ "description": "ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created",
+ "type": "string"
+ },
+ "discoveryUrl": {
+ "description": "Url for the discovery service to identify regional endpoints for machine learning experimentation services",
+ "type": "string"
+ },
+ "provisioningState": {
+ "type": "string",
+ "enum": [
+ "Unknown",
+ "Updating",
+ "Creating",
+ "Deleting",
+ "Succeeded",
+ "Failed",
+ "Canceled"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ },
+ "readOnly": true,
+ "description": "The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning."
+ },
+ "encryption": {
+ "$ref": "#/definitions/EncryptionProperty",
+ "description": "The encryption settings of Azure ML workspace."
+ },
+ "hbiWorkspace": {
+ "type": "boolean",
+ "description": "The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service",
+ "default": false
+ },
+ "serviceProvisionedResourceGroup": {
+ "type": "string",
+ "description": "The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace",
+ "readOnly": true
+ },
+ "privateLinkCount": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Count of private connections in the workspace",
+ "readOnly": true
+ },
+ "imageBuildCompute": {
+ "description": "The compute name for image build",
+ "type": "string"
+ },
+ "allowPublicAccessWhenBehindVnet": {
+ "type": "boolean",
+ "description": "The flag to indicate whether to allow public access when behind VNet.",
+ "default": false
+ },
+ "privateEndpointConnections": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ },
+ "description": "The list of private endpoint connections in the workspace."
+ },
+ "sharedPrivateLinkResources": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SharedPrivateLinkResource"
+ },
+ "description": "The list of shared private link resources in this workspace."
+ }
+ }
+ },
+ "WorkspaceUpdateParameters": {
+ "description": "The parameters for updating a machine learning workspace.",
+ "properties": {
+ "tags": {
+ "description": "The resource tags for the machine learning workspace.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "sku": {
+ "$ref": "#/definitions/Sku",
+ "description": "The sku of the workspace."
+ },
+ "properties": {
+ "$ref": "#/definitions/WorkspacePropertiesUpdateParameters",
+ "description": "The properties that the machine learning workspace will be updated with.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "WorkspacePropertiesUpdateParameters": {
+ "description": "The parameters for updating the properties of a machine learning workspace.",
+ "properties": {
+ "description": {
+ "description": "The description of this workspace.",
+ "type": "string"
+ },
+ "friendlyName": {
+ "description": "The friendly name for this workspace.",
+ "type": "string"
+ }
+ }
+ },
+ "AmlUserFeature": {
+ "description": "Features enabled for a workspace",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Specifies the feature ID",
+ "type": "string"
+ },
+ "displayName": {
+ "description": "Specifies the feature name ",
+ "type": "string"
+ },
+ "description": {
+ "description": "Describes the feature for user experience",
+ "type": "string"
+ }
+ }
+ },
+ "ListAmlUserFeatureResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AmlUserFeature"
+ },
+ "description": "The list of AML user facing features."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URI to fetch the next page of AML user features information. Call ListNext() with this to fetch the next page of AML user features information."
+ }
+ },
+ "description": "The List Aml user feature operation response."
+ },
+ "UsageName": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the resource."
+ },
+ "localizedValue": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The localized name of the resource."
+ }
+ },
+ "description": "The Usage Names."
+ },
+ "Usage": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Specifies the resource ID."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Specifies the resource type."
+ },
+ "unit": {
+ "readOnly": true,
+ "type": "string",
+ "description": "An enum describing the unit of usage measurement.",
+ "enum": [
+ "Count"
+ ],
+ "x-ms-enum": {
+ "name": "UsageUnit",
+ "modelAsString": true
+ }
+ },
+ "currentValue": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int64",
+ "description": "The current usage of the resource."
+ },
+ "limit": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int64",
+ "description": "The maximum permitted usage of the resource."
+ },
+ "name": {
+ "readOnly": true,
+ "$ref": "#/definitions/UsageName",
+ "description": "The name of the type of usage."
+ }
+ },
+ "description": "Describes AML Resource Usage."
+ },
+ "ListUsagesResult": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Usage"
+ },
+ "description": "The list of AML resource usages."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URI to fetch the next page of AML resource usage information. Call ListNext() with this to fetch the next page of AML resource usage information."
+ }
+ },
+ "description": "The List Usages operation response."
+ },
+ "VirtualMachineSize": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Virtual Machine size name",
+ "description": "The name of the virtual machine size.",
+ "readOnly": true
+ },
+ "family": {
+ "type": "string",
+ "title": "Virtual Machine family name",
+ "description": "The family name of the virtual machine size.",
+ "readOnly": true
+ },
+ "vCPUs": {
+ "type": "integer",
+ "format": "int32",
+ "title": "Number of vPUs",
+ "description": "The number of vCPUs supported by the virtual machine size.",
+ "readOnly": true
+ },
+ "gpus": {
+ "type": "integer",
+ "format": "int32",
+ "title": "Number of gPUs",
+ "description": "The number of gPUs supported by the virtual machine size.",
+ "readOnly": true
+ },
+ "osVhdSizeMB": {
+ "type": "integer",
+ "format": "int32",
+ "title": "OS VHD Disk size",
+ "description": "The OS VHD disk size, in MB, allowed by the virtual machine size.",
+ "readOnly": true
+ },
+ "maxResourceVolumeMB": {
+ "type": "integer",
+ "format": "int32",
+ "title": "Resource volume size",
+ "description": "The resource volume size, in MB, allowed by the virtual machine size.",
+ "readOnly": true
+ },
+ "memoryGB": {
+ "type": "number",
+ "format": "double",
+ "title": "Memory size",
+ "description": "The amount of memory, in GB, supported by the virtual machine size.",
+ "readOnly": true
+ },
+ "lowPriorityCapable": {
+ "type": "boolean",
+ "title": "Low priority capable",
+ "description": "Specifies if the virtual machine size supports low priority VMs.",
+ "readOnly": true
+ },
+ "premiumIO": {
+ "type": "boolean",
+ "title": "Premium IO supported",
+ "description": "Specifies if the virtual machine size supports premium IO.",
+ "readOnly": true
+ }
+ },
+ "description": "Describes the properties of a VM size."
+ },
+ "VirtualMachineSizeListResult": {
+ "properties": {
+ "amlCompute": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VirtualMachineSize"
+ },
+ "description": "The list of virtual machine sizes supported by AmlCompute."
+ }
+ },
+ "description": "The List Virtual Machine size operation response."
+ },
+ "WorkspaceListResult": {
+ "description": "The result of a request to list machine learning workspaces.",
+ "properties": {
+ "value": {
+ "description": "The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Workspace"
+ }
+ },
+ "nextLink": {
+ "description": "The URI that can be used to request the next list of machine learning workspaces.",
+ "type": "string"
+ }
+ }
+ },
+ "QuotaBaseProperties": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Specifies the resource ID."
+ },
+ "type": {
+ "type": "string",
+ "description": "Specifies the resource type."
+ },
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "title": "Limit.",
+ "description": "The maximum permitted quota of the resource."
+ },
+ "unit": {
+ "type": "string",
+ "description": "An enum describing the unit of quota measurement.",
+ "enum": [
+ "Count"
+ ],
+ "x-ms-enum": {
+ "name": "QuotaUnit",
+ "modelAsString": true
+ }
+ }
+ },
+ "description": "The properties for Quota update or retrieval."
+ },
+ "QuotaUpdateParameters": {
+ "properties": {
+ "value": {
+ "description": "The list for update quota.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/QuotaBaseProperties"
+ }
+ }
+ },
+ "description": "Quota update parameters."
+ },
+ "UpdateWorkspaceQuotasResult": {
+ "properties": {
+ "value": {
+ "description": "The list of workspace quota update result.",
+ "items": {
+ "$ref": "#/definitions/UpdateWorkspaceQuotas"
+ },
+ "readOnly": true,
+ "type": "array"
+ },
+ "nextLink": {
+ "description": "The URI to fetch the next page of workspace quota update result. Call ListNext() with this to fetch the next page of Workspace Quota update result.",
+ "readOnly": true,
+ "type": "string"
+ }
+ },
+ "description": "The result of update workspace quota."
+ },
+ "UpdateWorkspaceQuotas": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Specifies the resource ID."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Specifies the resource type."
+ },
+ "limit": {
+ "type": "integer",
+ "format": "int64",
+ "title": "Limit.",
+ "description": "The maximum permitted quota of the resource."
+ },
+ "unit": {
+ "readOnly": true,
+ "type": "string",
+ "description": "An enum describing the unit of quota measurement.",
+ "enum": [
+ "Count"
+ ],
+ "x-ms-enum": {
+ "name": "QuotaUnit",
+ "modelAsString": true
+ }
+ },
+ "status": {
+ "type": "string",
+ "readOnly": false,
+ "title": "Update Workspace Quota Status.",
+ "description": "Status of update workspace quota.",
+ "enum": [
+ "Undefined",
+ "Success",
+ "Failure",
+ "InvalidQuotaBelowClusterMinimum",
+ "InvalidQuotaExceedsSubscriptionLimit",
+ "InvalidVMFamilyName",
+ "OperationNotSupportedForSku",
+ "OperationNotEnabledForRegion"
+ ],
+ "x-ms-enum": {
+ "name": "status",
+ "modelAsString": true
+ }
+ }
+ },
+ "description": "The properties for update Quota response."
+ },
+ "ResourceName": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the resource."
+ },
+ "localizedValue": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The localized name of the resource."
+ }
+ },
+ "description": "The Resource Name."
+ },
+ "ResourceQuota": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Specifies the resource ID."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Specifies the resource type."
+ },
+ "name": {
+ "$ref": "#/definitions/ResourceName",
+ "description": "Name of the resource.",
+ "readOnly": true
+ },
+ "limit": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int64",
+ "title": "Limit.",
+ "description": "The maximum permitted quota of the resource."
+ },
+ "unit": {
+ "readOnly": true,
+ "type": "string",
+ "description": "An enum describing the unit of quota measurement.",
+ "enum": [
+ "Count"
+ ],
+ "x-ms-enum": {
+ "name": "QuotaUnit",
+ "modelAsString": true
+ }
+ }
+ },
+ "description": "The quota assigned to a resource."
+ },
+ "ListWorkspaceQuotas": {
+ "properties": {
+ "value": {
+ "description": "The list of Workspace Quotas by VM Family",
+ "items": {
+ "$ref": "#/definitions/ResourceQuota"
+ },
+ "readOnly": true,
+ "type": "array"
+ },
+ "nextLink": {
+ "description": "The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() with this to fetch the next page of Workspace Quota information.",
+ "readOnly": true,
+ "type": "string"
+ }
+ },
+ "description": "The List WorkspaceQuotasByVMFamily operation response."
+ },
+ "Identity": {
+ "properties": {
+ "principalId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The principal ID of resource identity."
+ },
+ "tenantId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The tenant ID of resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "The identity type.",
+ "enum": [
+ "SystemAssigned",
+ "SystemAssigned,UserAssigned",
+ "UserAssigned",
+ "None"
+ ],
+ "x-ms-enum": {
+ "name": "ResourceIdentityType",
+ "modelAsString": false
+ }
+ },
+ "userAssignedIdentities": {
+ "$ref": "#/definitions/UserAssignedIdentities",
+ "description": "The user assigned identities associated with the resource."
+ }
+ },
+ "description": "Identity for the resource."
+ },
+ "UserAssignedIdentities": {
+ "description": "dictionary containing all the user assigned identities, with resourceId of the UAI as key.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/UserAssignedIdentity"
+ }
+ },
+ "UserAssignedIdentity": {
+ "description": "User Assigned Identity",
+ "properties": {
+ "principalId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The principal ID of the user assigned identity."
+ },
+ "tenantId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The tenant ID of the user assigned identity."
+ },
+ "clientId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The clientId(aka appId) of the user assigned identity."
+ }
+ }
+ },
+ "Resource": {
+ "description": "Azure Resource Manager resource envelope.",
+ "x-ms-azure-resource": true,
+ "properties": {
+ "id": {
+ "description": "Specifies the resource ID.",
+ "type": "string",
+ "readOnly": true
+ },
+ "name": {
+ "description": "Specifies the name of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "identity": {
+ "$ref": "#/definitions/Identity",
+ "description": "The identity of the resource."
+ },
+ "location": {
+ "description": "Specifies the location of the resource.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Specifies the type of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "tags": {
+ "description": "Contains resource tags defined as key/value pairs.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "sku": {
+ "$ref": "#/definitions/Sku",
+ "description": "The sku of the workspace."
+ }
+ }
+ },
+ "ResourceId": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the resource"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "description": "Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet.",
+ "x-ms-azure-resource": true
+ },
+ "ListWorkspaceKeysResult": {
+ "type": "object",
+ "properties": {
+ "userStorageKey": {
+ "readOnly": true,
+ "type": "string"
+ },
+ "userStorageResourceId": {
+ "readOnly": true,
+ "type": "string"
+ },
+ "appInsightsInstrumentationKey": {
+ "readOnly": true,
+ "type": "string"
+ },
+ "containerRegistryCredentials": {
+ "readOnly": true,
+ "$ref": "#/definitions/RegistryListCredentialsResult"
+ }
+ }
+ },
+ "RegistryListCredentialsResult": {
+ "type": "object",
+ "properties": {
+ "location": {
+ "readOnly": true,
+ "type": "string"
+ },
+ "username": {
+ "readOnly": true,
+ "type": "string"
+ },
+ "passwords": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Password"
+ }
+ }
+ }
+ },
+ "Password": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "readOnly": true,
+ "type": "string"
+ },
+ "value": {
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "PaginatedComputeResourcesList": {
+ "type": "object",
+ "description": "Paginated list of Machine Learning compute objects wrapped in ARM resource envelope.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "An array of Machine Learning compute objects wrapped in ARM resource envelope.",
+ "items": {
+ "$ref": "#/definitions/ComputeResource"
+ }
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "A continuation link (absolute URI) to the next page of results in the list."
+ }
+ }
+ },
+ "ComputeResource": {
+ "type": "object",
+ "description": "Machine Learning compute object wrapped into ARM resource envelope.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "description": "Compute properties",
+ "$ref": "#/definitions/Compute"
+ }
+ }
+ }
+ ]
+ },
+ "Compute": {
+ "type": "object",
+ "description": "Machine Learning compute object.",
+ "discriminator": "computeType",
+ "properties": {
+ "computeType": {
+ "description": "The type of compute",
+ "$ref": "#/definitions/ComputeType"
+ },
+ "computeLocation": {
+ "description": "Location for the underlying compute",
+ "type": "string"
+ },
+ "provisioningState": {
+ "type": "string",
+ "description": "The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.",
+ "enum": [
+ "Unknown",
+ "Updating",
+ "Creating",
+ "Deleting",
+ "Succeeded",
+ "Failed",
+ "Canceled"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ },
+ "readOnly": true
+ },
+ "description": {
+ "type": "string",
+ "description": "The description of the Machine Learning compute."
+ },
+ "createdOn": {
+ "type": "string",
+ "description": "The date and time when the compute was created.",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "modifiedOn": {
+ "type": "string",
+ "description": "The date and time when the compute was last modified.",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "resourceId": {
+ "type": "string",
+ "description": "ARM resource id of the underlying compute"
+ },
+ "provisioningErrors": {
+ "type": "array",
+ "description": "Errors during provisioning",
+ "items": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ },
+ "readOnly": true
+ },
+ "isAttachedCompute": {
+ "type": "boolean",
+ "description": "Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false.",
+ "readOnly": true
+ }
+ },
+ "required": [
+ "computeType"
+ ]
+ },
+ "AKS": {
+ "description": "A Machine Learning compute based on AKS.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Compute"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "type": "object",
+ "description": "AKS properties",
+ "properties": {
+ "clusterFqdn": {
+ "description": "Cluster full qualified domain name",
+ "type": "string"
+ },
+ "systemServices": {
+ "type": "array",
+ "description": "System services",
+ "items": {
+ "$ref": "#/definitions/SystemService"
+ },
+ "readOnly": true
+ },
+ "agentCount": {
+ "description": "Number of agents",
+ "type": "integer",
+ "minimum": 1
+ },
+ "agentVMSize": {
+ "description": "Agent virtual machine size",
+ "type": "string"
+ },
+ "sslConfiguration": {
+ "description": "SSL configuration",
+ "$ref": "#/definitions/SslConfiguration"
+ },
+ "aksNetworkingConfiguration": {
+ "description": "AKS networking configuration for vnet",
+ "$ref": "#/definitions/AksNetworkingConfiguration"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "AKS"
+ },
+ "AmlCompute": {
+ "description": "An Azure Machine Learning compute.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Compute"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "type": "object",
+ "description": "AML Compute properties",
+ "properties": {
+ "vmSize": {
+ "description": "Virtual Machine Size",
+ "type": "string"
+ },
+ "vmPriority": {
+ "description": "Virtual Machine priority",
+ "type": "string",
+ "enum": [
+ "Dedicated",
+ "LowPriority"
+ ],
+ "x-ms-enum": {
+ "name": "VmPriority",
+ "modelAsString": true
+ }
+ },
+ "scaleSettings": {
+ "description": "Scale settings for AML Compute",
+ "$ref": "#/definitions/ScaleSettings"
+ },
+ "userAccountCredentials": {
+ "title": "User account credentials.",
+ "description": "Credentials for an administrator user account that will be created on each compute node.",
+ "$ref": "#/definitions/UserAccountCredentials"
+ },
+ "subnet": {
+ "title": "Subnet.",
+ "description": "Virtual network subnet resource ID the compute nodes belong to.",
+ "$ref": "#/definitions/ResourceId"
+ },
+ "remoteLoginPortPublicAccess": {
+ "type": "string",
+ "default": "NotSpecified",
+ "title": "Close remote Login Access Port",
+ "description": "State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be default only during cluster creation time, after creation it will be either enabled or disabled.",
+ "enum": [
+ "Enabled",
+ "Disabled",
+ "NotSpecified"
+ ],
+ "x-ms-enum": {
+ "name": "remoteLoginPortPublicAccess",
+ "modelAsString": true
+ }
+ },
+ "allocationState": {
+ "type": "string",
+ "readOnly": true,
+ "title": "Allocation state.",
+ "description": "Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing. There are no changes to the number of compute nodes in the compute in progress. A compute enters this state when it is created and when no operations are being performed on the compute to change the number of compute nodes. resizing - Indicates that the compute is resizing; that is, compute nodes are being added to or removed from the compute.",
+ "enum": [
+ "Steady",
+ "Resizing"
+ ],
+ "x-ms-enum": {
+ "name": "AllocationState",
+ "modelAsString": true
+ }
+ },
+ "allocationStateTransitionTime": {
+ "type": "string",
+ "readOnly": true,
+ "format": "date-time",
+ "title": "Allocation state transition time.",
+ "description": "The time at which the compute entered its current allocation state."
+ },
+ "errors": {
+ "readOnly": true,
+ "title": "Errors.",
+ "description": "Collection of errors encountered by various compute nodes during node setup.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ },
+ "currentNodeCount": {
+ "type": "integer",
+ "readOnly": true,
+ "format": "int32",
+ "title": "Current node count.",
+ "description": "The number of compute nodes currently assigned to the compute."
+ },
+ "targetNodeCount": {
+ "type": "integer",
+ "readOnly": true,
+ "format": "int32",
+ "title": "Target node count.",
+ "description": "The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation."
+ },
+ "nodeStateCounts": {
+ "title": "Node state counts.",
+ "description": "Counts of various node states on the compute.",
+ "readOnly": true,
+ "$ref": "#/definitions/NodeStateCounts"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "AmlCompute"
+ },
+ "VirtualMachine": {
+ "description": "A Machine Learning compute based on Azure Virtual Machines.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Compute"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "type": "object",
+ "properties": {
+ "virtualMachineSize": {
+ "description": "Virtual Machine size",
+ "type": "string"
+ },
+ "sshPort": {
+ "description": "Port open for ssh connections.",
+ "type": "integer"
+ },
+ "address": {
+ "description": "Public IP address of the virtual machine.",
+ "type": "string"
+ },
+ "administratorAccount": {
+ "description": "Admin credentials for virtual machine",
+ "$ref": "#/definitions/VirtualMachineSshCredentials"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "VirtualMachine"
+ },
+ "HDInsight": {
+ "description": "A HDInsight compute.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Compute"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "type": "object",
+ "properties": {
+ "sshPort": {
+ "description": "Port open for ssh connections on the master node of the cluster.",
+ "type": "integer"
+ },
+ "address": {
+ "description": "Public IP address of the master node of the cluster.",
+ "type": "string"
+ },
+ "administratorAccount": {
+ "description": "Admin credentials for master node of the cluster",
+ "$ref": "#/definitions/VirtualMachineSshCredentials"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "HDInsight"
+ },
+ "DataFactory": {
+ "description": "A DataFactory compute.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Compute"
+ }
+ ],
+ "x-ms-discriminator-value": "DataFactory"
+ },
+ "Databricks": {
+ "description": "A DataFactory compute.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Compute"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "type": "object",
+ "properties": {
+ "databricksAccessToken": {
+ "description": "Databricks access token",
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "Databricks"
+ },
+ "DataLakeAnalytics": {
+ "description": "A DataLakeAnalytics compute.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Compute"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "type": "object",
+ "properties": {
+ "dataLakeStoreAccountName": {
+ "description": "DataLake Store Account Name",
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "DataLakeAnalytics"
+ },
+ "ServicePrincipalCredentials": {
+ "type": "object",
+ "description": "Service principal credentials.",
+ "properties": {
+ "clientId": {
+ "description": "Client Id",
+ "type": "string"
+ },
+ "clientSecret": {
+ "description": "Client secret",
+ "type": "string"
+ }
+ },
+ "required": [
+ "clientId",
+ "clientSecret"
+ ]
+ },
+ "SystemService": {
+ "type": "object",
+ "description": "A system service running on a compute.",
+ "properties": {
+ "systemServiceType": {
+ "description": "The type of this system service.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "publicIpAddress": {
+ "type": "string",
+ "description": "Public IP address",
+ "readOnly": true
+ },
+ "version": {
+ "description": "The version for this type.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "SslConfiguration": {
+ "type": "object",
+ "description": "The ssl configuration for scoring",
+ "properties": {
+ "status": {
+ "description": "Enable or disable ssl for scoring",
+ "type": "string",
+ "enum": [
+ "Disabled",
+ "Enabled"
+ ]
+ },
+ "cert": {
+ "description": "Cert data",
+ "type": "string"
+ },
+ "key": {
+ "description": "Key data",
+ "type": "string"
+ },
+ "cname": {
+ "description": "CNAME of the cert",
+ "type": "string"
+ }
+ }
+ },
+ "AksNetworkingConfiguration": {
+ "type": "object",
+ "description": "Advance configuration for AKS networking",
+ "properties": {
+ "subnetId": {
+ "description": "Virtual network subnet resource ID the compute nodes belong to",
+ "type": "string"
+ },
+ "serviceCidr": {
+ "pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
+ "description": "A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.",
+ "type": "string"
+ },
+ "dnsServiceIP": {
+ "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
+ "description": "An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.",
+ "type": "string"
+ },
+ "dockerBridgeCidr": {
+ "pattern": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$",
+ "description": "A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range.",
+ "type": "string"
+ }
+ }
+ },
+ "UserAccountCredentials": {
+ "properties": {
+ "adminUserName": {
+ "type": "string",
+ "title": "User name.",
+ "description": "Name of the administrator user account which can be used to SSH to nodes."
+ },
+ "adminUserSshPublicKey": {
+ "type": "string",
+ "title": "SSH public key.",
+ "description": "SSH public key of the administrator user account."
+ },
+ "adminUserPassword": {
+ "type": "string",
+ "title": "Password.",
+ "description": "Password of the administrator user account."
+ }
+ },
+ "required": [
+ "adminUserName"
+ ],
+ "description": "Settings for user account that gets created on each on the nodes of a compute."
+ },
+ "ScaleSettings": {
+ "type": "object",
+ "description": "scale settings for AML Compute",
+ "properties": {
+ "maxNodeCount": {
+ "description": "Max number of nodes to use",
+ "type": "integer"
+ },
+ "minNodeCount": {
+ "description": "Min number of nodes to use",
+ "type": "integer",
+ "default": 0
+ },
+ "nodeIdleTimeBeforeScaleDown": {
+ "type": "string",
+ "format": "duration",
+ "description": "Node Idle Time before scaling down amlCompute"
+ }
+ },
+ "required": [
+ "maxNodeCount"
+ ]
+ },
+ "NodeStateCounts": {
+ "properties": {
+ "idleNodeCount": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "title": "Idle node count.",
+ "description": "Number of compute nodes in idle state."
+ },
+ "runningNodeCount": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "title": "Running node count.",
+ "description": "Number of compute nodes which are running jobs."
+ },
+ "preparingNodeCount": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "title": "Preparing node count.",
+ "description": "Number of compute nodes which are being prepared."
+ },
+ "unusableNodeCount": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "title": "Unusable node count.",
+ "description": "Number of compute nodes which are in unusable state."
+ },
+ "leavingNodeCount": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "title": "Leaving node count.",
+ "description": "Number of compute nodes which are leaving the amlCompute."
+ },
+ "preemptedNodeCount": {
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "title": "Preempted node count.",
+ "description": "Number of compute nodes which are in preempted state."
+ }
+ },
+ "description": "Counts of various compute node states on the amlCompute."
+ },
+ "ClusterUpdateProperties": {
+ "properties": {
+ "scaleSettings": {
+ "$ref": "#/definitions/ScaleSettings",
+ "title": "Scale settings.",
+ "description": "Desired scale settings for the amlCompute."
+ }
+ },
+ "description": "The properties of a amlCompute that need to be updated."
+ },
+ "ClusterUpdateParameters": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ClusterUpdateProperties",
+ "description": "The properties of the amlCompute."
+ }
+ },
+ "description": "AmlCompute update parameters."
+ },
+ "ComputeNodesInformation": {
+ "type": "object",
+ "description": "Compute nodes information related to a Machine Learning compute. Might differ for every type of compute.",
+ "discriminator": "computeType",
+ "properties": {
+ "computeType": {
+ "description": "The type of compute",
+ "$ref": "#/definitions/ComputeType"
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The continuation token."
+ }
+ },
+ "required": [
+ "computeType"
+ ]
+ },
+ "AmlComputeNodesInformation": {
+ "description": "Compute node information related to a AmlCompute.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ComputeNodesInformation"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "nodes": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AmlComputeNodeInformation"
+ },
+ "description": "The collection of returned AmlCompute nodes details."
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "AmlCompute"
+ },
+ "AmlComputeNodeInformation": {
+ "description": "Compute node information related to a AmlCompute.",
+ "properties": {
+ "nodeId": {
+ "readOnly": true,
+ "type": "string",
+ "title": "Node ID.",
+ "description": "ID of the compute node."
+ },
+ "privateIpAddress": {
+ "readOnly": true,
+ "type": "string",
+ "title": "Private IP address.",
+ "description": "Private IP address of the compute node."
+ },
+ "publicIpAddress": {
+ "readOnly": true,
+ "type": "string",
+ "title": "Public IP address.",
+ "description": "Public IP address of the compute node."
+ },
+ "port": {
+ "readOnly": true,
+ "type": "number",
+ "format": "int32",
+ "title": "Port.",
+ "description": "SSH port number of the node."
+ },
+ "nodeState": {
+ "readOnly": true,
+ "type": "string",
+ "enum": [
+ "idle",
+ "running",
+ "preparing",
+ "unusable",
+ "leaving",
+ "preempted"
+ ],
+ "description": "State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted.",
+ "x-ms-enum": {
+ "name": "nodeState",
+ "modelAsString": true
+ }
+ },
+ "runId": {
+ "readOnly": true,
+ "type": "string",
+ "title": "Run ID.",
+ "description": "ID of the Experiment running on the node, if any else null."
+ }
+ },
+ "x-ms-discriminator-value": "AmlCompute"
+ },
+ "VirtualMachineSshCredentials": {
+ "type": "object",
+ "description": "Admin credentials for virtual machine",
+ "properties": {
+ "username": {
+ "description": "Username of admin account",
+ "type": "string"
+ },
+ "password": {
+ "description": "Password of admin account",
+ "type": "string"
+ },
+ "publicKeyData": {
+ "description": "Public key data",
+ "type": "string"
+ },
+ "privateKeyData": {
+ "description": "Private key data",
+ "type": "string"
+ }
+ }
+ },
+ "ComputeSecrets": {
+ "type": "object",
+ "description": "Secrets related to a Machine Learning compute. Might differ for every type of compute.",
+ "discriminator": "computeType",
+ "properties": {
+ "computeType": {
+ "description": "The type of compute",
+ "$ref": "#/definitions/ComputeType"
+ }
+ },
+ "required": [
+ "computeType"
+ ]
+ },
+ "AksComputeSecrets": {
+ "description": "Secrets related to a Machine Learning compute based on AKS.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ComputeSecrets"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "userKubeConfig": {
+ "type": "string",
+ "description": "Content of kubeconfig file that can be used to connect to the Kubernetes cluster."
+ },
+ "adminKubeConfig": {
+ "type": "string",
+ "description": "Content of kubeconfig file that can be used to connect to the Kubernetes cluster."
+ },
+ "imagePullSecretName": {
+ "type": "string",
+ "description": "Image registry pull secret."
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "AKS"
+ },
+ "VirtualMachineSecrets": {
+ "description": "Secrets related to a Machine Learning compute based on AKS.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ComputeSecrets"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "administratorAccount": {
+ "description": "Admin credentials for virtual machine.",
+ "$ref": "#/definitions/VirtualMachineSshCredentials"
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "VirtualMachine"
+ },
+ "DatabricksComputeSecrets": {
+ "description": "Secrets related to a Machine Learning compute based on Databricks.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ComputeSecrets"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "databricksAccessToken": {
+ "description": "access token for databricks account.",
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "x-ms-discriminator-value": "Databricks"
+ },
+ "ComputeType": {
+ "type": "string",
+ "description": "The type of compute",
+ "enum": [
+ "AKS",
+ "AmlCompute",
+ "DataFactory",
+ "VirtualMachine",
+ "HDInsight",
+ "Databricks",
+ "DataLakeAnalytics"
+ ],
+ "x-ms-enum": {
+ "name": "ComputeType",
+ "modelAsString": true
+ }
+ },
+ "MachineLearningServiceError": {
+ "type": "object",
+ "description": "Wrapper for error response to follow ARM guidelines.",
+ "properties": {
+ "error": {
+ "description": "The error response.",
+ "$ref": "#/definitions/ErrorResponse",
+ "readOnly": true
+ }
+ }
+ },
+ "ErrorResponse": {
+ "type": "object",
+ "description": "Error response information.",
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "Error code.",
+ "readOnly": true
+ },
+ "message": {
+ "type": "string",
+ "description": "Error message.",
+ "readOnly": true
+ },
+ "details": {
+ "type": "array",
+ "description": "An array of error detail objects.",
+ "items": {
+ "$ref": "#/definitions/ErrorDetail"
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "ErrorDetail": {
+ "type": "object",
+ "description": "Error detail information.",
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "Error code."
+ },
+ "message": {
+ "type": "string",
+ "description": "Error message."
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ]
+ },
+ "SKUCapability": {
+ "description": "Features/user capabilities associated with the sku",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Capability/Feature ID",
+ "type": "string"
+ },
+ "value": {
+ "description": "Details about the feature/capability",
+ "type": "string"
+ }
+ }
+ },
+ "ResourceSkuLocationInfo": {
+ "properties": {
+ "location": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Location of the SKU"
+ },
+ "zones": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of availability zones where the SKU is supported."
+ },
+ "zoneDetails": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceSkuZoneDetails"
+ },
+ "description": "Details of capabilities available to a SKU in specific zones."
+ }
+ }
+ },
+ "ResourceSkuZoneDetails": {
+ "properties": {
+ "name": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "The set of zones that the SKU is available in with the specified capabilities."
+ },
+ "capabilities": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/SKUCapability"
+ },
+ "description": "A list of capabilities that are available for the SKU in the specified list of zones."
+ }
+ },
+ "description": "Describes The zonal capabilities of a SKU."
+ },
+ "WorkspaceSku": {
+ "description": "Describes Workspace Sku details and features",
+ "type": "object",
+ "properties": {
+ "locations": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.)."
+ },
+ "locationInfo": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/ResourceSkuLocationInfo"
+ },
+ "description": "A list of locations and availability zones in those locations where the SKU is available."
+ },
+ "tier": {
+ "description": "Sku Tier like Basic or Enterprise",
+ "type": "string",
+ "readOnly": true
+ },
+ "resourceType": {
+ "type": "string",
+ "readOnly": true
+ },
+ "name": {
+ "type": "string",
+ "readOnly": true
+ },
+ "capabilities": {
+ "description": "List of features/user capabilities associated with the sku",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SKUCapability"
+ },
+ "readOnly": true
+ },
+ "restrictions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Restriction"
+ },
+ "description": "The restrictions because of which SKU cannot be used. This is empty if there are no restrictions."
+ }
+ }
+ },
+ "Restriction": {
+ "properties": {
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of restrictions. As of now only possible value for this is location."
+ },
+ "values": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted."
+ },
+ "reasonCode": {
+ "type": "string",
+ "enum": [
+ "NotSpecified",
+ "NotAvailableForRegion",
+ "NotAvailableForSubscription"
+ ],
+ "x-ms-enum": {
+ "name": "ReasonCode",
+ "modelAsString": true
+ },
+ "description": "The reason for the restriction."
+ }
+ },
+ "description": "The restriction because of which SKU cannot be used."
+ },
+ "SkuListResult": {
+ "description": "List of skus with features",
+ "type": "object",
+ "properties": {
+ "value": {
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/WorkspaceSku"
+ }
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "The URI to fetch the next page of Workspace Skus. Call ListNext() with this URI to fetch the next page of Workspace Skus"
+ }
+ }
+ },
+ "Sku": {
+ "description": "Sku of the resource",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the sku",
+ "type": "string"
+ },
+ "tier": {
+ "description": "Tier of the sku like Basic or Enterprise",
+ "type": "string"
+ }
+ }
+ },
+ "PrivateEndpointConnection": {
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProperties",
+ "x-ms-client-flatten": true,
+ "description": "Resource properties."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "description": "The Private Endpoint Connection resource."
+ },
+ "PrivateEndpointConnectionProperties": {
+ "properties": {
+ "privateEndpoint": {
+ "$ref": "#/definitions/PrivateEndpoint",
+ "description": "The resource of private end point."
+ },
+ "privateLinkServiceConnectionState": {
+ "$ref": "#/definitions/PrivateLinkServiceConnectionState",
+ "description": "A collection of information about the state of the connection between service consumer and provider."
+ },
+ "provisioningState": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState",
+ "description": "The provisioning state of the private endpoint connection resource."
+ }
+ },
+ "required": [
+ "privateLinkServiceConnectionState"
+ ],
+ "description": "Properties of the PrivateEndpointConnectProperties."
+ },
+ "PrivateEndpoint": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ARM identifier for Private Endpoint"
+ }
+ },
+ "description": "The Private Endpoint resource."
+ },
+ "PrivateLinkServiceConnectionState": {
+ "properties": {
+ "status": {
+ "$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
+ "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
+ },
+ "description": {
+ "type": "string",
+ "description": "The reason for approval/rejection of the connection."
+ },
+ "actionsRequired": {
+ "type": "string",
+ "description": "A message indicating if changes on the service provider require any updates on the consumer."
+ }
+ },
+ "description": "A collection of information about the state of the connection between service consumer and provider."
+ },
+ "PrivateEndpointServiceConnectionStatus": {
+ "type": "string",
+ "description": "The private endpoint connection status.",
+ "enum": [
+ "Pending",
+ "Approved",
+ "Rejected",
+ "Disconnected",
+ "Timeout"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateEndpointServiceConnectionStatus",
+ "modelAsString": true
+ }
+ },
+ "PrivateEndpointConnectionProvisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The current provisioning state.",
+ "enum": [
+ "Succeeded",
+ "Creating",
+ "Deleting",
+ "Failed"
+ ],
+ "x-ms-enum": {
+ "name": "PrivateEndpointConnectionProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "PrivateLinkResourceListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Array of private link resources",
+ "items": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ }
+ }
+ },
+ "description": "A list of private link resources"
+ },
+ "PrivateLinkResource": {
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateLinkResourceProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "description": "A private link resource"
+ },
+ "PrivateLinkResourceProperties": {
+ "properties": {
+ "groupId": {
+ "description": "The private link resource group id.",
+ "type": "string",
+ "readOnly": true
+ },
+ "requiredMembers": {
+ "description": "The private link resource required member names.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true
+ },
+ "requiredZoneNames": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The private link resource Private link DNS zone name."
+ }
+ },
+ "description": "Properties of a private link resource."
+ },
+ "SharedPrivateLinkResource": {
+ "properties": {
+ "name": {
+ "description": "Unique name of the private link.",
+ "type": "string"
+ },
+ "properties": {
+ "$ref": "#/definitions/SharedPrivateLinkResourceProperty",
+ "x-ms-client-flatten": true,
+ "description": "Resource properties."
+ }
+ }
+ },
+ "SharedPrivateLinkResourceProperty": {
+ "properties": {
+ "privateLinkResourceId": {
+ "description": "The resource id that private link links to.",
+ "type": "string"
+ },
+ "groupId": {
+ "description": "The private link resource group id.",
+ "type": "string"
+ },
+ "requestMessage": {
+ "description": "Request message.",
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
+ "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
+ }
+ },
+ "description": "Properties of a shared private link resource."
+ },
+ "EncryptionProperty": {
+ "properties": {
+ "status": {
+ "description": "Indicates whether or not the encryption is enabled for the workspace.",
+ "enum": [
+ "Enabled",
+ "Disabled"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "EncryptionStatus",
+ "modelAsString": true
+ }
+ },
+ "keyVaultProperties": {
+ "$ref": "#/definitions/KeyVaultProperties",
+ "description": "Customer Key vault properties."
+ }
+ },
+ "required": [
+ "status",
+ "keyVaultProperties"
+ ],
+ "type": "object"
+ },
+ "KeyVaultProperties": {
+ "properties": {
+ "keyVaultArmId": {
+ "description": "The ArmId of the keyVault where the customer owned encryption key is present.",
+ "type": "string"
+ },
+ "keyIdentifier": {
+ "description": "Key vault uri to access the encryption key.",
+ "type": "string"
+ },
+ "identityClientId": {
+ "description": "For future use - The client id of the identity which will be used to access key vault.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "keyIdentifier",
+ "keyVaultArmId"
+ ],
+ "type": "object"
+ },
+ "LinkedWorkspace": {
+ "description": "Linked workspace.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "ResourceId of the link of the linked workspace."
+ },
+ "name": {
+ "type": "string",
+ "description": "Friendly name of the linked workspace."
+ },
+ "type": {
+ "type": "string",
+ "description": "Resource type of linked workspace."
+ },
+ "properties": {
+ "$ref": "#/definitions/LinkedWorkspaceProps"
+ }
+ }
+ },
+ "LinkedWorkspaceDto": {
+ "type": "object",
+ "description": "object used for creating linked workspace.",
+ "properties": {
+ "name": {
+ "description": "Friendly name of the linked workspace",
+ "type": "string"
+ },
+ "properties": {
+ "$ref": "#/definitions/LinkedWorkspaceProps"
+ }
+ }
+ },
+ "LinkedWorkspaceProps": {
+ "type": "object",
+ "description": "LinkedWorkspace specific properties.",
+ "properties": {
+ "linkedWorkspaceResourceId": {
+ "description": "ResourceId of the link target of the linked workspace.",
+ "type": "string"
+ },
+ "userAssignedIdentityResourceId": {
+ "description": "ResourceId of the user assigned identity for the linked workspace.",
+ "type": "string"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/createWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/createWorkspace.json
index 6f1de6f5b9f2..27dc8af675eb 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/createWorkspace.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/createWorkspace.json
@@ -88,7 +88,15 @@
"status": "Approved"
}
}
- ]
+ ],
+ "notebookInfo": {
+ "resourceId": "aabbccddee112233445566778899",
+ "fqdn": "testnotebook.notebooks.azure.com",
+ "notebookPreparationError": {
+ "statusCode": 500,
+ "errorMessage": "general error"
+ }
+ }
}
}
},
@@ -131,7 +139,15 @@
"status": "Approved"
}
}
- ]
+ ],
+ "notebookInfo": {
+ "resourceId": "aabbccddee112233445566778899",
+ "fqdn": "testnotebook.notebooks.azure.com",
+ "notebookPreparationError": {
+ "statusCode": 500,
+ "errorMessage": "general error"
+ }
+ }
}
}
},
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/getWorkspace.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/getWorkspace.json
index 045fd3332604..3a1b341bbc29 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/getWorkspace.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/getWorkspace.json
@@ -66,7 +66,15 @@
"status": "Approved"
}
}
- ]
+ ],
+ "notebookInfo": {
+ "resourceId": "aabbccddee112233445566778899",
+ "fqdn": "testnotebook.notebooks.azure.com",
+ "notebookPreparationError": {
+ "statusCode": 500,
+ "errorMessage": "general error"
+ }
+ }
}
}
}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/listWorkspaceKeys.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/listWorkspaceKeys.json
index 298a3d18e5ce..d9c8f8f08b61 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/listWorkspaceKeys.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/listWorkspaceKeys.json
@@ -24,6 +24,10 @@
"value": "0KARRQoQHSUq1yViPWg7YFernOS=Ic/t"
}
]
+ },
+ "notebookAccessKeys": {
+ "primaryAccessKey": "vBvVhYgAGtUSewVCUv3w95p4/q5Yrsnw",
+ "secondaryAccessKey": "0KARRQoQHSUq1yViPWg7YFernOS"
}
}
}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/updateAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/updateAKSCompute.json
index bdd7cdb26f09..a303aed3d81d 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/updateAKSCompute.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/updateAKSCompute.json
@@ -6,7 +6,6 @@
"computeName": "compute123",
"api-version": "2020-03-01",
"parameters": {
- "id": "compute123",
"location": "eastus",
"properties": {
"description": "some compute",
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/updateAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/updateAmlCompute.json
index 33fc388db6d9..dc33cf5fcc4a 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/updateAmlCompute.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/updateAmlCompute.json
@@ -10,14 +10,10 @@
"properties": {
"computeType": "AmlCompute",
"properties": {
- "description": "some compute",
- "computeType": "AmlCompute",
- "properties": {
- "scaleSettings": {
- "maxNodeCount": 4,
- "minNodeCount": 4,
- "nodeIdleTimeBeforeScaleDown": "PT5M"
- }
+ "scaleSettings": {
+ "maxNodeCount": 1,
+ "minNodeCount": 0,
+ "nodeIdleTimeBeforeScaleDown": "PT5M"
}
}
}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/workspacePrepareNotebook.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/workspacePrepareNotebook.json
new file mode 100644
index 000000000000..8193b014b8a8
--- /dev/null
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/examples/workspacePrepareNotebook.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
+ "resourceGroupName": "testrg123",
+ "workspaceName": "workspaces123",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "resourceId": "aabbccddee112233445566778899",
+ "fqdn": "testnotebook.notebooks.azure.com",
+ "notebookPreparationError": {
+ "statusCode": 500,
+ "errorMessage": "general error"
+ }
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/machineLearningServices.json
index b5dede913fa4..d4c9ffc24905 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/machineLearningServices.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-03-01/machineLearningServices.json
@@ -300,6 +300,54 @@
}
}
},
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook": {
+ "post": {
+ "tags": [
+ "ProxyOperations"
+ ],
+ "operationId": "Notebooks_Prepare",
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ },
+ "x-ms-examples": {
+ "Prepare Notebook": {
+ "$ref": "./examples/workspacePrepareNotebook.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/APIVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "$ref": "#/definitions/NotebookResourceInfo"
+ }
+ },
+ "202": {
+ "description": "The request was successful; the request was well-formed and received properly."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed",
+ "schema": {
+ "$ref": "#/definitions/MachineLearningServiceError"
+ }
+ }
+ }
+ }
+ },
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces": {
"get": {
"tags": [
@@ -1368,6 +1416,45 @@
}
}
},
+ "NotebookListCredentialsResult": {
+ "type": "object",
+ "properties": {
+ "primaryAccessKey": {
+ "type": "string"
+ },
+ "secondaryAccessKey": {
+ "type": "string"
+ }
+ }
+ },
+ "NotebookResourceInfo": {
+ "type": "object",
+ "properties": {
+ "fqdn": {
+ "type": "string"
+ },
+ "resourceId": {
+ "type": "string",
+ "description": "the data plane resourceId that used to initialize notebook component"
+ },
+ "notebookPreparationError": {
+ "$ref": "#/definitions/NotebookPreparationError",
+ "description": "The error that occurs when preparing notebook."
+ }
+ }
+ },
+ "NotebookPreparationError": {
+ "type": "object",
+ "properties": {
+ "errorMessage": {
+ "type": "string"
+ },
+ "statusCode": {
+ "format": "int32",
+ "type": "integer"
+ }
+ }
+ },
"OperationListResult": {
"description": "An array of operations supported by the resource provider.",
"properties": {
@@ -1500,6 +1587,11 @@
"$ref": "#/definitions/SharedPrivateLinkResource"
},
"description": "The list of shared private link resources in this workspace."
+ },
+ "notebookInfo": {
+ "readOnly": true,
+ "$ref": "#/definitions/NotebookResourceInfo",
+ "description": "The notebook info of Azure ML workspace."
}
}
},
@@ -2025,6 +2117,9 @@
"containerRegistryCredentials": {
"readOnly": true,
"$ref": "#/definitions/RegistryListCredentialsResult"
+ },
+ "notebookAccessKeys": {
+ "$ref": "#/definitions/NotebookListCredentialsResult"
}
}
},
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/createBasicAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/createBasicAmlCompute.json
index 8b852df15fce..eb2d99ff150d 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/createBasicAmlCompute.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/createBasicAmlCompute.json
@@ -21,7 +21,7 @@
}
},
"identity": {
- "type": "SystemAssigned, UserAssigned",
+ "type": "SystemAssigned,UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {}
}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/getAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/getAmlCompute.json
index 6560c277ae76..f147f3668488 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/getAmlCompute.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/getAmlCompute.json
@@ -46,7 +46,7 @@
"identity": {
"principalId": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000",
- "type": "SystemAssigned, UserAssigned",
+ "type": "SystemAssigned,UserAssigned",
"userAssignedIdentities": {
"/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {
"clientId": "00000000-0000-0000-0000-000000000000",
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/updateAmlCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/updateAmlCompute.json
index 382f1b97334e..1aae9348e524 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/updateAmlCompute.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/examples/updateAmlCompute.json
@@ -18,7 +18,7 @@
}
},
"identity": {
- "type": "SystemAssigned, UserAssigned",
+ "type": "SystemAssigned,UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {}
}
diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/machineLearningServices.json
index 3e1faf470e29..f51a3a500861 100644
--- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/machineLearningServices.json
+++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2020-04-01/machineLearningServices.json
@@ -1946,7 +1946,7 @@
"enum": [
"SystemAssigned",
"UserAssigned",
- "SystemAssigned, UserAssigned",
+ "SystemAssigned,UserAssigned",
"None"
],
"x-ms-enum": {
diff --git a/specification/machinelearningservices/resource-manager/readme.md b/specification/machinelearningservices/resource-manager/readme.md
index 63cc7203fe1f..04e81a82b676 100644
--- a/specification/machinelearningservices/resource-manager/readme.md
+++ b/specification/machinelearningservices/resource-manager/readme.md
@@ -92,6 +92,15 @@ input-file:
- Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
```
+### Tag: package-2020-04-01-preview
+
+These settings apply only when `--tag=package-2020-04-01-preview` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-04-01-preview'
+input-file:
+- Microsoft.MachineLearningServices/preview/2020-04-01-preview/machineLearningServices.json
+```
+
### Tag: package-2020-02-18-preview
These settings apply only when `--tag=package-2020-02-18-preview` is specified on the command line.
@@ -172,6 +181,7 @@ batch:
- tag: package-2019-06-01
- tag: package-2019-05-01
- tag: package-2018-11-19
+ - tag: package-2020-04-01-preview
- tag: package-2020-02-18-preview
- tag: package-2018-03-preview
```
@@ -266,6 +276,19 @@ regenerate-manager: true
generate-interface: true
```
+### Tag: package-2020-04-01-preview and java
+
+These settings apply only when `--tag=package-2020-04-01-preview --java` is specified on the command line.
+Please also specify `--azure-libraries-for-java=`.
+
+``` yaml $(tag) == 'package-2020-04-01-preview' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.machinelearningservices.v2020_04_01_preview
+ output-folder: $(azure-libraries-for-java-folder)/sdk/machinelearningservices/mgmt-v2020_04_01_preview
+regenerate-manager: true
+generate-interface: true
+```
+
### Tag: package-2018-03-preview and java
These settings apply only when `--tag=package-2018-03-preview --java` is specified on the command line.
@@ -298,6 +321,7 @@ input-file:
- $(this-folder)/Microsoft.MachineLearningServices/stable/2019-06-01/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2019-05-01/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
+ - $(this-folder)/Microsoft.MachineLearningServices/preview/2020-04-01-preview/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/preview/2020-02-18-preview/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/preview/2018-03-01-preview/machineLearningServices.json
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/DeleteRegistrationAssignment.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/DeleteRegistrationAssignment.json
new file mode 100644
index 000000000000..02d3c023e459
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/DeleteRegistrationAssignment.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "registrationAssignmentId": "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "api-version": "2020-02-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/DeleteRegistrationDefinition.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/DeleteRegistrationDefinition.json
new file mode 100644
index 000000000000..e7831c2f9b58
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/DeleteRegistrationDefinition.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "registrationDefinitionId": "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "api-version": "2020-02-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetMarketplaceRegistrationDefinition.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetMarketplaceRegistrationDefinition.json
new file mode 100644
index 000000000000..d85e52a4f545
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetMarketplaceRegistrationDefinition.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "marketplaceIdentifier": "publisher.product.planName.version",
+ "api-version": "2020-02-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "description": "Test",
+ "managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
+ "registrationDefinitionName": "DefinitionName",
+ "authorizations": [
+ {
+ "principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
+ "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
+ }
+ ],
+ "provisioningState": "Succeeded",
+ "managedByTenantName": "Test Tenant"
+ },
+ "plan": {
+ "name": "addesai-plan",
+ "product": "test",
+ "publisher": "marketplace-test",
+ "version": "1.0.0"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "type": "Microsoft.ManagedServices/registrationDefinitions",
+ "name": "26c128c2-fefa-4340-9bb1-6e081c90ada2"
+ }
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetMarketplaceRegistrationDefinitions.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetMarketplaceRegistrationDefinitions.json
new file mode 100644
index 000000000000..59623715d529
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetMarketplaceRegistrationDefinitions.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "$filter": "planIdentifier eq 'publisher.offerIdentifier.planName.version'",
+ "api-version": "2020-02-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "description": "Test",
+ "managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
+ "registrationDefinitionName": "DefinitionName",
+ "authorizations": [
+ {
+ "principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
+ "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
+ }
+ ],
+ "provisioningState": "Succeeded",
+ "managedByTenantName": "Test Tenant"
+ },
+ "plan": {
+ "name": "addesai-plan",
+ "product": "test",
+ "publisher": "marketplace-test",
+ "version": "1.0.0"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "type": "Microsoft.ManagedServices/registrationDefinitions",
+ "name": "26c128c2-fefa-4340-9bb1-6e081c90ada2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetOperations.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetOperations.json
new file mode 100644
index 000000000000..38e936efc87d
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetOperations.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2020-02-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.ManagedServices/registrationDefinitions/read",
+ "display": {
+ "provider": "Microsoft Managed Services",
+ "resource": "Managed Services Registration Definition",
+ "operation": "List Managed Services Registration Definitions",
+ "description": "Retrieves a list of Managed Services registration definitions."
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationAssignment.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationAssignment.json
new file mode 100644
index 000000000000..415424960bf8
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationAssignment.json
@@ -0,0 +1,58 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "registrationAssignmentId": "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "api-version": "2020-02-01-preview"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "properties": {
+ "registrationDefinitionId": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-8e081c90ada2",
+ "provisioningState": "Succeeded",
+ "registrationDefinition": {
+ "properties": {
+ "description": "Test",
+ "managedByTenantId": "83abe5cd-bcc3-441a-bd86-e6a75360cecc",
+ "registrationDefinitionName": "DefinitionName",
+ "authorizations": [
+ {
+ "principalId": "f98d86a2-4cc4-4e9d-ad47-b3e80a1bcdfc",
+ "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
+ }
+ ],
+ "eligibleAuthorizations": [
+ {
+ "justInTimeAccessPolicy": {
+ "multiFactorAuthProvider": "Azure",
+ "maximumActivationDuration": "PT8H"
+ },
+ "principalId": "3e0ed8c6-e902-4fc5-863c-e3ddbb2ae2a2",
+ "principalIdDisplayName": "Support User",
+ "roleDefinitionId": "ae349356-3a1b-4a5e-921d-050484c6347e"
+ }
+ ],
+ "provisioningState": "Succeeded",
+ "manageeTenantId": "01c0bcd5-4f47-4e4b-b492-418b7e2a8854",
+ "manageeTenantName": "test_test_aad_SbtFhyGiLHPFm",
+ "managedByTenantName": "Contoso Corp."
+ },
+ "plan": {
+ "name": "addesai-plan",
+ "product": "test",
+ "publisher": "marketplace-test",
+ "version": "1.0.0"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-8e081c90ada2",
+ "type": "Microsoft.ManagedServices/registrationDefinitions",
+ "name": "26c128c2-fefa-4340-9bb1-8e081c90ada2"
+ }
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationAssignments/484a7d5f-9729-4b87-bc9b-26610985a013",
+ "type": "Microsoft.ManagedServices/registrationAssignments",
+ "name": "484a7d5f-9729-4b87-bc9b-26610985a013"
+ }
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationAssignments.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationAssignments.json
new file mode 100644
index 000000000000..83d264d3de1c
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationAssignments.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "api-version": "2020-02-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "registrationDefinitionId": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-8e081c90ada2",
+ "provisioningState": "Succeeded",
+ "registrationDefinition": {
+ "properties": {
+ "description": "Test",
+ "registrationDefinitionName": "DefinitionName",
+ "authorizations": [
+ {
+ "principalId": "f98d86a2-4cc4-4e9d-ad47-b3e80a1bcdfc",
+ "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
+ }
+ ],
+ "eligibleAuthorizations": [
+ {
+ "principalId": "700bddf4-2c3b-4cd1-bb02-6a2c622524f4",
+ "roleDefinitionId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635",
+ "justInTimeAccessPolicy": {
+ "multiFactorAuthProvider": "Azure",
+ "maximumActivationDuration": "PT8H"
+ }
+ }
+ ],
+ "provisioningState": "Succeeded",
+ "manageeTenantId": "01c0bcd5-4f47-4e4b-b492-418b7e2a8854",
+ "manageeTenantName": "test_test_aad_SbtFhyGiLHPFm",
+ "managedByTenantId": "83abe5cd-bcc3-441a-bd86-e6a75360cecc",
+ "managedByTenantName": "Contoso Corp."
+ },
+ "plan": {
+ "name": "addesai-plan",
+ "product": "test",
+ "publisher": "marketplace-test",
+ "version": "1.0.0"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-8e081c90ada2",
+ "type": "Microsoft.ManagedServices/registrationDefinitions",
+ "name": "26c128c2-fefa-4340-9bb1-8e081c90ada2"
+ }
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationAssignments/484a7d5f-9729-4b87-bc9b-26610985a013",
+ "type": "Microsoft.ManagedServices/registrationAssignments",
+ "name": "484a7d5f-9729-4b87-bc9b-26610985a013"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationDefinition.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationDefinition.json
new file mode 100644
index 000000000000..d44d61718a6d
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationDefinition.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "registrationDefinitionId": "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "api-version": "2020-02-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "description": "Test",
+ "registrationDefinitionName": "DefinitionName",
+ "managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
+ "authorizations": [
+ {
+ "principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
+ "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
+ }
+ ],
+ "eligibleAuthorizations": [
+ {
+ "justInTimeAccessPolicy": {
+ "multiFactorAuthProvider": "Azure",
+ "maximumActivationDuration": "PT8H"
+ },
+ "principalId": "3e0ed8c6-e902-4fc5-863c-e3ddbb2ae2a2",
+ "principalIdDisplayName": "Support User",
+ "roleDefinitionId": "ae349356-3a1b-4a5e-921d-050484c6347e"
+ }
+ ],
+ "provisioningState": "Succeeded",
+ "managedByTenantName": "Test Tenant"
+ },
+ "plan": {
+ "name": "addesai-plan",
+ "product": "test",
+ "publisher": "marketplace-test",
+ "version": "1.0.0"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "type": "Microsoft.ManagedServices/registrationDefinitions",
+ "name": "26c128c2-fefa-4340-9bb1-6e081c90ada2"
+ }
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationDefinitions.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationDefinitions.json
new file mode 100644
index 000000000000..d8b63c6d0417
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/GetRegistrationDefinitions.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "api-version": "2020-02-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "description": "Test",
+ "managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
+ "registrationDefinitionName": "DefinitionName",
+ "authorizations": [
+ {
+ "principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
+ "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
+ }
+ ],
+ "eligibleAuthorizations": [
+ {
+ "justInTimeAccessPolicy": {
+ "multiFactorAuthProvider": "Azure",
+ "maximumActivationDuration": "PT8H"
+ },
+ "principalId": "3e0ed8c6-e902-4fc5-863c-e3ddbb2ae2a2",
+ "principalIdDisplayName": "Support User",
+ "roleDefinitionId": "ae349356-3a1b-4a5e-921d-050484c6347e"
+ }
+ ],
+ "provisioningState": "Succeeded",
+ "managedByTenantName": "Test Tenant"
+ },
+ "plan": {
+ "name": "addesai-plan",
+ "product": "test",
+ "publisher": "marketplace-test",
+ "version": "1.0.0"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "type": "Microsoft.ManagedServices/registrationDefinitions",
+ "name": "26c128c2-fefa-4340-9bb1-6e081c90ada2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/PutRegistrationAssignment.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/PutRegistrationAssignment.json
new file mode 100644
index 000000000000..3f47187f397a
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/PutRegistrationAssignment.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "registrationAssignmentId": "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "api-version": "2020-02-01-preview",
+ "requestBody": {
+ "properties": {
+ "registrationDefinitionId": "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "registrationDefinitionId": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-8e081c90ada2",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationAssignments/484a7d5f-9729-4b87-bc9b-26610985a013",
+ "type": "Microsoft.ManagedServices/registrationAssignments",
+ "name": "484a7d5f-9729-4b87-bc9b-26610985a013"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "registrationDefinitionId": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-8e081c90ada2",
+ "provisioningState": "Succeeded"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationAssignments/484a7d5f-9729-4b87-bc9b-26610985a013",
+ "type": "Microsoft.ManagedServices/registrationAssignments",
+ "name": "484a7d5f-9729-4b87-bc9b-26610985a013"
+ }
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/PutRegistrationDefinition.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/PutRegistrationDefinition.json
new file mode 100644
index 000000000000..3f38948f3565
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/examples/PutRegistrationDefinition.json
@@ -0,0 +1,113 @@
+{
+ "parameters": {
+ "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
+ "registrationDefinitionId": "26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "api-version": "2020-02-01-preview",
+ "requestBody": {
+ "properties": {
+ "registrationDefinitionName": "DefinitionName",
+ "description": "Tes1t",
+ "managedByTenantId": "83abe5cd-bcc3-441a-bd86-e6a75360cecc",
+ "authorizations": [
+ {
+ "principalId": "f98d86a2-4cc4-4e9d-ad47-b3e80a1bcdfc",
+ "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
+ }
+ ],
+ "eligibleAuthorizations": [
+ {
+ "principalId": "3e0ed8c6-e902-4fc5-863c-e3ddbb2ae2a2",
+ "principalIdDisplayName": "Support User",
+ "roleDefinitionId": "ae349356-3a1b-4a5e-921d-050484c6347e",
+ "justInTimeAccessPolicy": {
+ "multiFactorAuthProvider": "Azure",
+ "maximumActivationDuration": "PT8H"
+ }
+ }
+ ]
+ },
+ "plan": {
+ "name": "addesai-plan",
+ "product": "test",
+ "publisher": "marketplace-test",
+ "version": "1.0.0"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "description": "Test",
+ "managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
+ "registrationDefinitionName": "DefinitionName",
+ "authorizations": [
+ {
+ "principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
+ "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
+ }
+ ],
+ "eligibleAuthorizations": [
+ {
+ "justInTimeAccessPolicy": {
+ "multiFactorAuthProvider": "Azure",
+ "maximumActivationDuration": "PT8H"
+ },
+ "principalId": "3e0ed8c6-e902-4fc5-863c-e3ddbb2ae2a2",
+ "principalIdDisplayName": "Support User",
+ "roleDefinitionId": "ae349356-3a1b-4a5e-921d-050484c6347e"
+ }
+ ],
+ "provisioningState": "Succeeded",
+ "managedByTenantName": "Test Tenant"
+ },
+ "plan": {
+ "name": "addesai-plan",
+ "product": "test",
+ "publisher": "marketplace-test",
+ "version": "1.0.0"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "type": "Microsoft.ManagedServices/registrationDefinitions",
+ "name": "26c128c2-fefa-4340-9bb1-6e081c90ada2"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "description": "Test",
+ "managedByTenantId": "83ace5cd-bcc3-441a-hd86-e6a75360cecc",
+ "registrationDefinitionName": "DefinitionName",
+ "authorizations": [
+ {
+ "principalId": "f98g86a2-4cc4-4e6d-ad47-b3e80a1bcdfc",
+ "roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
+ }
+ ],
+ "eligibleAuthorizations": [
+ {
+ "justInTimeAccessPolicy": {
+ "multiFactorAuthProvider": "Azure",
+ "maximumActivationDuration": "PT8H"
+ },
+ "principalId": "3e0ed8c6-e902-4fc5-863c-e3ddbb2ae2a2",
+ "principalIdDisplayName": "Support User",
+ "roleDefinitionId": "ae349356-3a1b-4a5e-921d-050484c6347e"
+ }
+ ],
+ "provisioningState": "Succeeded",
+ "managedByTenantName": "Test Tenant"
+ },
+ "plan": {
+ "name": "addesai-plan",
+ "product": "test",
+ "publisher": "marketplace-test",
+ "version": "1.0.0"
+ },
+ "id": "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2",
+ "type": "Microsoft.ManagedServices/registrationDefinitions",
+ "name": "26c128c2-fefa-4340-9bb1-6e081c90ada2"
+ }
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/managedservices.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/managedservices.json
new file mode 100644
index 000000000000..b3a19710450b
--- /dev/null
+++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/preview/2020-02-01-preview/managedservices.json
@@ -0,0 +1,1038 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "ManagedServicesClient",
+ "version": "2020-02-01-preview",
+ "description": "Specification for ManagedServices."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/{scope}/providers/Microsoft.ManagedServices/registrationDefinitions/{registrationDefinitionId}": {
+ "get": {
+ "tags": [
+ "RegistrationDefinitions"
+ ],
+ "operationId": "RegistrationDefinitions_Get",
+ "description": "Gets the registration definition details.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/RegistrationDefinitionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the complete registration definition with plan details.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationDefinition"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Registration Definition": {
+ "$ref": "./examples/GetRegistrationDefinition.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "RegistrationDefinitions"
+ ],
+ "operationId": "RegistrationDefinitions_Delete",
+ "description": "Deletes the registration definition.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/RegistrationDefinitionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - The registration definition is deleted."
+ },
+ "204": {
+ "description": "No Content- The registration definition does not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Registration Definition": {
+ "$ref": "./examples/DeleteRegistrationDefinition.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "RegistrationDefinitions"
+ ],
+ "operationId": "RegistrationDefinitions_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "description": "Creates or updates a registration definition.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/RegistrationDefinitionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "name": "requestBody",
+ "in": "body",
+ "required": true,
+ "description": "The parameters required to create new registration definition.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationDefinition"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Ok - Returns information about the updated registration definition.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationDefinition"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the created registration definition.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationDefinition"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Put Registration Definition": {
+ "$ref": "./examples/PutRegistrationDefinition.json"
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.ManagedServices/registrationAssignments/{registrationAssignmentId}": {
+ "get": {
+ "tags": [
+ "RegistrationAssignments"
+ ],
+ "operationId": "RegistrationAssignments_Get",
+ "description": "Gets the details of specified registration assignment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/RegistrationAssignmentIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ExpandRegistrationDefinition"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the registration assignment.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Registration Assignment": {
+ "$ref": "./examples/GetRegistrationAssignment.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "RegistrationAssignments"
+ ],
+ "operationId": "RegistrationAssignments_Delete",
+ "x-ms-long-running-operation": true,
+ "description": "Deletes the specified registration assignment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/RegistrationAssignmentIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - The registration assignment is deleted."
+ },
+ "202": {
+ "description": "Accepted - The registration assignment deletion operation is accepted."
+ },
+ "204": {
+ "description": "No Content- The registration assignment does not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Registration Assignment": {
+ "$ref": "./examples/DeleteRegistrationAssignment.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "RegistrationAssignments"
+ ],
+ "operationId": "RegistrationAssignments_CreateOrUpdate",
+ "x-ms-long-running-operation": true,
+ "description": "Creates or updates a registration assignment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/RegistrationAssignmentIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "requestBody",
+ "in": "body",
+ "required": true,
+ "description": "The parameters required to create new registration assignment.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationAssignment"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Ok - Returns information about the updated registration assignment.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationAssignment"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the created registration assignment.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationAssignment"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Put Registration Assignment": {
+ "$ref": "./examples/PutRegistrationAssignment.json"
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.ManagedServices/registrationDefinitions": {
+ "get": {
+ "tags": [
+ "RegistrationDefinitions"
+ ],
+ "operationId": "RegistrationDefinitions_List",
+ "description": "Gets a list of the registration definitions.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns a list of the registration definitions.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationDefinitionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Get Registration Definitions": {
+ "$ref": "./examples/GetRegistrationDefinitions.json"
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.ManagedServices/registrationAssignments": {
+ "get": {
+ "tags": [
+ "RegistrationAssignments"
+ ],
+ "operationId": "RegistrationAssignments_List",
+ "description": "Gets a list of the registration assignments.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/ExpandRegistrationDefinition"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns a list of the registration assignments.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationAssignmentList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Get Registration Assignments": {
+ "$ref": "./examples/GetRegistrationAssignments.json"
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions": {
+ "get": {
+ "tags": [
+ "MarketplaceRegistrationDefinitions"
+ ],
+ "operationId": "MarketplaceRegistrationDefinitions_List",
+ "description": "Gets a list of the marketplace registration definitions for the marketplace identifier.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/Filter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns a list of the marketplace registration definitions.",
+ "schema": {
+ "$ref": "#/definitions/MarketplaceRegistrationDefinitionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Get Registration Definitions": {
+ "$ref": "./examples/GetMarketplaceRegistrationDefinitions.json"
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/{marketplaceIdentifier}": {
+ "get": {
+ "tags": [
+ "MarketplaceRegistrationDefinitions"
+ ],
+ "operationId": "MarketplaceRegistrationDefinitions_Get",
+ "description": "Get the marketplace registration definition for the marketplace identifier.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/MarketplaceIdentifier"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the details of the marketplace registration definition.",
+ "schema": {
+ "$ref": "#/definitions/RegistrationDefinition"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Registration Definitions": {
+ "$ref": "./examples/GetMarketplaceRegistrationDefinition.json"
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.ManagedServices/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "operationId": "Operations_List",
+ "description": "Gets a list of the operations.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns a list of operations.",
+ "schema": {
+ "$ref": "#/definitions/OperationList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Registration Operations": {
+ "$ref": "./examples/GetOperations.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "RegistrationDefinition": {
+ "properties": {
+ "properties": {
+ "description": "Properties of a registration definition.",
+ "$ref": "#/definitions/RegistrationDefinitionProperties"
+ },
+ "plan": {
+ "description": "Plan details for the managed services.",
+ "$ref": "#/definitions/Plan"
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Fully qualified path of the registration definition."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Type of the resource."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the registration definition."
+ }
+ },
+ "x-ms-azure-resource": true,
+ "type": "object",
+ "description": "Registration definition."
+ },
+ "RegistrationDefinitionProperties": {
+ "properties": {
+ "description": {
+ "type": "string",
+ "description": "Description of the registration definition."
+ },
+ "authorizations": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Authorization"
+ },
+ "description": "Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role."
+ },
+ "eligibleAuthorizations": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EligibleAuthorization"
+ },
+ "description": "Eligible PIM authorization tuple containing principal id of the user/security group or service principal, id of the built-in role, and just-in-time access policy setting"
+ },
+ "registrationDefinitionName": {
+ "type": "string",
+ "description": "Name of the registration definition."
+ },
+ "managedByTenantId": {
+ "type": "string",
+ "description": "Id of the managedBy tenant."
+ },
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Current state of the registration definition.",
+ "enum": [
+ "NotSpecified",
+ "Accepted",
+ "Running",
+ "Ready",
+ "Creating",
+ "Created",
+ "Deleting",
+ "Deleted",
+ "Canceled",
+ "Failed",
+ "Succeeded",
+ "Updating"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "managedByTenantName": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the managedBy tenant."
+ }
+ },
+ "required": [
+ "managedByTenantId",
+ "authorizations"
+ ],
+ "type": "object",
+ "description": "Properties of a registration definition."
+ },
+ "RegistrationDefinitionList": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/RegistrationDefinition"
+ },
+ "description": "List of registration definitions."
+ },
+ "nextLink": {
+ "description": "Link to next page of registration definitions.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "description": "List of registration definitions."
+ },
+ "RegistrationAssignment": {
+ "properties": {
+ "properties": {
+ "description": "Properties of a registration assignment.",
+ "$ref": "#/definitions/RegistrationAssignmentProperties"
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The fully qualified path of the registration assignment."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Type of the resource."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the registration assignment."
+ }
+ },
+ "x-ms-azure-resource": true,
+ "type": "object",
+ "description": "Registration assignment."
+ },
+ "RegistrationAssignmentProperties": {
+ "properties": {
+ "registrationDefinitionId": {
+ "type": "string",
+ "description": "Fully qualified path of the registration definition."
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Current state of the registration assignment.",
+ "enum": [
+ "NotSpecified",
+ "Accepted",
+ "Running",
+ "Ready",
+ "Creating",
+ "Created",
+ "Deleting",
+ "Deleted",
+ "Canceled",
+ "Failed",
+ "Succeeded",
+ "Updating"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "registrationDefinition": {
+ "readOnly": true,
+ "properties": {
+ "properties": {
+ "properties": {
+ "description": {
+ "type": "string",
+ "description": "Description of the registration definition."
+ },
+ "authorizations": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Authorization"
+ },
+ "description": "Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role."
+ },
+ "eligibleAuthorizations": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EligibleAuthorization"
+ },
+ "description": "Eligible PIM authorization tuple containing principal id of the user/security group or service principal, id of the built-in role, and just-in-time access policy setting"
+ },
+ "registrationDefinitionName": {
+ "type": "string",
+ "description": "Name of the registration definition."
+ },
+ "provisioningState": {
+ "type": "string",
+ "description": "Current state of the registration definition.",
+ "enum": [
+ "NotSpecified",
+ "Accepted",
+ "Running",
+ "Ready",
+ "Creating",
+ "Created",
+ "Deleting",
+ "Deleted",
+ "Canceled",
+ "Failed",
+ "Succeeded",
+ "Updating"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "manageeTenantId": {
+ "type": "string",
+ "description": "Id of the home tenant."
+ },
+ "manageeTenantName": {
+ "type": "string",
+ "description": "Name of the home tenant."
+ },
+ "managedByTenantId": {
+ "type": "string",
+ "description": "Id of the managedBy tenant."
+ },
+ "managedByTenantName": {
+ "type": "string",
+ "description": "Name of the managedBy tenant."
+ }
+ },
+ "description": "Properties of registration definition inside registration assignment."
+ },
+ "plan": {
+ "description": "Plan details for the managed services.",
+ "$ref": "#/definitions/Plan"
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Fully qualified path of the registration definition."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Type of the resource (Microsoft.ManagedServices/registrationDefinitions)."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the registration definition."
+ }
+ },
+ "type": "object",
+ "description": "Registration definition inside registration assignment."
+ }
+ },
+ "required": [
+ "registrationDefinitionId"
+ ],
+ "type": "object",
+ "description": "Properties of a registration assignment."
+ },
+ "RegistrationAssignmentList": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RegistrationAssignment"
+ },
+ "description": "List of registration assignments."
+ },
+ "nextLink": {
+ "description": "Link to next page of registration assignments.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "description": "List of registration assignments."
+ },
+ "MarketplaceRegistrationDefinitionList": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/RegistrationDefinition"
+ },
+ "description": "List of marketplace registration definitions."
+ },
+ "nextLink": {
+ "description": "Link to next page of marketplace registration definitions.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "description": "List of marketplace registration definitions."
+ },
+ "Plan": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The plan name."
+ },
+ "publisher": {
+ "type": "string",
+ "description": "The publisher ID."
+ },
+ "product": {
+ "type": "string",
+ "description": "The product code."
+ },
+ "version": {
+ "type": "string",
+ "description": "The plan's version."
+ }
+ },
+ "required": [
+ "name",
+ "publisher",
+ "product",
+ "version"
+ ],
+ "type": "object",
+ "description": "Plan details for the managed services."
+ },
+ "Operation": {
+ "properties": {
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Operation name: {provider}/{resource}/{operation}"
+ },
+ "display": {
+ "readOnly": true,
+ "description": "The object that represents the operation.",
+ "properties": {
+ "provider": {
+ "type": "string",
+ "description": "Service provider: Microsoft.ManagedServices"
+ },
+ "resource": {
+ "type": "string",
+ "description": "Resource on which the operation is performed: Registration definition, registration assignment etc."
+ },
+ "operation": {
+ "type": "string",
+ "description": "Operation type: Read, write, delete, etc."
+ },
+ "description": {
+ "type": "string",
+ "description": "Description of the operation."
+ }
+ }
+ }
+ },
+ "type": "object",
+ "description": "Object that describes a single Microsoft.ManagedServices operation."
+ },
+ "OperationList": {
+ "properties": {
+ "value": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "description": "List of Microsoft.ManagedServices operations."
+ }
+ },
+ "type": "object",
+ "description": "List of the operations."
+ },
+ "Authorization": {
+ "properties": {
+ "principalId": {
+ "type": "string",
+ "description": "Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription"
+ },
+ "principalIdDisplayName": {
+ "type": "string",
+ "description": "Display name of the principal Id."
+ },
+ "roleDefinitionId": {
+ "type": "string",
+ "description": "The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role."
+ },
+ "delegatedRoleDefinitionIds": {
+ "type": "array",
+ "description": "The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users.",
+ "items": {
+ "format": "uuid",
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "principalId",
+ "roleDefinitionId"
+ ],
+ "type": "object",
+ "description": "Authorization tuple containing principal Id (of user/service principal/security group) and role definition id."
+ },
+ "EligibleAuthorization": {
+ "properties": {
+ "principalId": {
+ "type": "string",
+ "description": "Principal Id of the security group/service principal/user that would be delegated permissions to the projected subscription"
+ },
+ "principalIdDisplayName": {
+ "type": "string",
+ "description": "Display name of the principal Id."
+ },
+ "roleDefinitionId": {
+ "type": "string",
+ "description": "The role definition identifier. This role will delegate all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role."
+ },
+ "justInTimeAccessPolicy": {
+ "description": "Just-in-time access policy setting.",
+ "$ref": "#/definitions/JustInTimeAccessPolicy"
+ }
+ },
+ "required": [
+ "principalId",
+ "roleDefinitionId"
+ ],
+ "type": "object",
+ "description": "Eligible authorization tuple containing principle Id (of user/service principal/security group), role definition id, and the just-in-time access setting."
+ },
+ "JustInTimeAccessPolicy": {
+ "properties": {
+ "multiFactorAuthProvider": {
+ "type": "string",
+ "description": "MFA provider.",
+ "enum": [
+ "Azure",
+ "None"
+ ],
+ "x-ms-enum": {
+ "name": "MultiFactorAuthProvider",
+ "modelAsString": true
+ }
+ },
+ "maximumActivationDuration": {
+ "type": "string",
+ "format": "duration",
+ "description": "Maximum access duration in ISO 8601 format. The default value is \"PT8H\"."
+ }
+ },
+ "required": [
+ "multiFactorAuthProvider"
+ ],
+ "type": "object",
+ "description": "Just-in-time access policy setting."
+ },
+ "ErrorResponse": {
+ "properties": {
+ "error": {
+ "readOnly": true,
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "Error code."
+ },
+ "message": {
+ "type": "string",
+ "description": "Error message indicating why the operation failed."
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "description": "Error response indicates Azure Resource Manager is not able to process the incoming request. The reason is provided in the error message."
+ }
+ },
+ "description": "Error response."
+ }
+ },
+ "parameters": {
+ "ScopeParameter": {
+ "name": "scope",
+ "in": "path",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "x-ms-skip-url-encoding": true,
+ "type": "string",
+ "description": "Scope of the resource."
+ },
+ "MarketplaceIdentifier": {
+ "name": "marketplaceIdentifier",
+ "in": "path",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "description": "Market place identifer. Expected Formats - {publisher}.{product[-preview]}.{planName}.{version} or {publisher}.{product[-preview]}.{planName} or {publisher}.{product[-preview]} or {publisher})."
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for this operation."
+ },
+ "RegistrationAssignmentIdParameter": {
+ "name": "registrationAssignmentId",
+ "in": "path",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "description": "Guid of the registration assignment."
+ },
+ "RegistrationDefinitionIdParameter": {
+ "name": "registrationDefinitionId",
+ "in": "path",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "description": "Guid of the registration definition."
+ },
+ "ExpandRegistrationDefinition": {
+ "name": "$expandRegistrationDefinition",
+ "in": "query",
+ "x-ms-parameter-location": "method",
+ "type": "boolean",
+ "description": "Tells whether to return registration definition details also along with registration assignment details."
+ },
+ "Filter": {
+ "name": "$filter",
+ "in": "query",
+ "x-ms-parameter-location": "method",
+ "type": "string",
+ "description": "The filter query parameter. Might be used to filter marketplace registration definition by plan identifier, publisher, version etc."
+ }
+ }
+}
diff --git a/specification/managedservices/resource-manager/readme.md b/specification/managedservices/resource-manager/readme.md
index c2f452c2dade..5273c2568abc 100644
--- a/specification/managedservices/resource-manager/readme.md
+++ b/specification/managedservices/resource-manager/readme.md
@@ -26,18 +26,27 @@ These are the global settings for the ManagedServices API.
``` yaml
openapi-type: arm
-tag: package-2019-09
+tag: package-2020-02-preview
```
+### Tag: package-2020-02-preview
+
+These settings apply only when `--tag=package-2020-02-preview` is specified on the command line.
+
+```yaml $(tag) == 'package-2020-02-preview'
+input-file:
+ - Microsoft.ManagedServices/preview/2020-02-01-preview/managedservices.json
+```
### Tag: package-2019-09
These settings apply only when `--tag=package-2019-09` is specified on the command line.
-```yaml $(tag) == 'package-2019-09'
+``` yaml $(tag) == 'package-2019-09'
input-file:
- Microsoft.ManagedServices/stable/2019-09-01/managedservices.json
```
+
### Tag: package-2019-06
These settings apply only when `--tag=package-2019-06` is specified on the command line.
@@ -117,6 +126,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.ManagedServices/preview/2020-02-01-preview/managedservices.json
- $(this-folder)/Microsoft.ManagedServices/stable/2019-09-01/managedservices.json
- $(this-folder)/Microsoft.ManagedServices/stable/2019-06-01/managedservices.json
- $(this-folder)/Microsoft.ManagedServices/preview/2019-04-01-preview/managedservices.json
diff --git a/specification/mariadb/resource-manager/readme.go.md b/specification/mariadb/resource-manager/readme.go.md
index 42ff51dfcfc5..5655a69784ad 100644
--- a/specification/mariadb/resource-manager/readme.go.md
+++ b/specification/mariadb/resource-manager/readme.go.md
@@ -16,15 +16,6 @@ batch:
- tag: package-2018-06-01
```
-### Tag: package-2018-06-01-preview and go
-
-These settings apply only when `--tag=package-2018-06-01-preview --go` is specified on the command line.
-Please also specify `--go-sdk-folder=`.
-
-``` yaml $(tag) == 'package-2018-06-01-preview' && $(go)
-output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-06-01-preview/$(namespace)
-```
-
### Tag: package-2018-06-01 and go
These settings apply only when `--tag=package-2018-06-01 --go` is specified on the command line.
diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Accounts.json
index 6400418515d4..73832b50b692 100644
--- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Accounts.json
+++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/Accounts.json
@@ -334,6 +334,61 @@
},
"type": "object"
},
+ "ListEdgePoliciesInput": {
+ "properties": {
+ "deviceId": {
+ "type": "string",
+ "description": "Unique identifier of the edge device."
+ }
+ },
+ "type": "object"
+ },
+ "EdgeUsageDataEventHub": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name of the Event Hub where usage will be reported."
+ },
+ "namespace": {
+ "type": "string",
+ "description": "Namespace of the Event Hub where usage will be reported."
+ },
+ "token": {
+ "type": "string",
+ "description": "SAS token needed to interact with Event Hub."
+ }
+ },
+ "type": "object"
+ },
+ "EdgeUsageDataCollectionPolicy": {
+ "properties": {
+ "dataCollectionFrequency": {
+ "type": "string",
+ "description": "Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H."
+ },
+ "dataReportingFrequency": {
+ "type": "string",
+ "description": "Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H."
+ },
+ "maxAllowedUnreportedUsageDuration": {
+ "type": "string",
+ "description": "Maximum time for which the functionality of the device will not be hampered for not reporting the usage data."
+ },
+ "eventHubDetails": {
+ "$ref": "#/definitions/EdgeUsageDataEventHub",
+ "description": "Details of Event Hub where the usage will be reported."
+ }
+ },
+ "type": "object"
+ },
+ "EdgePolicies": {
+ "properties": {
+ "usageDataCollectionPolicy": {
+ "$ref": "#/definitions/EdgeUsageDataCollectionPolicy"
+ }
+ },
+ "type": "object"
+ },
"SubscriptionMediaService": {
"description": "A Media Services account.",
"allOf": [
@@ -767,6 +822,59 @@
}
}
},
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/listEdgePolicies": {
+ "post": {
+ "summary": "List the media edge policies associated with the Media Services account.",
+ "description": "List the media edge policies associated with the Media Services account.",
+ "operationId": "Mediaservices_ListEdgePolicies",
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/EdgePolicies"
+ }
+ },
+ "default": {
+ "description": "Detailed error information.",
+ "schema": {
+ "$ref": "#/definitions/ApiError"
+ }
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupName"
+ },
+ {
+ "name": "accountName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The Media Services account name."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ListEdgePoliciesInput"
+ },
+ "description": "The request parameters"
+ },
+ {
+ "$ref": "#/parameters/ApiVersion"
+ }
+ ],
+ "x-ms-examples": {
+ "List the media edge policies.": {
+ "$ref": "examples/accounts-list-media-edge-policies.json"
+ }
+ }
+ }
+ },
"/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": {
"post": {
"summary": "Check Name Availability",
diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-list-media-edge-policies.json
new file mode 100644
index 000000000000..f4635b5811db
--- /dev/null
+++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2018-07-01/examples/accounts-list-media-edge-policies.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "contoso",
+ "accountName": "contososports",
+ "api-version": "2018-07-01",
+ "parameters": {
+ "deviceId": "contosiothubhost_contosoiotdevice"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "usageDataCollectionPolicy": {
+ "dataCollectionFrequency": "PT10M",
+ "dataReportingFrequency": "PT1H",
+ "maxAllowedUnreportedUsageDuration": "PT36H",
+ "eventHubDetails": {
+ "name": "ams-x",
+ "namespace": "ams-y-1-1",
+ "token": "SharedAccessSignature sr=sb%3a%2f%2fams-x.servicebus.windows.net%2fams-y-1-1%2fPublishers%2f96a510a1-0565-492a-a67f-83d1aed1d1f6_SampleDeviceId&sig=signature_value%3d&se=1584073736&skn=EdgeUsageData"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/examples/Operations_List.json b/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/examples/Operations_List.json
new file mode 100644
index 000000000000..19218677c5d7
--- /dev/null
+++ b/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/examples/Operations_List.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Read",
+ "display": {
+ "provider": "Microsoft.OffAzure",
+ "resource": "Microsoft.OffAzure/HyperVSites",
+ "operation": "Read",
+ "description": "Reads a site"
+ },
+ "origin": "user,system"
+ },
+ {
+ "name": "Write",
+ "display": {
+ "provider": "Microsoft.OffAzure",
+ "resource": "Microsoft.OffAzure/HyperVSites",
+ "operation": "Write",
+ "description": "Creates or updates a site"
+ },
+ "origin": "user,system"
+ },
+ {
+ "name": "Read",
+ "display": {
+ "provider": "Microsoft.OffAzure",
+ "resource": "Microsoft.OffAzure/VMwareSites",
+ "operation": "Read",
+ "description": "Reads a site"
+ },
+ "origin": "user,system"
+ },
+ {
+ "name": "Write",
+ "display": {
+ "provider": "Microsoft.OffAzure",
+ "resource": "Microsoft.OffAzure/VMwareSites",
+ "operation": "Write",
+ "description": "Creates or updates a site"
+ },
+ "origin": "user,system"
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/migrate.json b/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/migrate.json
index 64709a3876c5..6811e6ce707d 100644
--- a/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/migrate.json
+++ b/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/migrate.json
@@ -1,8 +1,13 @@
{
"swagger": "2.0",
"info": {
- "version": "v1",
- "title": "Microsoft.Azure.FDS.WebRole"
+ "version": "2020-01-01",
+ "title": "Azure Migrate V2",
+ "description": "Discover your workloads for Azure.",
+ "contact": {
+ "name": "Microsoft",
+ "email": "azuremigrate@microsoft.com"
+ }
},
"host": "localhost",
"schemes": [
@@ -2584,6 +2589,41 @@
},
"deprecated": false
}
+ },
+ "/providers/Microsoft.OffAzure/operations": {
+ "get": {
+ "summary": "Get list of operations supported in the API.",
+ "operationId": "Operations_List",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "api-version",
+ "in": "query",
+ "description": "The API version to use for this operation.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/OperationResultList"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Operations_List": {
+ "$ref": "./examples/Operations_List.json"
+ }
+ }
+ }
}
},
"definitions": {
@@ -4905,6 +4945,72 @@
"type": "string"
}
}
+ },
+ "OperationDisplay": {
+ "type": "object",
+ "description": "Displayable properties of the operation.",
+ "readOnly": true,
+ "properties": {
+ "provider": {
+ "type": "string",
+ "description": "Provider of the operation.",
+ "readOnly": true
+ },
+ "resource": {
+ "type": "string",
+ "description": "Resource operated on by the operation.",
+ "readOnly": true
+ },
+ "operation": {
+ "type": "string",
+ "description": "Operation Type.",
+ "readOnly": true
+ },
+ "description": {
+ "type": "string",
+ "description": "Description of the operation.",
+ "readOnly": true
+ }
+ }
+ },
+ "Operation": {
+ "type": "object",
+ "description": "A REST API operation supported by the provider.",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Name of the operation.",
+ "readOnly": true
+ },
+ "display": {
+ "description": "Displayable properties of the operation.",
+ "$ref": "#/definitions/OperationDisplay"
+ },
+ "origin": {
+ "type": "string",
+ "description": "Origin of the operation.",
+ "readOnly": true
+ }
+ }
+ },
+ "OperationResultList": {
+ "type": "object",
+ "description": "List of API operations.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "List of operations.",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "readOnly": true
+ },
+ "nextLink": {
+ "description": "Value of next link.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
}
}
}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-02-28-preview/examples/SpatialAnchorsAccount/Patch.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-02-28-preview/examples/SpatialAnchorsAccount/Patch.json
index 1e0fc214422e..e8112ff12fab 100644
--- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-02-28-preview/examples/SpatialAnchorsAccount/Patch.json
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-02-28-preview/examples/SpatialAnchorsAccount/Patch.json
@@ -6,7 +6,8 @@
"spatialAnchorsAccountName": "MyAccount",
"api-version": "2019-02-28-preview",
"spatialAnchorsAccount": {
- "Tags": {
+ "location": "eastus2euap",
+ "tags": {
"heroine": "juliet",
"hero": "romeo"
}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-12-02-preview/examples/remote-rendering/Patch.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-12-02-preview/examples/remote-rendering/Patch.json
index a9f2fdb3f25a..5076bf958408 100644
--- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-12-02-preview/examples/remote-rendering/Patch.json
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-12-02-preview/examples/remote-rendering/Patch.json
@@ -6,7 +6,8 @@
"accountName": "MyAccount",
"api-version": "2019-02-28-preview",
"remoteRenderingAccount": {
- "Tags": {
+ "location": "eastus2euap",
+ "tags": {
"heroine": "juliet",
"hero": "romeo"
}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-12-02-preview/examples/spatial-anchors/Patch.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-12-02-preview/examples/spatial-anchors/Patch.json
index 7aef35795b68..abbb287a2a7c 100644
--- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-12-02-preview/examples/spatial-anchors/Patch.json
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2019-12-02-preview/examples/spatial-anchors/Patch.json
@@ -6,7 +6,8 @@
"accountName": "MyAccount",
"api-version": "2019-02-28-preview",
"spatialAnchorsAccount": {
- "Tags": {
+ "location": "eastus2euap",
+ "tags": {
"heroine": "juliet",
"hero": "romeo"
}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/common.json
new file mode 100644
index 000000000000..c80d0cacdc36
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/common.json
@@ -0,0 +1,166 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Mixed Reality",
+ "description": "Mixed Reality Resource Provider API",
+ "version": "2020-04-06-preview"
+ },
+ "paths": {},
+ "definitions": {
+ "AccountKeys": {
+ "description": "Developer Keys of account",
+ "type": "object",
+ "properties": {
+ "primaryKey": {
+ "description": "value of primary key.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "secondaryKey": {
+ "description": "value of secondary key.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "AccountKeyRegenerateRequest": {
+ "description": "Request for account key regeneration",
+ "type": "object",
+ "properties": {
+ "serial": {
+ "type": "integer",
+ "enum": [
+ 1,
+ 2
+ ],
+ "default": 1,
+ "x-ms-enum": {
+ "name": "Serial",
+ "values": [
+ {
+ "value": 1,
+ "description": "The Primary Key",
+ "name": "Primary"
+ },
+ {
+ "value": 2,
+ "description": "The Secondary Key",
+ "name": "Secondary"
+ }
+ ]
+ },
+ "description": "serial of key to be regenerated"
+ }
+ }
+ },
+ "CloudError": {
+ "x-ms-external": true,
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/CloudErrorBody"
+ }
+ },
+ "description": "An Error response."
+ },
+ "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 displaying 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 Azure."
+ },
+ "MixedRealityAccountProperties": {
+ "description": "Common Properties shared by Mixed Reality Accounts",
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "description": "unique id of certain account.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "accountDomain": {
+ "description": "Correspond domain name of certain Spatial Anchors Account",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "accountKeyRegenerateParameter": {
+ "name": "regenerate",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/AccountKeyRegenerateRequest"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "Required information for key regeneration."
+ },
+ "accountNameParameter": {
+ "name": "accountName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of an Mixed Reality Account."
+ },
+ "apiVersionParameter": {
+ "name": "api-version",
+ "description": "The API version to be used with the HTTP request.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ },
+ "locationParameter": {
+ "name": "location",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "The location in which uniqueness will be verified."
+ },
+ "resourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of an Azure resource group."
+ },
+ "subscriptionIdParameter": {
+ "name": "subscriptionId",
+ "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json
new file mode 100644
index 000000000000..8e276cf1f807
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "location": "eastus2euap",
+ "checkNameAvailability": {
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ },
+ "api-version": " 2020-04-06-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": "false",
+ "reason": "AlreadyExists",
+ "message": "..."
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/proxy/ExposingAvailableOperations.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/proxy/ExposingAvailableOperations.json
new file mode 100644
index 000000000000..553835485f5f
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/proxy/ExposingAvailableOperations.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "api-version": "2020-04-06-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.MixedReality/register/action",
+ "display": {
+ "provider": "Microsoft.MixedReality",
+ "resource": "Mixed Reality resource provider",
+ "operation": "Registers the Mixed Reality resource provider",
+ "description": "Registers a subscription for the Mixed Reality resource provider."
+ }
+ },
+ {
+ "name": "Microsoft.MixedReality/SpatialAnchorsAccounts/delete",
+ "display": {
+ "provider": "Microsoft.MixedReality",
+ "resource": "SpatialAnchorsAccounts",
+ "operation": "Delete Spatial Anchors Accounts",
+ "description": "Deletes the resource for Microsoft.MixedReality/SpatialAnchorsAccounts"
+ }
+ },
+ {
+ "name": "Microsoft.MixedReality/SpatialAnchorsAccounts/read",
+ "display": {
+ "provider": "Microsoft.MixedReality",
+ "resource": "SpatialAnchorsAccounts",
+ "operation": "Get Spatial Anchors Accounts",
+ "description": "Gets the resource for Microsoft.MixedReality/SpatialAnchorsAccounts"
+ }
+ },
+ {
+ "name": "Microsoft.MixedReality/SpatialAnchorsAccounts/write",
+ "display": {
+ "provider": "Microsoft.MixedReality",
+ "resource": "SpatialAnchorsAccounts",
+ "operation": "Update Spatial Anchors Accounts",
+ "description": "Updates the resource for Microsoft.MixedReality/SpatialAnchorsAccounts"
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Delete.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Delete.json
new file mode 100644
index 000000000000..7ecc0880e495
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Delete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-04-06-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Get.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Get.json
new file mode 100644
index 000000000000..c18ffeb4fd5f
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Get.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-04-06-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount",
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/remoteRenderingAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/GetByResourceGroup.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/GetByResourceGroup.json
new file mode 100644
index 000000000000..2ea846f35b47
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/GetByResourceGroup.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "api-version": "2020-04-06-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/alpha",
+ "name": "alpha",
+ "type": "Microsoft.MixedReality/remoteRenderingAccounts"
+ },
+ {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/omega",
+ "name": "omega",
+ "type": "Microsoft.MixedReality/remoteRenderingAccounts"
+ }
+ ],
+ "nextLink": "https://aka.ms/&^FDKKAR"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/GetBySubscription.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/GetBySubscription.json
new file mode 100644
index 000000000000..421cb759c41f
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/GetBySubscription.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "api-version": "2020-04-06-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/alpha",
+ "name": "alpha",
+ "type": "Microsoft.MixedReality/remoteRenderingAccounts"
+ },
+ {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/omega",
+ "name": "omega",
+ "type": "Microsoft.MixedReality/remoteRenderingAccounts"
+ }
+ ],
+ "nextLink": "https://aka.ms/&^FDKKAR"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/ListKeys.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/ListKeys.json
new file mode 100644
index 000000000000..38846e39681b
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/ListKeys.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-04-06-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "primaryKey": "vMAlcI/j25TwDs8hjTorto3JQkoiqZAXKsFq0rYnSNc=",
+ "secondaryKey": "N4umIGhJt8LgnMMMBpwFOxVOS9zpxHxSHy1TJhN3hU4="
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Patch.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Patch.json
new file mode 100644
index 000000000000..43d46c058028
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Patch.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-04-06-preview",
+ "remoteRenderingAccount": {
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap",
+ "tags": {
+ "heroine": "juliet",
+ "hero": "romeo"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {
+ "heroine": "juliet",
+ "hero": "romeo"
+ },
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount",
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/remoteRenderingAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Put.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Put.json
new file mode 100644
index 000000000000..1510036ebcc0
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/Put.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-04-06-preview",
+ "remoteRenderingAccount": {
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap"
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount",
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/remoteRenderingAccounts"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "identity": {
+ "type": "SystemAssigned"
+ },
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/remoteRenderingAccounts/MyAccount",
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/remoteRenderingAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/RegenerateKey.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/RegenerateKey.json
new file mode 100644
index 000000000000..0dd4c314ab6a
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/examples/remote-rendering/RegenerateKey.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-04-06-preview",
+ "regenerate": {
+ "serial": 1
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "primaryKey": "vMAlcI/j25TwDs8hjTorto3JQkoiqZAXKsFq0rYnSNc=",
+ "secondaryKey": "N4umIGhJt8LgnMMMBpwFOxVOS9zpxHxSHy1TJhN3hU4="
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/proxy.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/proxy.json
new file mode 100644
index 000000000000..d2c42198f72e
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/proxy.json
@@ -0,0 +1,254 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Mixed Reality",
+ "description": "Mixed Reality Resource Provider Proxy API",
+ "version": "2020-04-06-preview",
+ "x-ms-code-generation-settings": {
+ "name": "MixedRealityClient"
+ }
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.MixedReality/operations": {
+ "get": {
+ "operationId": "Operations_List",
+ "tags": [
+ "Proxy"
+ ],
+ "description": "Exposing Available Operations",
+ "x-ms-examples": {
+ "List available operations": {
+ "$ref": "./examples/proxy/ExposingAvailableOperations.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/OperationPage"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/locations/{location}/checkNameAvailability": {
+ "post": {
+ "operationId": "CheckNameAvailabilityLocal",
+ "tags": [
+ "Proxy"
+ ],
+ "description": "Check Name Availability for local uniqueness",
+ "x-ms-examples": {
+ "CheckLocalNameAvailability": {
+ "$ref": "./examples/proxy/CheckNameAvailabilityForLocalUniqueness.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/locationParameter"
+ },
+ {
+ "$ref": "#/parameters/checkNameAvailabilityParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityResponse"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "CheckNameAvailabilityRequest": {
+ "description": "Check Name Availability Request",
+ "type": "object",
+ "required": [
+ "name",
+ "type"
+ ],
+ "properties": {
+ "name": {
+ "description": "Resource Name To Verify",
+ "type": "string"
+ },
+ "type": {
+ "description": "Fully qualified resource type which includes provider namespace",
+ "type": "string"
+ }
+ }
+ },
+ "CheckNameAvailabilityResponse": {
+ "description": "Check Name Availability Response",
+ "type": "object",
+ "required": [
+ "nameAvailable"
+ ],
+ "properties": {
+ "nameAvailable": {
+ "description": "if name Available",
+ "$ref": "#/definitions/NameAvailability"
+ },
+ "reason": {
+ "description": "Resource Name To Verify",
+ "$ref": "#/definitions/NameUnavailableReason"
+ },
+ "message": {
+ "description": "detail message",
+ "type": "string"
+ }
+ }
+ },
+ "Operation": {
+ "description": "REST API operation",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}",
+ "type": "string"
+ },
+ "display": {
+ "description": "The object that represents the operation.",
+ "$ref": "#/definitions/OperationDisplay"
+ }
+ }
+ },
+ "OperationDisplay": {
+ "description": "The object that represents the operation.",
+ "type": "object",
+ "required": [
+ "provider",
+ "resource",
+ "operation",
+ "description"
+ ],
+ "properties": {
+ "provider": {
+ "description": "Service provider: Microsoft.ResourceProvider",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Resource on which the operation is performed: Profile, endpoint, etc.",
+ "type": "string"
+ },
+ "operation": {
+ "description": "Operation type: Read, write, delete, etc.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description of operation",
+ "type": "string"
+ }
+ }
+ },
+ "NameAvailability": {
+ "description": "Whether or not the name is available.",
+ "type": "string",
+ "enum": [
+ "true",
+ "false"
+ ],
+ "x-ms-enum": {
+ "name": "NameAvailability",
+ "modelAsString": true
+ }
+ },
+ "NameUnavailableReason": {
+ "description": "reason of name unavailable.",
+ "type": "string",
+ "enum": [
+ "Invalid",
+ "AlreadyExists"
+ ],
+ "x-ms-enum": {
+ "name": "NameUnavailableReason",
+ "modelAsString": true
+ }
+ },
+ "OperationPage": {
+ "description": "Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "description": "List of operations supported by the Resource Provider."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of operation list results if there are any."
+ }
+ }
+ }
+ },
+ "parameters": {
+ "checkNameAvailabilityParameter": {
+ "name": "checkNameAvailability",
+ "description": "Check Name Availability Request.",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityRequest"
+ },
+ "required": true,
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/remote-rendering.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/remote-rendering.json
new file mode 100644
index 000000000000..06252e3239b5
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/preview/2020-04-06-preview/remote-rendering.json
@@ -0,0 +1,435 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Mixed Reality",
+ "description": "Mixed Reality Resource Provider Remote Rendering Resource API",
+ "version": "2020-04-06-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/remoteRenderingAccounts": {
+ "get": {
+ "operationId": "RemoteRenderingAccounts_ListBySubscription",
+ "tags": [
+ "Resource",
+ "Proxy"
+ ],
+ "description": "List Remote Rendering Accounts by Subscription",
+ "x-ms-examples": {
+ "List remote rendering accounts by subscription": {
+ "$ref": "./examples/remote-rendering/GetBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/RemoteRenderingAccountPage"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts": {
+ "get": {
+ "operationId": "RemoteRenderingAccounts_ListByResourceGroup",
+ "tags": [
+ "Resource"
+ ],
+ "description": "List Resources by Resource Group",
+ "x-ms-examples": {
+ "List remote rendering accounts by resource group": {
+ "$ref": "./examples/remote-rendering/GetByResourceGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/RemoteRenderingAccountPage"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}": {
+ "delete": {
+ "operationId": "RemoteRenderingAccounts_Delete",
+ "tags": [
+ "Resource"
+ ],
+ "description": "Delete a Remote Rendering Account.",
+ "x-ms-examples": {
+ "Delete remote rendering account": {
+ "$ref": "./examples/remote-rendering/Delete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "operationId": "RemoteRenderingAccounts_Get",
+ "tags": [
+ "Resource"
+ ],
+ "description": "Retrieve a Remote Rendering Account.",
+ "x-ms-examples": {
+ "Get remote rendering account": {
+ "$ref": "./examples/remote-rendering/Get.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/RemoteRenderingAccount"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "operationId": "RemoteRenderingAccounts_Update",
+ "tags": [
+ "Resource"
+ ],
+ "description": "Updating a Remote Rendering Account",
+ "x-ms-examples": {
+ "Update remote rendering account": {
+ "$ref": "./examples/remote-rendering/Patch.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/remoteRenderingAccountParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/RemoteRenderingAccount"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "RemoteRenderingAccounts_Create",
+ "tags": [
+ "Resource"
+ ],
+ "description": "Creating or Updating a Remote Rendering Account.",
+ "x-ms-examples": {
+ "Create remote rendering account": {
+ "$ref": "./examples/remote-rendering/Put.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/remoteRenderingAccountParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/RemoteRenderingAccount"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/RemoteRenderingAccount"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}/listKeys": {
+ "post": {
+ "operationId": "RemoteRenderingAccounts_ListKeys",
+ "tags": [
+ "Key"
+ ],
+ "description": "List Both of the 2 Keys of a Remote Rendering Account",
+ "x-ms-examples": {
+ "List remote rendering account key": {
+ "$ref": "./examples/remote-rendering/ListKeys.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./common.json#/definitions/AccountKeys"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/remoteRenderingAccounts/{accountName}/regenerateKeys": {
+ "post": {
+ "operationId": "RemoteRenderingAccounts_RegenerateKeys",
+ "tags": [
+ "Key"
+ ],
+ "description": "Regenerate specified Key of a Remote Rendering Account",
+ "x-ms-examples": {
+ "Regenerate remote rendering account keys": {
+ "$ref": "./examples/remote-rendering/RegenerateKey.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountKeyRegenerateParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./common.json#/definitions/AccountKeys"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "RemoteRenderingAccount": {
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "description": "RemoteRenderingAccount Response.",
+ "type": "object",
+ "properties": {
+ "identity": {
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity"
+ }
+ ]
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Property bag.",
+ "$ref": "./common.json#/definitions/MixedRealityAccountProperties"
+ }
+ }
+ },
+ "RemoteRenderingAccountPage": {
+ "description": "Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/RemoteRenderingAccount"
+ },
+ "description": "List of resources supported by the Resource Provider."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of resource list results if there are any."
+ }
+ }
+ }
+ },
+ "parameters": {
+ "remoteRenderingAccountParameter": {
+ "name": "remoteRenderingAccount",
+ "description": "Remote Rendering Account parameter.",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/RemoteRenderingAccount"
+ },
+ "required": true,
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/common.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/common.json
new file mode 100644
index 000000000000..915b4cc8aae6
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/common.json
@@ -0,0 +1,166 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Mixed Reality",
+ "description": "Mixed Reality Resource Provider API",
+ "version": "2020-05-01"
+ },
+ "paths": {},
+ "definitions": {
+ "AccountKeys": {
+ "description": "Developer Keys of account",
+ "type": "object",
+ "properties": {
+ "primaryKey": {
+ "description": "value of primary key.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "secondaryKey": {
+ "description": "value of secondary key.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "AccountKeyRegenerateRequest": {
+ "description": "Request for account key regeneration",
+ "type": "object",
+ "properties": {
+ "serial": {
+ "type": "integer",
+ "enum": [
+ 1,
+ 2
+ ],
+ "default": 1,
+ "x-ms-enum": {
+ "name": "Serial",
+ "values": [
+ {
+ "value": 1,
+ "description": "The Primary Key",
+ "name": "Primary"
+ },
+ {
+ "value": 2,
+ "description": "The Secondary Key",
+ "name": "Secondary"
+ }
+ ]
+ },
+ "description": "serial of key to be regenerated"
+ }
+ }
+ },
+ "CloudError": {
+ "x-ms-external": true,
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/CloudErrorBody"
+ }
+ },
+ "description": "An Error response."
+ },
+ "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 displaying 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 Azure."
+ },
+ "MixedRealityAccountProperties": {
+ "description": "Common Properties shared by Mixed Reality Accounts",
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "description": "unique id of certain account.",
+ "readOnly": true,
+ "type": "string"
+ },
+ "accountDomain": {
+ "description": "Correspond domain name of certain Spatial Anchors Account",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "accountKeyRegenerateParameter": {
+ "name": "regenerate",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/AccountKeyRegenerateRequest"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "Required information for key regeneration."
+ },
+ "accountNameParameter": {
+ "name": "accountName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of an Mixed Reality Account."
+ },
+ "apiVersionParameter": {
+ "name": "api-version",
+ "description": "The API version to be used with the HTTP request.",
+ "in": "query",
+ "required": true,
+ "type": "string"
+ },
+ "locationParameter": {
+ "name": "location",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "The location in which uniqueness will be verified."
+ },
+ "resourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method",
+ "description": "Name of an Azure resource group."
+ },
+ "subscriptionIdParameter": {
+ "name": "subscriptionId",
+ "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)",
+ "in": "path",
+ "required": true,
+ "type": "string"
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json
new file mode 100644
index 000000000000..f7dc975be35d
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "location": "eastus2euap",
+ "checkNameAvailability": {
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ },
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": "false",
+ "reason": "AlreadyExists",
+ "message": "..."
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/ExposingAvailableOperations.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/ExposingAvailableOperations.json
new file mode 100644
index 000000000000..6e91f11e7489
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/ExposingAvailableOperations.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.MixedReality/register/action",
+ "display": {
+ "provider": "Microsoft.MixedReality",
+ "resource": "Mixed Reality resource provider",
+ "operation": "Registers the Mixed Reality resource provider",
+ "description": "Registers a subscription for the Mixed Reality resource provider."
+ }
+ },
+ {
+ "name": "Microsoft.MixedReality/SpatialAnchorsAccounts/delete",
+ "display": {
+ "provider": "Microsoft.MixedReality",
+ "resource": "SpatialAnchorsAccounts",
+ "operation": "Delete Spatial Anchors Accounts",
+ "description": "Deletes the resource for Microsoft.MixedReality/SpatialAnchorsAccounts"
+ }
+ },
+ {
+ "name": "Microsoft.MixedReality/SpatialAnchorsAccounts/read",
+ "display": {
+ "provider": "Microsoft.MixedReality",
+ "resource": "SpatialAnchorsAccounts",
+ "operation": "Get Spatial Anchors Accounts",
+ "description": "Gets the resource for Microsoft.MixedReality/SpatialAnchorsAccounts"
+ }
+ },
+ {
+ "name": "Microsoft.MixedReality/SpatialAnchorsAccounts/write",
+ "display": {
+ "provider": "Microsoft.MixedReality",
+ "resource": "SpatialAnchorsAccounts",
+ "operation": "Update Spatial Anchors Accounts",
+ "description": "Updates the resource for Microsoft.MixedReality/SpatialAnchorsAccounts"
+ }
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Delete.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Delete.json
new file mode 100644
index 000000000000..7e1516910713
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Delete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Get.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Get.json
new file mode 100644
index 000000000000..eaa3018df30d
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Get.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount",
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/GetByResourceGroup.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/GetByResourceGroup.json
new file mode 100644
index 000000000000..899fddb72ab4
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/GetByResourceGroup.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/alpha",
+ "name": "alpha",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ },
+ {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/omega",
+ "name": "omega",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ }
+ ],
+ "nextLink": "https://aka.ms/&^FDKKAR"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/GetBySubscription.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/GetBySubscription.json
new file mode 100644
index 000000000000..1e74a97d9e46
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/GetBySubscription.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/alpha",
+ "name": "alpha",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ },
+ {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/omega",
+ "name": "omega",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ }
+ ],
+ "nextLink": "https://aka.ms/&^FDKKAR"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/ListKeys.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/ListKeys.json
new file mode 100644
index 000000000000..75a805e0cd0e
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/ListKeys.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "primaryKey": "vMAlcI/j25TwDs8hjTorto3JQkoiqZAXKsFq0rYnSNc=",
+ "secondaryKey": "N4umIGhJt8LgnMMMBpwFOxVOS9zpxHxSHy1TJhN3hU4="
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Patch.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Patch.json
new file mode 100644
index 000000000000..390479971e22
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Patch.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-05-01",
+ "spatialAnchorsAccount": {
+ "location": "eastus2euap",
+ "tags": {
+ "heroine": "juliet",
+ "hero": "romeo"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {
+ "heroine": "juliet",
+ "hero": "romeo"
+ },
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount",
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Put.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Put.json
new file mode 100644
index 000000000000..0ee5930a7060
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/Put.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-05-01",
+ "spatialAnchorsAccount": {
+ "location": "eastus2euap"
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount",
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ }
+ },
+ "200": {
+ "body": {
+ "properties": {
+ "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "accountDomain": "mixedreality.azure.com"
+ },
+ "tags": {},
+ "location": "eastus2euap",
+ "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.MixedReality/spatialAnchorsAccounts/MyAccount",
+ "name": "MyAccount",
+ "type": "Microsoft.MixedReality/spatialAnchorsAccounts"
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/RegenerateKey.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/RegenerateKey.json
new file mode 100644
index 000000000000..e96b4b0172fd
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/spatial-anchors/RegenerateKey.json
@@ -0,0 +1,19 @@
+{
+ "parameters": {
+ "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "resourceGroupName": "MyResourceGroup",
+ "accountName": "MyAccount",
+ "api-version": "2020-05-01",
+ "regenerate": {
+ "serial": 1
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "primaryKey": "vMAlcI/j25TwDs8hjTorto3JQkoiqZAXKsFq0rYnSNc=",
+ "secondaryKey": "N4umIGhJt8LgnMMMBpwFOxVOS9zpxHxSHy1TJhN3hU4="
+ }
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json
new file mode 100644
index 000000000000..34a1c29036f5
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json
@@ -0,0 +1,254 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Mixed Reality",
+ "description": "Mixed Reality Resource Provider Proxy API",
+ "version": "2020-05-01",
+ "x-ms-code-generation-settings": {
+ "name": "MixedRealityClient"
+ }
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.MixedReality/operations": {
+ "get": {
+ "operationId": "Operations_List",
+ "tags": [
+ "Proxy"
+ ],
+ "description": "Exposing Available Operations",
+ "x-ms-examples": {
+ "List available operations": {
+ "$ref": "./examples/proxy/ExposingAvailableOperations.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/OperationPage"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/locations/{location}/checkNameAvailability": {
+ "post": {
+ "operationId": "CheckNameAvailabilityLocal",
+ "tags": [
+ "Proxy"
+ ],
+ "description": "Check Name Availability for local uniqueness",
+ "x-ms-examples": {
+ "CheckLocalNameAvailability": {
+ "$ref": "./examples/proxy/CheckNameAvailabilityForLocalUniqueness.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/locationParameter"
+ },
+ {
+ "$ref": "#/parameters/checkNameAvailabilityParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityResponse"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "CheckNameAvailabilityRequest": {
+ "description": "Check Name Availability Request",
+ "type": "object",
+ "required": [
+ "name",
+ "type"
+ ],
+ "properties": {
+ "name": {
+ "description": "Resource Name To Verify",
+ "type": "string"
+ },
+ "type": {
+ "description": "Fully qualified resource type which includes provider namespace",
+ "type": "string"
+ }
+ }
+ },
+ "CheckNameAvailabilityResponse": {
+ "description": "Check Name Availability Response",
+ "type": "object",
+ "required": [
+ "nameAvailable"
+ ],
+ "properties": {
+ "nameAvailable": {
+ "description": "if name Available",
+ "$ref": "#/definitions/NameAvailability"
+ },
+ "reason": {
+ "description": "Resource Name To Verify",
+ "$ref": "#/definitions/NameUnavailableReason"
+ },
+ "message": {
+ "description": "detail message",
+ "type": "string"
+ }
+ }
+ },
+ "Operation": {
+ "description": "REST API operation",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}",
+ "type": "string"
+ },
+ "display": {
+ "description": "The object that represents the operation.",
+ "$ref": "#/definitions/OperationDisplay"
+ }
+ }
+ },
+ "OperationDisplay": {
+ "description": "The object that represents the operation.",
+ "type": "object",
+ "required": [
+ "provider",
+ "resource",
+ "operation",
+ "description"
+ ],
+ "properties": {
+ "provider": {
+ "description": "Service provider: Microsoft.ResourceProvider",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Resource on which the operation is performed: Profile, endpoint, etc.",
+ "type": "string"
+ },
+ "operation": {
+ "description": "Operation type: Read, write, delete, etc.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description of operation",
+ "type": "string"
+ }
+ }
+ },
+ "NameAvailability": {
+ "description": "Whether or not the name is available.",
+ "type": "string",
+ "enum": [
+ "true",
+ "false"
+ ],
+ "x-ms-enum": {
+ "name": "NameAvailability",
+ "modelAsString": true
+ }
+ },
+ "NameUnavailableReason": {
+ "description": "reason of name unavailable.",
+ "type": "string",
+ "enum": [
+ "Invalid",
+ "AlreadyExists"
+ ],
+ "x-ms-enum": {
+ "name": "NameUnavailableReason",
+ "modelAsString": true
+ }
+ },
+ "OperationPage": {
+ "description": "Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "description": "List of operations supported by the Resource Provider."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of operation list results if there are any."
+ }
+ }
+ }
+ },
+ "parameters": {
+ "checkNameAvailabilityParameter": {
+ "name": "checkNameAvailability",
+ "description": "Check Name Availability Request.",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityRequest"
+ },
+ "required": true,
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json
new file mode 100644
index 000000000000..d5c4f1a4d3c7
--- /dev/null
+++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json
@@ -0,0 +1,428 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Mixed Reality",
+ "description": "Mixed Reality Resource Provider Spatial Anchors Resource API",
+ "version": "2020-05-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/spatialAnchorsAccounts": {
+ "get": {
+ "operationId": "SpatialAnchorsAccounts_ListBySubscription",
+ "tags": [
+ "Resource",
+ "Proxy"
+ ],
+ "description": "List Spatial Anchors Accounts by Subscription",
+ "x-ms-examples": {
+ "List spatial anchors accounts by subscription": {
+ "$ref": "./examples/spatial-anchors/GetBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SpatialAnchorsAccountPage"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts": {
+ "get": {
+ "operationId": "SpatialAnchorsAccounts_ListByResourceGroup",
+ "tags": [
+ "Resource"
+ ],
+ "description": "List Resources by Resource Group",
+ "x-ms-examples": {
+ "List spatial anchor accounts by resource group": {
+ "$ref": "./examples/spatial-anchors/GetByResourceGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SpatialAnchorsAccountPage"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}": {
+ "delete": {
+ "operationId": "SpatialAnchorsAccounts_Delete",
+ "tags": [
+ "Resource"
+ ],
+ "description": "Delete a Spatial Anchors Account.",
+ "x-ms-examples": {
+ "Delete spatial anchors account": {
+ "$ref": "./examples/spatial-anchors/Delete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "operationId": "SpatialAnchorsAccounts_Get",
+ "tags": [
+ "Resource"
+ ],
+ "description": "Retrieve a Spatial Anchors Account.",
+ "x-ms-examples": {
+ "Get spatial anchors account": {
+ "$ref": "./examples/spatial-anchors/Get.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SpatialAnchorsAccount"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "operationId": "SpatialAnchorsAccounts_Update",
+ "tags": [
+ "Resource"
+ ],
+ "description": "Updating a Spatial Anchors Account",
+ "x-ms-examples": {
+ "Update spatial anchors account": {
+ "$ref": "./examples/spatial-anchors/Patch.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/spatialAnchorsAccountParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SpatialAnchorsAccount"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "operationId": "SpatialAnchorsAccounts_Create",
+ "tags": [
+ "Resource"
+ ],
+ "description": "Creating or Updating a Spatial Anchors Account.",
+ "x-ms-examples": {
+ "Create spatial anchor account": {
+ "$ref": "./examples/spatial-anchors/Put.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "#/parameters/spatialAnchorsAccountParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SpatialAnchorsAccount"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/SpatialAnchorsAccount"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/listKeys": {
+ "post": {
+ "operationId": "SpatialAnchorsAccounts_ListKeys",
+ "tags": [
+ "Key"
+ ],
+ "description": "List Both of the 2 Keys of a Spatial Anchors Account",
+ "x-ms-examples": {
+ "List spatial anchor account key": {
+ "$ref": "./examples/spatial-anchors/ListKeys.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./common.json#/definitions/AccountKeys"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MixedReality/spatialAnchorsAccounts/{accountName}/regenerateKeys": {
+ "post": {
+ "operationId": "SpatialAnchorsAccounts_RegenerateKeys",
+ "tags": [
+ "Key"
+ ],
+ "description": "Regenerate specified Key of a Spatial Anchors Account",
+ "x-ms-examples": {
+ "Regenerate spatial anchors account keys": {
+ "$ref": "./examples/spatial-anchors/RegenerateKey.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "./common.json#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountNameParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/accountKeyRegenerateParameter"
+ },
+ {
+ "$ref": "./common.json#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "./common.json#/definitions/AccountKeys"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./common.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "SpatialAnchorsAccount": {
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "description": "SpatialAnchorsAccount Response.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Property bag.",
+ "$ref": "./common.json#/definitions/MixedRealityAccountProperties"
+ }
+ }
+ },
+ "SpatialAnchorsAccountPage": {
+ "description": "Result of the request to get resource collection. It contains a list of resources and a URL link to get the next set of results.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SpatialAnchorsAccount"
+ },
+ "description": "List of resources supported by the Resource Provider."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of resource list results if there are any."
+ }
+ }
+ }
+ },
+ "parameters": {
+ "spatialAnchorsAccountParameter": {
+ "name": "spatialAnchorsAccount",
+ "description": "Spatial Anchors Account parameter.",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/SpatialAnchorsAccount"
+ },
+ "required": true,
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/mixedreality/resource-manager/readme.go.md b/specification/mixedreality/resource-manager/readme.go.md
index 0bbc755d27b0..98daa667ecfb 100644
--- a/specification/mixedreality/resource-manager/readme.go.md
+++ b/specification/mixedreality/resource-manager/readme.go.md
@@ -13,9 +13,19 @@ go:
``` yaml $(go) && $(multiapi)
batch:
+ - tag: package-2020-05
- tag: package-2019-02-preview
```
+### Tag: package-2020-05 and go
+
+These settings apply only when `--tag=package-2020-05 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-05' && $(go)
+output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-05-01-preview/$(namespace)
+```
+
### Tag: package-2019-02-preview and go
These settings apply only when `--tag=package-2019-02-preview --go` is specified on the command line.
diff --git a/specification/mixedreality/resource-manager/readme.java.md b/specification/mixedreality/resource-manager/readme.java.md
new file mode 100644
index 000000000000..fd0ea54e7f58
--- /dev/null
+++ b/specification/mixedreality/resource-manager/readme.java.md
@@ -0,0 +1,33 @@
+## Java
+
+These settings apply only when `--java` is specified on the command line.
+Please also specify `--azure-libraries-for-java-folder=`.
+
+``` yaml $(java)
+azure-arm: true
+fluent: true
+namespace: com.microsoft.azure.management.mixedreality
+license-header: MICROSOFT_MIT_NO_CODEGEN
+payload-flattening-threshold: 1
+output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-mixedreality
+```
+
+### Java multi-api
+
+``` yaml $(java) && $(multiapi)
+batch:
+ - tag: package-2020-05
+```
+
+### Tag: package-2020-05 and java
+
+These settings apply only when `--tag=package-2020-05 --java` is specified on the command line.
+Please also specify `--azure-libraries-for-java-folder=`.
+
+``` yaml $(tag) == 'package-2020-05' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.mixedreality.v2020_05_01
+ output-folder: $(azure-libraries-for-java-folder)/sdk/mixedreality/mgmt-v2020_05_01
+regenerate-manager: true
+generate-interface: true
+```
diff --git a/specification/mixedreality/resource-manager/readme.md b/specification/mixedreality/resource-manager/readme.md
index 1cb78ccedaaf..ccd310b211e6 100644
--- a/specification/mixedreality/resource-manager/readme.md
+++ b/specification/mixedreality/resource-manager/readme.md
@@ -25,14 +25,44 @@ These are the global settings for the Mixed Reality Azure Resource Management Cl
title: MixedRealityClient
description: Mixed Reality Client
openapi-type: arm
-tag: package-2019-12-preview
+tag: package-2020-05
+```
+### Tag: package-2020-05
+
+These settings apply only when `--tag=package-2020-05` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-05'
+input-file:
+- Microsoft.MixedReality/stable/2020-05-01/proxy.json
+- Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json
+- Microsoft.MixedReality/preview/2020-04-06-preview/remote-rendering.json
+```
+
+### Tag: package-2020-05-01
+
+These settings apply only when `--tag=package-2020-05-01` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-05-01'
+input-file:
+- Microsoft.MixedReality/stable/2020-05-01/proxy.json
+- Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json
+```
+
+### Tag: package-2020-04-06-preview
+
+These settings apply only when `--tag=package-2020-04-06-preview` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-04-06-preview'
+input-file:
+- Microsoft.MixedReality/preview/2020-04-06-preview/proxy.json
+- Microsoft.MixedReality/preview/2020-04-06-preview/remote-rendering.json
```
### Tag: package-2019-12-preview
-These settings apply only when `--tag=package-2019-12-preview` is specified on the command line.
+These settings apply only when `--tag=package-2019-12-02-preview` is specified on the command line.
-``` yaml $(tag) == 'package-2019-12-preview'
+``` yaml $(tag) == 'package-2019-12-02-preview'
input-file:
- Microsoft.MixedReality/preview/2019-12-02-preview/proxy.json
- Microsoft.MixedReality/preview/2019-12-02-preview/remote-rendering.json
@@ -62,6 +92,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-js
- repo: azure-sdk-for-go
+ - repo: azure-sdk-for-java
```
## C#
@@ -111,6 +142,10 @@ python:
See configuration in [readme.go.md](./readme.go.md)
+## Java
+
+See configuration in [readme.java.md](./readme.java.md)
+
## Multi-API/Profile support for AutoRest v3 generators
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
@@ -123,6 +158,10 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.MixedReality/stable/2020-05-01/proxy.json
+ - $(this-folder)/Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json
+ - $(this-folder)/Microsoft.MixedReality/preview/2020-04-06-preview/remote-rendering.json
+ - $(this-folder)/Microsoft.MixedReality/preview/2020-04-06-preview/proxy.json
- $(this-folder)/Microsoft.MixedReality/preview/2019-12-02-preview/proxy.json
- $(this-folder)/Microsoft.MixedReality/preview/2019-12-02-preview/remote-rendering.json
- $(this-folder)/Microsoft.MixedReality/preview/2019-12-02-preview/spatial-anchors.json
diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md
index 044ae1e3b1ec..aa10b3d13604 100644
--- a/specification/monitor/resource-manager/readme.md
+++ b/specification/monitor/resource-manager/readme.md
@@ -446,6 +446,7 @@ input-file:
- Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettings_API.json
- Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json
- Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json
+- Microsoft.Insights/preview/2017-05-01-preview/subscriptionDiagnosticsSettings_API.json
```
@@ -532,6 +533,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
after_scripts:
- python ./scripts/multiapi_init_gen.py azure-mgmt-monitor
+ - repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
diff --git a/specification/monitor/resource-manager/readme.python.md b/specification/monitor/resource-manager/readme.python.md
index b2c18e532fda..6d84860e3278 100644
--- a/specification/monitor/resource-manager/readme.python.md
+++ b/specification/monitor/resource-manager/readme.python.md
@@ -74,6 +74,12 @@ batch:
- multiapiscript: true
```
+``` yaml $(multiapiscript)
+output-folder: $(python-sdks-folder)/monitor/azure-mgmt-monitor/azure/mgmt/monitor/
+clear-output-folder: false
+perform-load: false
+```
+
### Tag: package-2019-10-17-preview-only and python
These settings apply only when `--tag=package-2019-10-17-preview-only --python` is specified on the command line.
diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/mysql.json
index 7f9bebd28eab..355fccb1b110 100644
--- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/mysql.json
+++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/stable/2017-12-01/mysql.json
@@ -1524,14 +1524,24 @@
},
"InfrastructureEncryption": {
"type": "string",
- "description": "Status showing whether the server enabled infrastructure encryption.",
+ "description": "Add a second layer of encryption for your data using new encryption algorithm which gives additional data protection. Value is optional but if passed in, must be 'Disabled' or 'Enabled'.",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "InfrastructureEncryption",
- "modelAsString": true
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Enabled",
+ "description": "Default value for single layer of encryption for data at rest."
+ },
+ {
+ "value": "Disabled",
+ "description": "Additional (2nd) layer of encryption for data at rest"
+ }
+ ]
}
},
"PublicNetworkAccess": {
diff --git a/specification/mysql/resource-manager/readme.go.md b/specification/mysql/resource-manager/readme.go.md
index 62df079caf6b..1ce4bf29f208 100644
--- a/specification/mysql/resource-manager/readme.go.md
+++ b/specification/mysql/resource-manager/readme.go.md
@@ -13,10 +13,20 @@ go:
``` yaml $(go) && $(multiapi)
batch:
+ - tag: package-2020-01-01
- tag: package-2017-12-01-preview
- tag: package-2017-12-01
```
+### Tag: package-2020-01-01 and go
+
+These settings apply only when `--tag=package-2020-01-01 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-01-01' && $(go)
+output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-01-01/$(namespace)
+```
+
### Tag: package-2017-12-01-preview and go
These settings apply only when `--tag=package-2017-12-01-preview --go` is specified on the command line.
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json
index 4a78287c5fc3..e7eb7ea59bcc 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-01-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json
@@ -7,38 +7,45 @@
"200": {
"body": {
"value": [
- [
- {
- "name": "AppGwSslPolicy20150501",
- "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501",
- "properties": {
- "cipherSuites": [
- "TLS_RSA_WITH_AES_128_CBC_SHA"
- ],
- "minProtocolVersion": "TLSv1_0"
- }
- },
- {
- "name": "AppGwSslPolicy20170401",
- "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401",
- "properties": {
- "cipherSuites": [
- "TLS_RSA_WITH_AES_128_CBC_SHA"
- ],
- "minProtocolVersion": "TLSv1_1"
- }
- },
- {
- "name": "AppGwSslPolicy20170401S",
- "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401S",
- "properties": {
- "cipherSuites": [
- "TLS_RSA_WITH_AES_128_CBC_SHA"
- ],
- "minProtocolVersion": "TLSv1_2"
- }
+ {
+ "name": "AppGwSslPolicy20150501",
+ "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501",
+ "properties": {
+ "cipherSuites": [
+ "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
+ "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
+ "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384",
+ "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
+ ],
+ "minProtocolVersion": "TLSv1_0"
}
- ]
+ },
+ {
+ "name": "AppGwSslPolicy20170401",
+ "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401",
+ "properties": {
+ "cipherSuites": [
+ "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
+ "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
+ "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA",
+ "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"
+ ],
+ "minProtocolVersion": "TLSv1_1"
+ }
+ },
+ {
+ "name": "AppGwSslPolicy20170401S",
+ "id": "/subscriptions/subid/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20170401S",
+ "properties": {
+ "cipherSuites": [
+ "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
+ "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
+ "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA",
+ "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"
+ ],
+ "minProtocolVersion": "TLSv1_2"
+ }
+ }
]
}
}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/publicIpPrefix.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/publicIpPrefix.json
index 0e0962030c95..875aa09f3d4a 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/publicIpPrefix.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-07-01/publicIpPrefix.json
@@ -352,7 +352,7 @@
"ipTags": {
"type": "array",
"items": {
- "$ref": "#/definitions/IpTag"
+ "$ref": "./publicIpAddress.json#/definitions/IpTag"
},
"description": "The list of tags associated with the public IP prefix."
},
@@ -434,19 +434,6 @@
},
"description": "Response for ListPublicIpPrefixes API service call."
},
- "IpTag": {
- "properties": {
- "ipTagType": {
- "type": "string",
- "description": "Gets or sets the ipTag type: Example FirstPartyUsage."
- },
- "tag": {
- "type": "string",
- "description": "Gets or sets value of the IpTag associated with the public IP. Example SQL, Storage etc"
- }
- },
- "description": "Contains the IpTag associated with the object"
- },
"ReferencedPublicIpAddress": {
"properties": {
"id": {
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/publicIpPrefix.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/publicIpPrefix.json
index fa8721fc58d9..a4e5b63c45f5 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/publicIpPrefix.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/publicIpPrefix.json
@@ -352,7 +352,7 @@
"ipTags": {
"type": "array",
"items": {
- "$ref": "#/definitions/IpTag"
+ "$ref": "./publicIpAddress.json#/definitions/IpTag"
},
"description": "The list of tags associated with the public IP prefix."
},
@@ -434,19 +434,6 @@
},
"description": "Response for ListPublicIpPrefixes API service call."
},
- "IpTag": {
- "properties": {
- "ipTagType": {
- "type": "string",
- "description": "Gets or sets the ipTag type: Example FirstPartyUsage."
- },
- "tag": {
- "type": "string",
- "description": "Gets or sets value of the IpTag associated with the public IP. Example SQL, Storage etc"
- }
- },
- "description": "Contains the IpTag associated with the object"
- },
"ReferencedPublicIpAddress": {
"properties": {
"id": {
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/publicIpPrefix.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/publicIpPrefix.json
index 407d94f441cc..e4c50b8a211a 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/publicIpPrefix.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-10-01/publicIpPrefix.json
@@ -352,7 +352,7 @@
"ipTags": {
"type": "array",
"items": {
- "$ref": "#/definitions/IpTag"
+ "$ref": "./publicIpAddress.json#/definitions/IpTag"
},
"description": "The list of tags associated with the public IP prefix."
},
@@ -434,19 +434,6 @@
},
"description": "Response for ListPublicIpPrefixes API service call."
},
- "IpTag": {
- "properties": {
- "ipTagType": {
- "type": "string",
- "description": "Gets or sets the ipTag type: Example FirstPartyUsage."
- },
- "tag": {
- "type": "string",
- "description": "Gets or sets value of the IpTag associated with the public IP. Example SQL, Storage etc"
- }
- },
- "description": "Contains the IpTag associated with the object"
- },
"ReferencedPublicIpAddress": {
"properties": {
"id": {
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/publicIpPrefix.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/publicIpPrefix.json
index 402e38c4c57a..f7ad1feadac6 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/publicIpPrefix.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/publicIpPrefix.json
@@ -352,7 +352,7 @@
"ipTags": {
"type": "array",
"items": {
- "$ref": "#/definitions/IpTag"
+ "$ref": "./publicIpAddress.json#/definitions/IpTag"
},
"description": "The list of tags associated with the public IP prefix."
},
@@ -434,19 +434,6 @@
},
"description": "Response for ListPublicIpPrefixes API service call."
},
- "IpTag": {
- "properties": {
- "ipTagType": {
- "type": "string",
- "description": "Gets or sets the ipTag type: Example FirstPartyUsage."
- },
- "tag": {
- "type": "string",
- "description": "Gets or sets value of the IpTag associated with the public IP. Example SQL, Storage etc"
- }
- },
- "description": "Contains the IpTag associated with the object"
- },
"ReferencedPublicIpAddress": {
"properties": {
"id": {
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorCreate.json
new file mode 100644
index 000000000000..411d05dc32b5
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorCreate.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "api-version": "2019-07-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1"
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"e7497f26-5f09-4559-900b-fe98f3dedb6f\"",
+ "properties": {
+ "provisioningState": "Updating",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "monitoringStatus": "NotStarted"
+ },
+ "location": "eastus",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ },
+ "201": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"e7497f26-5f09-4559-900b-fe98f3dedb6f\"",
+ "properties": {
+ "provisioningState": "Updating",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "monitoringStatus": "NotStarted"
+ },
+ "location": "eastus",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorDelete.json
new file mode 100644
index 000000000000..d54af3fda656
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-07-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorGet.json
new file mode 100644
index 000000000000..1db294284db9
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorGet.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "api-version": "2019-07-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "monitoringStatus": "Running"
+ },
+ "location": "centraluseuap",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorList.json
new file mode 100644
index 000000000000..bc32b181c856
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorList.json
@@ -0,0 +1,60 @@
+{
+ "parameters": {
+ "api-version": "2019-07-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "monitoringStatus": "Running"
+ },
+ "location": "centraluseuap",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ },
+ {
+ "name": "cm2",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm2",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm2",
+ "port": 0
+ },
+ "destination": {
+ "address": "google.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 30,
+ "autoStart": true,
+ "startTime": "2018-01-08T05:42:33.3387305Z",
+ "monitoringStatus": "Running"
+ },
+ "location": "centraluseuap",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorQuery.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorQuery.json
new file mode 100644
index 000000000000..6e0d79dbbe3b
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorQuery.json
@@ -0,0 +1,77 @@
+{
+ "parameters": {
+ "api-version": "2019-07-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sourceStatus": "Active",
+ "states": [
+ {
+ "connectionState": "Reachable",
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "endTime": "2018-01-08T05:12:41.5265438Z",
+ "evaluationState": "Completed",
+ "hops": [
+ {
+ "type": "Source",
+ "id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
+ "address": "10.1.1.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
+ "nextHopIds": [
+ "75c8d819-b208-4584-a311-1aa45ce753f9"
+ ],
+ "issues": []
+ },
+ {
+ "type": "VirtualNetwork",
+ "id": "75c8d819-b208-4584-a311-1aa45ce753f9",
+ "address": "192.168.100.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
+ "nextHopIds": [],
+ "issues": []
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "202": {
+ "body": {
+ "sourceStatus": "Active",
+ "states": [
+ {
+ "connectionState": "Reachable",
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "endTime": "2018-01-08T05:12:41.5265438Z",
+ "evaluationState": "Completed",
+ "hops": [
+ {
+ "type": "Source",
+ "id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
+ "address": "10.1.1.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
+ "nextHopIds": [
+ "75c8d819-b208-4584-a311-1aa45ce753f9"
+ ],
+ "issues": []
+ },
+ {
+ "type": "VirtualNetwork",
+ "id": "75c8d819-b208-4584-a311-1aa45ce753f9",
+ "address": "192.168.100.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
+ "nextHopIds": [],
+ "issues": []
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorStart.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorStart.json
new file mode 100644
index 000000000000..44fcb2c043e4
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorStart.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-07-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorStop.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorStop.json
new file mode 100644
index 000000000000..44fcb2c043e4
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorStop.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-07-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
new file mode 100644
index 000000000000..434148f3fdec
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "api-version": "2019-07-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1",
+ "parameters": {
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/`/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "startTime": "2019-09-04T02:48:10.6797393Z",
+ "monitoringStatus": "Running"
+ },
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors",
+ "location": "westcentralus"
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/networkWatcherConnectionMonitorV1.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/networkWatcherConnectionMonitorV1.json
new file mode 100644
index 000000000000..a8d8532ca25f
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-07-01/networkWatcherConnectionMonitorV1.json
@@ -0,0 +1,791 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "NetworkManagementClient",
+ "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.",
+ "version": "2019-07-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}": {
+ "put": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_CreateOrUpdate",
+ "description": "Create or update a connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitor"
+ },
+ "description": "Parameters that define the operation to create a connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Update successful. The operation returns the resulting network watcher resource.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "201": {
+ "description": "Create successful. The operation returns the resulting network watcher resource.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorCreate.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ },
+ "get": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Get",
+ "description": "Gets a connection monitor by name.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation returns a connection monitor.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorGet.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Delete",
+ "description": "Deletes the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Delete successful."
+ },
+ "202": {
+ "description": "Accepted. The operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorDelete.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ },
+ "patch": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_UpdateTags",
+ "description": "Update tags of the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the network watcher."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "./network.json#/definitions/TagsObject"
+ },
+ "description": "Parameters supplied to update connection monitor tags."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation returns updated connection monitor.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update connection monitor tags": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorUpdateTags.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop": {
+ "post": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Stop",
+ "description": "Stops the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation stops the connection monitor."
+ },
+ "202": {
+ "description": "Accepted. The operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Stop connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorStop.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/start": {
+ "post": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Start",
+ "description": "Starts the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation starts the connection monitor."
+ },
+ "202": {
+ "description": "Accepted. The operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Start connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorStart.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/query": {
+ "post": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Query",
+ "description": "Query a snapshot of the most recent connection states.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name given to the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful query of connection states.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorQueryResult"
+ }
+ },
+ "202": {
+ "description": "Accepted query of connection states.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorQueryResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Query connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorQuery.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors": {
+ "get": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_List",
+ "description": "Lists all connection monitors for the specified Network Watcher.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful connection monitor enumeration request.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "x-ms-examples": {
+ "List connection monitors": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorList.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ConnectionMonitor": {
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "Connection monitor location."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Connection monitor tags."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ConnectionMonitorParameters",
+ "description": "Properties of the connection monitor."
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "description": "Parameters that define the operation to create a connection monitor."
+ },
+ "ConnectionMonitorParameters": {
+ "properties": {
+ "source": {
+ "$ref": "#/definitions/ConnectionMonitorSource",
+ "description": "Describes the source of connection monitor."
+ },
+ "destination": {
+ "$ref": "#/definitions/ConnectionMonitorDestination",
+ "description": "Describes the destination of connection monitor."
+ },
+ "autoStart": {
+ "type": "boolean",
+ "default": true,
+ "description": "Determines if the connection monitor will start automatically once created."
+ },
+ "monitoringIntervalInSeconds": {
+ "type": "integer",
+ "default": 60,
+ "description": "Monitoring interval in seconds."
+ }
+ },
+ "required": [
+ "source",
+ "destination"
+ ],
+ "description": "Parameters that define the operation to create a connection monitor."
+ },
+ "ConnectionMonitorSource": {
+ "properties": {
+ "resourceId": {
+ "type": "string",
+ "description": "The ID of the resource used as the source by connection monitor."
+ },
+ "port": {
+ "type": "integer",
+ "description": "The source port used by connection monitor."
+ }
+ },
+ "required": [
+ "resourceId"
+ ],
+ "description": "Describes the source of connection monitor."
+ },
+ "ConnectionMonitorDestination": {
+ "properties": {
+ "resourceId": {
+ "type": "string",
+ "description": "The ID of the resource used as the destination by connection monitor."
+ },
+ "address": {
+ "type": "string",
+ "description": "Address of the connection monitor destination (IP or domain name)."
+ },
+ "port": {
+ "type": "integer",
+ "description": "The destination port used by connection monitor."
+ }
+ },
+ "description": "Describes the destination of connection monitor."
+ },
+ "ConnectionStateSnapshot": {
+ "properties": {
+ "connectionState": {
+ "type": "string",
+ "enum": [
+ "Reachable",
+ "Unreachable",
+ "Unknown"
+ ],
+ "x-ms-enum": {
+ "name": "ConnectionState",
+ "modelAsString": true
+ },
+ "description": "The connection state."
+ },
+ "startTime": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The start time of the connection snapshot."
+ },
+ "endTime": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The end time of the connection snapshot."
+ },
+ "evaluationState": {
+ "type": "string",
+ "enum": [
+ "NotStarted",
+ "InProgress",
+ "Completed"
+ ],
+ "x-ms-enum": {
+ "name": "EvaluationState",
+ "modelAsString": true
+ },
+ "description": "Connectivity analysis evaluation state."
+ },
+ "avgLatencyInMs": {
+ "type": "integer",
+ "description": "Average latency in ms."
+ },
+ "minLatencyInMs": {
+ "type": "integer",
+ "description": "Minimum latency in ms."
+ },
+ "maxLatencyInMs": {
+ "type": "integer",
+ "description": "Maximum latency in ms."
+ },
+ "probesSent": {
+ "type": "integer",
+ "description": "The number of sent probes."
+ },
+ "probesFailed": {
+ "type": "integer",
+ "description": "The number of failed probes."
+ },
+ "hops": {
+ "readOnly": true,
+ "type": "array",
+ "description": "List of hops between the source and the destination.",
+ "items": {
+ "$ref": "./networkWatcher.json#/definitions/ConnectivityHop"
+ }
+ }
+ },
+ "description": "Connection state snapshot."
+ },
+ "ConnectionMonitorListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ },
+ "description": "Information about connection monitors."
+ }
+ },
+ "description": "List of connection monitors."
+ },
+ "ConnectionMonitorResult": {
+ "x-ms-azure-resource": true,
+ "properties": {
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the connection monitor."
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "ID of the connection monitor."
+ },
+ "etag": {
+ "type": "string",
+ "default": "A unique read-only string that changes whenever the resource is updated.",
+ "description": "A unique read-only string that changes whenever the resource is updated."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Connection monitor type."
+ },
+ "location": {
+ "type": "string",
+ "description": "Connection monitor location."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Connection monitor tags."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ConnectionMonitorResultProperties",
+ "description": "Properties of the connection monitor result."
+ }
+ },
+ "description": "Information about the connection monitor."
+ },
+ "ConnectionMonitorResultProperties": {
+ "properties": {
+ "provisioningState": {
+ "$ref": "./network.json#/definitions/ProvisioningState",
+ "description": "The provisioning state of the connection monitor."
+ },
+ "startTime": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time when the connection monitor was started."
+ },
+ "monitoringStatus": {
+ "type": "string",
+ "description": "The monitoring status of the connection monitor."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ConnectionMonitorParameters"
+ }
+ ],
+ "description": "Describes the properties of a connection monitor."
+ },
+ "ConnectionMonitorQueryResult": {
+ "properties": {
+ "sourceStatus": {
+ "type": "string",
+ "enum": [
+ "Unknown",
+ "Active",
+ "Inactive"
+ ],
+ "x-ms-enum": {
+ "name": "ConnectionMonitorSourceStatus",
+ "modelAsString": true
+ },
+ "description": "Status of connection monitor source."
+ },
+ "states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectionStateSnapshot"
+ },
+ "description": "Information about connection states."
+ }
+ },
+ "description": "List of connection states snapshots."
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorCreate.json
new file mode 100644
index 000000000000..ded55f8539ea
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorCreate.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "api-version": "2019-08-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1"
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"e7497f26-5f09-4559-900b-fe98f3dedb6f\"",
+ "properties": {
+ "provisioningState": "Updating",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "monitoringStatus": "NotStarted"
+ },
+ "location": "eastus",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ },
+ "201": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"e7497f26-5f09-4559-900b-fe98f3dedb6f\"",
+ "properties": {
+ "provisioningState": "Updating",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "monitoringStatus": "NotStarted"
+ },
+ "location": "eastus",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorDelete.json
new file mode 100644
index 000000000000..97baf9c8c858
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-08-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorGet.json
new file mode 100644
index 000000000000..e6a1c933ec0e
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorGet.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "api-version": "2019-08-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "monitoringStatus": "Running"
+ },
+ "location": "centraluseuap",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorList.json
new file mode 100644
index 000000000000..6cd21c098480
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorList.json
@@ -0,0 +1,60 @@
+{
+ "parameters": {
+ "api-version": "2019-08-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "monitoringStatus": "Running"
+ },
+ "location": "centraluseuap",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ },
+ {
+ "name": "cm2",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm2",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm2",
+ "port": 0
+ },
+ "destination": {
+ "address": "google.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 30,
+ "autoStart": true,
+ "startTime": "2018-01-08T05:42:33.3387305Z",
+ "monitoringStatus": "Running"
+ },
+ "location": "centraluseuap",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorQuery.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorQuery.json
new file mode 100644
index 000000000000..b23233964381
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorQuery.json
@@ -0,0 +1,77 @@
+{
+ "parameters": {
+ "api-version": "2019-08-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sourceStatus": "Active",
+ "states": [
+ {
+ "connectionState": "Reachable",
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "endTime": "2018-01-08T05:12:41.5265438Z",
+ "evaluationState": "Completed",
+ "hops": [
+ {
+ "type": "Source",
+ "id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
+ "address": "10.1.1.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
+ "nextHopIds": [
+ "75c8d819-b208-4584-a311-1aa45ce753f9"
+ ],
+ "issues": []
+ },
+ {
+ "type": "VirtualNetwork",
+ "id": "75c8d819-b208-4584-a311-1aa45ce753f9",
+ "address": "192.168.100.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
+ "nextHopIds": [],
+ "issues": []
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "202": {
+ "body": {
+ "sourceStatus": "Active",
+ "states": [
+ {
+ "connectionState": "Reachable",
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "endTime": "2018-01-08T05:12:41.5265438Z",
+ "evaluationState": "Completed",
+ "hops": [
+ {
+ "type": "Source",
+ "id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
+ "address": "10.1.1.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
+ "nextHopIds": [
+ "75c8d819-b208-4584-a311-1aa45ce753f9"
+ ],
+ "issues": []
+ },
+ {
+ "type": "VirtualNetwork",
+ "id": "75c8d819-b208-4584-a311-1aa45ce753f9",
+ "address": "192.168.100.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
+ "nextHopIds": [],
+ "issues": []
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorStart.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorStart.json
new file mode 100644
index 000000000000..8a2556a89b8a
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorStart.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-08-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorStop.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorStop.json
new file mode 100644
index 000000000000..8a2556a89b8a
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorStop.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-08-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
new file mode 100644
index 000000000000..410634acc334
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "api-version": "2019-08-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1",
+ "parameters": {
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/`/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "startTime": "2019-09-04T02:48:10.6797393Z",
+ "monitoringStatus": "Running"
+ },
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors",
+ "location": "westcentralus"
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/networkWatcherConnectionMonitorV1.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/networkWatcherConnectionMonitorV1.json
new file mode 100644
index 000000000000..c5fac632fe81
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-08-01/networkWatcherConnectionMonitorV1.json
@@ -0,0 +1,791 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "NetworkManagementClient",
+ "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.",
+ "version": "2019-08-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}": {
+ "put": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_CreateOrUpdate",
+ "description": "Create or update a connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitor"
+ },
+ "description": "Parameters that define the operation to create a connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Update successful. The operation returns the resulting network watcher resource.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "201": {
+ "description": "Create successful. The operation returns the resulting network watcher resource.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorCreate.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ },
+ "get": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Get",
+ "description": "Gets a connection monitor by name.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation returns a connection monitor.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorGet.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Delete",
+ "description": "Deletes the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Delete successful."
+ },
+ "202": {
+ "description": "Accepted. The operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorDelete.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ },
+ "patch": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_UpdateTags",
+ "description": "Update tags of the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the network watcher."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "./network.json#/definitions/TagsObject"
+ },
+ "description": "Parameters supplied to update connection monitor tags."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation returns updated connection monitor.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update connection monitor tags": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorUpdateTags.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop": {
+ "post": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Stop",
+ "description": "Stops the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation stops the connection monitor."
+ },
+ "202": {
+ "description": "Accepted. The operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Stop connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorStop.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/start": {
+ "post": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Start",
+ "description": "Starts the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation starts the connection monitor."
+ },
+ "202": {
+ "description": "Accepted. The operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Start connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorStart.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/query": {
+ "post": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Query",
+ "description": "Query a snapshot of the most recent connection states.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name given to the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful query of connection states.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorQueryResult"
+ }
+ },
+ "202": {
+ "description": "Accepted query of connection states.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorQueryResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Query connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorQuery.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors": {
+ "get": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_List",
+ "description": "Lists all connection monitors for the specified Network Watcher.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful connection monitor enumeration request.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "x-ms-examples": {
+ "List connection monitors": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorList.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ConnectionMonitor": {
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "Connection monitor location."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Connection monitor tags."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ConnectionMonitorParameters",
+ "description": "Properties of the connection monitor."
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "description": "Parameters that define the operation to create a connection monitor."
+ },
+ "ConnectionMonitorParameters": {
+ "properties": {
+ "source": {
+ "$ref": "#/definitions/ConnectionMonitorSource",
+ "description": "Describes the source of connection monitor."
+ },
+ "destination": {
+ "$ref": "#/definitions/ConnectionMonitorDestination",
+ "description": "Describes the destination of connection monitor."
+ },
+ "autoStart": {
+ "type": "boolean",
+ "default": true,
+ "description": "Determines if the connection monitor will start automatically once created."
+ },
+ "monitoringIntervalInSeconds": {
+ "type": "integer",
+ "default": 60,
+ "description": "Monitoring interval in seconds."
+ }
+ },
+ "required": [
+ "source",
+ "destination"
+ ],
+ "description": "Parameters that define the operation to create a connection monitor."
+ },
+ "ConnectionMonitorSource": {
+ "properties": {
+ "resourceId": {
+ "type": "string",
+ "description": "The ID of the resource used as the source by connection monitor."
+ },
+ "port": {
+ "type": "integer",
+ "description": "The source port used by connection monitor."
+ }
+ },
+ "required": [
+ "resourceId"
+ ],
+ "description": "Describes the source of connection monitor."
+ },
+ "ConnectionMonitorDestination": {
+ "properties": {
+ "resourceId": {
+ "type": "string",
+ "description": "The ID of the resource used as the destination by connection monitor."
+ },
+ "address": {
+ "type": "string",
+ "description": "Address of the connection monitor destination (IP or domain name)."
+ },
+ "port": {
+ "type": "integer",
+ "description": "The destination port used by connection monitor."
+ }
+ },
+ "description": "Describes the destination of connection monitor."
+ },
+ "ConnectionStateSnapshot": {
+ "properties": {
+ "connectionState": {
+ "type": "string",
+ "enum": [
+ "Reachable",
+ "Unreachable",
+ "Unknown"
+ ],
+ "x-ms-enum": {
+ "name": "ConnectionState",
+ "modelAsString": true
+ },
+ "description": "The connection state."
+ },
+ "startTime": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The start time of the connection snapshot."
+ },
+ "endTime": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The end time of the connection snapshot."
+ },
+ "evaluationState": {
+ "type": "string",
+ "enum": [
+ "NotStarted",
+ "InProgress",
+ "Completed"
+ ],
+ "x-ms-enum": {
+ "name": "EvaluationState",
+ "modelAsString": true
+ },
+ "description": "Connectivity analysis evaluation state."
+ },
+ "avgLatencyInMs": {
+ "type": "integer",
+ "description": "Average latency in ms."
+ },
+ "minLatencyInMs": {
+ "type": "integer",
+ "description": "Minimum latency in ms."
+ },
+ "maxLatencyInMs": {
+ "type": "integer",
+ "description": "Maximum latency in ms."
+ },
+ "probesSent": {
+ "type": "integer",
+ "description": "The number of sent probes."
+ },
+ "probesFailed": {
+ "type": "integer",
+ "description": "The number of failed probes."
+ },
+ "hops": {
+ "readOnly": true,
+ "type": "array",
+ "description": "List of hops between the source and the destination.",
+ "items": {
+ "$ref": "./networkWatcher.json#/definitions/ConnectivityHop"
+ }
+ }
+ },
+ "description": "Connection state snapshot."
+ },
+ "ConnectionMonitorListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ },
+ "description": "Information about connection monitors."
+ }
+ },
+ "description": "List of connection monitors."
+ },
+ "ConnectionMonitorResult": {
+ "x-ms-azure-resource": true,
+ "properties": {
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the connection monitor."
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "ID of the connection monitor."
+ },
+ "etag": {
+ "type": "string",
+ "default": "A unique read-only string that changes whenever the resource is updated.",
+ "description": "A unique read-only string that changes whenever the resource is updated."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Connection monitor type."
+ },
+ "location": {
+ "type": "string",
+ "description": "Connection monitor location."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Connection monitor tags."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ConnectionMonitorResultProperties",
+ "description": "Properties of the connection monitor result."
+ }
+ },
+ "description": "Information about the connection monitor."
+ },
+ "ConnectionMonitorResultProperties": {
+ "properties": {
+ "provisioningState": {
+ "$ref": "./network.json#/definitions/ProvisioningState",
+ "description": "The provisioning state of the connection monitor."
+ },
+ "startTime": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time when the connection monitor was started."
+ },
+ "monitoringStatus": {
+ "type": "string",
+ "description": "The monitoring status of the connection monitor."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ConnectionMonitorParameters"
+ }
+ ],
+ "description": "Describes the properties of a connection monitor."
+ },
+ "ConnectionMonitorQueryResult": {
+ "properties": {
+ "sourceStatus": {
+ "type": "string",
+ "enum": [
+ "Unknown",
+ "Active",
+ "Inactive"
+ ],
+ "x-ms-enum": {
+ "name": "ConnectionMonitorSourceStatus",
+ "modelAsString": true
+ },
+ "description": "Status of connection monitor source."
+ },
+ "states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectionStateSnapshot"
+ },
+ "description": "Information about connection states."
+ }
+ },
+ "description": "List of connection states snapshots."
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorCreate.json
new file mode 100644
index 000000000000..dd3c653448ce
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorCreate.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "api-version": "2019-09-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1"
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"e7497f26-5f09-4559-900b-fe98f3dedb6f\"",
+ "properties": {
+ "provisioningState": "Updating",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "monitoringStatus": "NotStarted"
+ },
+ "location": "eastus",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ },
+ "201": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"e7497f26-5f09-4559-900b-fe98f3dedb6f\"",
+ "properties": {
+ "provisioningState": "Updating",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "monitoringStatus": "NotStarted"
+ },
+ "location": "eastus",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorDelete.json
new file mode 100644
index 000000000000..9af119f6dcf7
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-09-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "204": {},
+ "202": {}
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorGet.json
new file mode 100644
index 000000000000..c0e245be16d8
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorGet.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "api-version": "2019-09-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "monitoringStatus": "Running"
+ },
+ "location": "centraluseuap",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorList.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorList.json
new file mode 100644
index 000000000000..55f35935fd58
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorList.json
@@ -0,0 +1,60 @@
+{
+ "parameters": {
+ "api-version": "2019-09-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "cm1",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "monitoringStatus": "Running"
+ },
+ "location": "centraluseuap",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ },
+ {
+ "name": "cm2",
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm2",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm2",
+ "port": 0
+ },
+ "destination": {
+ "address": "google.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 30,
+ "autoStart": true,
+ "startTime": "2018-01-08T05:42:33.3387305Z",
+ "monitoringStatus": "Running"
+ },
+ "location": "centraluseuap",
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorQuery.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorQuery.json
new file mode 100644
index 000000000000..eec8acc6262b
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorQuery.json
@@ -0,0 +1,77 @@
+{
+ "parameters": {
+ "api-version": "2019-09-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sourceStatus": "Active",
+ "states": [
+ {
+ "connectionState": "Reachable",
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "endTime": "2018-01-08T05:12:41.5265438Z",
+ "evaluationState": "Completed",
+ "hops": [
+ {
+ "type": "Source",
+ "id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
+ "address": "10.1.1.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
+ "nextHopIds": [
+ "75c8d819-b208-4584-a311-1aa45ce753f9"
+ ],
+ "issues": []
+ },
+ {
+ "type": "VirtualNetwork",
+ "id": "75c8d819-b208-4584-a311-1aa45ce753f9",
+ "address": "192.168.100.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
+ "nextHopIds": [],
+ "issues": []
+ }
+ ]
+ }
+ ]
+ }
+ },
+ "202": {
+ "body": {
+ "sourceStatus": "Active",
+ "states": [
+ {
+ "connectionState": "Reachable",
+ "startTime": "2018-01-08T03:42:33.3387305Z",
+ "endTime": "2018-01-08T05:12:41.5265438Z",
+ "evaluationState": "Completed",
+ "hops": [
+ {
+ "type": "Source",
+ "id": "7dbbe7aa-60ba-4650-831e-63d775d38e9e",
+ "address": "10.1.1.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic0/ipConfigurations/ipconfig1",
+ "nextHopIds": [
+ "75c8d819-b208-4584-a311-1aa45ce753f9"
+ ],
+ "issues": []
+ },
+ {
+ "type": "VirtualNetwork",
+ "id": "75c8d819-b208-4584-a311-1aa45ce753f9",
+ "address": "192.168.100.4",
+ "resourceId": "subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1",
+ "nextHopIds": [],
+ "issues": []
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorStart.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorStart.json
new file mode 100644
index 000000000000..e0ecf016a948
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorStart.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-09-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorStop.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorStop.json
new file mode 100644
index 000000000000..e0ecf016a948
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorStop.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-09-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
new file mode 100644
index 000000000000..2db7891c5cba
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "api-version": "2019-09-01",
+ "subscriptionId": "subid",
+ "resourceGroupName": "rg1",
+ "networkWatcherName": "nw1",
+ "connectionMonitorName": "cm1",
+ "parameters": {
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "cm1",
+ "id": "/subscriptions/subid/`/rg1/providers/Microsoft.Network/networkWatchers/nw1/connectionMonitors/cm1",
+ "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "source": {
+ "resourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "port": 0
+ },
+ "destination": {
+ "address": "bing.com",
+ "port": 80
+ },
+ "monitoringIntervalInSeconds": 60,
+ "autoStart": true,
+ "startTime": "2019-09-04T02:48:10.6797393Z",
+ "monitoringStatus": "Running"
+ },
+ "tags": {
+ "tag1": "value1",
+ "tag2": "value2"
+ },
+ "type": "Microsoft.Network/networkWatchers/connectionMonitors",
+ "location": "westcentralus"
+ }
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/networkWatcherConnectionMonitorV1.json b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/networkWatcherConnectionMonitorV1.json
new file mode 100644
index 000000000000..29245b6b2c00
--- /dev/null
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2019-09-01/networkWatcherConnectionMonitorV1.json
@@ -0,0 +1,791 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "NetworkManagementClient",
+ "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.",
+ "version": "2019-09-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}": {
+ "put": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_CreateOrUpdate",
+ "description": "Create or update a connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitor"
+ },
+ "description": "Parameters that define the operation to create a connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Update successful. The operation returns the resulting network watcher resource.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "201": {
+ "description": "Create successful. The operation returns the resulting network watcher resource.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorCreate.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ }
+ },
+ "get": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Get",
+ "description": "Gets a connection monitor by name.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation returns a connection monitor.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorGet.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Delete",
+ "description": "Deletes the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Delete successful."
+ },
+ "202": {
+ "description": "Accepted. The operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorDelete.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ },
+ "patch": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_UpdateTags",
+ "description": "Update tags of the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the network watcher."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "./network.json#/definitions/TagsObject"
+ },
+ "description": "Parameters supplied to update connection monitor tags."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation returns updated connection monitor.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update connection monitor tags": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorUpdateTags.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop": {
+ "post": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Stop",
+ "description": "Stops the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation stops the connection monitor."
+ },
+ "202": {
+ "description": "Accepted. The operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Stop connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorStop.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/start": {
+ "post": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Start",
+ "description": "Starts the specified connection monitor.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful. The operation starts the connection monitor."
+ },
+ "202": {
+ "description": "Accepted. The operation will complete asynchronously."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Start connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorStart.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/query": {
+ "post": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_Query",
+ "description": "Query a snapshot of the most recent connection states.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "name": "connectionMonitorName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name given to the connection monitor."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful query of connection states.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorQueryResult"
+ }
+ },
+ "202": {
+ "description": "Accepted query of connection states.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorQueryResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Query connection monitor": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorQuery.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors": {
+ "get": {
+ "tags": [
+ "ConnectionMonitors"
+ ],
+ "operationId": "ConnectionMonitors_List",
+ "description": "Lists all connection monitors for the specified Network Watcher.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing Network Watcher."
+ },
+ {
+ "name": "networkWatcherName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Network Watcher resource."
+ },
+ {
+ "$ref": "./network.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "./network.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful connection monitor enumeration request.",
+ "schema": {
+ "$ref": "#/definitions/ConnectionMonitorListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./networkWatcher.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ },
+ "x-ms-examples": {
+ "List connection monitors": {
+ "$ref": "./examples/NetworkWatcherConnectionMonitorList.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ConnectionMonitor": {
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "Connection monitor location."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Connection monitor tags."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ConnectionMonitorParameters",
+ "description": "Properties of the connection monitor."
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "description": "Parameters that define the operation to create a connection monitor."
+ },
+ "ConnectionMonitorParameters": {
+ "properties": {
+ "source": {
+ "$ref": "#/definitions/ConnectionMonitorSource",
+ "description": "Describes the source of connection monitor."
+ },
+ "destination": {
+ "$ref": "#/definitions/ConnectionMonitorDestination",
+ "description": "Describes the destination of connection monitor."
+ },
+ "autoStart": {
+ "type": "boolean",
+ "default": true,
+ "description": "Determines if the connection monitor will start automatically once created."
+ },
+ "monitoringIntervalInSeconds": {
+ "type": "integer",
+ "default": 60,
+ "description": "Monitoring interval in seconds."
+ }
+ },
+ "required": [
+ "source",
+ "destination"
+ ],
+ "description": "Parameters that define the operation to create a connection monitor."
+ },
+ "ConnectionMonitorSource": {
+ "properties": {
+ "resourceId": {
+ "type": "string",
+ "description": "The ID of the resource used as the source by connection monitor."
+ },
+ "port": {
+ "type": "integer",
+ "description": "The source port used by connection monitor."
+ }
+ },
+ "required": [
+ "resourceId"
+ ],
+ "description": "Describes the source of connection monitor."
+ },
+ "ConnectionMonitorDestination": {
+ "properties": {
+ "resourceId": {
+ "type": "string",
+ "description": "The ID of the resource used as the destination by connection monitor."
+ },
+ "address": {
+ "type": "string",
+ "description": "Address of the connection monitor destination (IP or domain name)."
+ },
+ "port": {
+ "type": "integer",
+ "description": "The destination port used by connection monitor."
+ }
+ },
+ "description": "Describes the destination of connection monitor."
+ },
+ "ConnectionStateSnapshot": {
+ "properties": {
+ "connectionState": {
+ "type": "string",
+ "enum": [
+ "Reachable",
+ "Unreachable",
+ "Unknown"
+ ],
+ "x-ms-enum": {
+ "name": "ConnectionState",
+ "modelAsString": true
+ },
+ "description": "The connection state."
+ },
+ "startTime": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The start time of the connection snapshot."
+ },
+ "endTime": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The end time of the connection snapshot."
+ },
+ "evaluationState": {
+ "type": "string",
+ "enum": [
+ "NotStarted",
+ "InProgress",
+ "Completed"
+ ],
+ "x-ms-enum": {
+ "name": "EvaluationState",
+ "modelAsString": true
+ },
+ "description": "Connectivity analysis evaluation state."
+ },
+ "avgLatencyInMs": {
+ "type": "integer",
+ "description": "Average latency in ms."
+ },
+ "minLatencyInMs": {
+ "type": "integer",
+ "description": "Minimum latency in ms."
+ },
+ "maxLatencyInMs": {
+ "type": "integer",
+ "description": "Maximum latency in ms."
+ },
+ "probesSent": {
+ "type": "integer",
+ "description": "The number of sent probes."
+ },
+ "probesFailed": {
+ "type": "integer",
+ "description": "The number of failed probes."
+ },
+ "hops": {
+ "readOnly": true,
+ "type": "array",
+ "description": "List of hops between the source and the destination.",
+ "items": {
+ "$ref": "./networkWatcher.json#/definitions/ConnectivityHop"
+ }
+ }
+ },
+ "description": "Connection state snapshot."
+ },
+ "ConnectionMonitorListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectionMonitorResult"
+ },
+ "description": "Information about connection monitors."
+ }
+ },
+ "description": "List of connection monitors."
+ },
+ "ConnectionMonitorResult": {
+ "x-ms-azure-resource": true,
+ "properties": {
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of the connection monitor."
+ },
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "ID of the connection monitor."
+ },
+ "etag": {
+ "type": "string",
+ "default": "A unique read-only string that changes whenever the resource is updated.",
+ "description": "A unique read-only string that changes whenever the resource is updated."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Connection monitor type."
+ },
+ "location": {
+ "type": "string",
+ "description": "Connection monitor location."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Connection monitor tags."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ConnectionMonitorResultProperties",
+ "description": "Properties of the connection monitor result."
+ }
+ },
+ "description": "Information about the connection monitor."
+ },
+ "ConnectionMonitorResultProperties": {
+ "properties": {
+ "provisioningState": {
+ "$ref": "./network.json#/definitions/ProvisioningState",
+ "description": "The provisioning state of the connection monitor."
+ },
+ "startTime": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time when the connection monitor was started."
+ },
+ "monitoringStatus": {
+ "type": "string",
+ "description": "The monitoring status of the connection monitor."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ConnectionMonitorParameters"
+ }
+ ],
+ "description": "Describes the properties of a connection monitor."
+ },
+ "ConnectionMonitorQueryResult": {
+ "properties": {
+ "sourceStatus": {
+ "type": "string",
+ "enum": [
+ "Unknown",
+ "Active",
+ "Inactive"
+ ],
+ "x-ms-enum": {
+ "name": "ConnectionMonitorSourceStatus",
+ "modelAsString": true
+ },
+ "description": "Status of connection monitor source."
+ },
+ "states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectionStateSnapshot"
+ },
+ "description": "Information about connection states."
+ }
+ },
+ "description": "List of connection states snapshots."
+ }
+ }
+}
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayGet.json
index 3fe43a9ff418..25ab4422254f 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayGet.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayGet.json
@@ -37,9 +37,6 @@
}
],
"vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "3.3.3.3"
- ],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 2,
"allocatedIpAddresses": [
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayGetConnectionHealth.json b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayGetConnectionHealth.json
index c6fb30e3278d..89134a563d71 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayGetConnectionHealth.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayGetConnectionHealth.json
@@ -37,9 +37,6 @@
}
],
"vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "3.3.3.3"
- ],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 2,
"allocatedIpAddresses": [
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayList.json b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayList.json
index 430b922004bd..51239a91c833 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayList.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayList.json
@@ -38,9 +38,6 @@
}
],
"vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "3.3.3.3"
- ],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 2,
"allocatedIpAddresses": [
@@ -82,9 +79,6 @@
}
],
"vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "4.4.4.4"
- ],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 2,
"allocatedIpAddresses": [
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayListByResourceGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayListByResourceGroup.json
index a0ba28a347a3..20c154092c86 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayListByResourceGroup.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayListByResourceGroup.json
@@ -36,9 +36,6 @@
}
],
"vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "3.3.3.3"
- ],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 2,
"allocatedIpAddresses": [
@@ -78,9 +75,6 @@
}
],
"vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "4.4.4.4"
- ],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 2,
"allocatedIpAddresses": [
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayPut.json b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayPut.json
index 135eb2fcbab8..3770a9117566 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayPut.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayPut.json
@@ -29,11 +29,7 @@
}
}
],
- "vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "1.1.1.1",
- "2.2.2.2"
- ]
+ "vpnGatewayScaleUnit": 1
}
}
},
@@ -69,10 +65,6 @@
}
],
"vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "1.1.1.1",
- "2.2.2.2"
- ],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 0,
"allocatedIpAddresses": [],
@@ -113,10 +105,6 @@
}
],
"vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "1.1.1.1",
- "2.2.2.2"
- ],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 0,
"allocatedIpAddresses": [],
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayUpdateTags.json
index 97dd2ec39a55..0b971bd908c7 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayUpdateTags.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/examples/P2SVpnGatewayUpdateTags.json
@@ -45,9 +45,6 @@
}
],
"vpnGatewayScaleUnit": 1,
- "customDnsServers": [
- "3.3.3.3"
- ],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 2,
"allocatedIpAddresses": [
diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/virtualWan.json b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/virtualWan.json
index 1d670c5f0246..3062c1da736d 100644
--- a/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/virtualWan.json
+++ b/specification/network/resource-manager/Microsoft.Network/stable/2020-04-01/virtualWan.json
@@ -5194,13 +5194,6 @@
"readOnly": true,
"$ref": "#/definitions/VpnClientConnectionHealth",
"description": "All P2S VPN clients' connection health status."
- },
- "customDnsServers": {
- "type": "array",
- "description": "List of all customer specified DNS servers IP addresses.",
- "items": {
- "type": "string"
- }
}
},
"description": "Parameters for P2SVpnGateway."
diff --git a/specification/network/resource-manager/readme.go.md b/specification/network/resource-manager/readme.go.md
index c4252d32fa5d..a1304cfb2ee8 100644
--- a/specification/network/resource-manager/readme.go.md
+++ b/specification/network/resource-manager/readme.go.md
@@ -45,6 +45,15 @@ batch:
- tag: package-2015-05-preview
```
+### Tag: package-2020-04 and go
+
+These settings apply only when `--tag=package-2020-04 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-04' && $(go)
+output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-04-01/$(namespace)
+```
+
### Tag: package-2020-03 and go
These settings apply only when `--tag=package-2020-03 --go` is specified on the command line.
diff --git a/specification/network/resource-manager/readme.java.md b/specification/network/resource-manager/readme.java.md
index 4ac565dd6d7e..2c46f72efaf5 100644
--- a/specification/network/resource-manager/readme.java.md
+++ b/specification/network/resource-manager/readme.java.md
@@ -16,6 +16,7 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-network
``` yaml $(java) && $(multiapi)
batch:
+ - tag: package-2020-04
- tag: package-2020-03
- tag: package-2019-09
- tag: package-2019-08
@@ -25,6 +26,19 @@ batch:
- tag: package-2019-02
```
+### Tag: package-2020-04 and java
+
+These settings apply only when `--tag=package-2020-04 --java` is specified on the command line.
+Please also specify `--azure-libraries-for-java-folder=`.
+
+``` yaml $(tag) == 'package-2020-04' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.network.v2020_04_01
+ output-folder: $(azure-libraries-for-java-folder)/sdk/network/mgmt-v2020_04_01
+ regenerate-manager: true
+ generate-interface: true
+```
+
### Tag: package-2020-03 and java
These settings apply only when `--tag=package-2020-03 --java` is specified on the command line.
diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md
index e18a9571b6e4..45312080b20f 100644
--- a/specification/network/resource-manager/readme.md
+++ b/specification/network/resource-manager/readme.md
@@ -270,7 +270,7 @@ input-file:
- Microsoft.Network/stable/2019-09-01/networkProfile.json
- Microsoft.Network/stable/2019-09-01/networkSecurityGroup.json
- Microsoft.Network/stable/2019-09-01/networkWatcher.json
- - Microsoft.Network/stable/2019-06-01/networkWatcherConnectionMonitorV1.json
+ - Microsoft.Network/stable/2019-09-01/networkWatcherConnectionMonitorV1.json
- Microsoft.Network/stable/2019-09-01/operation.json
- Microsoft.Network/stable/2019-09-01/privateEndpoint.json
- Microsoft.Network/stable/2019-09-01/privateLinkService.json
@@ -321,7 +321,7 @@ input-file:
- Microsoft.Network/stable/2019-08-01/networkProfile.json
- Microsoft.Network/stable/2019-08-01/networkSecurityGroup.json
- Microsoft.Network/stable/2019-08-01/networkWatcher.json
- - Microsoft.Network/stable/2019-06-01/networkWatcherConnectionMonitorV1.json
+ - Microsoft.Network/stable/2019-08-01/networkWatcherConnectionMonitorV1.json
- Microsoft.Network/stable/2019-08-01/operation.json
- Microsoft.Network/stable/2019-08-01/privateEndpoint.json
- Microsoft.Network/stable/2019-08-01/privateLinkService.json
@@ -371,7 +371,7 @@ input-file:
- Microsoft.Network/stable/2019-07-01/networkProfile.json
- Microsoft.Network/stable/2019-07-01/networkSecurityGroup.json
- Microsoft.Network/stable/2019-07-01/networkWatcher.json
- - Microsoft.Network/stable/2019-06-01/networkWatcherConnectionMonitorV1.json
+ - Microsoft.Network/stable/2019-07-01/networkWatcherConnectionMonitorV1.json
- Microsoft.Network/stable/2019-07-01/operation.json
- Microsoft.Network/stable/2019-07-01/privateEndpoint.json
- Microsoft.Network/stable/2019-07-01/privateLinkService.json
@@ -1515,6 +1515,7 @@ swagger-to-sdk:
after_scripts:
- python ./scripts/multiapi_init_gen.py azure-mgmt-network
- python ./scripts/trim_aio.py ./sdk/network/azure-mgmt-network
+ - repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
@@ -1773,7 +1774,7 @@ input-file:
- $(this-folder)/Microsoft.Network/stable/2019-09-01/networkProfile.json
- $(this-folder)/Microsoft.Network/stable/2019-09-01/networkSecurityGroup.json
- $(this-folder)/Microsoft.Network/stable/2019-09-01/networkWatcher.json
- - $(this-folder)/Microsoft.Network/stable/2019-06-01/networkWatcherConnectionMonitorV1.json
+ - $(this-folder)/Microsoft.Network/stable/2019-09-01/networkWatcherConnectionMonitorV1.json
- $(this-folder)/Microsoft.Network/stable/2019-09-01/operation.json
- $(this-folder)/Microsoft.Network/stable/2019-09-01/privateEndpoint.json
- $(this-folder)/Microsoft.Network/stable/2019-09-01/privateLinkService.json
@@ -1816,6 +1817,7 @@ input-file:
- $(this-folder)/Microsoft.Network/stable/2019-08-01/networkProfile.json
- $(this-folder)/Microsoft.Network/stable/2019-08-01/networkSecurityGroup.json
- $(this-folder)/Microsoft.Network/stable/2019-08-01/networkWatcher.json
+ - $(this-folder)/Microsoft.Network/stable/2019-08-01/networkWatcherConnectionMonitorV1.json
- $(this-folder)/Microsoft.Network/stable/2019-08-01/operation.json
- $(this-folder)/Microsoft.Network/stable/2019-08-01/privateEndpoint.json
- $(this-folder)/Microsoft.Network/stable/2019-08-01/privateLinkService.json
@@ -1857,6 +1859,7 @@ input-file:
- $(this-folder)/Microsoft.Network/stable/2019-07-01/networkProfile.json
- $(this-folder)/Microsoft.Network/stable/2019-07-01/networkSecurityGroup.json
- $(this-folder)/Microsoft.Network/stable/2019-07-01/networkWatcher.json
+ - $(this-folder)/Microsoft.Network/stable/2019-07-01/networkWatcherConnectionMonitorV1.json
- $(this-folder)/Microsoft.Network/stable/2019-07-01/operation.json
- $(this-folder)/Microsoft.Network/stable/2019-07-01/privateEndpoint.json
- $(this-folder)/Microsoft.Network/stable/2019-07-01/privateLinkService.json
@@ -1898,6 +1901,7 @@ input-file:
- $(this-folder)/Microsoft.Network/stable/2019-06-01/networkProfile.json
- $(this-folder)/Microsoft.Network/stable/2019-06-01/networkSecurityGroup.json
- $(this-folder)/Microsoft.Network/stable/2019-06-01/networkWatcher.json
+ - $(this-folder)/Microsoft.Network/stable/2019-06-01/networkWatcherConnectionMonitorV1.json
- $(this-folder)/Microsoft.Network/stable/2019-06-01/operation.json
- $(this-folder)/Microsoft.Network/stable/2019-06-01/privateEndpoint.json
- $(this-folder)/Microsoft.Network/stable/2019-06-01/privateLinkService.json
diff --git a/specification/network/resource-manager/readme.python.md b/specification/network/resource-manager/readme.python.md
index 62dd0ca4f44a..b76eb2ba5ee4 100644
--- a/specification/network/resource-manager/readme.python.md
+++ b/specification/network/resource-manager/readme.python.md
@@ -27,6 +27,7 @@ Generate all API versions currently shipped for this package
```yaml $(multiapi) && !$(track2)
batch:
+ - tag: package-2020-04
- tag: package-2020-03
- tag: package-2019-12
- tag: package-2019-11
@@ -59,6 +60,7 @@ batch:
```yaml $(multiapi) && $(track2)
clear-output-folder: true
batch:
+ - tag: package-2020-04
- tag: package-2020-03
- tag: package-2019-12
- tag: package-2019-11
@@ -95,6 +97,19 @@ clear-output-folder: false
perform-load: false
```
+### Tag: package-2020-04 and python
+
+These settings apply only when `--tag=package-2020-04 --python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2020-04'
+namespace: azure.mgmt.network.v2020_04_01
+output-folder: $(python-sdks-folder)/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01
+python:
+ namespace: azure.mgmt.network.v2020_04_01
+ output-folder: $(python-sdks-folder)/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01
+```
+
### Tag: package-2020-03 and python
These settings apply only when `--tag=package-2020-03 --python` is specified on the command line.
diff --git a/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/preview/2017-10-01/swagger.json b/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/preview/2017-10-01/swagger.json
index 462cffc53362..89bfd7e9c1a1 100644
--- a/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/preview/2017-10-01/swagger.json
+++ b/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/preview/2017-10-01/swagger.json
@@ -139,7 +139,7 @@
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/metadata": {
"get": {
- "operationId": "Get_Metadata",
+ "operationId": "Metadata_Get",
"summary": "Gets metadata information",
"description": "Retrieve the metadata information for the workspace, including its schema, functions, workspace info, categories etc.",
"x-ms-examples": {
@@ -177,7 +177,7 @@
}
},
"post": {
- "operationId": "Post_Metadata",
+ "operationId": "Metadata_Post",
"summary": "Gets metadata information",
"description": "Retrieve the metadata information for the workspace, including its schema, functions, workspace info, categories etc.",
"x-ms-examples": {
diff --git a/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/stable/v1/OperationalInsights.json b/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/stable/v1/OperationalInsights.json
index 120b693a23a2..c7a54b986d00 100644
--- a/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/stable/v1/OperationalInsights.json
+++ b/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/stable/v1/OperationalInsights.json
@@ -122,7 +122,7 @@
},
"/workspaces/{workspaceId}/metadata": {
"get": {
- "operationId": "Get_Metadata",
+ "operationId": "Metadata_Get",
"summary": "Gets metadata information",
"description": "Retrieve the metadata information for the workspace, including its schema, functions, workspace info, categories etc.",
"x-ms-examples": {
@@ -151,7 +151,7 @@
}
},
"post": {
- "operationId": "Post_Metadata",
+ "operationId": "Metadata_Post",
"summary": "Gets metadata information",
"description": "Retrieve the metadata information for the workspace, including its schema, functions, workspace info, categories etc.",
"x-ms-examples": {
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/AvailableServiceTiers.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/AvailableServiceTiers.json
index 5d5a288fc4ba..7605661754f4 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/AvailableServiceTiers.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/AvailableServiceTiers.json
@@ -44,7 +44,7 @@
"$ref": "./examples/WorkspacesAvailableServiceTiers.json"
}
},
- "operationId": "Workspaces_AvailableServiceTiers",
+ "operationId": "AvailableServiceTiers_ListByWorkspace",
"description": "Gets the available service tiers for the workspace.",
"parameters": [
{
@@ -128,7 +128,6 @@
"lastSkuUpdate": {
"readOnly": true,
"type": "string",
- "format": "date-time",
"description": "Time when the sku was last updated for the workspace. Returned for the Capacity Reservation Service Tier."
}
}
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/DataSources.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/DataSources.json
index 7f2126d9ea7c..2a89a4078fea 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/DataSources.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/DataSources.json
@@ -279,7 +279,7 @@
"$ref": "#/definitions/Object",
"description": "The data source properties in raw json format, each kind of data source have it's own schema."
},
- "eTag": {
+ "etag": {
"type": "string",
"description": "The ETag of the data source."
},
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/SavedSearches.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/SavedSearches.json
index ed78f8a3c0a7..74e3b4fc630b 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/SavedSearches.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/SavedSearches.json
@@ -232,7 +232,15 @@
},
"query": {
"type": "string",
- "description": "The query expression for the saved search. Please see https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-search-reference for reference."
+ "description": "The query expression for the saved search."
+ },
+ "functionAlias": {
+ "type": "string",
+ "description": "The function alias if query serves as a function."
+ },
+ "functionParameters": {
+ "type": "string",
+ "description": "The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions."
},
"version": {
"type": "integer",
@@ -256,7 +264,7 @@
},
"SavedSearch": {
"properties": {
- "eTag": {
+ "etag": {
"type": "string",
"description": "The ETag of the saved search."
},
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json
new file mode 100644
index 000000000000..cf4e21a219ef
--- /dev/null
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json
@@ -0,0 +1,241 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Azure Log Analytics",
+ "description": "Azure Log Analytics API reference",
+ "version": "2020-03-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables": {
+ "get": {
+ "tags": [
+ "Tables"
+ ],
+ "x-ms-examples": {
+ "TablesListByWorkspace": {
+ "$ref": "./examples/TablesList.json"
+ }
+ },
+ "operationId": "Tables_ListByWorkspace",
+ "description": "Gets all the tables for the specified Log Analytics workspace.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK response definition.",
+ "schema": {
+ "$ref": "#/definitions/TablesListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorContract"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}": {
+ "patch": {
+ "tags": [
+ "Tables"
+ ],
+ "x-ms-examples": {
+ "TablesSet": {
+ "$ref": "./examples/TablesUpdate.json"
+ }
+ },
+ "operationId": "Tables_Update",
+ "description": "Updates a Log Analytics workspace table properties.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/TableNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Table"
+ },
+ "description": "The parameters required to update table properties."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK response definition.",
+ "schema": {
+ "$ref": "#/definitions/Table"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorContract"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "Tables"
+ ],
+ "x-ms-examples": {
+ "TablesGet": {
+ "$ref": "./examples/TablesGet.json"
+ }
+ },
+ "operationId": "Tables_Get",
+ "description": "Gets a Log Analytics workspace table.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/TableNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK response definition.",
+ "schema": {
+ "$ref": "#/definitions/Table"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorContract"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "TableProperties": {
+ "properties": {
+ "retentionInDays": {
+ "type": "integer",
+ "format": "int32",
+ "minimum": 30,
+ "maximum": 730,
+ "description": "The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention."
+ }
+ },
+ "description": "Table properties."
+ },
+ "Table": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/TableProperties",
+ "description": "Table properties."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "description": "Workspace data table definition."
+ },
+ "TablesListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Table"
+ },
+ "description": "A list of data tables."
+ }
+ },
+ "description": "The list tables operation response."
+ },
+ "ErrorContract": {
+ "title": "Error details.",
+ "description": "Contains details when the response code indicates an error.",
+ "properties": {
+ "error": {
+ "description": "The details of the error.",
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "TableNameParameter": {
+ "name": "tableName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the table.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Workspaces.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Workspaces.json
index 0f162b522214..1328a4d68255 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Workspaces.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Workspaces.json
@@ -167,7 +167,7 @@
}
},
"operationId": "Workspaces_Delete",
- "description": "Deletes a workspace instance.",
+ "description": "Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the force flag.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
@@ -180,6 +180,13 @@
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "force",
+ "in": "query",
+ "required": false,
+ "type": "boolean",
+ "description": "Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered."
}
],
"responses": {
@@ -272,6 +279,75 @@
}
}
}
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces": {
+ "get": {
+ "tags": [
+ "DeletedWorkspaces"
+ ],
+ "x-ms-examples": {
+ "WorkspacesSubscriptionList": {
+ "$ref": "./examples/WorkspacesSubscriptionList.json"
+ }
+ },
+ "operationId": "DeletedWorkspaces_List",
+ "description": "Gets recently deleted workspaces in a subscription, available for recovery.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK response definition.",
+ "schema": {
+ "$ref": "#/definitions/WorkspaceListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces": {
+ "get": {
+ "tags": [
+ "DeletedWorkspaces"
+ ],
+ "x-ms-examples": {
+ "WorkspacesGet": {
+ "$ref": "./examples/WorkspacesListByResourceGroup.json"
+ }
+ },
+ "operationId": "DeletedWorkspaces_ListByResourceGroup",
+ "description": "Gets recently deleted workspaces in a resource group, available for recovery.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK response definition.",
+ "schema": {
+ "$ref": "#/definitions/WorkspaceListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
}
},
"definitions": {
@@ -293,6 +369,22 @@
"name": "WorkspaceSkuNameEnum",
"modelAsString": true
}
+ },
+ "capacityReservationLevel": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The capacity reservation level for this workspace, when CapacityReservation sku is selected."
+ },
+ "maxCapacityReservationLevel": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The maximum capacity reservation level available for this workspace, when CapacityReservation sku is selected.",
+ "readOnly": true
+ },
+ "lastSkuUpdate": {
+ "type": "string",
+ "description": "The last time when the sku was updated.",
+ "readOnly": true
}
},
"required": [
@@ -300,6 +392,38 @@
],
"description": "The SKU (tier) of a workspace."
},
+ "WorkspaceCapping": {
+ "description": "The daily volume cap for ingestion.",
+ "properties": {
+ "dailyQuotaGb": {
+ "type": "number",
+ "format": "double",
+ "description": "The workspace daily quota for ingestion. -1 means unlimited."
+ },
+ "quotaNextResetTime": {
+ "type": "string",
+ "description": "The time when the quota will be rest.",
+ "readOnly": true
+ },
+ "dataIngestionStatus": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The status of data ingestion for this workspace.",
+ "enum": [
+ "RespectQuota",
+ "ForceOn",
+ "ForceOff",
+ "OverQuota",
+ "SubscriptionSuspended",
+ "ApproachingQuota"
+ ],
+ "x-ms-enum": {
+ "name": "DataIngestionStatus",
+ "modelAsString": true
+ }
+ }
+ }
+ },
"WorkspaceProperties": {
"properties": {
"provisioningState": {
@@ -335,6 +459,10 @@
"maximum": 730,
"description": "The workspace data retention in days. -1 means Unlimited retention for the Unlimited Sku. 730 days is the maximum allowed for all other Skus. "
},
+ "workspaceCapping": {
+ "$ref": "#/definitions/WorkspaceCapping",
+ "description": "The daily volume cap for ingestion."
+ },
"publicNetworkAccessForIngestion": {
"description": "The network access type for accessing Log Analytics ingestion.",
"$ref": "#/definitions/PublicNetworkAccessType"
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesCreate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesCreate.json
index f5163ab10916..aa37dbcd94ce 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesCreate.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesCreate.json
@@ -20,7 +20,7 @@
"linkedResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/AzTest9724/datasources/AzTestDS774",
- "eTag": "W/\"datetime'2017-10-01T08%3A01%3A21.2351243Z'\"",
+ "etag": "W/\"datetime'2017-10-01T08%3A01%3A21.2351243Z'\"",
"name": "AzTestDS774",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
}
@@ -32,7 +32,7 @@
"linkedResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/AzTest9724/datasources/AzTestDS774",
- "eTag": "W/\"datetime'2017-10-01T08%3A01%3A21.2351243Z'\"",
+ "etag": "W/\"datetime'2017-10-01T08%3A01%3A21.2351243Z'\"",
"name": "AzTestDS774",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
}
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesGet.json
index df03a4b5687d..b487e0dc26b5 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesGet.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesGet.json
@@ -14,7 +14,7 @@
"linkedResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/AzTest9724/datasources/AzTestDS774",
- "eTag": "W/\"datetime'2017-10-01T08%3A01%3A21.2351243Z'\"",
+ "etag": "W/\"datetime'2017-10-01T08%3A01%3A21.2351243Z'\"",
"name": "AzTestDS774",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
}
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesListByWorkspace.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesListByWorkspace.json
index b24fee05304c..9b8663bd8525 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesListByWorkspace.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/DataSourcesListByWorkspace.json
@@ -22,7 +22,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1011",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A08.5629323Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A08.5629323Z'\"",
"name": "AzTestDSWE1011",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -37,7 +37,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1013",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A22.2533211Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A22.2533211Z'\"",
"name": "AzTestDSWE1013",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -52,7 +52,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1020",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A04.4645698Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A04.4645698Z'\"",
"name": "AzTestDSWE1020",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -67,7 +67,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1074",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A12.5871672Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A12.5871672Z'\"",
"name": "AzTestDSWE1074",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -82,7 +82,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1117",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A28.9325389Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A28.9325389Z'\"",
"name": "AzTestDSWE1117",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -97,7 +97,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1128",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A13.2185735Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A13.2185735Z'\"",
"name": "AzTestDSWE1128",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -112,7 +112,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1176",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A22.7779289Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A22.7779289Z'\"",
"name": "AzTestDSWE1176",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -127,7 +127,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1293",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A03.5114136Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A03.5114136Z'\"",
"name": "AzTestDSWE1293",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -142,7 +142,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE134",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A33.6788897Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A33.6788897Z'\"",
"name": "AzTestDSWE134",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -157,7 +157,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1352",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A36.2312139Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A36.2312139Z'\"",
"name": "AzTestDSWE1352",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -172,7 +172,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1360",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A13.4685716Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A13.4685716Z'\"",
"name": "AzTestDSWE1360",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -187,7 +187,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1382",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A19.2840543Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A19.2840543Z'\"",
"name": "AzTestDSWE1382",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -202,7 +202,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1410",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A42.7070374Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A42.7070374Z'\"",
"name": "AzTestDSWE1410",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -217,7 +217,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1417",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A06.8922838Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A06.8922838Z'\"",
"name": "AzTestDSWE1417",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -232,7 +232,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1560",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A26.6932412Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A26.6932412Z'\"",
"name": "AzTestDSWE1560",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -247,7 +247,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1618",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A07.1422661Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A07.1422661Z'\"",
"name": "AzTestDSWE1618",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -262,7 +262,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1662",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A09.5980265Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A09.5980265Z'\"",
"name": "AzTestDSWE1662",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -277,7 +277,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1675",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A39.6167744Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A39.6167744Z'\"",
"name": "AzTestDSWE1675",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -292,7 +292,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE169",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A50.1064668Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A50.1064668Z'\"",
"name": "AzTestDSWE169",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -307,7 +307,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1735",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A02.4954752Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A02.4954752Z'\"",
"name": "AzTestDSWE1735",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -322,7 +322,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1742",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A08.0452997Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A08.0452997Z'\"",
"name": "AzTestDSWE1742",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -337,7 +337,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1815",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A46.5966089Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A46.5966089Z'\"",
"name": "AzTestDSWE1815",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -352,7 +352,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1828",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A23.6529754Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A23.6529754Z'\"",
"name": "AzTestDSWE1828",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -367,7 +367,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE188",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A20.7216320Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A20.7216320Z'\"",
"name": "AzTestDSWE188",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -382,7 +382,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1962",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A17.9341560Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A17.9341560Z'\"",
"name": "AzTestDSWE1962",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -397,7 +397,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE1997",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A17.3081821Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A17.3081821Z'\"",
"name": "AzTestDSWE1997",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -412,7 +412,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2046",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A49.2918213Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A49.2918213Z'\"",
"name": "AzTestDSWE2046",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -427,7 +427,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2056",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A52.4111189Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A52.4111189Z'\"",
"name": "AzTestDSWE2056",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -442,7 +442,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2116",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A54.7598026Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A54.7598026Z'\"",
"name": "AzTestDSWE2116",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -457,7 +457,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2142",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A07.2711237Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A07.2711237Z'\"",
"name": "AzTestDSWE2142",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -472,7 +472,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE22",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A48.2064500Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A48.2064500Z'\"",
"name": "AzTestDSWE22",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -487,7 +487,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2208",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A08.7849248Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A08.7849248Z'\"",
"name": "AzTestDSWE2208",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -502,7 +502,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2221",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A51.3306230Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A51.3306230Z'\"",
"name": "AzTestDSWE2221",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -517,7 +517,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2226",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A25.5991266Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A25.5991266Z'\"",
"name": "AzTestDSWE2226",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -532,7 +532,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2231",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A15.3592513Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A15.3592513Z'\"",
"name": "AzTestDSWE2231",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -547,7 +547,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2242",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A06.0641077Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A06.0641077Z'\"",
"name": "AzTestDSWE2242",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -562,7 +562,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2263",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A11.7829226Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A11.7829226Z'\"",
"name": "AzTestDSWE2263",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -577,7 +577,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2369",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A21.5874093Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A21.5874093Z'\"",
"name": "AzTestDSWE2369",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -592,7 +592,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE240",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A06.6266574Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A06.6266574Z'\"",
"name": "AzTestDSWE240",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -607,7 +607,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2423",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A23.4752361Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A23.4752361Z'\"",
"name": "AzTestDSWE2423",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -622,7 +622,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2463",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A36.5611370Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A36.5611370Z'\"",
"name": "AzTestDSWE2463",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -637,7 +637,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2499",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A13.7187131Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A13.7187131Z'\"",
"name": "AzTestDSWE2499",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -652,7 +652,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2509",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A09.3324224Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A09.3324224Z'\"",
"name": "AzTestDSWE2509",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -667,7 +667,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2541",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A29.2312540Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A29.2312540Z'\"",
"name": "AzTestDSWE2541",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -682,7 +682,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2578",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A05.3117461Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A05.3117461Z'\"",
"name": "AzTestDSWE2578",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -697,7 +697,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2619",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A38.5379572Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A38.5379572Z'\"",
"name": "AzTestDSWE2619",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -712,7 +712,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE274",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A05.0735592Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A05.0735592Z'\"",
"name": "AzTestDSWE274",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -727,7 +727,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2754",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A30.6297451Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A30.6297451Z'\"",
"name": "AzTestDSWE2754",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -742,7 +742,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE281",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A05.2972963Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A05.2972963Z'\"",
"name": "AzTestDSWE281",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -757,7 +757,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2818",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A33.3820072Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A33.3820072Z'\"",
"name": "AzTestDSWE2818",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -772,7 +772,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2860",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A14.0876077Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A14.0876077Z'\"",
"name": "AzTestDSWE2860",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -787,7 +787,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2867",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A30.9266089Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A30.9266089Z'\"",
"name": "AzTestDSWE2867",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -802,7 +802,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2923",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A27.9342580Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A27.9342580Z'\"",
"name": "AzTestDSWE2923",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -817,7 +817,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE2979",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A44.4311007Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A44.4311007Z'\"",
"name": "AzTestDSWE2979",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -832,7 +832,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3009",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A08.5349323Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A08.5349323Z'\"",
"name": "AzTestDSWE3009",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -847,7 +847,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3033",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A24.9696296Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A24.9696296Z'\"",
"name": "AzTestDSWE3033",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -862,7 +862,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3095",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A18.2006423Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A18.2006423Z'\"",
"name": "AzTestDSWE3095",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -877,7 +877,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3114",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A38.2879169Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A38.2879169Z'\"",
"name": "AzTestDSWE3114",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -892,7 +892,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3132",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A37.6889867Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A37.6889867Z'\"",
"name": "AzTestDSWE3132",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -907,7 +907,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3147",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A58.9331954Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A58.9331954Z'\"",
"name": "AzTestDSWE3147",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -922,7 +922,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3159",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A35.6843083Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A35.6843083Z'\"",
"name": "AzTestDSWE3159",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -937,7 +937,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE317",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A17.4118415Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A17.4118415Z'\"",
"name": "AzTestDSWE317",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -952,7 +952,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3175",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A35.0592573Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A35.0592573Z'\"",
"name": "AzTestDSWE3175",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -967,7 +967,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3183",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A12.6247906Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A12.6247906Z'\"",
"name": "AzTestDSWE3183",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -982,7 +982,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3217",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A14.4938899Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A14.4938899Z'\"",
"name": "AzTestDSWE3217",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -997,7 +997,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3220",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A21.7373059Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A21.7373059Z'\"",
"name": "AzTestDSWE3220",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1012,7 +1012,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3228",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A18.7785353Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A18.7785353Z'\"",
"name": "AzTestDSWE3228",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1027,7 +1027,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3395",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A54.4936956Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A54.4936956Z'\"",
"name": "AzTestDSWE3395",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1042,7 +1042,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3416",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A22.0032694Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A22.0032694Z'\"",
"name": "AzTestDSWE3416",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1057,7 +1057,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3506",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A28.8251658Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A28.8251658Z'\"",
"name": "AzTestDSWE3506",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1072,7 +1072,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3517",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A11.2153209Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A11.2153209Z'\"",
"name": "AzTestDSWE3517",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1087,7 +1087,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3528",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A12.0402565Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A12.0402565Z'\"",
"name": "AzTestDSWE3528",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1102,7 +1102,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3530",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A43.8027590Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A43.8027590Z'\"",
"name": "AzTestDSWE3530",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1117,7 +1117,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3594",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A01.9173304Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A01.9173304Z'\"",
"name": "AzTestDSWE3594",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1132,7 +1132,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3615",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A00.8990889Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A00.8990889Z'\"",
"name": "AzTestDSWE3615",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1147,7 +1147,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3645",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A16.0877829Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A16.0877829Z'\"",
"name": "AzTestDSWE3645",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1162,7 +1162,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3676",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A07.8068460Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A07.8068460Z'\"",
"name": "AzTestDSWE3676",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1177,7 +1177,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3700",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A49.5439700Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A49.5439700Z'\"",
"name": "AzTestDSWE3700",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1192,7 +1192,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3738",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A38.0363694Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A38.0363694Z'\"",
"name": "AzTestDSWE3738",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1207,7 +1207,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3740",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A50.6390339Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A50.6390339Z'\"",
"name": "AzTestDSWE3740",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1222,7 +1222,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3754",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A31.5203823Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A31.5203823Z'\"",
"name": "AzTestDSWE3754",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1237,7 +1237,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3761",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A31.7860159Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A31.7860159Z'\"",
"name": "AzTestDSWE3761",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1252,7 +1252,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3787",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A20.0966078Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A20.0966078Z'\"",
"name": "AzTestDSWE3787",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1267,7 +1267,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3880",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A57.8394298Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A57.8394298Z'\"",
"name": "AzTestDSWE3880",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1282,7 +1282,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3887",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A51.0806178Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A51.0806178Z'\"",
"name": "AzTestDSWE3887",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1297,7 +1297,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3899",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A16.6987634Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A16.6987634Z'\"",
"name": "AzTestDSWE3899",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1312,7 +1312,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE3928",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A41.4223363Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A41.4223363Z'\"",
"name": "AzTestDSWE3928",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1327,7 +1327,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4005",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A59.1831854Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A59.1831854Z'\"",
"name": "AzTestDSWE4005",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1342,7 +1342,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4021",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A31.5314824Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A31.5314824Z'\"",
"name": "AzTestDSWE4021",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1357,7 +1357,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4054",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A01.6667691Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A01.6667691Z'\"",
"name": "AzTestDSWE4054",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1372,7 +1372,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE406",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A42.9581303Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A42.9581303Z'\"",
"name": "AzTestDSWE406",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1387,7 +1387,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4128",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A29.4890798Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A29.4890798Z'\"",
"name": "AzTestDSWE4128",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1402,7 +1402,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4140",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A00.2051432Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A00.2051432Z'\"",
"name": "AzTestDSWE4140",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1417,7 +1417,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4209",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A58.3706603Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A58.3706603Z'\"",
"name": "AzTestDSWE4209",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1432,7 +1432,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4216",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A23.1240354Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A23.1240354Z'\"",
"name": "AzTestDSWE4216",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1447,7 +1447,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4240",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A33.5368097Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A33.5368097Z'\"",
"name": "AzTestDSWE4240",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1462,7 +1462,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4279",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A30.3641074Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A30.3641074Z'\"",
"name": "AzTestDSWE4279",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1477,7 +1477,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4289",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A26.3963554Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A26.3963554Z'\"",
"name": "AzTestDSWE4289",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1492,7 +1492,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4317",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A47.6751803Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A47.6751803Z'\"",
"name": "AzTestDSWE4317",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1507,7 +1507,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4324",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A05.8120517Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A05.8120517Z'\"",
"name": "AzTestDSWE4324",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1522,7 +1522,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4362",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A04.1208323Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A04.1208323Z'\"",
"name": "AzTestDSWE4362",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1537,7 +1537,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4416",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A08.3109506Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A08.3109506Z'\"",
"name": "AzTestDSWE4416",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1552,7 +1552,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4424",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A48.9744951Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A48.9744951Z'\"",
"name": "AzTestDSWE4424",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1567,7 +1567,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4466",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A19.0457713Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A19.0457713Z'\"",
"name": "AzTestDSWE4466",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1582,7 +1582,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4467",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A15.0936374Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A15.0936374Z'\"",
"name": "AzTestDSWE4467",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1597,7 +1597,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4503",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A41.9399246Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A41.9399246Z'\"",
"name": "AzTestDSWE4503",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1612,7 +1612,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4521",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A27.2714771Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A27.2714771Z'\"",
"name": "AzTestDSWE4521",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1627,7 +1627,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4530",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A26.7419933Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A26.7419933Z'\"",
"name": "AzTestDSWE4530",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1642,7 +1642,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4600",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A37.4227966Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A37.4227966Z'\"",
"name": "AzTestDSWE4600",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1657,7 +1657,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4644",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A43.5519204Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A43.5519204Z'\"",
"name": "AzTestDSWE4644",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1672,7 +1672,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4694",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A51.6431386Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A51.6431386Z'\"",
"name": "AzTestDSWE4694",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1687,7 +1687,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4715",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A06.0530002Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A06.0530002Z'\"",
"name": "AzTestDSWE4715",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1702,7 +1702,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE472",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A24.3989962Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A24.3989962Z'\"",
"name": "AzTestDSWE472",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1717,7 +1717,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4721",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A16.3706498Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A16.3706498Z'\"",
"name": "AzTestDSWE4721",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1732,7 +1732,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4734",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A33.8337155Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A33.8337155Z'\"",
"name": "AzTestDSWE4734",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1747,7 +1747,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4755",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A25.2712759Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A25.2712759Z'\"",
"name": "AzTestDSWE4755",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1762,7 +1762,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4779",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A27.5076680Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A27.5076680Z'\"",
"name": "AzTestDSWE4779",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1777,7 +1777,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4791",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A04.6828938Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A04.6828938Z'\"",
"name": "AzTestDSWE4791",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1792,7 +1792,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4798",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A54.0073520Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A54.0073520Z'\"",
"name": "AzTestDSWE4798",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1807,7 +1807,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE480",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A22.9077505Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A22.9077505Z'\"",
"name": "AzTestDSWE480",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1822,7 +1822,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4847",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A11.7028912Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A11.7028912Z'\"",
"name": "AzTestDSWE4847",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1837,7 +1837,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4876",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A04.9847854Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A04.9847854Z'\"",
"name": "AzTestDSWE4876",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1852,7 +1852,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4900",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A23.4029367Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A23.4029367Z'\"",
"name": "AzTestDSWE4900",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1867,7 +1867,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4918",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A34.5280091Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A34.5280091Z'\"",
"name": "AzTestDSWE4918",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1882,7 +1882,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4928",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A34.2882196Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A34.2882196Z'\"",
"name": "AzTestDSWE4928",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1897,7 +1897,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4930",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A33.2381803Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A33.2381803Z'\"",
"name": "AzTestDSWE4930",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1912,7 +1912,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4945",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A36.8423994Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A36.8423994Z'\"",
"name": "AzTestDSWE4945",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1927,7 +1927,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4967",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A08.9379456Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A08.9379456Z'\"",
"name": "AzTestDSWE4967",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1942,7 +1942,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4969",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A57.5893926Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A57.5893926Z'\"",
"name": "AzTestDSWE4969",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1957,7 +1957,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE4983",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A19.5497139Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A19.5497139Z'\"",
"name": "AzTestDSWE4983",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1972,7 +1972,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5011",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A48.4588661Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A48.4588661Z'\"",
"name": "AzTestDSWE5011",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -1987,7 +1987,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5082",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A32.2694295Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A32.2694295Z'\"",
"name": "AzTestDSWE5082",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2002,7 +2002,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5136",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A17.8863220Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A17.8863220Z'\"",
"name": "AzTestDSWE5136",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2017,7 +2017,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5141",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A05.5484906Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A05.5484906Z'\"",
"name": "AzTestDSWE5141",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2032,7 +2032,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5166",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A23.9283342Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A23.9283342Z'\"",
"name": "AzTestDSWE5166",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2047,7 +2047,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5207",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A29.4970655Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A29.4970655Z'\"",
"name": "AzTestDSWE5207",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2062,7 +2062,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5223",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A04.7146038Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A04.7146038Z'\"",
"name": "AzTestDSWE5223",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2077,7 +2077,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5233",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A10.3237629Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A10.3237629Z'\"",
"name": "AzTestDSWE5233",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2092,7 +2092,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5253",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A18.1831872Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A18.1831872Z'\"",
"name": "AzTestDSWE5253",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2107,7 +2107,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5255",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A30.9049829Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A30.9049829Z'\"",
"name": "AzTestDSWE5255",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2122,7 +2122,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5263",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A12.8904269Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A12.8904269Z'\"",
"name": "AzTestDSWE5263",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2137,7 +2137,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5351",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A20.4543884Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A20.4543884Z'\"",
"name": "AzTestDSWE5351",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2152,7 +2152,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5385",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A19.7997319Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A19.7997319Z'\"",
"name": "AzTestDSWE5385",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2167,7 +2167,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5394",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A29.7703365Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A29.7703365Z'\"",
"name": "AzTestDSWE5394",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2182,7 +2182,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE541",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A09.4692151Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A09.4692151Z'\"",
"name": "AzTestDSWE541",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2197,7 +2197,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5439",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A15.7994161Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A15.7994161Z'\"",
"name": "AzTestDSWE5439",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2212,7 +2212,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5460",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A10.3032105Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A10.3032105Z'\"",
"name": "AzTestDSWE5460",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2227,7 +2227,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5479",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A24.6802546Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A24.6802546Z'\"",
"name": "AzTestDSWE5479",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2242,7 +2242,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5483",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A01.1670463Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A01.1670463Z'\"",
"name": "AzTestDSWE5483",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2257,7 +2257,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5486",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A37.1393156Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A37.1393156Z'\"",
"name": "AzTestDSWE5486",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2272,7 +2272,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5554",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A41.1205470Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A41.1205470Z'\"",
"name": "AzTestDSWE5554",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2287,7 +2287,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5559",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A20.7200407Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A20.7200407Z'\"",
"name": "AzTestDSWE5559",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2302,7 +2302,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5585",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A18.4534330Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A18.4534330Z'\"",
"name": "AzTestDSWE5585",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2317,7 +2317,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE568",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A40.8861587Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A40.8861587Z'\"",
"name": "AzTestDSWE568",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2332,7 +2332,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5741",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A12.3059271Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A12.3059271Z'\"",
"name": "AzTestDSWE5741",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2347,7 +2347,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE58",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A39.0692471Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A39.0692471Z'\"",
"name": "AzTestDSWE58",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2362,7 +2362,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5810",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A16.9117573Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A16.9117573Z'\"",
"name": "AzTestDSWE5810",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2377,7 +2377,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5815",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A45.4055476Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A45.4055476Z'\"",
"name": "AzTestDSWE5815",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2392,7 +2392,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5858",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A55.0097893Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A55.0097893Z'\"",
"name": "AzTestDSWE5858",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2407,7 +2407,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5866",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A18.9931389Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A18.9931389Z'\"",
"name": "AzTestDSWE5866",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2422,7 +2422,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5888",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A59.4332080Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A59.4332080Z'\"",
"name": "AzTestDSWE5888",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2437,7 +2437,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE5905",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A09.7599986Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A09.7599986Z'\"",
"name": "AzTestDSWE5905",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2452,7 +2452,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6027",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A10.6395291Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A10.6395291Z'\"",
"name": "AzTestDSWE6027",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2467,7 +2467,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE607",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A13.7282386Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A13.7282386Z'\"",
"name": "AzTestDSWE607",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2482,7 +2482,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6099",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A33.1319662Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A33.1319662Z'\"",
"name": "AzTestDSWE6099",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2497,7 +2497,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6122",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A06.3186640Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A06.3186640Z'\"",
"name": "AzTestDSWE6122",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2512,7 +2512,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6218",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A11.4528829Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A11.4528829Z'\"",
"name": "AzTestDSWE6218",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2527,7 +2527,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE622",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A47.9407875Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A47.9407875Z'\"",
"name": "AzTestDSWE622",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2542,7 +2542,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6222",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A06.3453921Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A06.3453921Z'\"",
"name": "AzTestDSWE6222",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2557,7 +2557,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6240",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A21.2372832Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A21.2372832Z'\"",
"name": "AzTestDSWE6240",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2572,7 +2572,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6251",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A08.2849036Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A08.2849036Z'\"",
"name": "AzTestDSWE6251",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2587,7 +2587,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6274",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A02.1829375Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A02.1829375Z'\"",
"name": "AzTestDSWE6274",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2602,7 +2602,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6296",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A32.3491070Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A32.3491070Z'\"",
"name": "AzTestDSWE6296",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2617,7 +2617,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6301",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A22.1811938Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A22.1811938Z'\"",
"name": "AzTestDSWE6301",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2632,7 +2632,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6404",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A06.7093003Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A06.7093003Z'\"",
"name": "AzTestDSWE6404",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2647,7 +2647,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6406",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A05.5617435Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A05.5617435Z'\"",
"name": "AzTestDSWE6406",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2662,7 +2662,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6432",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A40.2886854Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A40.2886854Z'\"",
"name": "AzTestDSWE6432",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2677,7 +2677,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6439",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A35.9811949Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A35.9811949Z'\"",
"name": "AzTestDSWE6439",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2692,7 +2692,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6451",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A13.1344490Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A13.1344490Z'\"",
"name": "AzTestDSWE6451",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2707,7 +2707,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6486",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A10.9653354Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A10.9653354Z'\"",
"name": "AzTestDSWE6486",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2722,7 +2722,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6505",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A10.0582011Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A10.0582011Z'\"",
"name": "AzTestDSWE6505",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2737,7 +2737,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6514",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A52.8955201Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A52.8955201Z'\"",
"name": "AzTestDSWE6514",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2752,7 +2752,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6518",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A10.9395226Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A10.9395226Z'\"",
"name": "AzTestDSWE6518",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2767,7 +2767,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6537",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A24.0123335Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A24.0123335Z'\"",
"name": "AzTestDSWE6537",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2782,7 +2782,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6547",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A57.3394082Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A57.3394082Z'\"",
"name": "AzTestDSWE6547",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2797,7 +2797,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6556",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A33.9457044Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A33.9457044Z'\"",
"name": "AzTestDSWE6556",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2812,7 +2812,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6718",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A13.4313542Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A13.4313542Z'\"",
"name": "AzTestDSWE6718",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2827,7 +2827,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6724",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A35.4186784Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A35.4186784Z'\"",
"name": "AzTestDSWE6724",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2842,7 +2842,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6741",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A12.3279180Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A12.3279180Z'\"",
"name": "AzTestDSWE6741",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2857,7 +2857,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6796",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A24.5764501Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A24.5764501Z'\"",
"name": "AzTestDSWE6796",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2872,7 +2872,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6826",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A35.2579899Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A35.2579899Z'\"",
"name": "AzTestDSWE6826",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2887,7 +2887,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6829",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A34.6319483Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A34.6319483Z'\"",
"name": "AzTestDSWE6829",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2902,7 +2902,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6893",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A28.5887776Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A28.5887776Z'\"",
"name": "AzTestDSWE6893",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2917,7 +2917,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE6974",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A16.1249736Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A16.1249736Z'\"",
"name": "AzTestDSWE6974",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2932,7 +2932,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7008",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A28.3876585Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A28.3876585Z'\"",
"name": "AzTestDSWE7008",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2947,7 +2947,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7014",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A29.1220764Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A29.1220764Z'\"",
"name": "AzTestDSWE7014",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2962,7 +2962,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7068",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A26.0213457Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A26.0213457Z'\"",
"name": "AzTestDSWE7068",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2977,7 +2977,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7080",
- "eTag": "W/\"datetime'2017-10-02T23%3A21%3A21.8686663Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A21%3A21.8686663Z'\"",
"name": "AzTestDSWE7080",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -2992,7 +2992,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7166",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A40.5423724Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A40.5423724Z'\"",
"name": "AzTestDSWE7166",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
},
@@ -3007,7 +3007,7 @@
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest7887/providers/Microsoft.OperationalInsights/workspaces/AzTest218/datasources/AzTestDSWE7178",
- "eTag": "W/\"datetime'2017-10-02T23%3A20%3A16.3906307Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A20%3A16.3906307Z'\"",
"name": "AzTestDSWE7178",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
}
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/SavedSearchesListByWorkspace.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/SavedSearchesListByWorkspace.json
index 25158ff857e8..9240ce652512 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/SavedSearchesListByWorkspace.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/SavedSearchesListByWorkspace.json
@@ -10,7 +10,7 @@
"body": [
{
"id": "subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/AtlantisDemo/savedSearches/test-new-saved-search-id-2015",
- "eTag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"",
"properties": {
"Category": " Saved Search Test Category",
"DisplayName": "Create or Update Saved Search Test",
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesGet.json
new file mode 100644
index 000000000000..917972b62b21
--- /dev/null
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesGet.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "resourceGroupName": "oiautorest6685",
+ "workspaceName": "oiautorest6685",
+ "api-version": "2020-03-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-00000000000",
+ "tableName": "table1"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "retentionInDays": 30
+ },
+ "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1",
+ "name": "table1"
+ }
+ }
+ }
+}
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesList.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesList.json
new file mode 100644
index 000000000000..3cce506d888d
--- /dev/null
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesList.json
@@ -0,0 +1,35 @@
+{
+ "parameters": {
+ "resourceGroupName": "oiautorest6685",
+ "workspaceName": "oiautorest6685",
+ "api-version": "2020-03-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-00000000000"
+ },
+ "responses": {
+ "200": {
+ "body": [
+ {
+ "properties": {
+ "retentionInDays": 7
+ },
+ "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1",
+ "name": "table1"
+ },
+ {
+ "properties": {
+ "retentionInDays": 7
+ },
+ "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table2",
+ "name": "table2"
+ },
+ {
+ "properties": {
+ "retentionInDays": 7
+ },
+ "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table3",
+ "name": "table3"
+ }
+ ]
+ }
+ }
+}
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesUpdate.json
new file mode 100644
index 000000000000..4005ab95a59a
--- /dev/null
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesUpdate.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "resourceGroupName": "oiautorest6685",
+ "workspaceName": "oiautorest6685",
+ "api-version": "2020-03-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-00000000000",
+ "tableName": "table1",
+ "parameters": {
+ "properties": {
+ "retentionInDays": 30
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "retentionInDays": 30
+ },
+ "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1",
+ "name": "table1"
+ }
+ }
+ }
+}
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/WorkspacesSavedSearchesCreateOrUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/WorkspacesSavedSearchesCreateOrUpdate.json
index d9f102616395..e9bcba71fee5 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/WorkspacesSavedSearchesCreateOrUpdate.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/WorkspacesSavedSearchesCreateOrUpdate.json
@@ -7,8 +7,10 @@
"properties": {
"category": "Saved Search Test Category",
"displayName": "Create or Update Saved Search Test",
- "query": "Heartbeat | summarize Count() by Computer",
"version": 2,
+ "functionAlias": "heartbeat_func",
+ "functionParameters": "a:int=1",
+ "query": "Heartbeat | summarize Count() by Computer | take a",
"tags": [
{
"name": "Group",
@@ -25,11 +27,13 @@
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/AtlantisDemo/savedSearches/test-new-saved-search-id-2015",
- "eTag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"",
"properties": {
"category": "Saved Search Test Category",
"displayName": "Create or Update Saved Search Test",
- "query": "Heartbeat | summarize Count() by Computer",
+ "functionAlias": "heartbeat_func",
+ "functionParameters": "a:int=1",
+ "query": "Heartbeat | summarize Count() by Computer | take a",
"version": 2
}
}
diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/WorkspacesSavedSearchesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/WorkspacesSavedSearchesGet.json
index 2f612b2b05e1..77a69171831c 100644
--- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/WorkspacesSavedSearchesGet.json
+++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/WorkspacesSavedSearchesGet.json
@@ -11,11 +11,13 @@
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/AtlantisDemo/savedSearches/test-new-saved-search-id-2015",
- "eTag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"",
+ "etag": "W/\"datetime'2017-10-02T23%3A15%3A41.0709875Z'\"",
"properties": {
"category": " Saved Search Test Category",
"displayName": "Create or Update Saved Search Test",
- "query": "* | measure Count() by Computer",
+ "functionAlias": "heartbeat_func",
+ "functionParameters": "a:int=1",
+ "query": "* | measure Count() by Computer | take a",
"version": 1
}
}
diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md
index 6c2ca8c4edf8..738ae481fc00 100644
--- a/specification/operationalinsights/resource-manager/readme.md
+++ b/specification/operationalinsights/resource-manager/readme.md
@@ -87,6 +87,7 @@ input-file:
- Microsoft.OperationalInsights/preview/2020-03-01-preview/Schema.json
- Microsoft.OperationalInsights/preview/2020-03-01-preview/SharedKeys.json
- Microsoft.OperationalInsights/preview/2020-03-01-preview/WorkspacePurge.json
+- Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json
```
---
@@ -133,7 +134,7 @@ These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
-``` yaml $(python)
+``` yaml $(python) && !$(track2)
directive:
- from: swagger-document
where: $.info
@@ -151,12 +152,12 @@ python:
package-name: azure-mgmt-loganalytics
clear-output-folder: true
```
-``` yaml $(python) && $(python-mode) == 'update'
+``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics
```
-``` yaml $(python) && $(python-mode) == 'create'
+``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/loganalytics/azure-mgmt-loganalytics
@@ -216,6 +217,7 @@ input-file:
- $(this-folder)/Microsoft.OperationalInsights/preview/2020-03-01-preview/Gateways.json
- $(this-folder)/Microsoft.OperationalInsights/preview/2020-03-01-preview/Schema.json
- $(this-folder)/Microsoft.OperationalInsights/preview/2020-03-01-preview/WorkspacePurge.json
+ - $(this-folder)/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json
```
diff --git a/specification/operationsmanagement/resource-manager/readme.az.md b/specification/operationsmanagement/resource-manager/readme.az.md
new file mode 100644
index 000000000000..f6bd8709068c
--- /dev/null
+++ b/specification/operationsmanagement/resource-manager/readme.az.md
@@ -0,0 +1,25 @@
+## AZ
+
+These settings apply only when `--az` is specified on the command line.
+
+``` yaml $(az)
+az:
+ extensions: operationsmanagement
+ namespace: azure.mgmt.operationsmanagement
+ package-name: azure-mgmt-operationsmanagement
+az-output-folder: $(azure-cli-extension-folder)/src/operationsmanagement
+python-sdk-output-folder: "$(az-output-folder)/azext_operationsmanagement/vendored_sdks/operationsmanagement"
+directive:
+ - from: OperationsManagement.json
+ where: $.parameters.ProviderNameParameter
+ transform: $['x-ms-parameter-location'] = 'method'
+ - from: OperationsManagement.json
+ where: $.parameters.ResourceTypeParameter
+ transform: $['x-ms-parameter-location'] = 'method'
+ - from: OperationsManagement.json
+ where: $.parameters.ResourceNameParameter
+ transform: $['x-ms-parameter-location'] = 'method'
+ - from: OperationsManagement.json
+ where: $.definitions.CodeMessageError.properties.error
+ transform: $['x-ms-client-name'] = 'error'
+```
diff --git a/specification/operationsmanagement/resource-manager/readme.cli.md b/specification/operationsmanagement/resource-manager/readme.cli.md
new file mode 100644
index 000000000000..ddf103a9f926
--- /dev/null
+++ b/specification/operationsmanagement/resource-manager/readme.cli.md
@@ -0,0 +1,8 @@
+## CLI
+
+These settings apply only when `--cli` is specified on the command line.
+
+``` yaml $(cli)
+cli:
+ cli-name: operationsmanagement
+```
diff --git a/specification/operationsmanagement/resource-manager/readme.md b/specification/operationsmanagement/resource-manager/readme.md
index 3ef18ce43b78..016569b64e0a 100644
--- a/specification/operationsmanagement/resource-manager/readme.md
+++ b/specification/operationsmanagement/resource-manager/readme.md
@@ -58,6 +58,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-sdk-for-python
+ - repo: azure-cli-extensions
```
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CheckServiceProviderAvailability.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CheckServiceProviderAvailability.json
new file mode 100644
index 000000000000..fa2539dc946d
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CheckServiceProviderAvailability.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "api-version": "2020-04-01",
+ "checkServiceProviderAvailabilityInput": {
+ "peeringServiceLocation": "peeringServiceLocation1",
+ "peeringServiceProvider": "peeringServiceProvider1"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": "Available"
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateDirectPeering.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateDirectPeering.json
new file mode 100644
index 000000000000..e8624e9a3904
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateDirectPeering.json
@@ -0,0 +1,169 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "peering": {
+ "sku": {
+ "name": "Basic_Direct_Free"
+ },
+ "kind": "Direct",
+ "properties": {
+ "direct": {
+ "connections": [
+ {
+ "bandwidthInMbps": 10000,
+ "sessionAddressProvider": "Peer",
+ "useForPeeringService": false,
+ "peeringDBFacilityId": 99999,
+ "bgpSession": {
+ "sessionPrefixV4": "192.168.0.0/31",
+ "sessionPrefixV6": "fd00::0/127",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
+ },
+ {
+ "bandwidthInMbps": 10000,
+ "sessionAddressProvider": "Microsoft",
+ "useForPeeringService": true,
+ "peeringDBFacilityId": 99999,
+ "connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C"
+ }
+ ],
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ },
+ "directPeeringType": "Edge"
+ },
+ "peeringLocation": "peeringLocation0"
+ },
+ "location": "eastus"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sku": {
+ "name": "Basic_Direct_Free",
+ "tier": "Basic",
+ "family": "Direct",
+ "size": "Free"
+ },
+ "kind": "Direct",
+ "properties": {
+ "direct": {
+ "connections": [
+ {
+ "bandwidthInMbps": 10000,
+ "provisionedBandwidthInMbps": 10000,
+ "sessionAddressProvider": "Peer",
+ "useForPeeringService": false,
+ "peeringDBFacilityId": 99999,
+ "connectionState": "ProvisioningFailed",
+ "bgpSession": {
+ "sessionPrefixV4": "192.168.0.0/31",
+ "sessionPrefixV6": "fd00::0/127",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16",
+ "errorMessage": "IPv4 address is already configured with a different ASN"
+ },
+ {
+ "bandwidthInMbps": 10000,
+ "provisionedBandwidthInMbps": 10000,
+ "sessionAddressProvider": "Microsoft",
+ "useForPeeringService": true,
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "sessionPrefixV4": "192.168.1.0/31",
+ "sessionPrefixV6": "fd00::2/127",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C"
+ }
+ ],
+ "useForPeeringService": true,
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ },
+ "directPeeringType": "Edge"
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ },
+ "201": {
+ "body": {
+ "sku": {
+ "name": "Basic_Direct_Free",
+ "tier": "Basic",
+ "family": "Direct",
+ "size": "Free"
+ },
+ "kind": "Direct",
+ "properties": {
+ "direct": {
+ "connections": [
+ {
+ "bandwidthInMbps": 10000,
+ "provisionedBandwidthInMbps": 0,
+ "sessionAddressProvider": "Peer",
+ "useForPeeringService": false,
+ "peeringDBFacilityId": 99999,
+ "connectionState": "PendingApproval",
+ "bgpSession": {
+ "sessionPrefixV4": "192.168.0.0/31",
+ "sessionPrefixV6": "fd00::0/127",
+ "sessionStateV4": "PendingAdd",
+ "sessionStateV6": "PendingAdd",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
+ },
+ {
+ "bandwidthInMbps": 10000,
+ "provisionedBandwidthInMbps": 0,
+ "sessionAddressProvider": "Microsoft",
+ "useForPeeringService": true,
+ "peeringDBFacilityId": 99999,
+ "connectionState": "PendingApproval",
+ "connectionIdentifier": "8AB00818-D533-4504-A25A-03A17F61201C"
+ }
+ ],
+ "useForPeeringService": true,
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ },
+ "directPeeringType": "Edge"
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateExchangePeering.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateExchangePeering.json
new file mode 100644
index 000000000000..236bb1d470fe
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateExchangePeering.json
@@ -0,0 +1,166 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "peering": {
+ "sku": {
+ "name": "Basic_Exchange_Free"
+ },
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "connections": [
+ {
+ "peeringDBFacilityId": 99999,
+ "bgpSession": {
+ "peerSessionIPv4Address": "192.168.2.1",
+ "peerSessionIPv6Address": "fd00::1",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D"
+ },
+ {
+ "peeringDBFacilityId": 99999,
+ "bgpSession": {
+ "peerSessionIPv4Address": "192.168.2.2",
+ "peerSessionIPv6Address": "fd00::2",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
+ }
+ ],
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ }
+ },
+ "peeringLocation": "peeringLocation0"
+ },
+ "location": "eastus"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sku": {
+ "name": "Basic_Exchange_Free",
+ "tier": "Basic",
+ "family": "Exchange",
+ "size": "Free"
+ },
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "connections": [
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "ProvisioningFailed",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.1",
+ "microsoftSessionIPv6Address": "fd00::1:1",
+ "peerSessionIPv4Address": "192.168.2.1",
+ "peerSessionIPv6Address": "fd00::1",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D",
+ "errorMessage": "IPv4 address is already configured with a different ASN"
+ },
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.2",
+ "microsoftSessionIPv6Address": "fd00::1:2",
+ "peerSessionIPv4Address": "192.168.2.2",
+ "peerSessionIPv6Address": "fd00::2",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
+ }
+ ],
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ }
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ },
+ "201": {
+ "body": {
+ "sku": {
+ "name": "Basic_Exchange_Free",
+ "tier": "Basic",
+ "family": "Exchange",
+ "size": "Free"
+ },
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "connections": [
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "PendingApproval",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.1",
+ "microsoftSessionIPv6Address": "fd00::1:1",
+ "peerSessionIPv4Address": "192.168.2.1",
+ "peerSessionIPv6Address": "fd00::1",
+ "sessionStateV4": "PendingAdd",
+ "sessionStateV6": "PendingAdd",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D"
+ },
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "PendingApproval",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.2",
+ "microsoftSessionIPv6Address": "fd00::1:2",
+ "peerSessionIPv4Address": "192.168.2.2",
+ "peerSessionIPv6Address": "fd00::2",
+ "sessionStateV4": "PendingAdd",
+ "sessionStateV6": "PendingAdd",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
+ }
+ ],
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ }
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeerAsn.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeerAsn.json
new file mode 100644
index 000000000000..81f98149ebc5
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeerAsn.json
@@ -0,0 +1,90 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "peerAsnName": "peerAsnName",
+ "api-version": "2020-04-01",
+ "peerAsn": {
+ "properties": {
+ "peerAsn": 65000,
+ "peerContactDetail": [
+ {
+ "role": "Noc",
+ "email": "noc@contoso.com",
+ "phone": "+1 (234) 567-8999"
+ },
+ {
+ "role": "Policy",
+ "email": "abc@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ },
+ {
+ "role": "Technical",
+ "email": "xyz@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ }
+ ],
+ "peerName": "Contoso"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "peerAsn": 65000,
+ "peerContactDetail": [
+ {
+ "role": "Noc",
+ "email": "noc@contoso.com",
+ "phone": "+1 (234) 567-8999"
+ },
+ {
+ "role": "Policy",
+ "email": "abc@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ },
+ {
+ "role": "Technical",
+ "email": "xyz@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ }
+ ],
+ "peerName": "Contoso",
+ "validationState": "Pending"
+ },
+ "name": "peerAsnName",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
+ "type": "Microsoft.Peering/peerAsns"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "peerAsn": 65000,
+ "peerContactDetail": [
+ {
+ "role": "Noc",
+ "email": "noc@contoso.com",
+ "phone": "+1 (234) 567-8999"
+ },
+ {
+ "role": "Policy",
+ "email": "abc@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ },
+ {
+ "role": "Technical",
+ "email": "xyz@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ }
+ ],
+ "peerName": "Contoso",
+ "validationState": "Pending"
+ },
+ "name": "peerAsnName",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
+ "type": "Microsoft.Peering/peerAsns"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringService.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringService.json
new file mode 100644
index 000000000000..e79dfcffd239
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringService.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringServiceName": "peeringServiceName",
+ "api-version": "2020-04-01",
+ "peeringService": {
+ "properties": {
+ "peeringServiceLocation": "state1",
+ "peeringServiceProvider": "serviceProvider1"
+ },
+ "location": "eastus"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "peeringServiceLocation": "state1",
+ "peeringServiceProvider": "serviceProvider1",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringServiceName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
+ "type": "Microsoft.Peering/peeringServices"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "peeringServiceLocation": "state1",
+ "peeringServiceProvider": "serviceProvider1",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringServiceName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
+ "type": "Microsoft.Peering/peeringServices"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringServicePrefix.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringServicePrefix.json
new file mode 100644
index 000000000000..e4502ffa869b
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringServicePrefix.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringServiceName": "peeringServiceName",
+ "prefixName": "peeringServicePrefixName",
+ "api-version": "2020-04-01",
+ "peeringServicePrefix": {
+ "properties": {
+ "prefix": "192.168.1.0/24",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "prefix": "192.168.1.0/24",
+ "prefixValidationState": "Failed",
+ "learnedType": "None",
+ "errorMessage": "Prefix is not announced by the service provider to Microsoft.",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "peeringServicePrefixName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "prefix": "192.168.1.0/24",
+ "prefixValidationState": "Failed",
+ "learnedType": "None",
+ "errorMessage": "Prefix is not announced by the service provider to Microsoft.",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "peeringServicePrefixName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringWithExchangeRouteServer.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringWithExchangeRouteServer.json
new file mode 100644
index 000000000000..f0abdcc7113b
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreatePeeringWithExchangeRouteServer.json
@@ -0,0 +1,134 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "peering": {
+ "sku": {
+ "name": "Premium_Direct_Free"
+ },
+ "kind": "Direct",
+ "properties": {
+ "direct": {
+ "connections": [
+ {
+ "bandwidthInMbps": 10000,
+ "sessionAddressProvider": "Peer",
+ "useForPeeringService": true,
+ "peeringDBFacilityId": 99999,
+ "bgpSession": {
+ "sessionPrefixV4": "192.168.0.0/24",
+ "microsoftSessionIPv4Address": "192.168.0.123",
+ "peerSessionIPv4Address": "192.168.0.234",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100
+ },
+ "connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
+ }
+ ],
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ },
+ "directPeeringType": "IxRs"
+ },
+ "peeringLocation": "peeringLocation0"
+ },
+ "location": "eastus"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sku": {
+ "name": "Premium_Direct_Free",
+ "tier": "Premium",
+ "family": "Direct",
+ "size": "Free"
+ },
+ "kind": "Direct",
+ "properties": {
+ "direct": {
+ "connections": [
+ {
+ "bandwidthInMbps": 10000,
+ "provisionedBandwidthInMbps": 10000,
+ "sessionAddressProvider": "Peer",
+ "useForPeeringService": true,
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "sessionPrefixV4": "192.168.0.0/24",
+ "microsoftSessionIPv4Address": "192.168.0.123",
+ "peerSessionIPv4Address": "192.168.0.234",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100
+ },
+ "connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
+ }
+ ],
+ "useForPeeringService": true,
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ },
+ "directPeeringType": "IxRs"
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ },
+ "201": {
+ "body": {
+ "sku": {
+ "name": "Premium_Direct_Free",
+ "tier": "Premium",
+ "family": "Direct",
+ "size": "Free"
+ },
+ "kind": "Direct",
+ "properties": {
+ "direct": {
+ "connections": [
+ {
+ "bandwidthInMbps": 10000,
+ "provisionedBandwidthInMbps": 0,
+ "sessionAddressProvider": "Peer",
+ "useForPeeringService": true,
+ "peeringDBFacilityId": 99999,
+ "connectionState": "PendingApproval",
+ "bgpSession": {
+ "sessionPrefixV4": "192.168.0.0/24",
+ "microsoftSessionIPv4Address": "192.168.0.123",
+ "peerSessionIPv4Address": "192.168.0.234",
+ "sessionStateV4": "PendingAdd",
+ "sessionStateV6": "PendingAdd",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100
+ },
+ "connectionIdentifier": "5F4CB5C7-6B43-4444-9338-9ABC72606C16"
+ }
+ ],
+ "useForPeeringService": true,
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ },
+ "directPeeringType": "IxRs"
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateRegisteredAsn.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateRegisteredAsn.json
new file mode 100644
index 000000000000..49a5cf7c288d
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateRegisteredAsn.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "registeredAsn": {
+ "properties": {
+ "asn": 65000
+ }
+ },
+ "registeredAsnName": "registeredAsnName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "asn": 65000,
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredAsnName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredAsns/registeredAsnName",
+ "type": "Microsoft.Peering/registeredAsns"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "asn": 65000,
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredAsnName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredAsns/registeredAsnName",
+ "type": "Microsoft.Peering/registeredAsns"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateRegisteredPrefix.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateRegisteredPrefix.json
new file mode 100644
index 000000000000..18be5c4678fb
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/CreateRegisteredPrefix.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "registeredPrefix": {
+ "properties": {
+ "prefix": "10.22.20.0/24"
+ }
+ },
+ "registeredPrefixName": "registeredPrefixName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "prefix": "10.22.20.0/24",
+ "prefixValidationState": "Verified",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredPrefixName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredPrefixes/registeredPrefixName",
+ "type": "Microsoft.Peering/registeredPrefixes"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "prefix": "10.22.20.0/24",
+ "prefixValidationState": "Pending",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredPrefixName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredPrefixes/registeredPrefixName",
+ "type": "Microsoft.Peering/registeredPrefixes"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeerAsn.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeerAsn.json
new file mode 100644
index 000000000000..74a23b81424c
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeerAsn.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "peerAsnName": "peerAsnName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeering.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeering.json
new file mode 100644
index 000000000000..e8359d6de923
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeering.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeeringService.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeeringService.json
new file mode 100644
index 000000000000..5291cf4a11dd
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeeringService.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringServiceName": "peeringServiceName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeeringServicePrefix.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeeringServicePrefix.json
new file mode 100644
index 000000000000..7f71ac0a56de
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeletePeeringServicePrefix.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringServiceName": "peeringServiceName",
+ "prefixName": "peeringServicePrefixName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeleteRegisteredAsn.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeleteRegisteredAsn.json
new file mode 100644
index 000000000000..87fc0578ac9b
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeleteRegisteredAsn.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "registeredAsnName": "registeredAsnName"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeleteRegisteredPrefix.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeleteRegisteredPrefix.json
new file mode 100644
index 000000000000..58d07cd545f7
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/DeleteRegisteredPrefix.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "registeredPrefixName": "registeredPrefixName"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeerAsn.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeerAsn.json
new file mode 100644
index 000000000000..ea773936cf22
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeerAsn.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "peerAsnName": "peerAsnName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "peerAsn": 65000,
+ "peerContactDetail": [
+ {
+ "role": "Noc",
+ "email": "noc@contoso.com",
+ "phone": "+1 (234) 567-8999"
+ },
+ {
+ "role": "Policy",
+ "email": "abc@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ },
+ {
+ "role": "Technical",
+ "email": "xyz@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ }
+ ],
+ "peerName": "Contoso",
+ "validationState": "Approved"
+ },
+ "name": "peerAsnName",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
+ "type": "Microsoft.Peering/peerAsns"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeering.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeering.json
new file mode 100644
index 000000000000..443375563b88
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeering.json
@@ -0,0 +1,68 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sku": {
+ "name": "Basic_Exchange_Free",
+ "tier": "Basic",
+ "family": "Exchange",
+ "size": "Free"
+ },
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "connections": [
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.1",
+ "microsoftSessionIPv6Address": "fd00::1:1",
+ "peerSessionIPv4Address": "192.168.2.1",
+ "peerSessionIPv6Address": "fd00::1",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D"
+ },
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.2",
+ "microsoftSessionIPv6Address": "fd00::1:2",
+ "peerSessionIPv4Address": "192.168.2.2",
+ "peerSessionIPv6Address": "fd00::2",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
+ }
+ ],
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ }
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringReceivedRoutes.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringReceivedRoutes.json
new file mode 100644
index 000000000000..a8906ac96789
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringReceivedRoutes.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "prefix": "1.1.1.0/24",
+ "asPath": "123 456",
+ "originAsValidationState": "Valid",
+ "rpkiValidationState": "Valid"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "prefix": "1.1.1.0/24",
+ "nextHop": "127.0.0.1",
+ "asPath": "123 456",
+ "originAsValidationState": "Valid",
+ "rpkiValidationState": "Valid",
+ "trustAnchor": "Arin",
+ "receivedTimestamp": "2020-04-05 03:39:20"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringService.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringService.json
new file mode 100644
index 000000000000..77d5b0f6f7c8
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringService.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringServiceName": "peeringServiceName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "peeringServiceLocation": "state1",
+ "peeringServiceProvider": "serviceProvider1",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringServiceName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
+ "type": "Microsoft.Peering/peeringServices"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringServicePrefix.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringServicePrefix.json
new file mode 100644
index 000000000000..77602097539d
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetPeeringServicePrefix.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringServiceName": "peeringServiceName",
+ "prefixName": "peeringServicePrefixName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "prefix": "192.168.1.0/24",
+ "prefixValidationState": "Verified",
+ "learnedType": "ViaServiceProvider",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "peeringServicePrefixName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetRegisteredAsn.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetRegisteredAsn.json
new file mode 100644
index 000000000000..1fc9fa9c2e00
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetRegisteredAsn.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "registeredAsnName": "registeredAsnName0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "asn": 65000,
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredAsnName0",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredAsns/registeredAsnName0",
+ "type": "Microsoft.Peering/registeredAsns"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetRegisteredPrefix.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetRegisteredPrefix.json
new file mode 100644
index 000000000000..9eaf6c5ec87f
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/GetRegisteredPrefix.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "registeredPrefixName": "registeredPrefixName"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "prefix": "10.22.20.0/24",
+ "prefixValidationState": "Verified",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredPrefixName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredPrefixes/registeredPrefixName",
+ "type": "Microsoft.Peering/registeredPrefixes"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListDirectPeeringLocations.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListDirectPeeringLocations.json
new file mode 100644
index 000000000000..fd7b8fae486e
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListDirectPeeringLocations.json
@@ -0,0 +1,81 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "kind": "Direct",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "kind": "Direct",
+ "properties": {
+ "direct": {
+ "peeringFacilities": [
+ {
+ "address": "address1",
+ "directPeeringType": "Edge",
+ "peeringDBFacilityId": 99999,
+ "peeringDBFacilityLink": "https://www.peeringdb.com/fac/99999"
+ },
+ {
+ "address": "address3",
+ "directPeeringType": "Cdn",
+ "peeringDBFacilityId": 99999,
+ "peeringDBFacilityLink": "https://www.peeringdb.com/fac/99999"
+ }
+ ],
+ "bandwidthOffers": [
+ {
+ "offerName": "10Gbps",
+ "valueInMbps": 10000
+ },
+ {
+ "offerName": "100Gbps",
+ "valueInMbps": 100000
+ }
+ ]
+ },
+ "peeringLocation": "peeringLocation1",
+ "country": "country1"
+ },
+ "name": "peeringLocation1",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringLocations/peeringLocation1",
+ "type": "Microsoft.Peering/peeringLocations"
+ },
+ {
+ "kind": "Direct",
+ "properties": {
+ "direct": {
+ "peeringFacilities": [
+ {
+ "address": "address2",
+ "directPeeringType": "Edge",
+ "peeringDBFacilityId": 99999,
+ "peeringDBFacilityLink": "https://www.peeringdb.com/fac/99999"
+ }
+ ],
+ "bandwidthOffers": [
+ {
+ "offerName": "10Gbps",
+ "valueInMbps": 10000
+ },
+ {
+ "offerName": "100Gbps",
+ "valueInMbps": 100000
+ }
+ ]
+ },
+ "peeringLocation": "peeringLocation2",
+ "country": "country2"
+ },
+ "name": "peeringLocation2",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringLocations/peeringLocation2",
+ "type": "Microsoft.Peering/peeringLocations"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListExchangePeeringLocations.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListExchangePeeringLocations.json
new file mode 100644
index 000000000000..d62eb4be3751
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListExchangePeeringLocations.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "kind": "Exchange",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "peeringFacilities": [
+ {
+ "exchangeName": "name1",
+ "bandwidthInMbps": 10000,
+ "microsoftIPv4Address": "192.168.131.1",
+ "microsoftIPv6Address": "fd00::1:1",
+ "facilityIPv4Prefix": "192.168.128.0/17",
+ "facilityIPv6Prefix": "fd00::1000:0/98",
+ "peeringDBFacilityId": 99999,
+ "peeringDBFacilityLink": "https://www.peeringdb.com/ix/99999"
+ },
+ {
+ "exchangeName": "name3",
+ "bandwidthInMbps": 10000,
+ "microsoftIPv4Address": "192.168.2.2",
+ "microsoftIPv6Address": "fd00::2",
+ "facilityIPv4Prefix": "192.168.0.0/17",
+ "facilityIPv6Prefix": "fd00::0/98",
+ "peeringDBFacilityId": 99999,
+ "peeringDBFacilityLink": "https://www.peeringdb.com/ix/99999"
+ }
+ ]
+ },
+ "peeringLocation": "peeringLocation1",
+ "country": "country1"
+ },
+ "name": "peeringLocation1",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringLocations/peeringLocation1",
+ "type": "Microsoft.Peering/peeringLocations"
+ },
+ {
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "peeringFacilities": [
+ {
+ "exchangeName": "name2",
+ "bandwidthInMbps": 10000,
+ "microsoftIPv4Address": "192.168.2.1",
+ "microsoftIPv6Address": "fd00::2",
+ "facilityIPv4Prefix": "192.168.0.0/16",
+ "facilityIPv6Prefix": "fd00::0/98",
+ "peeringDBFacilityId": 99999,
+ "peeringDBFacilityLink": "https://www.peeringdb.com/ix/99999"
+ }
+ ]
+ },
+ "peeringLocation": "peeringLocation2",
+ "country": "country2"
+ },
+ "name": "peeringLocation2",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringLocations/peeringLocation2",
+ "type": "Microsoft.Peering/peeringLocations"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListLegacyPeerings.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListLegacyPeerings.json
new file mode 100644
index 000000000000..67f4e79364ef
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListLegacyPeerings.json
@@ -0,0 +1,72 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "kind": "Exchange",
+ "peeringLocation": "peeringLocation0",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "sku": {
+ "name": "Basic_Exchange_Free",
+ "tier": "Basic",
+ "family": "Exchange",
+ "size": "Free"
+ },
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "connections": [
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.1",
+ "microsoftSessionIPv6Address": "fd00::1:1",
+ "peerSessionIPv4Address": "192.168.2.1",
+ "peerSessionIPv6Address": "fd00::1",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D"
+ },
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.2",
+ "microsoftSessionIPv6Address": "fd00::1:2",
+ "peerSessionIPv4Address": "192.168.2.2",
+ "peerSessionIPv6Address": "fd00::2",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
+ }
+ ],
+ "peerAsn": {
+ "id": "65000"
+ }
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "centralus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeerAsnsBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeerAsnsBySubscription.json
new file mode 100644
index 000000000000..1089c47a525f
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeerAsnsBySubscription.json
@@ -0,0 +1,41 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "peerAsn": 65000,
+ "peerContactDetail": [
+ {
+ "role": "Noc",
+ "email": "noc@contoso.com",
+ "phone": "+1 (234) 567-8999"
+ },
+ {
+ "role": "Policy",
+ "email": "abc@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ },
+ {
+ "role": "Technical",
+ "email": "xyz@contoso.com",
+ "phone": "+1 (234) 567-8900"
+ }
+ ],
+ "peerName": "Contoso",
+ "validationState": "Approved"
+ },
+ "name": "peerAsnName",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/peerAsnName",
+ "type": "Microsoft.Peering/peerAsns"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringOperations.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringOperations.json
new file mode 100644
index 000000000000..65572f7e43d1
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringOperations.json
@@ -0,0 +1,243 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.Peering/register/action",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "Peering Resource Provider",
+ "operation": "Registers the Peering Resource Provider",
+ "description": "Registers the subscription for the Peering Resource Provider and enables the creation of peerings"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerAsns/write",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peerAsns",
+ "operation": "Write PeerAsn",
+ "description": "Write any peerAsns"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerAsns/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peerAsns",
+ "operation": "Read PeerAsn",
+ "description": "Read any peerAsns"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerAsns/delete",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peerAsns",
+ "operation": "Delete PeerAsn",
+ "description": "Delete any peerAsns"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peeringLocations/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peeringLocations",
+ "operation": "Read PeeringLocation",
+ "description": "Read any peeringLocations"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/legacyPeerings/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "legacyPeerings",
+ "operation": "Read LegacyPeering",
+ "description": "Read any legacyPeerings"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerings/write",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peerings",
+ "operation": "Write Peering",
+ "description": "Write any peerings"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerings/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peerings",
+ "operation": "Read Peering",
+ "description": "Read any peerings"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerings/delete",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peerings",
+ "operation": "Delete Peering",
+ "description": "Delete any peerings"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peeringServiceLocations/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peeringServiceLocations",
+ "operation": "Read PeeringServiceLocations",
+ "description": "Read any peeringServiceLocations"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peeringServiceProviders/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peeringServiceProviders",
+ "operation": "Read PeeringServiceProviders",
+ "description": "Read any peeringServiceProviders"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peeringServices/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peeringServices",
+ "operation": "Read PeeringServices",
+ "description": "Read any peeringServices"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peeringServices/write",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peeringServices",
+ "operation": "Write PeeringService",
+ "description": "Write any peeringServices"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peeringServices/delete",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "peeringServices",
+ "operation": "Delete PeeringServices",
+ "description": "Delete any peeringServices"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peeringServices/prefixes/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "prefixes",
+ "operation": "Read PeeringServicePrefixes",
+ "description": "Read any prefixes"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peeringServices/prefixes/write",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "prefixes",
+ "operation": "Write PeeringServicePrefixes",
+ "description": "Write any prefixes"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peeringServices/prefixes/delete",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "prefixes",
+ "operation": "Delete PeeringServicePrefixes",
+ "description": "Delete any prefixes"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerings/registeredPrefixes/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "registeredPrefixes",
+ "operation": "Read RegisteredPrefixes",
+ "description": "Read any registeredPrefixes"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerings/registeredPrefixes/write",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "registeredPrefixes",
+ "operation": "Write RegisteredPrefixes",
+ "description": "Write any registeredPrefixes"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerings/registeredPrefixes/delete",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "registeredPrefixes",
+ "operation": "Delete RegisteredPrefixes",
+ "description": "Delete any registeredPrefixes"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerings/registeredAsns/read",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "registeredAsns",
+ "operation": "Read RegisteredAsns",
+ "description": "Read any registeredAsns"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerings/registeredAsns/write",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "registeredAsns",
+ "operation": "Write RegisteredAsns",
+ "description": "Write any registeredAsns"
+ },
+ "isDataAction": false
+ },
+ {
+ "name": "Microsoft.Peering/peerings/registeredAsns/delete",
+ "display": {
+ "provider": "Microsoft.Peering",
+ "resource": "registeredAsns",
+ "operation": "Delete RegisteredAsns",
+ "description": "Delete any registeredAsns"
+ },
+ "isDataAction": false
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceCountriesBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceCountriesBySubscription.json
new file mode 100644
index 000000000000..4da5b5a97720
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceCountriesBySubscription.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "country1",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceCountries/country1",
+ "type": "Microsoft.Peering/peeringServiceCountries"
+ },
+ {
+ "name": "country2",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceCountries/country2",
+ "type": "Microsoft.Peering/peeringServiceCountries"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceLocationsBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceLocationsBySubscription.json
new file mode 100644
index 000000000000..9c3e40c5bae0
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceLocationsBySubscription.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "country": "country1",
+ "state": "state1"
+ },
+ "name": "peeringServiceLocation1",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceLocations/peeringServiceLocation1",
+ "type": "Microsoft.Peering/peeringServiceLocations"
+ },
+ {
+ "properties": {
+ "country": "country2",
+ "state": "state2"
+ },
+ "name": "peeringServiceLocation2",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceLocations/peeringServiceLocation2",
+ "type": "Microsoft.Peering/peeringServiceLocations"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceProviders.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceProviders.json
new file mode 100644
index 000000000000..2d6bf7135a80
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServiceProviders.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "serviceProviderName": "peeringServiceProvider1"
+ },
+ "name": "peeringServiceProvider1",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceProviders/peeringServiceProvider1",
+ "type": "Microsoft.Peering/peeringServiceProviders"
+ },
+ {
+ "properties": {
+ "serviceProviderName": "peeringServiceProvider2"
+ },
+ "name": "peeringServiceProvider2",
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peeringServiceProviders/peeringServiceProvider2",
+ "type": "Microsoft.Peering/peeringServiceProviders"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServicesByResourceGroup.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServicesByResourceGroup.json
new file mode 100644
index 000000000000..d7fc375b050c
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServicesByResourceGroup.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "peeringServiceLocation": "state1",
+ "peeringServiceProvider": "serviceProvider1",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringServiceName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
+ "type": "Microsoft.Peering/peeringServices"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServicesBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServicesBySubscription.json
new file mode 100644
index 000000000000..6efecd38d5e2
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringServicesBySubscription.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "peeringServiceLocation": "state1",
+ "peeringServiceProvider": "serviceProvider1",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringServiceName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
+ "type": "Microsoft.Peering/peeringServices"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringsByResourceGroup.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringsByResourceGroup.json
new file mode 100644
index 000000000000..8a0cfa625ab0
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringsByResourceGroup.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "sku": {
+ "name": "Basic_Exchange_Free",
+ "tier": "Basic",
+ "family": "Exchange",
+ "size": "Free"
+ },
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "connections": [
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.1",
+ "microsoftSessionIPv6Address": "fd00::1:1",
+ "peerSessionIPv4Address": "192.168.2.1",
+ "peerSessionIPv6Address": "fd00::1",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D"
+ },
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.2",
+ "microsoftSessionIPv6Address": "fd00::1:2",
+ "peerSessionIPv4Address": "192.168.2.2",
+ "peerSessionIPv6Address": "fd00::2",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
+ }
+ ],
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ }
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringsBySubscription.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringsBySubscription.json
new file mode 100644
index 000000000000..02cc283a91f7
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPeeringsBySubscription.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "sku": {
+ "name": "Basic_Exchange_Free",
+ "tier": "Basic",
+ "family": "Exchange",
+ "size": "Free"
+ },
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "connections": [
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.1",
+ "microsoftSessionIPv6Address": "fd00::1:1",
+ "peerSessionIPv4Address": "192.168.2.1",
+ "peerSessionIPv6Address": "fd00::1",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D"
+ },
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.2",
+ "microsoftSessionIPv6Address": "fd00::1:2",
+ "peerSessionIPv4Address": "192.168.2.2",
+ "peerSessionIPv6Address": "fd00::2",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
+ }
+ ],
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ }
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPrefixesByPeeringService.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPrefixesByPeeringService.json
new file mode 100644
index 000000000000..17149c961a8e
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListPrefixesByPeeringService.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringServiceName": "peeringServiceName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "prefix": "192.168.1.0/24",
+ "prefixValidationState": "Verified",
+ "learnedType": "ViaServiceProvider",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "peeringServicePrefixName1",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName1"
+ },
+ {
+ "properties": {
+ "prefix": "192.168.2.0/24",
+ "prefixValidationState": "Verified",
+ "learnedType": "ViaServiceProvider",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "peeringServicePrefixName2",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName/prefixes/peeringServicePrefixName2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListRegisteredAsnsByPeering.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListRegisteredAsnsByPeering.json
new file mode 100644
index 000000000000..bf039171db23
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListRegisteredAsnsByPeering.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "asn": 65000,
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredAsnName0",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredAsns/registeredAsnName0",
+ "type": "Microsoft.Peering/registeredAsns"
+ },
+ {
+ "properties": {
+ "asn": 65001,
+ "provisioningState": "Failed"
+ },
+ "name": "registeredAsnName1",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredAsns/registeredAsnName1",
+ "type": "Microsoft.Peering/registeredAsns"
+ },
+ {
+ "properties": {
+ "asn": 65002,
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredAsnName2",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredAsns/registeredAsnName2",
+ "type": "Microsoft.Peering/registeredAsns"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListRegisteredPrefixesByPeering.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListRegisteredPrefixesByPeering.json
new file mode 100644
index 000000000000..2c2475f5a387
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/ListRegisteredPrefixesByPeering.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "prefix": "10.22.20.0/24",
+ "prefixValidationState": "Verified",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredPrefixName0",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredPrefixes/registeredPrefixName0",
+ "type": "Microsoft.Peering/registeredPrefixes"
+ },
+ {
+ "properties": {
+ "prefix": "10.22.21.0/24",
+ "prefixValidationState": "Verified",
+ "peeringServicePrefixKey": "00000000-0000-0000-0000-000000000000",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredPrefixName1",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredPrefixes/registeredPrefixName1",
+ "type": "Microsoft.Peering/registeredPrefixes"
+ },
+ {
+ "properties": {
+ "prefix": "10.22.22.0/24",
+ "prefixValidationState": "Pending",
+ "provisioningState": "Succeeded"
+ },
+ "name": "registeredPrefixName2",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName/registeredPrefixes/registeredPrefixName2",
+ "type": "Microsoft.Peering/registeredPrefixes"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/UpdatePeeringServiceTags.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/UpdatePeeringServiceTags.json
new file mode 100644
index 000000000000..93d4509e1c6d
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/UpdatePeeringServiceTags.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringServiceName": "peeringServiceName",
+ "api-version": "2020-04-01",
+ "tags": {
+ "tags": {
+ "tag0": "value0",
+ "tag1": "value1"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "peeringServiceLocation": "state1",
+ "peeringServiceProvider": "serviceProvider1",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "tags": {
+ "tag0": "value0",
+ "tag1": "value1"
+ },
+ "name": "peeringServiceName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peeringServices/peeringServiceName",
+ "type": "Microsoft.Peering/peeringServices"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/UpdatePeeringTags.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/UpdatePeeringTags.json
new file mode 100644
index 000000000000..1161201f6038
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/examples/UpdatePeeringTags.json
@@ -0,0 +1,78 @@
+{
+ "parameters": {
+ "subscriptionId": "subId",
+ "resourceGroupName": "rgName",
+ "peeringName": "peeringName",
+ "api-version": "2020-04-01",
+ "tags": {
+ "tags": {
+ "tag0": "value0",
+ "tag1": "value1"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sku": {
+ "name": "Basic_Exchange_Free",
+ "tier": "Basic",
+ "family": "Exchange",
+ "size": "Free"
+ },
+ "kind": "Exchange",
+ "properties": {
+ "exchange": {
+ "connections": [
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.1",
+ "microsoftSessionIPv6Address": "fd00::1:1",
+ "peerSessionIPv4Address": "192.168.2.1",
+ "peerSessionIPv6Address": "fd00::1",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CE495334-0E94-4E51-8164-8116D6CD284D"
+ },
+ {
+ "peeringDBFacilityId": 99999,
+ "connectionState": "Active",
+ "bgpSession": {
+ "microsoftSessionIPv4Address": "192.168.3.2",
+ "microsoftSessionIPv6Address": "fd00::1:2",
+ "peerSessionIPv4Address": "192.168.2.2",
+ "peerSessionIPv6Address": "fd00::2",
+ "sessionStateV4": "Established",
+ "sessionStateV6": "Established",
+ "maxPrefixesAdvertisedV4": 1000,
+ "maxPrefixesAdvertisedV6": 100,
+ "md5AuthenticationKey": "test-md5-auth-key"
+ },
+ "connectionIdentifier": "CDD8E673-CB07-47E6-84DE-3739F778762B"
+ }
+ ],
+ "peerAsn": {
+ "id": "/subscriptions/subId/providers/Microsoft.Peering/peerAsns/myAsn1"
+ }
+ },
+ "peeringLocation": "peeringLocation0",
+ "provisioningState": "Succeeded"
+ },
+ "location": "eastus",
+ "tags": {
+ "tag0": "value0",
+ "tag1": "value1"
+ },
+ "name": "peeringName",
+ "id": "/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Peering/peerings/peeringName",
+ "type": "Microsoft.Peering/peerings"
+ }
+ }
+ }
+}
diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/peering.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/peering.json
new file mode 100644
index 000000000000..d38f947a5b3d
--- /dev/null
+++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2020-04-01/peering.json
@@ -0,0 +1,3410 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-04-01",
+ "title": "PeeringManagementClient",
+ "description": "APIs to manage Peering resources through the Azure Resource Manager."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/CheckServiceProviderAvailability": {
+ "post": {
+ "tags": [
+ "CheckServiceProviderAvailability"
+ ],
+ "description": "Checks if the peering service provider is present within 1000 miles of customer's location",
+ "operationId": "CheckServiceProviderAvailability",
+ "parameters": [
+ {
+ "name": "checkServiceProviderAvailabilityInput",
+ "in": "body",
+ "description": "The CheckServiceProviderAvailabilityInput indicating customer location and service provider.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CheckServiceProviderAvailabilityInput"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "enum": [
+ "Available",
+ "Unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Check if peering service provider is available in customer location": {
+ "$ref": "./examples/CheckServiceProviderAvailability.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/legacyPeerings": {
+ "get": {
+ "tags": [
+ "LegacyPeerings"
+ ],
+ "description": "Lists all of the legacy peerings under the given subscription matching the specified kind and location.",
+ "operationId": "LegacyPeerings_List",
+ "parameters": [
+ {
+ "name": "peeringLocation",
+ "in": "query",
+ "description": "The location of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "kind",
+ "in": "query",
+ "description": "The kind of the peering.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "Direct",
+ "Exchange"
+ ]
+ },
+ {
+ "name": "asn",
+ "in": "query",
+ "description": "The ASN number associated with a legacy peering.",
+ "required": false,
+ "type": "integer",
+ "format": "int32"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List legacy peerings": {
+ "$ref": "./examples/ListLegacyPeerings.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Peering/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "description": "Lists all of the available API operations for peering resources.",
+ "operationId": "Operations_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List peering operations": {
+ "$ref": "./examples/ListPeeringOperations.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}": {
+ "get": {
+ "tags": [
+ "PeerAsns"
+ ],
+ "description": "Gets the peer ASN with the specified name under the given subscription.",
+ "operationId": "PeerAsns_Get",
+ "parameters": [
+ {
+ "name": "peerAsnName",
+ "in": "path",
+ "description": "The peer ASN name.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeerAsn"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get a peer ASN": {
+ "$ref": "./examples/GetPeerAsn.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "PeerAsns"
+ ],
+ "description": "Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.",
+ "operationId": "PeerAsns_CreateOrUpdate",
+ "parameters": [
+ {
+ "name": "peerAsnName",
+ "in": "path",
+ "description": "The peer ASN name.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peerAsn",
+ "in": "body",
+ "description": "The peer ASN.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PeerAsn"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeerAsn"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/PeerAsn"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create a peer ASN": {
+ "$ref": "./examples/CreatePeerAsn.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "PeerAsns"
+ ],
+ "description": "Deletes an existing peer ASN with the specified name under the given subscription.",
+ "operationId": "PeerAsns_Delete",
+ "parameters": [
+ {
+ "name": "peerAsnName",
+ "in": "path",
+ "description": "The peer ASN name.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete a peer ASN": {
+ "$ref": "./examples/DeletePeerAsn.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns": {
+ "get": {
+ "tags": [
+ "PeerAsns"
+ ],
+ "description": "Lists all of the peer ASNs under the given subscription.",
+ "operationId": "PeerAsns_ListBySubscription",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeerAsnListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List peer ASNs in a subscription": {
+ "$ref": "./examples/ListPeerAsnsBySubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringLocations": {
+ "get": {
+ "tags": [
+ "PeeringLocations"
+ ],
+ "description": "Lists all of the available peering locations for the specified kind of peering.",
+ "operationId": "PeeringLocations_List",
+ "parameters": [
+ {
+ "name": "kind",
+ "in": "query",
+ "description": "The kind of the peering.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "Direct",
+ "Exchange"
+ ]
+ },
+ {
+ "name": "directPeeringType",
+ "in": "query",
+ "description": "The type of direct peering.",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "Edge",
+ "Transit",
+ "Cdn",
+ "Internal",
+ "Ix",
+ "IxRs"
+ ]
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringLocationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List direct peering locations": {
+ "$ref": "./examples/ListDirectPeeringLocations.json"
+ },
+ "List exchange peering locations": {
+ "$ref": "./examples/ListExchangePeeringLocations.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredAsns/{registeredAsnName}": {
+ "get": {
+ "tags": [
+ "PeeringRegisteredAsns"
+ ],
+ "description": "Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.",
+ "operationId": "RegisteredAsns_Get",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "registeredAsnName",
+ "in": "path",
+ "description": "The name of the registered ASN.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredAsn"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get a registered ASN associated with the peering": {
+ "$ref": "./examples/GetRegisteredAsn.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "PeeringRegisteredAsns"
+ ],
+ "description": "Creates a new registered ASN with the specified name under the given subscription, resource group and peering.",
+ "operationId": "RegisteredAsns_CreateOrUpdate",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "registeredAsnName",
+ "in": "path",
+ "description": "The name of the ASN.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "registeredAsn",
+ "in": "body",
+ "description": "The properties needed to create a registered ASN.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredAsn"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredAsn"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredAsn"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or update a registered ASN for the peering": {
+ "$ref": "./examples/CreateRegisteredAsn.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "PeeringRegisteredAsns"
+ ],
+ "description": "Deletes an existing registered ASN with the specified name under the given subscription, resource group and peering.",
+ "operationId": "RegisteredAsns_Delete",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "registeredAsnName",
+ "in": "path",
+ "description": "The name of the registered ASN.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Deletes a registered ASN associated with the peering": {
+ "$ref": "./examples/DeleteRegisteredAsn.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredAsns": {
+ "get": {
+ "tags": [
+ "PeeringRegisteredAsns"
+ ],
+ "description": "Lists all registered ASNs under the given subscription, resource group and peering.",
+ "operationId": "RegisteredAsns_ListByPeering",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredAsnListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all the registered ASNs associated with the peering": {
+ "$ref": "./examples/ListRegisteredAsnsByPeering.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredPrefixes/{registeredPrefixName}": {
+ "get": {
+ "tags": [
+ "PeeringRegisteredPrefixes"
+ ],
+ "description": "Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.",
+ "operationId": "RegisteredPrefixes_Get",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "registeredPrefixName",
+ "in": "path",
+ "description": "The name of the registered prefix.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredPrefix"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get a registered prefix associated with the peering": {
+ "$ref": "./examples/GetRegisteredPrefix.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "PeeringRegisteredPrefixes"
+ ],
+ "description": "Creates a new registered prefix with the specified name under the given subscription, resource group and peering.",
+ "operationId": "RegisteredPrefixes_CreateOrUpdate",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "registeredPrefixName",
+ "in": "path",
+ "description": "The name of the registered prefix.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "registeredPrefix",
+ "in": "body",
+ "description": "The properties needed to create a registered prefix.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredPrefix"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredPrefix"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredPrefix"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or update a registered prefix for the peering": {
+ "$ref": "./examples/CreateRegisteredPrefix.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "PeeringRegisteredPrefixes"
+ ],
+ "description": "Deletes an existing registered prefix with the specified name under the given subscription, resource group and peering.",
+ "operationId": "RegisteredPrefixes_Delete",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "registeredPrefixName",
+ "in": "path",
+ "description": "The name of the registered prefix.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Deletes a registered prefix associated with the peering": {
+ "$ref": "./examples/DeleteRegisteredPrefix.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredPrefixes": {
+ "get": {
+ "tags": [
+ "PeeringRegisteredPrefixes"
+ ],
+ "description": "Lists all registered prefixes under the given subscription, resource group and peering.",
+ "operationId": "RegisteredPrefixes_ListByPeering",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringRegisteredPrefixListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all the registered prefixes associated with the peering": {
+ "$ref": "./examples/ListRegisteredPrefixesByPeering.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}": {
+ "get": {
+ "tags": [
+ "Peerings"
+ ],
+ "description": "Gets an existing peering with the specified name under the given subscription and resource group.",
+ "operationId": "Peerings_Get",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Peering"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get a peering": {
+ "$ref": "./examples/GetPeering.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Peerings"
+ ],
+ "description": "Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.",
+ "operationId": "Peerings_CreateOrUpdate",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peering",
+ "in": "body",
+ "description": "The properties needed to create or update a peering.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Peering"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Peering"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/Peering"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create a direct peering": {
+ "$ref": "./examples/CreateDirectPeering.json"
+ },
+ "Create an exchange peering": {
+ "$ref": "./examples/CreateExchangePeering.json"
+ },
+ "Create a peering with exchange route server": {
+ "$ref": "./examples/CreatePeeringWithExchangeRouteServer.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Peerings"
+ ],
+ "description": "Deletes an existing peering with the specified name under the given subscription and resource group.",
+ "operationId": "Peerings_Delete",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete a peering": {
+ "$ref": "./examples/DeletePeering.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Peerings"
+ ],
+ "description": "Updates tags for a peering with the specified name under the given subscription and resource group.",
+ "operationId": "Peerings_Update",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "tags",
+ "in": "body",
+ "description": "The resource tags.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ResourceTags"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/Peering"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update peering tags": {
+ "$ref": "./examples/UpdatePeeringTags.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings": {
+ "get": {
+ "tags": [
+ "Peerings"
+ ],
+ "description": "Lists all of the peerings under the given subscription and resource group.",
+ "operationId": "Peerings_ListByResourceGroup",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List peerings in a resource group": {
+ "$ref": "./examples/ListPeeringsByResourceGroup.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerings": {
+ "get": {
+ "tags": [
+ "Peerings"
+ ],
+ "description": "Lists all of the peerings under the given subscription.",
+ "operationId": "Peerings_ListBySubscription",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List peerings in a subscription": {
+ "$ref": "./examples/ListPeeringsBySubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/receivedRoutes": {
+ "get": {
+ "tags": [
+ "Peerings"
+ ],
+ "description": "Lists the prefixes received over the specified peering under the given subscription and resource group.",
+ "operationId": "ReceivedRoutes_ListByPeering",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "prefix",
+ "in": "query",
+ "description": "The optional prefix that can be used to filter the routes.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "asPath",
+ "in": "query",
+ "description": "The optional AS path that can be used to filter the routes.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "originAsValidationState",
+ "in": "query",
+ "description": "The optional origin AS validation state that can be used to filter the routes.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "rpkiValidationState",
+ "in": "query",
+ "description": "The optional RPKI validation state that can be used to filter the routes.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "name": "$skipToken",
+ "in": "query",
+ "description": "The optional page continuation token that is used in the event of paginated result.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringReceivedRouteListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Lists the prefixes received over the specified peering under the given subscription and resource group.": {
+ "$ref": "./examples/GetPeeringReceivedRoutes.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServiceCountries": {
+ "get": {
+ "tags": [
+ "PeeringServiceCountries"
+ ],
+ "description": "Lists all of the available countries for peering service.",
+ "operationId": "PeeringServiceCountries_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringServiceCountryListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List peering service countries": {
+ "$ref": "./examples/ListPeeringServiceCountriesBySubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServiceLocations": {
+ "get": {
+ "tags": [
+ "PeeringServiceLocations"
+ ],
+ "description": "Lists all of the available locations for peering service.",
+ "operationId": "PeeringServiceLocations_List",
+ "parameters": [
+ {
+ "name": "country",
+ "in": "query",
+ "description": "The country of interest, in which the locations are to be present.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringServiceLocationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List peering service locations": {
+ "$ref": "./examples/ListPeeringServiceLocationsBySubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}": {
+ "get": {
+ "tags": [
+ "PeeringServicePrefixes"
+ ],
+ "description": "Gets an existing prefix with the specified name under the given subscription, resource group and peering service.",
+ "operationId": "Prefixes_Get",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringServiceName",
+ "in": "path",
+ "description": "The name of the peering service.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "prefixName",
+ "in": "path",
+ "description": "The name of the prefix.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "The properties to be expanded.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringServicePrefix"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get a prefix associated with the peering service": {
+ "$ref": "./examples/GetPeeringServicePrefix.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "PeeringServicePrefixes"
+ ],
+ "description": "Creates a new prefix with the specified name under the given subscription, resource group and peering service.",
+ "operationId": "Prefixes_CreateOrUpdate",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringServiceName",
+ "in": "path",
+ "description": "The name of the peering service.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "prefixName",
+ "in": "path",
+ "description": "The name of the prefix.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringServicePrefix",
+ "in": "body",
+ "description": "The properties needed to create a prefix.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PeeringServicePrefix"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringServicePrefix"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/PeeringServicePrefix"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create or update a prefix for the peering service": {
+ "$ref": "./examples/CreatePeeringServicePrefix.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "PeeringServicePrefixes"
+ ],
+ "description": "Deletes an existing prefix with the specified name under the given subscription, resource group and peering service.",
+ "operationId": "Prefixes_Delete",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringServiceName",
+ "in": "path",
+ "description": "The name of the peering service.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "prefixName",
+ "in": "path",
+ "description": "The name of the prefix.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete a prefix associated with the peering service": {
+ "$ref": "./examples/DeletePeeringServicePrefix.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes": {
+ "get": {
+ "tags": [
+ "PeeringServicePrefixes"
+ ],
+ "description": "Lists all prefixes under the given subscription, resource group and peering service.",
+ "operationId": "Prefixes_ListByPeeringService",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringServiceName",
+ "in": "path",
+ "description": "The name of the peering service.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "description": "The properties to be expanded.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringServicePrefixListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List all the prefixes associated with the peering service": {
+ "$ref": "./examples/ListPrefixesByPeeringService.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServiceProviders": {
+ "get": {
+ "tags": [
+ "PeeringServiceProviders"
+ ],
+ "description": "Lists all of the available peering service locations for the specified kind of peering.",
+ "operationId": "PeeringServiceProviders_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringServiceProviderListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List peering service providers": {
+ "$ref": "./examples/ListPeeringServiceProviders.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}": {
+ "get": {
+ "tags": [
+ "PeeringServices"
+ ],
+ "description": "Gets an existing peering service with the specified name under the given subscription and resource group.",
+ "operationId": "PeeringServices_Get",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringServiceName",
+ "in": "path",
+ "description": "The name of the peering.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringService"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get a peering service": {
+ "$ref": "./examples/GetPeeringService.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "PeeringServices"
+ ],
+ "description": "Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.",
+ "operationId": "PeeringServices_CreateOrUpdate",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringServiceName",
+ "in": "path",
+ "description": "The name of the peering service.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringService",
+ "in": "body",
+ "description": "The properties needed to create or update a peering service.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PeeringService"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringService"
+ }
+ },
+ "201": {
+ "description": "Created",
+ "schema": {
+ "$ref": "#/definitions/PeeringService"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create a peering service": {
+ "$ref": "./examples/CreatePeeringService.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "PeeringServices"
+ ],
+ "description": "Deletes an existing peering service with the specified name under the given subscription and resource group.",
+ "operationId": "PeeringServices_Delete",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringServiceName",
+ "in": "path",
+ "description": "The name of the peering service.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "NoContent"
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete a peering service": {
+ "$ref": "./examples/DeletePeeringService.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "PeeringServices"
+ ],
+ "description": "Updates tags for a peering service with the specified name under the given subscription and resource group.",
+ "operationId": "PeeringServices_Update",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "peeringServiceName",
+ "in": "path",
+ "description": "The name of the peering service.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "tags",
+ "in": "body",
+ "description": "The resource tags.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ResourceTags"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringService"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update peering service tags": {
+ "$ref": "./examples/UpdatePeeringServiceTags.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices": {
+ "get": {
+ "tags": [
+ "PeeringServices"
+ ],
+ "description": "Lists all of the peering services under the given subscription and resource group.",
+ "operationId": "PeeringServices_ListByResourceGroup",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringServiceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List peering services in a resource group": {
+ "$ref": "./examples/ListPeeringServicesByResourceGroup.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServices": {
+ "get": {
+ "tags": [
+ "PeeringServices"
+ ],
+ "description": "Lists all of the peerings under the given subscription.",
+ "operationId": "PeeringServices_ListBySubscription",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/PeeringServiceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation has failed.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List peering services in a subscription": {
+ "$ref": "./examples/ListPeeringServicesBySubscription.json"
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "CheckServiceProviderAvailabilityInput": {
+ "description": "Class for CheckServiceProviderAvailabilityInput",
+ "type": "object",
+ "properties": {
+ "peeringServiceLocation": {
+ "description": "Gets or sets the peering service location.",
+ "type": "string"
+ },
+ "peeringServiceProvider": {
+ "description": "Gets or sets the peering service provider.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringListResult": {
+ "description": "The paginated list of peerings.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peerings.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Peering"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peerings.",
+ "type": "string"
+ }
+ }
+ },
+ "Peering": {
+ "description": "Peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location.",
+ "required": [
+ "sku",
+ "kind",
+ "location"
+ ],
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "sku": {
+ "$ref": "#/definitions/PeeringSku",
+ "description": "The SKU that defines the tier and kind of the peering."
+ },
+ "kind": {
+ "description": "The kind of the peering.",
+ "enum": [
+ "Direct",
+ "Exchange"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "kind",
+ "modelAsString": true
+ }
+ },
+ "properties": {
+ "$ref": "#/definitions/PeeringProperties",
+ "description": "The properties that define a peering.",
+ "x-ms-client-flatten": true
+ },
+ "location": {
+ "description": "The location of the resource.",
+ "type": "string",
+ "x-ms-mutability": [
+ "read",
+ "create"
+ ]
+ },
+ "tags": {
+ "description": "The resource tags.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "PeeringSku": {
+ "description": "The SKU that defines the tier and kind of the peering.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the peering SKU.",
+ "type": "string"
+ },
+ "tier": {
+ "description": "The tier of the peering SKU.",
+ "enum": [
+ "Basic",
+ "Premium"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "tier",
+ "modelAsString": true
+ }
+ },
+ "family": {
+ "description": "The family of the peering SKU.",
+ "enum": [
+ "Direct",
+ "Exchange"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "family",
+ "modelAsString": true
+ }
+ },
+ "size": {
+ "description": "The size of the peering SKU.",
+ "enum": [
+ "Free",
+ "Metered",
+ "Unlimited"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "size",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "PeeringProperties": {
+ "description": "The properties that define connectivity to the Microsoft Cloud Edge.",
+ "type": "object",
+ "properties": {
+ "direct": {
+ "$ref": "#/definitions/PeeringPropertiesDirect",
+ "description": "The properties that define a direct peering."
+ },
+ "exchange": {
+ "$ref": "#/definitions/PeeringPropertiesExchange",
+ "description": "The properties that define an exchange peering."
+ },
+ "peeringLocation": {
+ "description": "The location of the peering.",
+ "type": "string"
+ },
+ "provisioningState": {
+ "description": "The provisioning state of the resource.",
+ "enum": [
+ "Succeeded",
+ "Updating",
+ "Deleting",
+ "Failed"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "provisioningState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "PeeringPropertiesDirect": {
+ "description": "The properties that define a direct peering.",
+ "type": "object",
+ "properties": {
+ "connections": {
+ "description": "The set of connections that constitute a direct peering.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DirectConnection"
+ }
+ },
+ "useForPeeringService": {
+ "description": "The flag that indicates whether or not the peering is used for peering service.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "peerAsn": {
+ "$ref": "#/definitions/SubResource",
+ "description": "The reference of the peer ASN."
+ },
+ "directPeeringType": {
+ "description": "The type of direct peering.",
+ "enum": [
+ "Edge",
+ "Transit",
+ "Cdn",
+ "Internal",
+ "Ix",
+ "IxRs"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "directPeeringType",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "PeeringPropertiesExchange": {
+ "description": "The properties that define an exchange peering.",
+ "type": "object",
+ "properties": {
+ "connections": {
+ "description": "The set of connections that constitute an exchange peering.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ExchangeConnection"
+ }
+ },
+ "peerAsn": {
+ "$ref": "#/definitions/SubResource",
+ "description": "The reference of the peer ASN."
+ }
+ }
+ },
+ "DirectConnection": {
+ "description": "The properties that define a direct connection.",
+ "type": "object",
+ "properties": {
+ "bandwidthInMbps": {
+ "format": "int32",
+ "description": "The bandwidth of the connection.",
+ "type": "integer"
+ },
+ "provisionedBandwidthInMbps": {
+ "format": "int32",
+ "description": "The bandwidth that is actually provisioned.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "sessionAddressProvider": {
+ "description": "The field indicating if Microsoft provides session ip addresses.",
+ "enum": [
+ "Microsoft",
+ "Peer"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "sessionAddressProvider",
+ "modelAsString": true
+ }
+ },
+ "useForPeeringService": {
+ "description": "The flag that indicates whether or not the connection is used for peering service.",
+ "type": "boolean"
+ },
+ "peeringDBFacilityId": {
+ "format": "int32",
+ "description": "The PeeringDB.com ID of the facility at which the connection has to be set up.",
+ "type": "integer"
+ },
+ "connectionState": {
+ "description": "The state of the connection.",
+ "enum": [
+ "None",
+ "PendingApproval",
+ "Approved",
+ "ProvisioningStarted",
+ "ProvisioningFailed",
+ "ProvisioningCompleted",
+ "Validating",
+ "Active"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "connectionState",
+ "modelAsString": true
+ }
+ },
+ "bgpSession": {
+ "$ref": "#/definitions/BgpSession",
+ "description": "The BGP session associated with the connection."
+ },
+ "connectionIdentifier": {
+ "description": "The unique identifier (GUID) for the connection.",
+ "type": "string"
+ },
+ "errorMessage": {
+ "description": "The error message related to the connection state, if any.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SubResource": {
+ "description": "The sub resource.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The identifier of the referenced resource.",
+ "type": "string"
+ }
+ }
+ },
+ "ExchangeConnection": {
+ "description": "The properties that define an exchange connection.",
+ "type": "object",
+ "properties": {
+ "peeringDBFacilityId": {
+ "format": "int32",
+ "description": "The PeeringDB.com ID of the facility at which the connection has to be set up.",
+ "type": "integer"
+ },
+ "connectionState": {
+ "description": "The state of the connection.",
+ "enum": [
+ "None",
+ "PendingApproval",
+ "Approved",
+ "ProvisioningStarted",
+ "ProvisioningFailed",
+ "ProvisioningCompleted",
+ "Validating",
+ "Active"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "connectionState",
+ "modelAsString": true
+ }
+ },
+ "bgpSession": {
+ "$ref": "#/definitions/BgpSession",
+ "description": "The BGP session associated with the connection."
+ },
+ "connectionIdentifier": {
+ "description": "The unique identifier (GUID) for the connection.",
+ "type": "string"
+ },
+ "errorMessage": {
+ "description": "The error message related to the connection state, if any.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "BgpSession": {
+ "description": "The properties that define a BGP session.",
+ "type": "object",
+ "properties": {
+ "sessionPrefixV4": {
+ "description": "The IPv4 prefix that contains both ends' IPv4 addresses.",
+ "type": "string"
+ },
+ "sessionPrefixV6": {
+ "description": "The IPv6 prefix that contains both ends' IPv6 addresses.",
+ "type": "string"
+ },
+ "microsoftSessionIPv4Address": {
+ "description": "The IPv4 session address on Microsoft's end.",
+ "type": "string"
+ },
+ "microsoftSessionIPv6Address": {
+ "description": "The IPv6 session address on Microsoft's end.",
+ "type": "string"
+ },
+ "peerSessionIPv4Address": {
+ "description": "The IPv4 session address on peer's end.",
+ "type": "string"
+ },
+ "peerSessionIPv6Address": {
+ "description": "The IPv6 session address on peer's end.",
+ "type": "string"
+ },
+ "sessionStateV4": {
+ "description": "The state of the IPv4 session.",
+ "enum": [
+ "None",
+ "Idle",
+ "Connect",
+ "Active",
+ "OpenSent",
+ "OpenConfirm",
+ "OpenReceived",
+ "Established",
+ "PendingAdd",
+ "PendingUpdate",
+ "PendingRemove"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "sessionStateV4",
+ "modelAsString": true
+ }
+ },
+ "sessionStateV6": {
+ "description": "The state of the IPv6 session.",
+ "enum": [
+ "None",
+ "Idle",
+ "Connect",
+ "Active",
+ "OpenSent",
+ "OpenConfirm",
+ "OpenReceived",
+ "Established",
+ "PendingAdd",
+ "PendingUpdate",
+ "PendingRemove"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "sessionStateV6",
+ "modelAsString": true
+ }
+ },
+ "maxPrefixesAdvertisedV4": {
+ "format": "int32",
+ "description": "The maximum number of prefixes advertised over the IPv4 session.",
+ "type": "integer"
+ },
+ "maxPrefixesAdvertisedV6": {
+ "format": "int32",
+ "description": "The maximum number of prefixes advertised over the IPv6 session.",
+ "type": "integer"
+ },
+ "md5AuthenticationKey": {
+ "description": "The MD5 authentication key of the session.",
+ "type": "string"
+ }
+ }
+ },
+ "OperationListResult": {
+ "description": "The paginated list of peering API operations.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peering API operations.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peering API operations.",
+ "type": "string"
+ }
+ }
+ },
+ "Operation": {
+ "description": "The peering API operation.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the operation.",
+ "type": "string",
+ "readOnly": true
+ },
+ "display": {
+ "$ref": "#/definitions/OperationDisplayInfo",
+ "description": "The information related to the operation.",
+ "readOnly": true
+ },
+ "isDataAction": {
+ "description": "The flag that indicates whether the operation applies to data plane.",
+ "type": "boolean",
+ "readOnly": true
+ }
+ }
+ },
+ "OperationDisplayInfo": {
+ "description": "The information related to the operation.",
+ "type": "object",
+ "properties": {
+ "provider": {
+ "description": "The name of the resource provider.",
+ "type": "string",
+ "readOnly": true
+ },
+ "resource": {
+ "description": "The type of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "operation": {
+ "description": "The name of the operation.",
+ "type": "string",
+ "readOnly": true
+ },
+ "description": {
+ "description": "The description of the operation.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "PeerAsn": {
+ "description": "The essential information related to the peer's ASN.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PeerAsnProperties",
+ "description": "The properties that define a peer's ASN.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "PeerAsnProperties": {
+ "description": "The properties that define a peer's ASN.",
+ "type": "object",
+ "properties": {
+ "peerAsn": {
+ "format": "int32",
+ "description": "The Autonomous System Number (ASN) of the peer.",
+ "type": "integer"
+ },
+ "peerContactDetail": {
+ "description": "The contact details of the peer.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ContactDetail"
+ }
+ },
+ "peerName": {
+ "description": "The name of the peer.",
+ "type": "string"
+ },
+ "validationState": {
+ "description": "The validation state of the ASN associated with the peer.",
+ "enum": [
+ "None",
+ "Pending",
+ "Approved",
+ "Failed"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "validationState",
+ "modelAsString": true
+ }
+ },
+ "errorMessage": {
+ "description": "The error message for the validation state",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "ContactDetail": {
+ "description": "The contact detail class.",
+ "type": "object",
+ "properties": {
+ "role": {
+ "description": "The role of the contact.",
+ "enum": [
+ "Noc",
+ "Policy",
+ "Technical",
+ "Service",
+ "Escalation",
+ "Other"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "role",
+ "modelAsString": true
+ }
+ },
+ "email": {
+ "description": "The e-mail address of the contact.",
+ "type": "string"
+ },
+ "phone": {
+ "description": "The phone number of the contact.",
+ "type": "string"
+ }
+ }
+ },
+ "PeerAsnListResult": {
+ "description": "The paginated list of peer ASNs.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peer ASNs.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeerAsn"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peer ASNs.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringLocationListResult": {
+ "description": "The paginated list of peering locations.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peering locations.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringLocation"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peering locations.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringLocation": {
+ "description": "Peering location is where connectivity could be established to the Microsoft Cloud Edge.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "kind": {
+ "description": "The kind of peering that the peering location supports.",
+ "enum": [
+ "Direct",
+ "Exchange"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "kind",
+ "modelAsString": true
+ }
+ },
+ "properties": {
+ "$ref": "#/definitions/PeeringLocationProperties",
+ "description": "The properties that define a peering location.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "PeeringLocationProperties": {
+ "description": "The properties that define a peering location.",
+ "type": "object",
+ "properties": {
+ "direct": {
+ "$ref": "#/definitions/PeeringLocationPropertiesDirect",
+ "description": "The properties that define a direct peering location."
+ },
+ "exchange": {
+ "$ref": "#/definitions/PeeringLocationPropertiesExchange",
+ "description": "The properties that define an exchange peering location."
+ },
+ "peeringLocation": {
+ "description": "The name of the peering location.",
+ "type": "string"
+ },
+ "country": {
+ "description": "The country in which the peering location exists.",
+ "type": "string"
+ },
+ "azureRegion": {
+ "description": "The Azure region associated with the peering location.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringLocationPropertiesDirect": {
+ "description": "The properties that define a direct peering location.",
+ "type": "object",
+ "properties": {
+ "peeringFacilities": {
+ "description": "The list of direct peering facilities at the peering location.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DirectPeeringFacility"
+ }
+ },
+ "bandwidthOffers": {
+ "description": "The list of bandwidth offers available at the peering location.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringBandwidthOffer"
+ }
+ }
+ }
+ },
+ "PeeringLocationPropertiesExchange": {
+ "description": "The properties that define an exchange peering location.",
+ "type": "object",
+ "properties": {
+ "peeringFacilities": {
+ "description": "The list of exchange peering facilities at the peering location.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ExchangePeeringFacility"
+ }
+ }
+ }
+ },
+ "DirectPeeringFacility": {
+ "description": "The properties that define a direct peering facility.",
+ "type": "object",
+ "properties": {
+ "address": {
+ "description": "The address of the direct peering facility.",
+ "type": "string"
+ },
+ "directPeeringType": {
+ "description": "The type of the direct peering.",
+ "enum": [
+ "Edge",
+ "Transit",
+ "Cdn",
+ "Internal",
+ "Ix",
+ "IxRs"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "directPeeringType",
+ "modelAsString": true
+ }
+ },
+ "peeringDBFacilityId": {
+ "format": "int32",
+ "description": "The PeeringDB.com ID of the facility.",
+ "type": "integer"
+ },
+ "peeringDBFacilityLink": {
+ "description": "The PeeringDB.com URL of the facility.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringBandwidthOffer": {
+ "description": "The properties that define a peering bandwidth offer.",
+ "type": "object",
+ "properties": {
+ "offerName": {
+ "description": "The name of the bandwidth offer.",
+ "type": "string"
+ },
+ "valueInMbps": {
+ "format": "int32",
+ "description": "The value of the bandwidth offer in Mbps.",
+ "type": "integer"
+ }
+ }
+ },
+ "ExchangePeeringFacility": {
+ "description": "The properties that define an exchange peering facility.",
+ "type": "object",
+ "properties": {
+ "exchangeName": {
+ "description": "The name of the exchange peering facility.",
+ "type": "string"
+ },
+ "bandwidthInMbps": {
+ "format": "int32",
+ "description": "The bandwidth of the connection between Microsoft and the exchange peering facility.",
+ "type": "integer"
+ },
+ "microsoftIPv4Address": {
+ "description": "The IPv4 address of Microsoft at the exchange peering facility.",
+ "type": "string"
+ },
+ "microsoftIPv6Address": {
+ "description": "The IPv6 address of Microsoft at the exchange peering facility.",
+ "type": "string"
+ },
+ "facilityIPv4Prefix": {
+ "description": "The IPv4 prefixes associated with the exchange peering facility.",
+ "type": "string"
+ },
+ "facilityIPv6Prefix": {
+ "description": "The IPv6 prefixes associated with the exchange peering facility.",
+ "type": "string"
+ },
+ "peeringDBFacilityId": {
+ "format": "int32",
+ "description": "The PeeringDB.com ID of the facility.",
+ "type": "integer"
+ },
+ "peeringDBFacilityLink": {
+ "description": "The PeeringDB.com URL of the facility.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringRegisteredAsn": {
+ "description": "The customer's ASN that is registered by the peering service provider.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PeeringRegisteredAsnProperties",
+ "description": "The properties that define a registered ASN.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "PeeringRegisteredAsnProperties": {
+ "description": "The properties that define a registered ASN.",
+ "type": "object",
+ "properties": {
+ "asn": {
+ "format": "int32",
+ "description": "The customer's ASN from which traffic originates.",
+ "type": "integer"
+ },
+ "peeringServicePrefixKey": {
+ "description": "The peering service prefix key that is to be shared with the customer.",
+ "type": "string",
+ "readOnly": true
+ },
+ "provisioningState": {
+ "description": "The provisioning state of the resource.",
+ "enum": [
+ "Succeeded",
+ "Updating",
+ "Deleting",
+ "Failed"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "provisioningState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "PeeringRegisteredAsnListResult": {
+ "description": "The paginated list of peering registered ASNs.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peering registered ASNs.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringRegisteredAsn"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peering registered ASNs.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringRegisteredPrefix": {
+ "description": "The customer's prefix that is registered by the peering service provider.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PeeringRegisteredPrefixProperties",
+ "description": "The properties that define a registered prefix.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "PeeringRegisteredPrefixProperties": {
+ "description": "The properties that define a registered prefix.",
+ "type": "object",
+ "properties": {
+ "prefix": {
+ "description": "The customer's prefix from which traffic originates.",
+ "type": "string"
+ },
+ "prefixValidationState": {
+ "description": "The prefix validation state.",
+ "enum": [
+ "None",
+ "Invalid",
+ "Verified",
+ "Failed",
+ "Pending",
+ "Warning",
+ "Unknown"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "prefixValidationState",
+ "modelAsString": true
+ }
+ },
+ "peeringServicePrefixKey": {
+ "description": "The peering service prefix key that is to be shared with the customer.",
+ "type": "string",
+ "readOnly": true
+ },
+ "errorMessage": {
+ "description": "The error message associated with the validation state, if any.",
+ "type": "string",
+ "readOnly": true
+ },
+ "provisioningState": {
+ "description": "The provisioning state of the resource.",
+ "enum": [
+ "Succeeded",
+ "Updating",
+ "Deleting",
+ "Failed"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "provisioningState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "PeeringRegisteredPrefixListResult": {
+ "description": "The paginated list of peering registered prefixes.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peering registered prefixes.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringRegisteredPrefix"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peering registered prefixes.",
+ "type": "string"
+ }
+ }
+ },
+ "ResourceTags": {
+ "description": "The resource tags.",
+ "type": "object",
+ "properties": {
+ "tags": {
+ "description": "Gets or sets the tags, a dictionary of descriptors arm object",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "PeeringReceivedRouteListResult": {
+ "description": "The paginated list of received routes for the peering.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of received routes for the peering.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringReceivedRoute"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of received routes for the peering.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringReceivedRoute": {
+ "description": "The properties that define a received route.",
+ "type": "object",
+ "properties": {
+ "prefix": {
+ "description": "The prefix.",
+ "type": "string",
+ "readOnly": true
+ },
+ "nextHop": {
+ "description": "The next hop for the prefix.",
+ "type": "string",
+ "readOnly": true
+ },
+ "asPath": {
+ "description": "The AS path for the prefix.",
+ "type": "string",
+ "readOnly": true
+ },
+ "originAsValidationState": {
+ "description": "The origin AS change information for the prefix.",
+ "type": "string",
+ "readOnly": true
+ },
+ "rpkiValidationState": {
+ "description": "The RPKI validation state for the prefix and origin AS that's listed in the AS path.",
+ "type": "string",
+ "readOnly": true
+ },
+ "trustAnchor": {
+ "description": "The authority which holds the Route Origin Authorization record for the prefix, if any.",
+ "type": "string",
+ "readOnly": true
+ },
+ "receivedTimestamp": {
+ "description": "The received timestamp associated with the prefix.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "PeeringServiceCountryListResult": {
+ "description": "The paginated list of peering service countries.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peering service countries.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringServiceCountry"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peering service countries.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringServiceCountry": {
+ "description": "The peering service country.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {}
+ },
+ "PeeringServiceLocationListResult": {
+ "description": "The paginated list of peering service locations.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peering service locations.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringServiceLocation"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peering service locations.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringServiceLocation": {
+ "description": "The peering service location.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PeeringServiceLocationProperties",
+ "description": "The properties that define a peering service location.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "PeeringServiceLocationProperties": {
+ "description": "The properties that define connectivity to the Peering Service Location.",
+ "type": "object",
+ "properties": {
+ "country": {
+ "description": "Country of the customer",
+ "type": "string"
+ },
+ "state": {
+ "description": "State of the customer",
+ "type": "string"
+ },
+ "azureRegion": {
+ "description": "Azure region for the location",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringServicePrefix": {
+ "description": "The peering service prefix class.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PeeringServicePrefixProperties",
+ "description": "Gets or sets the peering prefix properties.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "PeeringServicePrefixProperties": {
+ "description": "The peering service prefix properties class.",
+ "type": "object",
+ "properties": {
+ "prefix": {
+ "description": "The prefix from which your traffic originates.",
+ "type": "string"
+ },
+ "prefixValidationState": {
+ "description": "The prefix validation state",
+ "enum": [
+ "None",
+ "Invalid",
+ "Verified",
+ "Failed",
+ "Pending",
+ "Warning",
+ "Unknown"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "prefixValidationState",
+ "modelAsString": true
+ }
+ },
+ "learnedType": {
+ "description": "The prefix learned type",
+ "enum": [
+ "None",
+ "ViaServiceProvider",
+ "ViaSession"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "learnedType",
+ "modelAsString": true
+ }
+ },
+ "errorMessage": {
+ "description": "The error message for validation state",
+ "type": "string",
+ "readOnly": true
+ },
+ "events": {
+ "description": "The list of events for peering service prefix",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringServicePrefixEvent"
+ },
+ "readOnly": true
+ },
+ "peeringServicePrefixKey": {
+ "description": "The peering service prefix key",
+ "type": "string"
+ },
+ "provisioningState": {
+ "description": "The provisioning state of the resource.",
+ "enum": [
+ "Succeeded",
+ "Updating",
+ "Deleting",
+ "Failed"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "provisioningState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "PeeringServicePrefixEvent": {
+ "description": "The details of the event associated with a prefix.",
+ "type": "object",
+ "properties": {
+ "eventTimestamp": {
+ "format": "date-time",
+ "description": "The timestamp of the event associated with a prefix.",
+ "type": "string",
+ "readOnly": true
+ },
+ "eventType": {
+ "description": "The type of the event associated with a prefix.",
+ "type": "string",
+ "readOnly": true
+ },
+ "eventSummary": {
+ "description": "The summary of the event associated with a prefix.",
+ "type": "string",
+ "readOnly": true
+ },
+ "eventLevel": {
+ "description": "The level of the event associated with a prefix.",
+ "type": "string",
+ "readOnly": true
+ },
+ "eventDescription": {
+ "description": "The description of the event associated with a prefix.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "PeeringServicePrefixListResult": {
+ "description": "The paginated list of peering service prefixes.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peering service prefixes.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringServicePrefix"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peering service prefixes.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringServiceProviderListResult": {
+ "description": "The paginated list of peering service providers.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peering service providers.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringServiceProvider"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peering service providers.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringServiceProvider": {
+ "description": "PeeringService provider",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PeeringServiceProviderProperties",
+ "description": "The properties that define a peering service provider.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "PeeringServiceProviderProperties": {
+ "description": "The properties that define connectivity to the Peering Service Provider.",
+ "type": "object",
+ "properties": {
+ "serviceProviderName": {
+ "description": "The name of the service provider.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringService": {
+ "description": "Peering Service",
+ "required": [
+ "location"
+ ],
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "sku": {
+ "$ref": "#/definitions/PeeringServiceSku",
+ "description": "The SKU that defines the type of the peering service."
+ },
+ "properties": {
+ "$ref": "#/definitions/PeeringServiceProperties",
+ "description": "The properties that define a peering service.",
+ "x-ms-client-flatten": true
+ },
+ "location": {
+ "description": "The location of the resource.",
+ "type": "string",
+ "x-ms-mutability": [
+ "read",
+ "create"
+ ]
+ },
+ "tags": {
+ "description": "The resource tags.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "PeeringServiceSku": {
+ "description": "The SKU that defines the type of the peering service.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the peering service SKU.",
+ "type": "string"
+ }
+ }
+ },
+ "PeeringServiceProperties": {
+ "description": "The properties that define connectivity to the Peering Service.",
+ "type": "object",
+ "properties": {
+ "peeringServiceLocation": {
+ "description": "The PeeringServiceLocation of the Customer.",
+ "type": "string"
+ },
+ "peeringServiceProvider": {
+ "description": "The MAPS Provider Name.",
+ "type": "string"
+ },
+ "provisioningState": {
+ "description": "The provisioning state of the resource.",
+ "enum": [
+ "Succeeded",
+ "Updating",
+ "Deleting",
+ "Failed"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "provisioningState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "PeeringServiceListResult": {
+ "description": "The paginated list of peering services.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The list of peering services.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeeringService"
+ }
+ },
+ "nextLink": {
+ "description": "The link to fetch the next page of peering services.",
+ "type": "string"
+ }
+ }
+ },
+ "ErrorResponse": {
+ "description": "The error response that indicates why an operation has failed.",
+ "type": "object",
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/ErrorDetail",
+ "description": "The error detail that describes why an operation has failed."
+ }
+ }
+ },
+ "ErrorDetail": {
+ "description": "The error detail that describes why an operation has failed.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "The error code.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "The error message.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "Resource": {
+ "description": "The ARM resource class.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "id": {
+ "description": "The ID of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "type": {
+ "description": "The type of the resource.",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "x-ms-azure-resource": true
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "The Azure subscription ID.",
+ "required": true,
+ "type": "string"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "description": "The client API version.",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow.",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/peering/resource-manager/readme.az.md b/specification/peering/resource-manager/readme.az.md
new file mode 100644
index 000000000000..2972f1c879fc
--- /dev/null
+++ b/specification/peering/resource-manager/readme.az.md
@@ -0,0 +1,45 @@
+## Azure CLI
+
+These settings apply only when `--az` is specified on the command line.
+
+``` yaml $(az)
+az:
+ extensions: peering
+ package-name: azure-mgmt-peering
+ namespace: azure.mgmt.peering
+az-output-folder: $(azure-cli-extension-folder)/src/peering
+python-sdk-output-folder: "$(az-output-folder)/azext_peering/vendored_sdks/peering"
+directive:
+ - where:
+ group: ^peering peering-service$
+ set:
+ group: peering service
+ - where:
+ group: ^peering peering-service-location$
+ set:
+ group: peering service location
+ - where:
+ group: ^peering peering-service-country$
+ set:
+ group: peering service country
+ - where:
+ group: ^peering peering-service-provider$
+ set:
+ group: peering service provider
+ - where:
+ group: ^peering peer-asn$
+ set:
+ group: peering asn
+ - where:
+ group: ^peering prefix$
+ set:
+ group: peering service prefix
+ - where:
+ group: ^peering legacy-peering$
+ set:
+ group: peering legacy
+ - where:
+ group: ^peering peering-location$
+ set:
+ group: peering location
+```
diff --git a/specification/peering/resource-manager/readme.cli.md b/specification/peering/resource-manager/readme.cli.md
index 94bc2011ae2d..46b104ea490a 100644
--- a/specification/peering/resource-manager/readme.cli.md
+++ b/specification/peering/resource-manager/readme.cli.md
@@ -24,7 +24,7 @@ cli:
"/properties/direct": "Direct*/"
"/properties/peercontactinfo": "*/"
- test:
+ test-scenario:
- name: /PeerAsns/put/Create a peer ASN
disabled: true
- name: /Peerings/put/Create an exchange peering
diff --git a/specification/peering/resource-manager/readme.go.md b/specification/peering/resource-manager/readme.go.md
index f3871b5269e6..27337b355f40 100644
--- a/specification/peering/resource-manager/readme.go.md
+++ b/specification/peering/resource-manager/readme.go.md
@@ -12,6 +12,11 @@ go:
### Go multi-api
+``` yaml $(go) && $(multiapi)
+batch:
+ - tag: package-2020-04-01
+```
+or
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2020-01-01-preview
@@ -26,6 +31,16 @@ or
batch:
- tag: package-2019-08-01-preview
```
+
+### Tag: package-2020-04-01 and go
+
+These settings apply only when `--tag=package-2020-04-01 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-04-01' && $(go)
+output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-04-01/$(namespace)
+```
+
### Tag: package-2020-01-01-preview and go
These settings apply only when `--tag=package-2020-01-01-preview --go` is specified on the command line.
diff --git a/specification/peering/resource-manager/readme.java.md b/specification/peering/resource-manager/readme.java.md
index 7a5bd751211e..41cb57f82562 100644
--- a/specification/peering/resource-manager/readme.java.md
+++ b/specification/peering/resource-manager/readme.java.md
@@ -14,6 +14,12 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-peering
### Java multi-api
+
+``` yaml $(java) && $(multiapi)
+batch:
+ - tag: package-2020-04-01
+```
+or
``` yaml $(java) && $(multiapi)
batch:
- tag: package-2020-01-01-preview
@@ -29,6 +35,19 @@ batch:
- tag: package-2019-08-01-preview
```
+### Tag: package-2020-04-01 and java
+
+These settings apply only when `--tag=package-2020-04-01 --java` is specified on the command line.
+Please also specify `--azure-libraries-for-java=`.
+
+``` yaml $(tag) == 'package-2020-04-01' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.peering.v2020_04_01
+ output-folder: $(azure-libraries-for-java-folder)/sdk/peering/mgmt-v2020_04_01
+regenerate-manager: true
+generate-interface: true
+```
+
### Tag: package-2020-01-01-preview and java
These settings apply only when `--tag=package-2020-01-01-preview --java` is specified on the command line.
diff --git a/specification/peering/resource-manager/readme.md b/specification/peering/resource-manager/readme.md
index db0485dc1c6f..947c30cb6823 100644
--- a/specification/peering/resource-manager/readme.md
+++ b/specification/peering/resource-manager/readme.md
@@ -21,6 +21,14 @@ To see additional help and options, run:
### Basic Information
These are the global settings for the Peering API.
+
+``` yaml
+title: PeeringManagementClient
+description: Peering Client
+openapi-type: arm
+tag: package-2020-04-01
+```
+or
``` yaml
title: PeeringManagementClient
description: Peering Client
@@ -42,6 +50,15 @@ openapi-type: arm
tag: package-2019-08-01-preview
```
+### Tag: package-2020-04-01
+
+These settings apply only when `--tag=package-2020-04-01` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-04-01'
+input-file:
+- Microsoft.Peering/stable/2020-04-01/peering.json
+```
+
### Tag: package-2020-01-01-preview
These settings apply only when `--tag=package-2020-01-01-preview` is specified on the command line.
@@ -114,6 +131,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.Peering/stable/2020-04-01/peering.json
- $(this-folder)/Microsoft.Peering/preview/2020-01-01-preview/peering.json
- $(this-folder)/Microsoft.Peering/preview/2019-09-01-preview/peering.json
- $(this-folder)/Microsoft.Peering/preview/2019-08-01-preview/peering.json
diff --git a/specification/peering/resource-manager/readme.ruby.md b/specification/peering/resource-manager/readme.ruby.md
index f077e470ae5c..e62dc7a47c9e 100644
--- a/specification/peering/resource-manager/readme.ruby.md
+++ b/specification/peering/resource-manager/readme.ruby.md
@@ -2,6 +2,12 @@
These settings apply only when `--ruby` is specified on the command line.
+``` yaml
+package-name: azure_mgmt_peering
+package-version: "2020-04-01"
+azure-arm: true
+```
+or
``` yaml
package-name: azure_mgmt_peering
package-version: "2020-01-01-preview"
@@ -21,6 +27,12 @@ azure-arm: true
```
### Ruby multi-api
+
+``` yaml $(ruby) && $(multiapi)
+batch:
+ - tag: package-2020-04-01
+```
+or
``` yaml $(ruby) && $(multiapi)
batch:
- tag: package-2020-01-01-preview
@@ -36,6 +48,16 @@ batch:
- tag: package-2019-08-01-preview
```
+### Tag: package-2020-04-01 and ruby
+
+These settings apply only when `--tag=package-2020-04-01 --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2020-04-01' && $(ruby)
+namespace: "Azure::Peering::Mgmt::V2020_04_01"
+output-folder: $(ruby-sdks-folder)/management/azure_mgmt_peering/lib
+```
+
### Tag: package-2020-01-01-preview and ruby
These settings apply only when `--tag=package-2020-01-01-preview --ruby` is specified on the command line.
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndAggregateOnly.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndAggregateOnly.json
new file mode 100644
index 000000000000..603d7042ba9d
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndAggregateOnly.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2018-07-01-preview",
+ "$from": "2018-02-05T18:00:00Z",
+ "$filter": "PolicyDefinitionAction eq 'deny'",
+ "$apply": "aggregate($count as NumDenyEvents)"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 1,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "NumDenyEvents": 40
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndGroupByWithAggregate.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndGroupByWithAggregate.json
new file mode 100644
index 000000000000..b2ec80d19e1a
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndGroupByWithAggregate.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2019-10-0",
+ "$from": "2018-02-05T18:00:00Z",
+ "$filter": "PolicyDefinitionAction eq 'audit' or PolicyDefinitionAction eq 'deny'",
+ "$apply": "groupby((PolicyAssignmentId, PolicyDefinitionId, PolicyDefinitionAction, ResourceId), aggregate($count as NumEvents))",
+ "$top": 2
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policyassignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.servicefabric/clusters/myCluster/applications/resourcescachemonitor/services/myService",
+ "NumEvents": 1
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policyassignments/d6be6bb37e5f4333baa95c2a",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policydefinitions/5948d091-78b7-4d3b-a404-cc6a0329b0c6",
+ "policyDefinitionAction": "audit",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.servicefabric/clusters/myCluster/applications/resourcescachemonitor/services/myService",
+ "NumEvents": 1
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndGroupByWithoutAggregate.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndGroupByWithoutAggregate.json
new file mode 100644
index 000000000000..eb9326035b10
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndGroupByWithoutAggregate.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2018-07-01-preview",
+ "$from": "2018-01-05T18:00:00Z",
+ "$filter": "PolicyDefinitionAction ne 'audit' and PolicyDefinitionAction ne 'append'",
+ "$apply": "groupby((PolicyAssignmentId, PolicyDefinitionId, PolicyDefinitionAction, ResourceId))",
+ "$top": 2
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/5bc427ca-0089-4d0d-85bd-e98d1e40b3bf/providers/microsoft.authorization/policyassignments/storageaccountsku",
+ "policyDefinitionId": "/providers/microsoft.authorization/policydefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1",
+ "policyDefinitionAction": "deny",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/5bc427ca-0089-4d0d-85bd-e98d1e40b3bf/providers/microsoft.storage/storageaccounts/7d528d3a"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.authorization/policyassignments/da43b50031bf4bce84584faa",
+ "policyDefinitionId": "/providers/microsoft.authorization/policydefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62",
+ "policyDefinitionAction": "deny",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.storage/storageaccounts/mysa1"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndMultipleGroups.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndMultipleGroups.json
new file mode 100644
index 000000000000..23aad777a2bd
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_FilterAndMultipleGroups.json
@@ -0,0 +1,64 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2018-07-01-preview",
+ "$from": "2018-01-01T00:00:00Z",
+ "$filter": "PolicyDefinitionAction eq 'deny'",
+ "$apply": "groupby((PolicyAssignmentId, PolicyDefinitionId, ResourceId))/groupby((PolicyAssignmentId, PolicyDefinitionId), aggregate($count as NumDeniedResources))",
+ "$orderby": "NumDeniedResources desc",
+ "$top": 10
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 6,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup1/providers/microsoft.authorization/policyassignments/0591f497c35344fcbaf7a393",
+ "policyDefinitionId": "/providers/microsoft.authorization/policydefinitions/e56962a6-4747-49cd-b67b-bf8b01975c4c",
+ "NumDeniedResources": 3
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup1/providers/microsoft.authorization/policyassignments/myassignment1",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policydefinitions/mydefinition1",
+ "NumDeniedResources": 2
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup1/providers/microsoft.authorization/policyassignments/myassignment1",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policydefinitions/mydefinition2",
+ "NumDeniedResources": 2
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/5bc427ca-0089-4d0d-85bd-e98d1e40b3bf/providers/microsoft.authorization/policyassignments/storageaccountsku",
+ "policyDefinitionId": "/providers/microsoft.authorization/policydefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1",
+ "NumDeniedResources": 1
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup2/providers/microsoft.authorization/policyassignments/da43b50031bf4bce84584faa",
+ "policyDefinitionId": "/providers/microsoft.authorization/policydefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62",
+ "NumDeniedResources": 1
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup2/providers/microsoft.authorization/policyassignments/myassignment2",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policydefinitions/mydefinition3",
+ "NumDeniedResources": 1
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryManagementGroupScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryManagementGroupScope.json
new file mode 100644
index 000000000000..b4d354934527
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryManagementGroupScope.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "managementGroupsNamespace": "Microsoft.Management",
+ "managementGroupName": "myManagementGroup",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T22:19:18.8896095Z",
+ "resourceId": "/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachines/myvm1/extensions/DAExtension",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/1ef5d536aec743a0aa801c1a",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef",
+ "resourceType": "/Microsoft.Compute/virtualMachines/extensions",
+ "resourceLocation": "westeurope",
+ "resourceGroup": "myrg",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "1ef5d536aec743a0aa801c1a",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionName": "335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "15521232277412542086",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T22:19:18.8896095Z",
+ "resourceId": "/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachines/myvm1/extensions/DAExtension",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/95816fce53454b15a7ed803d",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/a2c0414b-82e4-459d-97d5-94c79a89232c",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef",
+ "resourceType": "/Microsoft.Compute/virtualMachines/extensions",
+ "resourceLocation": "westeurope",
+ "resourceGroup": "myrg",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "95816fce53454b15a7ed803d",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"allowedLocations\":{\"value\":[\"eastus\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "a2c0414b-82e4-459d-97d5-94c79a89232c",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "",
+ "policySetDefinitionName": "",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryManagementGroupScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryManagementGroupScopeNextLink.json
new file mode 100644
index 000000000000..2601de7b93e5
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryManagementGroupScopeNextLink.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "managementGroupsNamespace": "Microsoft.Management",
+ "managementGroupName": "myManagementGroup",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T22:19:18.8896095Z",
+ "resourceId": "/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachines/myvm1/extensions/DAExtension",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/1ef5d536aec743a0aa801c1a",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef",
+ "resourceType": "/Microsoft.Compute/virtualMachines/extensions",
+ "resourceLocation": "westeurope",
+ "resourceGroup": "myrg",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "1ef5d536aec743a0aa801c1a",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionName": "335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "15521232277412542086",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T22:19:18.8896095Z",
+ "resourceId": "/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachines/myvm1/extensions/DAExtension",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/95816fce53454b15a7ed803d",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/a2c0414b-82e4-459d-97d5-94c79a89232c",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef",
+ "resourceType": "/Microsoft.Compute/virtualMachines/extensions",
+ "resourceLocation": "westeurope",
+ "resourceGroup": "myrg",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "95816fce53454b15a7ed803d",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"allowedLocations\":{\"value\":[\"eastus\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "a2c0414b-82e4-459d-97d5-94c79a89232c",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "",
+ "policySetDefinitionName": "",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryNestedResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryNestedResourceScope.json
new file mode 100644
index 000000000000..d4d00a148294
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryNestedResourceScope.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "resourceId": "subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/microsoft.servicefabric/clusters/myCluster/applications/myApplication/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/microsoft.servicefabric/clusters/myCluster/applications/myApplication/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "181565554491747128",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/microsoft.servicefabric/clusters/myCluster/applications/myApplication/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "624540685646900425",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json
new file mode 100644
index 000000000000..a89f15db43b8
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "myPolicyAssignment",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T00:07:16.2804863Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/defaultworkspace-fffedd8f-ffff-fffd-fffd-fffed2f84852-eus",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policyDefinitions/myPolicyDefinition",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.operationalinsights/workspaces",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": null,
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup",
+ "policyDefinitionName": "myPolicyAssignment",
+ "policyDefinitionAction": "deny",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T00:06:08.4302267Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/defaultworkspace-fffedd8f-ffff-fffd-fffd-fffed2f84852-eus",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policyDefinitions/myPolicyDefinition",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.operationalinsights/workspaces",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": null,
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup",
+ "policyDefinitionName": "myPolicyAssignment",
+ "policyDefinitionAction": "deny",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
new file mode 100644
index 000000000000..72823e4ff9cf
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
@@ -0,0 +1,86 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "myPolicyAssignment",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T00:07:16.2804863Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/defaultworkspace-fffedd8f-ffff-fffd-fffd-fffed2f84852-eus",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policyDefinitions/myPolicyDefinition",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.operationalinsights/workspaces",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": null,
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup",
+ "policyDefinitionName": "myPolicyAssignment",
+ "policyDefinitionAction": "deny",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T00:06:08.4302267Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/defaultworkspace-fffedd8f-ffff-fffd-fffd-fffed2f84852-eus",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policyDefinitions/myPolicyDefinition",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.operationalinsights/workspaces",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": null,
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup",
+ "policyDefinitionName": "myPolicyAssignment",
+ "policyDefinitionAction": "deny",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupScope.json
new file mode 100644
index 000000000000..8833fa3235c6
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupScope.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "181565554491747128",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "624540685646900425",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupScopeNextLink.json
new file mode 100644
index 000000000000..cf8cd04d13f0
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceGroupScopeNextLink.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "181565554491747128",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "624540685646900425",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceScope.json
new file mode 100644
index 000000000000..84d43892b23b
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceScope.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "resourceId": "subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T15:14:39.8473851Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T15:14:39.5842458Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/d15545b8-ff50-409a-a6e3-5bd5cc954003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "d15545b8-ff50-409a-a6e3-5bd5cc954003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceScopeNextLink.json
new file mode 100644
index 000000000000..67866db89076
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QueryResourceScopeNextLink.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "resourceId": "subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T15:14:39.8473851Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T15:14:39.5842458Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/d15545b8-ff50-409a-a6e3-5bd5cc954003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "d15545b8-ff50-409a-a6e3-5bd5cc954003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json
new file mode 100644
index 000000000000..e8cc7651de35
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "resourceId": "subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.SomeNamespace/someResourceType/someNestedResourceType",
+ "resourceLocation": "eastus",
+ "resourceGroup": "",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "181565554491747128",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.SomeNamespace/someResourceType/someNestedResourceType",
+ "resourceLocation": "eastus",
+ "resourceGroup": "",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "624540685646900425",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json
new file mode 100644
index 000000000000..11dabdfaeaf2
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:59:38.6401747Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:59:34.2017762Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "9daedab3-fb2d-461e-b861-71790eead4f6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
new file mode 100644
index 000000000000..69b634579055
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:59:38.6401747Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:59:34.2017762Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "9daedab3-fb2d-461e-b861-71790eead4f6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json
new file mode 100644
index 000000000000..820ad8cc8e77
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:58:11.590596Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/deploymentSlots/production/state/start",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/f4cc58b7db524a9799381531",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/deploymentSlots/state",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "f4cc58b7db524a9799381531",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"NA\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "14799174781370023846",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:58:11.590596Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/deploymentSlots/production/state/start",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/f4cc58b7db524a9799381531",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/deploymentSlots/state",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "f4cc58b7db524a9799381531",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"NA\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "1679708035638239273",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
new file mode 100644
index 000000000000..3fc60d7a3a1c
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:58:11.590596Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/deploymentSlots/production/state/start",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/f4cc58b7db524a9799381531",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/deploymentSlots/state",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "f4cc58b7db524a9799381531",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"NA\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "14799174781370023846",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:58:11.590596Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/deploymentSlots/production/state/start",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/f4cc58b7db524a9799381531",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/deploymentSlots/state",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "f4cc58b7db524a9799381531",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"NA\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "1679708035638239273",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json
new file mode 100644
index 000000000000..4d3a40aa7583
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:49:32.9539023Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/serviceCertificates/sha1-FFFBDAF1FFFF109FFFD95FFFC9B0FFFD6F264FFF",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/serviceCertificates",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:49:32.9498186Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/serviceCertificates/sha1-FFF36C1CFFF4BEA57FFFEFCFFF17B9F81B710FFF",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/serviceCertificates",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
new file mode 100644
index 000000000000..55fa3363f75a
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:49:32.9539023Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/serviceCertificates/sha1-FFFBDAF1FFFF109FFFD95FFFC9B0FFFD6F264FFF",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/serviceCertificates",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:49:32.9498186Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/serviceCertificates/sha1-FFF36C1CFFF4BEA57FFFEFCFFF17B9F81B710FFF",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/serviceCertificates",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json
new file mode 100644
index 000000000000..1edf96be1cbb
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "resourceId": "subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T15:14:39.8473851Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.SomeNamespace/someResourceType",
+ "resourceLocation": "eastus",
+ "resourceGroup": "",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T15:14:39.5842458Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/d15545b8-ff50-409a-a6e3-5bd5cc954003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.SomeNamespace/someResourceType",
+ "resourceLocation": "eastus",
+ "resourceGroup": "",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "d15545b8-ff50-409a-a6e3-5bd5cc954003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionScope.json
new file mode 100644
index 000000000000..a7b91b72a8e3
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionScope.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2018-07-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "181565554491747128",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "624540685646900425",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionScopeNextLink.json
new file mode 100644
index 000000000000..c87eb684900a
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_QuerySubscriptionScopeNextLink.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "181565554491747128",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "624540685646900425",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_TimeRangeSortSelectTop.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_TimeRangeSortSelectTop.json
new file mode 100644
index 000000000000..4c5f0522e445
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyEvents_TimeRangeSortSelectTop.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2018-07-01-preview",
+ "$from": "2018-02-05T18:00:00Z",
+ "$to": "2018-02-06T18:00:00Z",
+ "$orderby": "Timestamp desc, PolicyAssignmentId asc, SubscriptionId asc, ResourceGroup asc, ResourceId",
+ "$select": "Timestamp, PolicyAssignmentId, PolicyDefinitionId, SubscriptionId, ResourceGroup, ResourceId",
+ "$top": 2
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-05T22:34:02.3475017Z",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/89b27f38-e9e4-4468-ab81-801c84b8c017",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroup": "myResourceGroup",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomain"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-05T22:34:01.6135357Z",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/Enable Monitoring in Azure Security Center",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroup": "myResourceGroup",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomain"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndAggregateOnly.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndAggregateOnly.json
index a68531eebdeb..59919a1c269c 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndAggregateOnly.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndAggregateOnly.json
@@ -10,6 +10,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 1,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndGroupByWithAggregate.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndGroupByWithAggregate.json
index 1a772a52ef25..0a5615d58293 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndGroupByWithAggregate.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndGroupByWithAggregate.json
@@ -12,6 +12,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndGroupByWithoutAggregate.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndGroupByWithoutAggregate.json
index 1fd046568eda..0c0920fa757e 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndGroupByWithoutAggregate.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndGroupByWithoutAggregate.json
@@ -11,6 +11,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndMultipleGroups.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndMultipleGroups.json
index 6ff103d3ccd6..cc4ba2c1ea52 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndMultipleGroups.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_FilterAndMultipleGroups.json
@@ -11,6 +11,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 10,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryManagementGroupScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryManagementGroupScope.json
index f4247ec6a32a..116e71f95d8b 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryManagementGroupScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryManagementGroupScope.json
@@ -8,6 +8,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
@@ -38,7 +39,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": "15521232277412542086"
+ "policyDefinitionReferenceId": "15521232277412542086",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -67,7 +69,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": ""
+ "policyDefinitionReferenceId": "",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryManagementGroupScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryManagementGroupScopeNextLink.json
new file mode 100644
index 000000000000..9e9ad020887f
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryManagementGroupScopeNextLink.json
@@ -0,0 +1,80 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "managementGroupsNamespace": "Microsoft.Management",
+ "managementGroupName": "myManagementGroup",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-09T17:41:47Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myrg1/providers/microsoft.insights/autoscalesettings/mytest1",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/1ef5d536aec743a0aa801c1a",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.insights/autoscalesettings",
+ "resourceLocation": "westus",
+ "resourceGroup": "myrg1",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "1ef5d536aec743a0aa801c1a",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionName": "335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "15521232277412542086",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-09T17:41:47Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myrg1/providers/microsoft.insights/autoscalesettings/mytest1",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/186044306c044a1d8c0ff76c",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.insights/autoscalesettings",
+ "resourceLocation": "westus",
+ "resourceGroup": "myrg1",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "186044306c044a1d8c0ff76c",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"allowedLocations\":{\"value\":[\"centralus\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "",
+ "policySetDefinitionName": "",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryNestedResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryNestedResourceScope.json
index f81a3a190324..bf094d482ef0 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryNestedResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryNestedResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
@@ -37,7 +38,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -66,7 +68,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json
index e689951eb6b2..615b55cf303a 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json
@@ -10,6 +10,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
@@ -40,7 +41,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -69,7 +71,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
new file mode 100644
index 000000000000..900833c0da86
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "myPolicyAssignment",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-13T00:38:50Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Security/policies/mySecurityPolicy",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/4a0425e4-97bf-4ad0-ab36-145b94083c60",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Security/policies",
+ "resourceLocation": null,
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"allowedLocations\":{\"value\":[\"EUS, WEU\"]}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup",
+ "policyDefinitionName": "4a0425e4-97bf-4ad0-ab36-145b94083c60",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-13T00:38:50Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/test",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/4a0425e4-97bf-4ad0-ab36-145b94083c60",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Authorization/policyAssignments",
+ "resourceLocation": null,
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"allowedLocations\":{\"value\":[\"EUS, WEU\"]}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup",
+ "policyDefinitionName": "4a0425e4-97bf-4ad0-ab36-145b94083c60",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupScope.json
index f517199f2061..14615632fbce 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupScope.json
@@ -8,6 +8,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
@@ -38,7 +39,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -67,7 +69,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupScopeNextLink.json
new file mode 100644
index 000000000000..7555abf977df
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceGroupScopeNextLink.json
@@ -0,0 +1,80 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-09T18:42:42Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mysa1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Storage/storageAccounts",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-09T18:42:42Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mysa1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Storage/storageAccounts",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e3682",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScope.json
index 1028e62ce338..5a0f76d2e170 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
@@ -37,7 +38,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -66,7 +68,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScopeExpandPolicyEvaluationDetails.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScopeExpandPolicyEvaluationDetails.json
index 668bcdc87ed5..b7e64a446564 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScopeExpandPolicyEvaluationDetails.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScopeExpandPolicyEvaluationDetails.json
@@ -8,6 +8,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScopeNextLink.json
new file mode 100644
index 000000000000..be286ead7381
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QueryResourceScopeNextLink.json
@@ -0,0 +1,79 @@
+{
+ "parameters": {
+ "policyStatesResource": "default",
+ "resourceId": "subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity",
+ "timestamp": "2018-02-09T16:04:31Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/test",
+ "policyDefinitionId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyDefinitions/Audit a tag and it's value",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "test",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"tagName\":{\"value\":\"no\"},\"tagValue\":{\"value\":\"no\"}}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "Audit a tag and it's value",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity",
+ "timestamp": "2018-02-09T16:04:31Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/test",
+ "policyDefinitionId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyDefinitions/Audit a tag and it's value",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "test",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"tagName\":{\"value\":\"no\"},\"tagValue\":{\"value\":\"no\"}}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "Audit a tag and it's value",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json
index d2df10b60eaf..bff9988cd1bd 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
@@ -37,7 +38,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -66,7 +68,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json
index f1e9bd7987bb..bac2a5bb40ae 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json
@@ -9,6 +9,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
@@ -39,7 +40,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": "2124621540977569058"
+ "policyDefinitionReferenceId": "2124621540977569058",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -68,7 +70,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": "14799174781370023846"
+ "policyDefinitionReferenceId": "14799174781370023846",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
new file mode 100644
index 000000000000..4411d95cc2d7
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
@@ -0,0 +1,81 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-13T00:45:19Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/my-ip-1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/c8b79b49-a579-4045-984e-1b249ab8b474",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Network/publicIPAddresses",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"test\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "c8b79b49-a579-4045-984e-1b249ab8b474",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "2124621540977569058",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-13T00:45:19Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/my-ip-1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Network/publicIPAddresses",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"test\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "14799174781370023846",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json
index 63921a3d3594..1f9fe31fcbf5 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json
@@ -9,6 +9,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
@@ -39,7 +40,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -68,7 +70,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
new file mode 100644
index 000000000000..94f65e67ab79
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
@@ -0,0 +1,81 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-13T00:50:27Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication/services/myService",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/d9da7e80af6344ab9d342aa7",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications/services",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "d9da7e80af6344ab9d342aa7",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"tagName\":{\"value\":\"MyTag\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-13T00:50:27Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication/services/myService",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/d9da7e80af6344ab9d342aa7",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications/services",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "d9da7e80af6344ab9d342aa7",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"tagName\":{\"value\":\"MyTag\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json
index 73d403483e1b..8ef42f94010a 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json
@@ -9,6 +9,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
@@ -39,7 +40,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -68,7 +70,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
new file mode 100644
index 000000000000..a587122bb850
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
@@ -0,0 +1,87 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:54:58Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/mySite",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Web/sites",
+ "resourceLocation": "centralus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:54:58Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/mySite",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/LocationAuditDefinition",
+ "effectiveParameters": null,
+ "isCompliant": true,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Web/sites",
+ "resourceLocation": "centralus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "LocationAuditDefinition",
+ "policyDefinitionAction": "Audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "Compliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelResourceScope.json
index a2bea701ebd6..4d5fe28421f6 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionLevelResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
@@ -37,7 +38,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -66,7 +68,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionScope.json
index 38b55d98aa9c..865b9845a8dc 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
@@ -37,7 +38,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -66,7 +68,8 @@
"policySetDefinitionCategory": null,
"policySetDefinitionParameters": null,
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
- "policyDefinitionReferenceId": null
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionScopeNextLink.json
new file mode 100644
index 000000000000..7d164b166fe2
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_QuerySubscriptionScopeNextLink.json
@@ -0,0 +1,79 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2018-07-01-preview",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-09T17:48:05Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myrg1/providers/Microsoft.Network/publicIPAddresses/mypubip1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/Enable Monitoring in Azure Security Center",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Network/publicIPAddresses",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myrg1",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "Enable Monitoring in Azure Security Center",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "9daedab3-fb2d-461e-b861-71790eead4f6",
+ "policyDefinitionAction": "AuditIfNotExists",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2018-02-09T17:48:05Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myrg1/providers/Microsoft.Network/publicIPAddresses/mypubip1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/9ac09b0657d942e5ad4041a6",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Network/publicIPAddresses",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myrg1",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "9ac09b0657d942e5ad4041a6",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "9daedab3-fb2d-461e-b861-71790eead4f6",
+ "policyDefinitionAction": "AuditIfNotExists",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_TimeRangeSortSelectTop.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_TimeRangeSortSelectTop.json
index 83fd0197d830..a98a950ef6d9 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_TimeRangeSortSelectTop.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/examples/PolicyStates_TimeRangeSortSelectTop.json
@@ -12,6 +12,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyEvents.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyEvents.json
new file mode 100644
index 000000000000..5899c79428ca
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyEvents.json
@@ -0,0 +1,1006 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "PolicyEventsClient",
+ "version": "2018-07-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults": {
+ "post": {
+ "operationId": "PolicyEvents_ListQueryResultsForManagementGroup",
+ "description": "Queries policy events for the resources under the management group.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/policyEventsResourceParameter"
+ },
+ {
+ "$ref": "#/parameters/managementGroupsNamespaceParameter"
+ },
+ {
+ "$ref": "#/parameters/managementGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/orderByParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/fromParameter"
+ },
+ {
+ "$ref": "#/parameters/toParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Query results.",
+ "schema": {
+ "$ref": "#/definitions/PolicyEventsQueryResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/QueryFailure"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
+ "x-ms-examples": {
+ "Query at management group scope": {
+ "$ref": "./examples/PolicyEvents_QueryManagementGroupScope.json"
+ },
+ "Query at management group scope with next link": {
+ "$ref": "./examples/PolicyEvents_QueryManagementGroupScopeNextLink.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults": {
+ "post": {
+ "operationId": "PolicyEvents_ListQueryResultsForSubscription",
+ "description": "Queries policy events for the resources under the subscription.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/policyEventsResourceParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/orderByParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/fromParameter"
+ },
+ {
+ "$ref": "#/parameters/toParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Query results.",
+ "schema": {
+ "$ref": "#/definitions/PolicyEventsQueryResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/QueryFailure"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
+ "x-ms-examples": {
+ "Query at subscription scope": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionScope.json"
+ },
+ "Query at subscription scope with next link": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionScopeNextLink.json"
+ },
+ "Time range; sort, select and limit": {
+ "$ref": "./examples/PolicyEvents_TimeRangeSortSelectTop.json"
+ },
+ "Filter and group with aggregate": {
+ "$ref": "./examples/PolicyEvents_FilterAndGroupByWithAggregate.json"
+ },
+ "Filter and group without aggregate": {
+ "$ref": "./examples/PolicyEvents_FilterAndGroupByWithoutAggregate.json"
+ },
+ "Filter and aggregate only": {
+ "$ref": "./examples/PolicyEvents_FilterAndAggregateOnly.json"
+ },
+ "Filter and multiple groups": {
+ "$ref": "./examples/PolicyEvents_FilterAndMultipleGroups.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults": {
+ "post": {
+ "operationId": "PolicyEvents_ListQueryResultsForResourceGroup",
+ "description": "Queries policy events for the resources under the resource group.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/policyEventsResourceParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/orderByParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/fromParameter"
+ },
+ {
+ "$ref": "#/parameters/toParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Query results.",
+ "schema": {
+ "$ref": "#/definitions/PolicyEventsQueryResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/QueryFailure"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
+ "x-ms-examples": {
+ "Query at resource group scope": {
+ "$ref": "./examples/PolicyEvents_QueryResourceGroupScope.json"
+ },
+ "Query at resource group scope with next link": {
+ "$ref": "./examples/PolicyEvents_QueryResourceGroupScopeNextLink.json"
+ }
+ }
+ }
+ },
+ "/{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults": {
+ "post": {
+ "operationId": "PolicyEvents_ListQueryResultsForResource",
+ "description": "Queries policy events for the resource.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/policyEventsResourceParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/orderByParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/fromParameter"
+ },
+ {
+ "$ref": "#/parameters/toParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Query results.",
+ "schema": {
+ "$ref": "#/definitions/PolicyEventsQueryResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/QueryFailure"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
+ "x-ms-examples": {
+ "Query at resource scope": {
+ "$ref": "./examples/PolicyEvents_QueryResourceScope.json"
+ },
+ "Query at resource scope with next link": {
+ "$ref": "./examples/PolicyEvents_QueryResourceScopeNextLink.json"
+ },
+ "Query at subscription level resource scope": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json"
+ },
+ "Query at nested resource scope": {
+ "$ref": "./examples/PolicyEvents_QueryNestedResourceScope.json"
+ },
+ "Query at subscription level nested resource scope": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults": {
+ "post": {
+ "operationId": "PolicyEvents_ListQueryResultsForPolicySetDefinition",
+ "description": "Queries policy events for the subscription level policy set definition.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/policyEventsResourceParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/authorizationNamespaceParameter"
+ },
+ {
+ "$ref": "#/parameters/policySetDefinitionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/orderByParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/fromParameter"
+ },
+ {
+ "$ref": "#/parameters/toParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Query results.",
+ "schema": {
+ "$ref": "#/definitions/PolicyEventsQueryResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/QueryFailure"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
+ "x-ms-examples": {
+ "Query at subscription level policy set definition scope": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json"
+ },
+ "Query at subscription level policy set definition scope with next link": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults": {
+ "post": {
+ "operationId": "PolicyEvents_ListQueryResultsForPolicyDefinition",
+ "description": "Queries policy events for the subscription level policy definition.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/policyEventsResourceParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/authorizationNamespaceParameter"
+ },
+ {
+ "$ref": "#/parameters/policyDefinitionNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/orderByParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/fromParameter"
+ },
+ {
+ "$ref": "#/parameters/toParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Query results.",
+ "schema": {
+ "$ref": "#/definitions/PolicyEventsQueryResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/QueryFailure"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
+ "x-ms-examples": {
+ "Query at subscription level policy definition scope": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json"
+ },
+ "Query at subscription level policy definition scope with next link": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults": {
+ "post": {
+ "operationId": "PolicyEvents_ListQueryResultsForSubscriptionLevelPolicyAssignment",
+ "description": "Queries policy events for the subscription level policy assignment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/policyEventsResourceParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/authorizationNamespaceParameter"
+ },
+ {
+ "$ref": "#/parameters/policyAssignmentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/orderByParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/fromParameter"
+ },
+ {
+ "$ref": "#/parameters/toParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Query results.",
+ "schema": {
+ "$ref": "#/definitions/PolicyEventsQueryResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/QueryFailure"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
+ "x-ms-examples": {
+ "Query at subscription level policy assignment scope": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json"
+ },
+ "Query at subscription level policy assignment scope with next link": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults": {
+ "post": {
+ "operationId": "PolicyEvents_ListQueryResultsForResourceGroupLevelPolicyAssignment",
+ "description": "Queries policy events for the resource group level policy assignment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/policyEventsResourceParameter"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/authorizationNamespaceParameter"
+ },
+ {
+ "$ref": "#/parameters/policyAssignmentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/topParameter"
+ },
+ {
+ "$ref": "#/parameters/orderByParameter"
+ },
+ {
+ "$ref": "#/parameters/selectParameter"
+ },
+ {
+ "$ref": "#/parameters/fromParameter"
+ },
+ {
+ "$ref": "#/parameters/toParameter"
+ },
+ {
+ "$ref": "#/parameters/filterParameter"
+ },
+ {
+ "$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Query results.",
+ "schema": {
+ "$ref": "#/definitions/PolicyEventsQueryResults"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/QueryFailure"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
+ "x-ms-examples": {
+ "Query at resource group level policy assignment scope": {
+ "$ref": "./examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json"
+ },
+ "Query at resource group level policy assignment scope with next link": {
+ "$ref": "./examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "PolicyEventsQueryResults": {
+ "description": "Query results.",
+ "properties": {
+ "@odata.context": {
+ "description": "OData context string; used by OData clients to resolve type information based on metadata.",
+ "type": "string"
+ },
+ "@odata.count": {
+ "description": "OData entity count; represents the number of policy event records returned.",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0
+ },
+ "@odata.nextLink": {
+ "description": "Odata next link; URL to get the next set of results.",
+ "type": "string"
+ },
+ "value": {
+ "description": "Query results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PolicyEvent"
+ }
+ }
+ }
+ },
+ "PolicyEvent": {
+ "type": "object",
+ "description": "Policy event record.",
+ "properties": {
+ "@odata.id": {
+ "description": "OData entity ID; always set to null since policy event records do not have an entity ID.",
+ "type": "string"
+ },
+ "@odata.context": {
+ "description": "OData context string; used by OData clients to resolve type information based on metadata.",
+ "type": "string"
+ },
+ "timestamp": {
+ "description": "Timestamp for the policy event record.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "resourceId": {
+ "description": "Resource ID.",
+ "type": "string"
+ },
+ "policyAssignmentId": {
+ "description": "Policy assignment ID.",
+ "type": "string"
+ },
+ "policyDefinitionId": {
+ "description": "Policy definition ID.",
+ "type": "string"
+ },
+ "effectiveParameters": {
+ "description": "Effective parameters for the policy assignment.",
+ "type": "string"
+ },
+ "isCompliant": {
+ "description": "Flag which states whether the resource is compliant against the policy assignment it was evaluated against.",
+ "type": "boolean"
+ },
+ "subscriptionId": {
+ "description": "Subscription ID.",
+ "type": "string"
+ },
+ "resourceType": {
+ "description": "Resource type.",
+ "type": "string"
+ },
+ "resourceLocation": {
+ "description": "Resource location.",
+ "type": "string"
+ },
+ "resourceGroup": {
+ "description": "Resource group name.",
+ "type": "string"
+ },
+ "resourceTags": {
+ "description": "List of resource tags.",
+ "type": "string"
+ },
+ "policyAssignmentName": {
+ "description": "Policy assignment name.",
+ "type": "string"
+ },
+ "policyAssignmentOwner": {
+ "description": "Policy assignment owner.",
+ "type": "string"
+ },
+ "policyAssignmentParameters": {
+ "description": "Policy assignment parameters.",
+ "type": "string"
+ },
+ "policyAssignmentScope": {
+ "description": "Policy assignment scope.",
+ "type": "string"
+ },
+ "policyDefinitionName": {
+ "description": "Policy definition name.",
+ "type": "string"
+ },
+ "policyDefinitionAction": {
+ "description": "Policy definition action, i.e. effect.",
+ "type": "string"
+ },
+ "policyDefinitionCategory": {
+ "description": "Policy definition category.",
+ "type": "string"
+ },
+ "policySetDefinitionId": {
+ "description": "Policy set definition ID, if the policy assignment is for a policy set.",
+ "type": "string"
+ },
+ "policySetDefinitionName": {
+ "description": "Policy set definition name, if the policy assignment is for a policy set.",
+ "type": "string"
+ },
+ "policySetDefinitionOwner": {
+ "description": "Policy set definition owner, if the policy assignment is for a policy set.",
+ "type": "string"
+ },
+ "policySetDefinitionCategory": {
+ "description": "Policy set definition category, if the policy assignment is for a policy set.",
+ "type": "string"
+ },
+ "policySetDefinitionParameters": {
+ "description": "Policy set definition parameters, if the policy assignment is for a policy set.",
+ "type": "string"
+ },
+ "managementGroupIds": {
+ "description": "Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.",
+ "type": "string"
+ },
+ "policyDefinitionReferenceId": {
+ "description": "Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.",
+ "type": "string"
+ },
+ "tenantId": {
+ "description": "Tenant ID for the policy event record.",
+ "type": "string"
+ },
+ "principalOid": {
+ "description": "Principal object ID for the user who initiated the resource operation that triggered the policy event.",
+ "type": "string"
+ }
+ },
+ "additionalProperties": {
+ "description": "The list of key/value pairs for the additional properties, in the format 'key':'value' where key = the field name, and value = the field value. By default this is not populated"
+ }
+ },
+ "QueryFailure": {
+ "description": "Error response.",
+ "properties": {
+ "error": {
+ "description": "Error definition.",
+ "properties": {
+ "code": {
+ "description": "Service specific error code which serves as the substatus for the HTTP error code.",
+ "type": "string",
+ "readOnly": true
+ },
+ "message": {
+ "description": "Description of the error.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ }
+ },
+ "MetadataDocument": {
+ "description": "Metadata XML document.",
+ "type": "string"
+ }
+ },
+ "parameters": {
+ "policyEventsResourceParameter": {
+ "name": "policyEventsResource",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "default"
+ ],
+ "description": "The name of the virtual resource under PolicyEvents resource type; only \"default\" is allowed.",
+ "x-ms-parameter-location": "method"
+ },
+ "managementGroupsNamespaceParameter": {
+ "name": "managementGroupsNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "Microsoft.Management"
+ ],
+ "description": "The namespace for Microsoft Management RP; only \"Microsoft.Management\" is allowed.",
+ "x-ms-parameter-location": "method"
+ },
+ "managementGroupNameParameter": {
+ "name": "managementGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Management group name.",
+ "x-ms-parameter-location": "method"
+ },
+ "subscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Microsoft Azure subscription ID.",
+ "x-ms-parameter-location": "method"
+ },
+ "resourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Resource group name.",
+ "x-ms-parameter-location": "method"
+ },
+ "resourceIdParameter": {
+ "name": "resourceId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Resource ID.",
+ "x-ms-parameter-location": "method",
+ "x-ms-skip-url-encoding": true
+ },
+ "authorizationNamespaceParameter": {
+ "name": "authorizationNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "Microsoft.Authorization"
+ ],
+ "description": "The namespace for Microsoft Authorization resource provider; only \"Microsoft.Authorization\" is allowed.",
+ "x-ms-parameter-location": "method"
+ },
+ "policySetDefinitionNameParameter": {
+ "name": "policySetDefinitionName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Policy set definition name.",
+ "x-ms-parameter-location": "method"
+ },
+ "policyDefinitionNameParameter": {
+ "name": "policyDefinitionName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Policy definition name.",
+ "x-ms-parameter-location": "method"
+ },
+ "policyAssignmentNameParameter": {
+ "name": "policyAssignmentName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Policy assignment name.",
+ "x-ms-parameter-location": "method"
+ },
+ "scopeParameter": {
+ "name": "scope",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "A valid scope, i.e. management group, subscription, resource group, or resource ID. Scope used has no effect on metadata returned.",
+ "x-ms-parameter-location": "method",
+ "x-ms-skip-url-encoding": true
+ },
+ "apiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "Client Api Version.",
+ "x-ms-parameter-location": "client"
+ },
+ "topParameter": {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "description": "Maximum number of records to return.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "Top"
+ },
+ "orderByParameter": {
+ "name": "$orderby",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Ordering expression using OData notation. One or more comma-separated column names with an optional \"desc\" (the default) or \"asc\", e.g. \"$orderby=PolicyAssignmentId, ResourceId asc\".",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "OrderBy"
+ },
+ "selectParameter": {
+ "name": "$select",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Select expression using OData notation. Limits the columns on each record to just those requested, e.g. \"$select=PolicyAssignmentId, ResourceId\".",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "Select"
+ },
+ "fromParameter": {
+ "name": "$from",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "format": "date-time",
+ "description": "ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "From"
+ },
+ "toParameter": {
+ "name": "$to",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "format": "date-time",
+ "description": "ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "To"
+ },
+ "filterParameter": {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "OData filter expression.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "Filter"
+ },
+ "applyParameter": {
+ "name": "$apply",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "OData apply expression for aggregations.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "Apply"
+ },
+ "skipTokenParameter": {
+ "name": "$skiptoken",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "SkipToken"
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyStates.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyStates.json
index 6592e3709b40..44cac58658a1 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyStates.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyStates.json
@@ -67,6 +67,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -83,9 +86,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at management group scope": {
"$ref": "./examples/PolicyStates_QueryManagementGroupScope.json"
+ },
+ "Query latest at management group scope using odata nextLink": {
+ "$ref": "./examples/PolicyStates_QueryManagementGroupScopeNextLink.json"
}
}
}
@@ -175,6 +184,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -191,10 +203,16 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at subscription scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionScope.json"
},
+ "Query latest at subscription scope with next link": {
+ "$ref": "./examples/PolicyStates_QuerySubscriptionScopeNextLink.json"
+ },
"Time range; sort, select and limit": {
"$ref": "./examples/PolicyStates_TimeRangeSortSelectTop.json"
},
@@ -298,6 +316,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -314,9 +335,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at resource group scope": {
"$ref": "./examples/PolicyStates_QueryResourceGroupScope.json"
+ },
+ "Query latest at resource group scope with next link": {
+ "$ref": "./examples/PolicyStates_QueryResourceGroupScopeNextLink.json"
}
}
}
@@ -409,6 +436,9 @@
},
{
"$ref": "#/parameters/expandParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -425,10 +455,16 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query all policy states at resource scope": {
"$ref": "./examples/PolicyStates_QueryResourceScope.json"
},
+ "Query all policy states at resource scope with next link": {
+ "$ref": "./examples/PolicyStates_QueryResourceScopeNextLink.json"
+ },
"Query all policy states at subscription level resource scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionLevelResourceScope.json"
},
@@ -532,6 +568,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -548,9 +587,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at subscription level policy set definition scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json"
+ },
+ "Query latest at subscription level policy set definition scope with next link": {
+ "$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json"
}
}
}
@@ -649,6 +694,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -665,9 +713,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at subscription level policy definition scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json"
+ },
+ "Query latest at subscription level policy definition scope with next link": {
+ "$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json"
}
}
}
@@ -766,6 +820,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -782,9 +839,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at subscription level policy assignment scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json"
+ },
+ "Query latest at subscription level policy assignment scope with next Link": {
+ "$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json"
}
}
}
@@ -886,6 +949,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -902,9 +968,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at resource group level policy assignment scope": {
"$ref": "./examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json"
+ },
+ "Query latest at resource group level policy assignment scope with next link": {
+ "$ref": "./examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json"
}
}
}
@@ -1047,6 +1119,10 @@
"format": "int32",
"minimum": 0
},
+ "@odata.nextLink": {
+ "description": "Odata next link; URL to get the next set of results.",
+ "type": "string"
+ },
"value": {
"description": "Query results.",
"type": "array",
@@ -1654,6 +1730,18 @@
"name": "QueryOptions"
},
"x-ms-client-name": "Expand"
+ },
+ "skipTokenParameter": {
+ "name": "$skiptoken",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "SkipToken"
}
}
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_GetMetadata.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_GetMetadata.json
deleted file mode 100644
index 8a83fb958656..000000000000
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_GetMetadata.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "parameters": {
- "scope": "subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
- "api-version": "2019-10-01"
- },
- "responses": {
- "200": {
- "headers": {
- "content-type": "application/xml"
- },
- "body": " Org.OData.Capabilities.V1.ConformanceLevelType/Minimal application/json;odata.metadata=minimal;IEEE754Compatible=false;odata.streaming=true application/json;odata.metadata=none;IEEE754Compatible=false;odata.streaming=true "
- }
- }
-}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryManagementGroupScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryManagementGroupScope.json
index ed8d1f600cca..35e28c1358b4 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryManagementGroupScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryManagementGroupScope.json
@@ -8,6 +8,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -40,7 +41,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "15521232277412542086",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8"
+ "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -71,7 +73,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8"
+ "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryManagementGroupScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryManagementGroupScopeNextLink.json
new file mode 100644
index 000000000000..35e65b711864
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryManagementGroupScopeNextLink.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "managementGroupsNamespace": "Microsoft.Management",
+ "managementGroupName": "myManagementGroup",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T22:19:18.8896095Z",
+ "resourceId": "/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachines/myvm1/extensions/DAExtension",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/1ef5d536aec743a0aa801c1a",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef",
+ "resourceType": "/Microsoft.Compute/virtualMachines/extensions",
+ "resourceLocation": "westeurope",
+ "resourceGroup": "myrg",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "1ef5d536aec743a0aa801c1a",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionName": "335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "15521232277412542086",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T22:19:18.8896095Z",
+ "resourceId": "/subscriptions/fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachines/myvm1/extensions/DAExtension",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/95816fce53454b15a7ed803d",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/a2c0414b-82e4-459d-97d5-94c79a89232c",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff8dfdb-fff3-fff0-fff4-fffdcbe6b2ef",
+ "resourceType": "/Microsoft.Compute/virtualMachines/extensions",
+ "resourceLocation": "westeurope",
+ "resourceGroup": "myrg",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "95816fce53454b15a7ed803d",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"allowedLocations\":{\"value\":[\"eastus\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "a2c0414b-82e4-459d-97d5-94c79a89232c",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "",
+ "policySetDefinitionName": "",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff3e452-fff2-fff1-fff8-fff12618f1b8",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryNestedResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryNestedResourceScope.json
index f52bc3c69f3d..865d02b19e8a 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryNestedResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryNestedResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/microsoft.servicefabric/clusters/myCluster/applications/myApplication/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -39,7 +40,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "181565554491747128",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6"
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -70,7 +72,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "624540685646900425",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6"
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json
index 9167657ccb13..515eef52337f 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json
@@ -10,6 +10,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -42,7 +43,8 @@
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94"
+ "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -73,7 +75,8 @@
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94"
+ "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
new file mode 100644
index 000000000000..45e0bd6a396e
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
@@ -0,0 +1,86 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "myPolicyAssignment",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T00:07:16.2804863Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/defaultworkspace-fffedd8f-ffff-fffd-fffd-fffed2f84852-eus",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policyDefinitions/myPolicyDefinition",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.operationalinsights/workspaces",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": null,
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup",
+ "policyDefinitionName": "myPolicyAssignment",
+ "policyDefinitionAction": "deny",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T00:06:08.4302267Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/defaultworkspace-fffedd8f-ffff-fffd-fffd-fffed2f84852-eus",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/microsoft.authorization/policyDefinitions/myPolicyDefinition",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.operationalinsights/workspaces",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": null,
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup",
+ "policyDefinitionName": "myPolicyAssignment",
+ "policyDefinitionAction": "deny",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff2f355-fff2-fffc-fffb-fff1639dff94",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupScope.json
index ad63532b63fd..45ebef141309 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupScope.json
@@ -8,6 +8,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -40,7 +41,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "181565554491747128",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6"
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -71,7 +73,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "624540685646900425",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6"
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupScopeNextLink.json
new file mode 100644
index 000000000000..aaa00e7e5dd2
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceGroupScopeNextLink.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "181565554491747128",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "624540685646900425",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceScope.json
index e6156b11551c..2d14da32d9bd 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -39,7 +40,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -70,7 +72,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceScopeNextLink.json
new file mode 100644
index 000000000000..edc6d3d1448a
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QueryResourceScopeNextLink.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "resourceId": "subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T15:14:39.8473851Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T15:14:39.5842458Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/d15545b8-ff50-409a-a6e3-5bd5cc954003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "d15545b8-ff50-409a-a6e3-5bd5cc954003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json
index 56aee0d55c7c..9c41b0d55619 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelNestedResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -39,7 +40,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "181565554491747128",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6"
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -70,7 +72,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "624540685646900425",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6"
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json
index 92e8f127c730..0ee9514c3996 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json
@@ -9,6 +9,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -41,7 +42,8 @@
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -72,7 +74,8 @@
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
new file mode 100644
index 000000000000..af28e1c64a17
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:59:38.6401747Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "201ea587-7c90-41c3-910f-c280ae01cfd6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:59:34.2017762Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "9daedab3-fb2d-461e-b861-71790eead4f6",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json
index 938bf4e2eb08..c28f3e0a0235 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json
@@ -9,6 +9,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -41,7 +42,8 @@
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "14799174781370023846",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -72,7 +74,8 @@
"managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "1679708035638239273",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
new file mode 100644
index 000000000000..5e83b32ebebd
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:58:11.590596Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/deploymentSlots/production/state/start",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/f4cc58b7db524a9799381531",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/deploymentSlots/state",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "f4cc58b7db524a9799381531",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"NA\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "14799174781370023846",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:58:11.590596Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/deploymentSlots/production/state/start",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/f4cc58b7db524a9799381531",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/deploymentSlots/state",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "f4cc58b7db524a9799381531",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"NA\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "1679708035638239273",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json
index 987f254b2586..959d102850ff 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json
@@ -9,6 +9,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -41,7 +42,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -72,7 +74,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
new file mode 100644
index 000000000000..04873b559997
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:49:32.9539023Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/serviceCertificates/sha1-FFFBDAF1FFFF109FFFD95FFFC9B0FFFD6F264FFF",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/serviceCertificates",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-08T19:49:32.9498186Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/serviceCertificates/sha1-FFF36C1CFFF4BEA57FFFEFCFFF17B9F81B710FFF",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames/serviceCertificates",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json
index e0b15863521a..131d542a513f 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -39,7 +40,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -70,7 +72,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": null,
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078"
+ "principalOid": "fff890fa-fff0-fff3-fff9-fffd7653f078",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionScope.json
index 8799053fc6fc..37676c2a5552 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
"@odata.count": 2,
"value": [
@@ -39,7 +40,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "181565554491747128",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6"
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
},
{
"@odata.id": null,
@@ -70,7 +72,8 @@
"managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
"policyDefinitionReferenceId": "624540685646900425",
"tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
- "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6"
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
}
]
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionScopeNextLink.json
new file mode 100644
index 000000000000..232c6e27597e
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyEvents_QuerySubscriptionScopeNextLink.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "policyEventsResource": "default",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "181565554491747128",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.PolicyInsights/policyEvents/$metadata#default/$entity",
+ "timestamp": "2018-02-07T20:43:04.6971328Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/ec62f9b2a454487296f2ccd4",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec62f9b2a454487296f2ccd4",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"ALLOWEDRESOURCEGROUPS_1\":{\"value\":[\"rg1\",\"rg2\"]},\"ALLOWEDRESOURCEGROUPS_2\":{\"value\":[\"myrg3\",\"myrg4\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "72c0c41a-c752-4bc0-9c61-0d6adc567066",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionName": "00b36c66-612b-44e2-9f8e-b758296d40fe",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "624540685646900425",
+ "tenantId": "fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "principalOid": "fffdfc0f-fff5-fff0-fff3-fff1a968dcc6",
+ "complianceState": "NonCompliant"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryManagementGroupScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryManagementGroupScope.json
index bafd79a9d12b..f34c2f5b1a65 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryManagementGroupScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryManagementGroupScope.json
@@ -8,6 +8,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryManagementGroupScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryManagementGroupScopeNextLink.json
new file mode 100644
index 000000000000..ab5e1ea52d23
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryManagementGroupScopeNextLink.json
@@ -0,0 +1,86 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "managementGroupsNamespace": "Microsoft.Management",
+ "managementGroupName": "myManagementGroup",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-09T17:41:47Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myrg1/providers/microsoft.insights/autoscalesettings/mytest1",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/1ef5d536aec743a0aa801c1a",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.insights/autoscalesettings",
+ "resourceLocation": "westus",
+ "resourceGroup": "myrg1",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "1ef5d536aec743a0aa801c1a",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policySetDefinitions/335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionName": "335cefd2-ab16-430f-b364-974a170eb1d5",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "15521232277412542086",
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-09T17:41:47Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myrg1/providers/microsoft.insights/autoscalesettings/mytest1",
+ "policyAssignmentId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyAssignments/186044306c044a1d8c0ff76c",
+ "policyDefinitionId": "/providers/Microsoft.Management/managementGroups/myManagementGroup/providers/Microsoft.Authorization/policyDefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "effectiveParameters": null,
+ "isCompliant": true,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/microsoft.insights/autoscalesettings",
+ "resourceLocation": "westus",
+ "resourceGroup": "myrg1",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "186044306c044a1d8c0ff76c",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"allowedLocations\":{\"value\":[\"centralus\"]}}",
+ "policyAssignmentScope": "/providers/Microsoft.Management/managementGroups/myManagementGroup",
+ "policyDefinitionName": "022d9357-5a90-46f7-9554-21d30ce4c32d",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "",
+ "policySetDefinitionName": "",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "myManagementGroup,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "",
+ "complianceState": "Compliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryNestedResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryNestedResourceScope.json
index 2b68d81e815e..ba0ef49a7fb5 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryNestedResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryNestedResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json
index 344529acf5ef..4d4bf15ad968 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json
@@ -10,6 +10,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
new file mode 100644
index 000000000000..d107a6a9be18
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json
@@ -0,0 +1,88 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "myPolicyAssignment",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:38:50Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Security/policies/mySecurityPolicy",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/4a0425e4-97bf-4ad0-ab36-145b94083c60",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Security/policies",
+ "resourceLocation": null,
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"allowedLocations\":{\"value\":[\"EUS, WEU\"]}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup",
+ "policyDefinitionName": "4a0425e4-97bf-4ad0-ab36-145b94083c60",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:38:50Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/test",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Authorization/policyAssignments/myPolicyAssignment",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/4a0425e4-97bf-4ad0-ab36-145b94083c60",
+ "effectiveParameters": null,
+ "isCompliant": true,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Authorization/policyAssignments",
+ "resourceLocation": null,
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "myPolicyAssignment",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"allowedLocations\":{\"value\":[\"EUS, WEU\"]}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup",
+ "policyDefinitionName": "4a0425e4-97bf-4ad0-ab36-145b94083c60",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "Compliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupScope.json
index a9c1bb25cd24..0255f78752a0 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupScope.json
@@ -8,6 +8,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupScopeNextLink.json
new file mode 100644
index 000000000000..c3fa3fe3023f
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceGroupScopeNextLink.json
@@ -0,0 +1,86 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceGroupName": "myResourceGroup",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-09T18:42:42Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mysa1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Storage/storageAccounts",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-09T18:42:42Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mysa1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682",
+ "effectiveParameters": null,
+ "isCompliant": true,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Storage/storageAccounts",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e3682",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "Compliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScope.json
index fe1925455bd9..eba1dfe8c3ae 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScopeExpandPolicyEvaluationDetails.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScopeExpandPolicyEvaluationDetails.json
index 5ab54110b2c8..2bf56cd9c2f1 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScopeExpandPolicyEvaluationDetails.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScopeExpandPolicyEvaluationDetails.json
@@ -8,6 +8,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScopeNextLink.json
new file mode 100644
index 000000000000..66b643857d0b
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QueryResourceScopeNextLink.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "policyStatesResource": "default",
+ "resourceId": "subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourceGroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity",
+ "timestamp": "2019-10-09T16:04:31Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/test",
+ "policyDefinitionId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyDefinitions/Audit a tag and it's value",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "test",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"tagName\":{\"value\":\"no\"},\"tagValue\":{\"value\":\"no\"}}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "Audit a tag and it's value",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity",
+ "timestamp": "2019-10-09T16:04:31Z",
+ "resourceId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/resourcegroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/myDomainName",
+ "policyAssignmentId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyAssignments/test",
+ "policyDefinitionId": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.Authorization/policyDefinitions/Audit a tag and it's value",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "resourceType": "/Microsoft.ClassicCompute/domainNames",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "test",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"tagName\":{\"value\":\"no\"},\"tagValue\":{\"value\":\"no\"}}",
+ "policyAssignmentScope": "/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5",
+ "policyDefinitionName": "Audit a tag and it's value",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json
index e504218c4209..775922d8a499 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelNestedResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResource/someNestedResourceType/someNestedResource/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json
index c450a3f57202..6c1766b0ea32 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json
@@ -9,6 +9,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
new file mode 100644
index 000000000000..7c197f729eef
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json
@@ -0,0 +1,87 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:45:19Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/my-ip-1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/c8b79b49-a579-4045-984e-1b249ab8b474",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Network/publicIPAddresses",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"test\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "c8b79b49-a579-4045-984e-1b249ab8b474",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "2124621540977569058",
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:45:19Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/my-ip-1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": true,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Network/publicIPAddresses",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "ec8f9645-8ecb-4abb-9c0b-5292f19d4003",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"TAGNAME_1\":{\"value\":\"test\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionName": "12b58873-e0f8-4b95-936c-86cbe7c9d697",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": "14799174781370023846",
+ "complianceState": "Compliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json
index 3a7d3c2c6d98..cc85b6ed3535 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json
@@ -9,6 +9,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
new file mode 100644
index 000000000000..556b9b42ec99
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json
@@ -0,0 +1,87 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:50:27Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication/services/myService",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/d9da7e80af6344ab9d342aa7",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications/services",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "d9da7e80af6344ab9d342aa7",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"tagName\":{\"value\":\"MyTag\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:50:27Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourcegroups/myResourceGroup/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApplication/services/myService",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/d9da7e80af6344ab9d342aa7",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": true,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.ServiceFabric/clusters/applications/services",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "d9da7e80af6344ab9d342aa7",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{\"tagName\":{\"value\":\"MyTag\"}}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": null,
+ "policySetDefinitionName": null,
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "Compliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json
index 0ef96902f50c..86f748aee444 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json
@@ -9,6 +9,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
new file mode 100644
index 000000000000..f5928e9bc5a7
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json
@@ -0,0 +1,87 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "authorizationNamespace": "Microsoft.Authorization",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:54:58Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/mySite",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/24813039-7534-408a-9842-eb99f45721b1",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Web/sites",
+ "resourceLocation": "centralus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "24813039-7534-408a-9842-eb99f45721b1",
+ "policyDefinitionAction": "audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-13T00:54:58Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/mySite",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/3f3c4330183b4e218fe6fd29",
+ "policyDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyDefinitions/LocationAuditDefinition",
+ "effectiveParameters": null,
+ "isCompliant": true,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Web/sites",
+ "resourceLocation": "centralus",
+ "resourceGroup": "myResourceGroup",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "3f3c4330183b4e218fe6fd29",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "LocationAuditDefinition",
+ "policyDefinitionAction": "Audit",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policySetDefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionName": "3e3807c1-65c9-49e0-a406-82d8ae3e338c",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "Compliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelResourceScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelResourceScope.json
index 1ca2e7fa09f4..c483a21bc1cd 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelResourceScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionLevelResourceScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fff10b27-fff3-fff5-fff8-fffbe01e86a5/providers/Microsoft.SomeNamespace/someResourceType/someResourceName/providers/Microsoft.PolicyInsights/policyStates/$metadata#default",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionScope.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionScope.json
index 8e73c1085c1b..a53636fc0492 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionScope.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionScope.json
@@ -7,6 +7,7 @@
"responses": {
"200": {
"body": {
+ "@odata.nextLink": null,
"@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
"@odata.count": 2,
"value": [
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionScopeNextLink.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionScopeNextLink.json
new file mode 100644
index 000000000000..018894716955
--- /dev/null
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/examples/PolicyStates_QuerySubscriptionScopeNextLink.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "policyStatesResource": "latest",
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "api-version": "2019-10-01",
+ "$skipToken": "WpmWfBSvPhkAK6QD"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "@odata.nextLink": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest",
+ "@odata.count": 2,
+ "value": [
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-09T17:48:05Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myrg1/providers/Microsoft.Network/publicIPAddresses/mypubip1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/Enable Monitoring in Azure Security Center",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Network/publicIPAddresses",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myrg1",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "Enable Monitoring in Azure Security Center",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "9daedab3-fb2d-461e-b861-71790eead4f6",
+ "policyDefinitionAction": "AuditIfNotExists",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ },
+ {
+ "@odata.id": null,
+ "@odata.context": "https://management.azure.com/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity",
+ "timestamp": "2019-10-09T17:48:05Z",
+ "resourceId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/resourceGroups/myrg1/providers/Microsoft.Network/publicIPAddresses/mypubip1",
+ "policyAssignmentId": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852/providers/Microsoft.Authorization/policyAssignments/9ac09b0657d942e5ad4041a6",
+ "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6",
+ "effectiveParameters": null,
+ "isCompliant": false,
+ "subscriptionId": "fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "resourceType": "/Microsoft.Network/publicIPAddresses",
+ "resourceLocation": "eastus",
+ "resourceGroup": "myrg1",
+ "resourceTags": "tbd",
+ "policyAssignmentName": "9ac09b0657d942e5ad4041a6",
+ "policyAssignmentOwner": "tbd",
+ "policyAssignmentParameters": "{}",
+ "policyAssignmentScope": "/subscriptions/fffedd8f-ffff-fffd-fffd-fffed2f84852",
+ "policyDefinitionName": "9daedab3-fb2d-461e-b861-71790eead4f6",
+ "policyDefinitionAction": "AuditIfNotExists",
+ "policyDefinitionCategory": "tbd",
+ "policySetDefinitionId": "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionName": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
+ "policySetDefinitionOwner": null,
+ "policySetDefinitionCategory": null,
+ "policySetDefinitionParameters": null,
+ "managementGroupIds": "mymg,fff988bf-fff1-ffff-fffb-fffcd011db47",
+ "policyDefinitionReferenceId": null,
+ "complianceState": "NonCompliant",
+ "policyDefinitionGroupNames": [
+ "myGroup"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyEvents.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyEvents.json
index 9c725a6436a5..f3c4a1d667f5 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyEvents.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyEvents.json
@@ -67,6 +67,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -83,9 +86,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query at management group scope": {
"$ref": "./examples/PolicyEvents_QueryManagementGroupScope.json"
+ },
+ "Query at management group scope with next link": {
+ "$ref": "./examples/PolicyEvents_QueryManagementGroupScopeNextLink.json"
}
}
}
@@ -124,6 +133,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -140,10 +152,16 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query at subscription scope": {
"$ref": "./examples/PolicyEvents_QuerySubscriptionScope.json"
},
+ "Query at subscription scope with next link": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionScopeNextLink.json"
+ },
"Time range; sort, select and limit": {
"$ref": "./examples/PolicyEvents_TimeRangeSortSelectTop.json"
},
@@ -199,6 +217,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -215,9 +236,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query at resource group scope": {
"$ref": "./examples/PolicyEvents_QueryResourceGroupScope.json"
+ },
+ "Query at resource group scope with next link": {
+ "$ref": "./examples/PolicyEvents_QueryResourceGroupScopeNextLink.json"
}
}
}
@@ -259,6 +286,9 @@
},
{
"$ref": "#/parameters/expandParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -275,10 +305,16 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query at resource scope": {
"$ref": "./examples/PolicyEvents_QueryResourceScope.json"
},
+ "Query at resource scope with next link": {
+ "$ref": "./examples/PolicyEvents_QueryResourceScopeNextLink.json"
+ },
"Query at subscription level resource scope": {
"$ref": "./examples/PolicyEvents_QuerySubscriptionLevelResourceScope.json"
},
@@ -337,6 +373,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -353,9 +392,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query at subscription level policy set definition scope": {
"$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScope.json"
+ },
+ "Query at subscription level policy set definition scope with next link": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json"
}
}
}
@@ -400,6 +445,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -416,9 +464,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query at subscription level policy definition scope": {
"$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScope.json"
+ },
+ "Query at subscription level policy definition scope with next link": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json"
}
}
}
@@ -463,6 +517,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -479,9 +536,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query at subscription level policy assignment scope": {
"$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScope.json"
+ },
+ "Query at subscription level policy assignment scope with next link": {
+ "$ref": "./examples/PolicyEvents_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json"
}
}
}
@@ -529,6 +592,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -545,45 +611,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query at resource group level policy assignment scope": {
"$ref": "./examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScope.json"
- }
- }
- }
- },
- "/{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata": {
- "get": {
- "operationId": "PolicyEvents_GetMetadata",
- "description": "Gets OData metadata XML document.",
- "produces": [
- "application/xml"
- ],
- "parameters": [
- {
- "$ref": "#/parameters/scopeParameter"
- },
- {
- "$ref": "#/parameters/apiVersionParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "OData metadata XML document.",
- "schema": {
- "$ref": "#/definitions/MetadataDocument"
- }
},
- "default": {
- "description": "Error response describing why the operation failed.",
- "schema": {
- "$ref": "#/definitions/QueryFailure"
- }
- }
- },
- "x-ms-examples": {
- "Get metadata": {
- "$ref": "./examples/PolicyEvents_GetMetadata.json"
+ "Query at resource group level policy assignment scope with next link": {
+ "$ref": "./examples/PolicyEvents_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json"
}
}
}
@@ -603,6 +639,10 @@
"format": "int32",
"minimum": 0
},
+ "@odata.nextLink": {
+ "description": "Odata next link; URL to get the next set of results.",
+ "type": "string"
+ },
"value": {
"description": "Query results.",
"type": "array",
@@ -917,7 +957,7 @@
"in": "query",
"required": true,
"type": "string",
- "description": "API version to use with the client requests.",
+ "description": "Client Api Version.",
"x-ms-parameter-location": "client"
},
"topParameter": {
@@ -1019,6 +1059,18 @@
"name": "QueryOptions"
},
"x-ms-client-name": "Expand"
+ },
+ "skipTokenParameter": {
+ "name": "$skiptoken",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "SkipToken"
}
}
}
diff --git a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyStates.json b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyStates.json
index ca46c7b1804b..aa28868c3b51 100644
--- a/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyStates.json
+++ b/specification/policyinsights/resource-manager/Microsoft.PolicyInsights/stable/2019-10-01/policyStates.json
@@ -67,6 +67,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -83,9 +86,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at management group scope": {
"$ref": "./examples/PolicyStates_QueryManagementGroupScope.json"
+ },
+ "Query latest at management group scope with next link": {
+ "$ref": "./examples/PolicyStates_QueryManagementGroupScopeNextLink.json"
}
}
}
@@ -175,6 +184,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -191,10 +203,16 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at subscription scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionScope.json"
},
+ "Query latest at subscription scope with next link": {
+ "$ref": "./examples/PolicyStates_QuerySubscriptionScopeNextLink.json"
+ },
"Time range; sort, select and limit": {
"$ref": "./examples/PolicyStates_TimeRangeSortSelectTop.json"
},
@@ -301,6 +319,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -317,9 +338,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at resource group scope": {
"$ref": "./examples/PolicyStates_QueryResourceGroupScope.json"
+ },
+ "Query latest at resource group scope with next link": {
+ "$ref": "./examples/PolicyStates_QueryResourceGroupScopeNextLink.json"
}
}
}
@@ -412,6 +439,9 @@
},
{
"$ref": "#/parameters/expandParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -428,10 +458,16 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query all policy states at resource scope": {
"$ref": "./examples/PolicyStates_QueryResourceScope.json"
},
+ "Query all policy states at resource scope with next link": {
+ "$ref": "./examples/PolicyStates_QueryResourceScopeNextLink.json"
+ },
"Query all policy states at subscription level resource scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionLevelResourceScope.json"
},
@@ -618,6 +654,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -634,9 +673,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at subscription level policy set definition scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScope.json"
+ },
+ "Query latest at subscription level policy set definition scope with next link": {
+ "$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicySetDefinitionScopeNextLink.json"
}
}
}
@@ -735,6 +780,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -751,9 +799,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at subscription level policy definition scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScope.json"
+ },
+ "Query latest at subscription level policy definition scope with next link": {
+ "$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicyDefinitionScopeNextLink.json"
}
}
}
@@ -852,6 +906,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -868,9 +925,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at subscription level policy assignment scope": {
"$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScope.json"
+ },
+ "Query latest at subscription level policy assignment scope with next link": {
+ "$ref": "./examples/PolicyStates_QuerySubscriptionLevelPolicyAssignmentScopeNextLink.json"
}
}
}
@@ -972,6 +1035,9 @@
},
{
"$ref": "#/parameters/applyParameter"
+ },
+ {
+ "$ref": "#/parameters/skipTokenParameter"
}
],
"responses": {
@@ -988,9 +1054,15 @@
}
}
},
+ "x-ms-pageable": {
+ "nextLinkName": "@odata.nextLink"
+ },
"x-ms-examples": {
"Query latest at resource group level policy assignment scope": {
"$ref": "./examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScope.json"
+ },
+ "Query latest at resource group level policy assignment scope with next link": {
+ "$ref": "./examples/PolicyStates_QueryResourceGroupLevelPolicyAssignmentScopeNextLink.json"
}
}
}
@@ -1097,6 +1169,10 @@
"format": "int32",
"minimum": 0
},
+ "@odata.nextLink": {
+ "description": "Odata next link; URL to get the next set of results.",
+ "type": "string"
+ },
"value": {
"description": "Query results.",
"type": "array",
@@ -1825,6 +1901,18 @@
"name": "QueryOptions"
},
"x-ms-client-name": "Expand"
+ },
+ "skipTokenParameter": {
+ "name": "$skiptoken",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.",
+ "x-ms-parameter-location": "method",
+ "x-ms-parameter-grouping": {
+ "name": "QueryOptions"
+ },
+ "x-ms-client-name": "SkipToken"
}
}
}
diff --git a/specification/policyinsights/resource-manager/readme.md b/specification/policyinsights/resource-manager/readme.md
index ec0220bdbba7..021a18defb12 100644
--- a/specification/policyinsights/resource-manager/readme.md
+++ b/specification/policyinsights/resource-manager/readme.md
@@ -90,7 +90,7 @@ These settings apply only when `--tag=package-2018-07` is specified on the comma
input-file:
- Microsoft.PolicyInsights/preview/2018-07-01-preview/policyTrackedResources.json
- Microsoft.PolicyInsights/preview/2018-07-01-preview/remediations.json
-- Microsoft.PolicyInsights/stable/2018-04-04/policyEvents.json
+- Microsoft.PolicyInsights/preview/2018-07-01-preview/policyEvents.json
- Microsoft.PolicyInsights/preview/2018-07-01-preview/policyStates.json
```
@@ -252,8 +252,9 @@ input-file:
- $(this-folder)/Microsoft.PolicyInsights/stable/2019-10-01/policyStates.json
- $(this-folder)/Microsoft.PolicyInsights/stable/2019-10-01/policyMetadata.json
- $(this-folder)/Microsoft.PolicyInsights/preview/2018-07-01-preview/remediations.json
- - $(this-folder)/Microsoft.PolicyInsights/stable/2018-04-04/policyEvents.json
+ - $(this-folder)/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyEvents.json
- $(this-folder)/Microsoft.PolicyInsights/preview/2018-07-01-preview/policyStates.json
+ - $(this-folder)/Microsoft.PolicyInsights/stable/2018-04-04/policyEvents.json
- $(this-folder)/Microsoft.PolicyInsights/stable/2018-04-04/policyStates.json
```
diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json
index 59450f0fab7b..8c229dbd192f 100644
--- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json
+++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json
@@ -1527,14 +1527,24 @@
},
"InfrastructureEncryption": {
"type": "string",
- "description": "Status showing whether the server enabled infrastructure encryption.",
+ "description": "Add a second layer of encryption for your data using new encryption algorithm which gives additional data protection. Value is optional but if passed in, must be 'Disabled' or 'Enabled'.",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "InfrastructureEncryption",
- "modelAsString": true
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Enabled",
+ "description": "Default value for single layer of encryption for data at rest."
+ },
+ {
+ "value": "Disabled",
+ "description": "Additional (2nd) layer of encryption for data at rest"
+ }
+ ]
}
},
"PublicNetworkAccess": {
diff --git a/specification/postgresql/resource-manager/readme.go.md b/specification/postgresql/resource-manager/readme.go.md
index 9fefd0e0313c..7fc16ffa1a54 100644
--- a/specification/postgresql/resource-manager/readme.go.md
+++ b/specification/postgresql/resource-manager/readme.go.md
@@ -13,10 +13,20 @@ go:
``` yaml $(go) && $(multiapi)
batch:
+ - tag: package-2020-01-01
- tag: package-2017-12-01-preview
- tag: package-2017-12-01
```
+### Tag: package-2020-01-01 and go
+
+These settings apply only when `--tag=package-2020-01-01 --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-01-01' && $(go)
+output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-01-01/$(namespace)
+```
+
### Tag: package-2017-12-01-preview and go
These settings apply only when `--tag=package-2017-12-01-preview --go` is specified on the command line.
diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2019-06-15/bms.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2019-06-15/bms.json
index aa358fefa44b..d9b32439141c 100644
--- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2019-06-15/bms.json
+++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2019-06-15/bms.json
@@ -1303,11 +1303,16 @@
}
},
"healthStatus": {
- "description": "backups running status for this backup item.",
+ "description": "Health status of protected item.",
"enum": [
"Passed",
"ActionRequired",
"ActionSuggested",
+ "Healthy",
+ "TransientDegraded",
+ "PersistentDegraded",
+ "TransientUnhealthy",
+ "PersistentUnhealthy",
"Invalid"
],
"type": "string",
@@ -1316,6 +1321,13 @@
"modelAsString": true
}
},
+ "healthDetails": {
+ "description": "Health details on this backup item.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/HealthDetails"
+ }
+ },
"lastBackupStatus": {
"description": "Last backup operation status. Possible values: Healthy, Unhealthy.",
"type": "string"
@@ -1618,8 +1630,8 @@
}
}
},
- "AzureIaaSVMHealthDetails": {
- "description": "Azure IaaS VM workload-specific Health Details.",
+ "HealthDetails": {
+ "description": "Health Details for backup items.",
"type": "object",
"properties": {
"code": {
@@ -1648,6 +1660,15 @@
}
}
},
+ "AzureIaaSVMHealthDetails": {
+ "description": "Azure IaaS VM workload-specific Health Details.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/HealthDetails"
+ }
+ ]
+ },
"AzureIaaSVMJob": {
"description": "Azure IaaS VM workload-specific job object.",
"type": "object",
@@ -1821,6 +1842,11 @@
"Passed",
"ActionRequired",
"ActionSuggested",
+ "Healthy",
+ "TransientDegraded",
+ "PersistentDegraded",
+ "TransientUnhealthy",
+ "PersistentUnhealthy",
"Invalid"
],
"type": "string",
@@ -2182,6 +2208,32 @@
"modelAsString": true
}
},
+ "healthStatus": {
+ "description": "Health status of protected item.",
+ "enum": [
+ "Passed",
+ "ActionRequired",
+ "ActionSuggested",
+ "Healthy",
+ "TransientDegraded",
+ "PersistentDegraded",
+ "TransientUnhealthy",
+ "PersistentUnhealthy",
+ "Invalid"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "HealthStatus",
+ "modelAsString": true
+ }
+ },
+ "healthDetails": {
+ "description": "Health details on this backup item.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/HealthDetails"
+ }
+ },
"extendedInfo": {
"$ref": "#/definitions/AzureVmWorkloadProtectedItemExtendedInfo",
"description": "Additional information for this backup item."
diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json
index ea6c251dceb2..522c8ff4f166 100644
--- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json
+++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json
@@ -8006,6 +8006,16 @@
"type": "string",
"readOnly": true
},
+ "initialPrimaryZone": {
+ "description": "The initial primary availability zone.",
+ "type": "string",
+ "readOnly": true
+ },
+ "initialRecoveryZone": {
+ "description": "The initial recovery availability zone.",
+ "type": "string",
+ "readOnly": true
+ },
"multiVmGroupId": {
"description": "The multi vm group Id.",
"type": "string"
@@ -14383,7 +14393,7 @@
"type": "string"
}
},
- "x-ms-discriminator-value": "RecoveryPlanA2ADetails"
+ "x-ms-discriminator-value": "A2A"
},
"RecoveryPlanA2AInput": {
"description": "Recovery plan A2A input.",
diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheForceReboot.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheForceReboot.json
index e0d664658354..8012f8ae115c 100644
--- a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheForceReboot.json
+++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheForceReboot.json
@@ -6,7 +6,11 @@
"subscriptionId": "subid",
"parameters": {
"shardId": 0,
- "rebootType": "AllNodes"
+ "rebootType": "AllNodes",
+ "ports": [
+ 13000,
+ 15001
+ ]
}
},
"responses": {
diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheGet.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheGet.json
index 3c0f3dc90c12..4169f729b99c 100644
--- a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheGet.json
+++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/examples/RedisCacheGet.json
@@ -35,15 +35,18 @@
"instances": [
{
"sslPort": 15000,
- "nonSslPort": 13000
+ "nonSslPort": 13000,
+ "isMaster": true
},
{
"sslPort": 15001,
- "nonSslPort": 13001
+ "nonSslPort": 13001,
+ "isMaster": false
},
{
"sslPort": 15002,
- "nonSslPort": 13002
+ "nonSslPort": 13002,
+ "isMaster": false
}
]
}
diff --git a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/redis.json b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/redis.json
index 98d3ebe7adc0..fc67ab980b18 100644
--- a/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/redis.json
+++ b/specification/redis/resource-manager/Microsoft.Cache/preview/2019-07-01/redis.json
@@ -1796,6 +1796,11 @@
"type": "integer",
"format": "int32",
"description": "If clustering is enabled, the Shard ID of Redis Instance"
+ },
+ "isMaster": {
+ "readOnly": true,
+ "type": "boolean",
+ "description": "Specifies whether the instance is a master node."
}
},
"description": "Details of single instance of redis."
@@ -1856,11 +1861,15 @@
"type": "integer",
"format": "int32",
"description": "If clustering is enabled, the ID of the shard to be rebooted."
+ },
+ "ports": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "description": "A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports."
}
},
- "required": [
- "rebootType"
- ],
"description": "Specifies which Redis node(s) to reboot."
},
"ExportRDBParameters": {
diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getAutoQuotaIncreaseStatus.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getAutoQuotaIncreaseStatus.json
index 6ac9a3d0a71c..2c23549bb2dc 100644
--- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getAutoQuotaIncreaseStatus.json
+++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getAutoQuotaIncreaseStatus.json
@@ -11,7 +11,7 @@
"name": "Automatic Quota Increase",
"properties": {
"settings": {
- "autoQuotaIncreaseState": "enabledForPreview"
+ "autoQuotaIncreaseState": "enabled"
},
"onSuccess": {
"emailActions": {
@@ -38,7 +38,6 @@
}
},
"supportTicketAction": {
- "autoQuotaIncreaseState": "enabledForPreview",
"severity": "Minimal",
"firstName": "FN",
"lastName": "LN",
diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getBatchAIUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getMachineLearningServicesUsages.json
similarity index 100%
rename from specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getBatchAIUsages.json
rename to specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getMachineLearningServicesUsages.json
diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/patchComputeQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/patchComputeQuotaRequest.json
index 4bd4702a9bf6..e119473eca89 100644
--- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/patchComputeQuotaRequest.json
+++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/patchComputeQuotaRequest.json
@@ -18,7 +18,7 @@
"responses": {
"201": {
"body": {
- "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/requests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/ServiceLimits",
"properties": {
@@ -29,7 +29,7 @@
},
"200": {
"body": {
- "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/serviceLimits",
"properties": {
diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putAutoQuotaIncrease.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putAutoQuotaIncrease.json
index 9dfc190deec2..d8dc24d500d2 100644
--- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putAutoQuotaIncrease.json
+++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putAutoQuotaIncrease.json
@@ -5,7 +5,7 @@
"autoQuotaIncreaseRequest": {
"properties": {
"settings": {
- "autoQuotaIncreaseState": "enabledForPreview"
+ "autoQuotaIncreaseState": "enabled"
},
"onSuccess": {
"emailActions": {
@@ -32,7 +32,6 @@
}
},
"supportTicketAction": {
- "autoQuotaIncreaseState": "enabledForPreview",
"severity": "Minimal",
"firstName": "FN",
"lastName": "LN",
@@ -57,7 +56,7 @@
"name": "Automatic Quota Increase",
"properties": {
"settings": {
- "autoQuotaIncreaseState": "enabledForPreview"
+ "autoQuotaIncreaseState": "enabled"
},
"onSuccess": {
"emailActions": {
@@ -84,7 +83,6 @@
}
},
"supportTicketAction": {
- "autoQuotaIncreaseState": "enabledForPreview",
"severity": "Minimal",
"firstName": "FN",
"lastName": "LN",
diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putAutoQuotaIncreaseTurnOff.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putAutoQuotaIncreaseTurnOff.json
index c7a2af0a7d21..1675b67ccf58 100644
--- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putAutoQuotaIncreaseTurnOff.json
+++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putAutoQuotaIncreaseTurnOff.json
@@ -32,7 +32,6 @@
}
},
"supportTicketAction": {
- "autoQuotaIncreaseState": "disabled",
"severity": "Minimal",
"firstName": "FN",
"lastName": "LN",
@@ -84,7 +83,6 @@
}
},
"supportTicketAction": {
- "autoQuotaIncreaseState": "disabled",
"severity": "Minimal",
"firstName": "FN",
"lastName": "LN",
diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putComputeOneSkuQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putComputeOneSkuQuotaRequest.json
index d459467a2130..e8328d5f6e28 100644
--- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putComputeOneSkuQuotaRequest.json
+++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putComputeOneSkuQuotaRequest.json
@@ -18,7 +18,7 @@
"responses": {
"201": {
"body": {
- "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/requests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/ServiceLimits",
"properties": {
@@ -29,7 +29,7 @@
},
"200": {
"body": {
- "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/quotaRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/serviceLimits",
"properties": {
diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putMachineLearningServicesQuotaRequestDedicated.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putMachineLearningServicesQuotaRequestDedicated.json
new file mode 100644
index 000000000000..43fdf27615f5
--- /dev/null
+++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putMachineLearningServicesQuotaRequestDedicated.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3",
+ "providerId": "Microsoft.MachineLearningServices",
+ "location": "eastus",
+ "resourceName": "StandardDv2Family",
+ "api-version": "2019-07-19-preview",
+ "createQuotaRequest": {
+ "properties": {
+ "limit": 200,
+ "unit": "Count",
+ "name": {
+ "value": "StandardDv2Family"
+ },
+ "resourceType": "dedicated"
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "type": "Microsoft.Capacity/ServiceLimits",
+ "properties": {
+ "provisioningState": "InProgress",
+ "message": ""
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "type": "Microsoft.Capacity/serviceLimits",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "message": "Request succeeded",
+ "properties": {
+ "properties": {
+ "limit": 200,
+ "unit": "Count",
+ "currentValue": 160,
+ "name": {
+ "value": "StandardDv2Family",
+ "localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs"
+ },
+ "resourceType": "dedicated",
+ "quotaPeriod": "",
+ "properties": {}
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putMachineLearningServicesQuotaRequestLowPriority.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putMachineLearningServicesQuotaRequestLowPriority.json
new file mode 100644
index 000000000000..8893da3a15ae
--- /dev/null
+++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putMachineLearningServicesQuotaRequestLowPriority.json
@@ -0,0 +1,57 @@
+{
+ "parameters": {
+ "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3",
+ "providerId": "Microsoft.MachineLearningServices",
+ "location": "eastus",
+ "resourceName": "TotalLowPriorityCores",
+ "api-version": "2019-07-19-preview",
+ "createQuotaRequest": {
+ "properties": {
+ "limit": 200,
+ "unit": "Count",
+ "name": {
+ "value": "TotalLowPriorityCores"
+ },
+ "resourceType": "lowPriority"
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "type": "Microsoft.Capacity/ServiceLimits",
+ "properties": {
+ "provisioningState": "InProgress",
+ "message": ""
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
+ "type": "Microsoft.Capacity/serviceLimits",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "message": "Request succeeded",
+ "properties": {
+ "properties": {
+ "limit": 200,
+ "unit": "Count",
+ "currentValue": 160,
+ "name": {
+ "value": "TotalLowPriorityCores",
+ "localizedValue": "Total Cluster Low Priority Regional vCPUs"
+ },
+ "resourceType": "lowPriority",
+ "quotaPeriod": "",
+ "properties": {}
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/quota.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/quota.json
index c5134aee0475..a2f2557e130f 100644
--- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/quota.json
+++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/quota.json
@@ -39,8 +39,7 @@
"tags": [
"QuotaInformation"
],
- "summary": "Gets the current quota limit and usages for the resource provider for the specified location for the specific resource in the parameter.",
- "description": "This API gets the current quota limit and usages for the specific resource for resource provider for the specified location. This response can be used to submit quotaRequests.",
+ "description": "Gets the current service limits (quotas) and usage of a resource. The response from Get API can be leveraged to submit quota update requests.",
"operationId": "Quota_Get",
"x-ms-examples": {
"Quotas_Request_ForCompute": {
@@ -89,12 +88,17 @@
"tags": [
"QuotaInformation"
],
- "summary": "Submits a Quota Request for a resource provider at the specified location for the specific resource in the parameter.",
- "description": "Submits Quota change request for a resource provider for the specified location for the specific resource in the parameter. To use, first make a Get request to get quota information for the specific resource. This information consists of information regarding that specific resources. For the specific resource, if it requires an update to the quota, update the limit field in the response from the Get request to the new value of quota. Then, submit this updated JSON object to this quota request API. This will update the quota to the value specified. The location header in the response will be used to track the status of the quota request. Please check the provisioningState field in the response. The Patch operation can be used also to update the quota.",
+ "description": "Create or update the service limits (quota) of a resource to requested value.\n Steps:\n\r 1. Make the Get request to get the quota information for specific resource.\n\r 2. To increase the quota, update the limit field in the response from Get request to new value.\n\r 3. Submit the JSON to the quota request API to update the quota.\r\n The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.",
"operationId": "Quota_CreateOrUpdate",
"x-ms-examples": {
- "Quotas_Request_listForCompute": {
+ "Quotas_Request_ForCompute": {
"$ref": "./examples/putComputeOneSkuQuotaRequest.json"
+ },
+ "Quotas_Request_ForMachineLearningServices_DedicatedResource": {
+ "$ref": "./examples/putMachineLearningServicesQuotaRequestDedicated.json"
+ },
+ "Quotas_Request_ForMachineLearningServices_LowPriorityResource": {
+ "$ref": "./examples/putMachineLearningServicesQuotaRequestLowPriority.json"
}
},
"x-ms-long-running-operation": true,
@@ -152,8 +156,7 @@
"tags": [
"QuotaInformation"
],
- "summary": "Submits a Quota Request for a resource provider at the specified location for the specific resource in the parameter.",
- "description": "Submits Quota change request for a resource provider for the specified location for the specific resource in the parameter. To use, first make a Get request to get quota information for the specific resource. This information consists of information regarding that specific resources. For the specific resource, if it requires an update to the quota, update the limit field in the response from the Get request to the new value of quota. Then, submit this updated JSON object to this quota request API. This will update the quota to the value specified. The location header in the response will be used to track the status of the quota request. Please check the provisioningState field in the response. The Put operation can be used also to update the quota.",
+ "description": "Update the service limits (quota) of a resource to requested value.\n Steps:\n\r 1. Make the Get request to get the quota information for specific resource.\n\r 2. To increase the quota, update the limit field in the response from Get request to new value.\n\r 3. Submit the JSON to the quota request API to update the quota.\r\n The Update quota request may be constructed as follows. The PATCH operation can be used to update the quota.",
"operationId": "Quota_Update",
"x-ms-examples": {
"Quotas_Request_PatchForCompute": {
@@ -198,7 +201,7 @@
}
},
"201": {
- "description": "The request is accepted and is being processed. Please use requestId to check the status.",
+ "description": "The request is accepted and is being processed. Use requestId to check the status.",
"schema": {
"$ref": "#/definitions/QuotaRequestSubmitResponse201"
}
@@ -217,15 +220,14 @@
"tags": [
"QuotaInformation"
],
- "summary": "Gets the current quota limit and usages for all the resources by the resource provider at the specified location.",
- "description": "This API gets the current quota limits and usages for the resource provider for the specified location. This response can be used to submit quotaRequests.",
+ "description": "Get a list of current service limits (quota) and usages of all the resources. The response from List API can be leveraged to submit quota update requests.",
"operationId": "Quota_List",
"x-ms-examples": {
"Quotas_listUsagesForCompute": {
"$ref": "./examples/getComputeUsages.json"
},
- "Quotas_listUsagesForBatchAI": {
- "$ref": "./examples/getBatchAIUsages.json"
+ "Quotas_listUsagesMachineLearningServices": {
+ "$ref": "./examples/getMachineLearningServicesUsages.json"
},
"Quotas_listUsagesForMsSql": {
"$ref": "./examples/getMsSqlUsages.json"
@@ -286,7 +288,6 @@
"$ref": "./examples/getQuotaRequestStatusFailed.json"
}
},
- "summary": "Gets the Quota request status by requestId, for the specified resource provider at specified location.",
"description": "Gets the QuotaRequest details and status by the quota request Id for the resources for the resource provider at a specific location. The requestId is returned as response to the Put requests for serviceLimits.",
"operationId": "QuotaRequestStatus_Get",
"parameters": [
@@ -332,7 +333,6 @@
"$ref": "./examples/getQuotaRequestsHistory.json"
}
},
- "summary": "For the specified location and resource Provider, gets the quota requests under the subscription over the time\n period of one year ago from now to one year back, based on the filter specified.",
"description": "For the specified location and Resource provider gets the current quota requests under the subscription over the time period of one year ago from now to one year back. oData filter can be used to select quota requests.",
"operationId": "QuotaRequestStatus_List",
"parameters": [
@@ -386,7 +386,6 @@
"tags": [
"AutoQuotaIncrease"
],
- "summary": "For the specified subscription, gets the Auto Quota Increase enrollment status.",
"description": "Gets the Auto Quota Increase enrollment details for the specified subscription.",
"operationId": "AutoQuotaIncrease_GetProperties",
"x-ms-examples": {
@@ -421,7 +420,6 @@
"tags": [
"AutoQuotaIncrease"
],
- "summary": "For the specified subscription, sets the Auto Quota Increase enrollment properties.",
"description": "Sets the Auto Quota Increase enrollment properties for the specified subscription.",
"operationId": "AutoQuotaIncrease_Create",
"x-ms-examples": {
@@ -496,7 +494,7 @@
}
},
"QuotaProperties": {
- "description": "Resource quota properties.",
+ "description": "Quota properties for the resource.",
"type": "object",
"properties": {
"limit": {
@@ -929,10 +927,6 @@
"description": "The SupportRequest action.",
"type": "object",
"properties": {
- "autoQuotaIncreaseState": {
- "description": "Is support request action enabled.",
- "$ref": "#/definitions/AqiState"
- },
"severity": {
"description": "The support request severity.",
"$ref": "#/definitions/SeverityTypes"
@@ -999,10 +993,9 @@
}
},
"AqiState": {
- "description": "The Auto quota increase feature state - enabled: feature is fully enabled, enabledForPreview: feature enabled for preview only, disabled: feature is disabled.",
+ "description": "The Auto quota increase feature state - enabled: feature is enabled, disabled: feature is disabled.",
"enum": [
"enabled",
- "enabledForPreview",
"disabled"
],
"x-ms-enum": {
@@ -1120,7 +1113,7 @@
"in": "query",
"required": true,
"type": "string",
- "description": "Api version."
+ "description": "API version."
},
"LocationIdInParameters": {
"name": "location",
@@ -1135,7 +1128,7 @@
"in": "path",
"required": true,
"type": "string",
- "description": "Azure resource Provider id.",
+ "description": "Azure resource provider id.",
"x-ms-parameter-location": "method"
},
"ResourceNameInParameters": {
@@ -1143,7 +1136,7 @@
"in": "path",
"required": true,
"type": "string",
- "description": "The Resource name for the specific resource provider, such as SKU name for Microsoft.Compute, pool for Microsoft.Batch.",
+ "description": "The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices",
"x-ms-parameter-location": "method"
},
"RequestIdInParameters": {
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json
index f1d23375a8b2..79dfb25c2b9e 100644
--- a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json
@@ -36,6 +36,9 @@
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries": {
"get": {
+ "tags": [
+ "GraphQuery"
+ ],
"description": "Get all graph queries defined within a specified subscription and resource group.",
"operationId": "GraphQuery_List",
"parameters": [
@@ -75,6 +78,9 @@
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}": {
"get": {
+ "tags": [
+ "GraphQuery"
+ ],
"description": "Get a single graph query by its resourceName.",
"operationId": "GraphQuery_Get",
"parameters": [
@@ -112,6 +118,9 @@
}
},
"delete": {
+ "tags": [
+ "GraphQuery"
+ ],
"description": "Delete a graph query.",
"operationId": "GraphQuery_Delete",
"parameters": [
@@ -149,6 +158,9 @@
}
},
"put": {
+ "tags": [
+ "GraphQuery"
+ ],
"description": "Create a new graph query.",
"operationId": "GraphQuery_CreateOrUpdate",
"parameters": [
@@ -255,6 +267,11 @@
"readOnly": true,
"description": "Azure resource name. This is GUID value. The display name should be assigned within properties field."
},
+ "location": {
+ "type": "string",
+ "readOnly": false,
+ "description": "The location of the resource"
+ },
"type": {
"type": "string",
"readOnly": true,
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryAdd.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryAdd.json
new file mode 100644
index 000000000000..811b67dab4a6
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryAdd.json
@@ -0,0 +1,42 @@
+{
+ "title": "Create a saved query",
+ "description": "Create new saved query resource.",
+ "parameters": {
+ "subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
+ "resourceGroupName": "my-resource-group",
+ "resourceName": "MyDockerVMs",
+ "api-version": "2020-04-01-preview",
+ "properties": {
+ "tags": {},
+ "properties": {
+ "description": "Docker VMs in PROD",
+ "query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": " /subscriptions/024e2271-06fa-46b6-9079-f1ed3c7b070e/resources/my-resource-group/providers/Microsoft.ResourceGraph/queries/MyDockerVMs",
+ "name": "MyDockerVMs",
+ "type": "Microsoft.ResourceGraph/queries",
+ "eTag": "5d64408e-4ca3-41f7-b725-6914f3012afa",
+ "tags": {},
+ "properties": {
+ "description": "Docker VMs in PROD",
+ "query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'",
+ "resultKind": "basic",
+ "timeModified": "2019-03-12T13:51:13-07:00"
+ },
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "User",
+ "createdAt": "2020-04-27T21:53:29.0928001Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryDelete.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryDelete.json
new file mode 100644
index 000000000000..f698ccf94703
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryDelete.json
@@ -0,0 +1,14 @@
+{
+ "title": "Delete a saved query",
+ "description": "Delete a saved query resource by subid, resource group, and resource name.",
+ "parameters": {
+ "subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
+ "resourceGroupName": "my-resource-group",
+ "resourceName": "MyDockerVM",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryGet.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryGet.json
new file mode 100644
index 000000000000..70a9b50cfd52
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryGet.json
@@ -0,0 +1,35 @@
+{
+ "title": "Get a saved query",
+ "description": "Get a saved query resource by subid, resource group, and resource name.",
+ "parameters": {
+ "subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
+ "resourceGroupName": "my-resource-group",
+ "resourceName": "MyDockerVMs",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": " /subscriptions/024e2271-06fa-46b6-9079-f1ed3c7b070e/resources/my-resource-group/providers/Microsoft.ResourceGraph/queries/MyDockerVMs",
+ "name": "MyDockerVMs",
+ "type": "Microsoft.ResourceGraph/queries",
+ "eTag": "5d64408e-4ca3-41f7-b725-6914f3012afa",
+ "tags": null,
+ "properties": {
+ "description": "Docker VMs in PROD",
+ "query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'",
+ "resultKind": "basic",
+ "timeModified": "2019-03-12T13:51:13-07:00"
+ },
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "User",
+ "createdAt": "2020-04-27T21:53:29.0928001Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryList.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryList.json
new file mode 100644
index 000000000000..451ee110ad70
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryList.json
@@ -0,0 +1,60 @@
+{
+ "title": "Get a list of saved queries",
+ "description": "Get a list of saved queries within subscription id and resource group.",
+ "parameters": {
+ "subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
+ "resourceGroupName": "my-resource-group",
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nextLink": "https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.ResourceGraph/queries?api-version=2019-09-01-preview&$top=10&$skiptoken=skiptoken",
+ "value": [
+ {
+ "id": "/subscriptions/87f4f8b0-83c1-4aa9-b318-5237aeb15264/resources/rid1/providers/Microsoft.ResourceGraph/queries/MyDockerVMs",
+ "name": "MyDockerVMs",
+ "type": "Microsoft.ResourceGraph/queries",
+ "tags": {},
+ "eTag": "5d64408e-4ca3-41f7-b725-6914f3012afa",
+ "properties": {
+ "description": "Docker VMs in PROD",
+ "query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'",
+ "resultKind": "basic",
+ "timeModified": "2019-03-12T13:51:13-07:00"
+ },
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "User",
+ "createdAt": "2020-04-27T21:53:29.0928001Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
+ }
+ },
+ {
+ "id": "/subscriptions/6abb2f31-3e6a-4134-9968-219a596012a0/resources/rid2/providers/Microsoft.ResourceGraph/queries/MyTestVMs",
+ "name": "MyTestVMs",
+ "type": "Microsoft.ResourceGraph/queries",
+ "tags": {},
+ "eTag": "b0809832-ca62-4133-8f13-0c46580f9db1",
+ "properties": {
+ "description": "Test VMs in PROD",
+ "query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'test'",
+ "resultKind": "basic",
+ "timeModified": "2019-03-13T13:51:13-07:00"
+ },
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-04-24T18:53:29.0928001Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryUpdate.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryUpdate.json
new file mode 100644
index 000000000000..4dbff41392a3
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/GraphQueryUpdate.json
@@ -0,0 +1,43 @@
+{
+ "title": "Update a saved query",
+ "description": "Update the existing saved query resource.",
+ "parameters": {
+ "subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
+ "resourceGroupName": "my-resource-group",
+ "resourceName": "MyDockerVMs",
+ "api-version": "2020-04-01-preview",
+ "body": {
+ "tags": null,
+ "eTag": "b0809832-ca62-4133-8f13-0c46580f9db1",
+ "properties": {
+ "description": "Modified description",
+ "query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": " /subscriptions/024e2271-06fa-46b6-9079-f1ed3c7b070e/resources/my-resource-group/providers/Microsoft.ResourceGraph/queries/MyDockerVMs",
+ "name": "MyDockerVMs",
+ "type": "Microsoft.ResourceGraph/queries",
+ "eTag": "73811091-6188-4523-97b7-b5e7134e7fd9",
+ "tags": null,
+ "properties": {
+ "description": "Modified description",
+ "query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'",
+ "resultKind": "basic",
+ "timeModified": "2019-03-14T13:51:13-07:00"
+ },
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-04-23T18:53:29.0928001Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "User",
+ "lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/OperationsList.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/OperationsList.json
new file mode 100644
index 000000000000..2e5e0f27ceed
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/OperationsList.json
@@ -0,0 +1,76 @@
+{
+ "parameters": {
+ "api-version": "2020-04-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.ResourceGraph/operations/read",
+ "display": {
+ "provider": "Microsoft Resource Graph",
+ "resource": "Operation",
+ "operation": "Get Operations",
+ "description": "Gets the list of supported operations"
+ }
+ },
+ {
+ "name": "Microsoft.ResourceGraph/resources/read",
+ "display": {
+ "provider": "Microsoft Resource Graph",
+ "resource": "Resources",
+ "operation": "Query resources",
+ "description": "Submits a query on resources within specified subscriptions, the specified management group, or against all access granted in the tenant."
+ }
+ },
+ {
+ "name": "Microsoft.ResourceGraph/resourceChanges/read",
+ "display": {
+ "provider": "Microsoft Resource Graph",
+ "resource": "Resource Changes",
+ "operation": "Query resource changes",
+ "description": "Lists changes to a resource for a given time interval"
+ }
+ },
+ {
+ "name": "Microsoft.ResourceGraph/resourceChangeDetails/read",
+ "display": {
+ "provider": "Microsoft Resource Graph",
+ "resource": "Resource Change Details",
+ "operation": "Query resource change details",
+ "description": "Gets the details of the specified resource change"
+ }
+ },
+ {
+ "name": "Microsoft.ResourceGraph/queries/read",
+ "display": {
+ "provider": "Microsoft Resource Graph",
+ "resource": "Resource Graph Queries",
+ "operation": "Read resource graph queries",
+ "description": "Gets the specified graph query"
+ }
+ },
+ {
+ "name": "Microsoft.ResourceGraph/queries/delete",
+ "display": {
+ "provider": "Microsoft Resource Graph",
+ "resource": "Resource Graph Queries",
+ "operation": "Delete resource graph queries",
+ "description": "Deletes the specified graph query"
+ }
+ },
+ {
+ "name": "Microsoft.ResourceGraph/queries/write",
+ "display": {
+ "provider": "Microsoft Resource Graph",
+ "resource": "Resource Graph Queries",
+ "operation": "Create/Update resource graph queries",
+ "description": "Creates/Updates the specified graph query"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangeDetails.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangeDetails.json
new file mode 100644
index 000000000000..f251d77c34d2
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangeDetails.json
@@ -0,0 +1,112 @@
+{
+ "title": "Resource Change Details Query",
+ "description": "A resource change details query.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "parameters": {
+ "resourceId": "/subscriptions/4d962866-1e3f-47f2-bd18-450c08f914c1/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount",
+ "changeId": "53dc0515-b86b-4bc2-979b-e4694ab4a556"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "changeId": "53dc0515-b86b-4bc2-979b-e4694ab4a556",
+ "beforeSnapshot": {
+ "timestamp": "2018-10-31T01:32:05.993Z",
+ "content": {
+ "sku": {
+ "name": "Standard_LRS",
+ "tier": "Standard"
+ },
+ "kind": "Storage",
+ "id": "/subscriptions/4d962866-1e3f-47f2-bd18-450c08f914c1/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount",
+ "name": "mystorageaccount",
+ "type": "Microsoft.Storage/storageAccounts",
+ "location": "westus",
+ "tags": {},
+ "properties": {
+ "networkAcls": {
+ "bypass": "AzureServices",
+ "virtualNetworkRules": [],
+ "ipRules": [],
+ "defaultAction": "Allow"
+ },
+ "supportsHttpsTrafficOnly": false,
+ "encryption": {
+ "services": {
+ "file": {
+ "enabled": true,
+ "lastEnabledTime": "2018-07-27T18:37:21.8333895Z"
+ },
+ "blob": {
+ "enabled": true,
+ "lastEnabledTime": "2018-07-27T18:37:21.8333895Z"
+ }
+ },
+ "keySource": "Microsoft.Storage"
+ },
+ "provisioningState": "Succeeded",
+ "creationTime": "2018-07-27T18:37:21.7708872Z",
+ "primaryEndpoints": {
+ "blob": "https://mystorageaccount.blob.core.windows.net/",
+ "queue": "https://mystorageaccount.queue.core.windows.net/",
+ "table": "https://mystorageaccount.table.core.windows.net/",
+ "file": "https://mystorageaccount.file.core.windows.net/"
+ },
+ "primaryLocation": "westus",
+ "statusOfPrimary": "available"
+ }
+ }
+ },
+ "afterSnapshot": {
+ "timestamp": "2018-10-31T01:54:24.42Z",
+ "content": {
+ "sku": {
+ "name": "Standard_LRS",
+ "tier": "Standard"
+ },
+ "kind": "Storage",
+ "id": "/subscriptions/4d962866-1e3f-47f2-bd18-450c08f914c1/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount",
+ "name": "mystorageaccount",
+ "type": "Microsoft.Storage/storageAccounts",
+ "location": "westus",
+ "tags": {},
+ "properties": {
+ "networkAcls": {
+ "bypass": "AzureServices",
+ "virtualNetworkRules": [],
+ "ipRules": [],
+ "defaultAction": "Allow"
+ },
+ "supportsHttpsTrafficOnly": true,
+ "encryption": {
+ "services": {
+ "file": {
+ "enabled": true,
+ "lastEnabledTime": "2018-07-27T18:37:21.8333895Z"
+ },
+ "blob": {
+ "enabled": true,
+ "lastEnabledTime": "2018-07-27T18:37:21.8333895Z"
+ }
+ },
+ "keySource": "Microsoft.Storage"
+ },
+ "provisioningState": "Succeeded",
+ "creationTime": "2018-07-27T18:37:21.7708872Z",
+ "primaryEndpoints": {
+ "blob": "https://mystorageaccount.blob.core.windows.net/",
+ "queue": "https://mystorageaccount.queue.core.windows.net/",
+ "table": "https://mystorageaccount.table.core.windows.net/",
+ "file": "https://mystorageaccount.file.core.windows.net/"
+ },
+ "primaryLocation": "westus",
+ "statusOfPrimary": "available"
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChanges.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChanges.json
new file mode 100644
index 000000000000..fac6e9f1392b
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChanges.json
@@ -0,0 +1,42 @@
+{
+ "title": "Basic Resource Changes Query",
+ "description": "A simple resource changes query.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "parameters": {
+ "resourceId": "/subscriptions/4d962866-1e3f-47f2-bd18-450c08f914c1/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount",
+ "interval": {
+ "start": "2018-10-30T12:09:03.141Z",
+ "end": "2018-10-31T12:09:03.141Z"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "changes": [
+ {
+ "changeId": "2db0ad2d-f6f0-4f46-b529-5c4e8c494648",
+ "changeType": "Update",
+ "beforeSnapshot": {
+ "timestamp": "2018-10-31T01:32:05.993Z"
+ },
+ "afterSnapshot": {
+ "timestamp": "2018-10-31T01:54:24.42Z"
+ }
+ },
+ {
+ "changeId": "9dc352cb-b7c1-4198-9eda-e5e3ed66aec8",
+ "changeType": "Create",
+ "beforeSnapshot": {
+ "timestamp": "2018-10-30T10:30:19.68Z"
+ },
+ "afterSnapshot": {
+ "timestamp": "2018-10-30T21:12:31.337Z"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangesFirstPage.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangesFirstPage.json
new file mode 100644
index 000000000000..e8510dd51c02
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangesFirstPage.json
@@ -0,0 +1,44 @@
+{
+ "title": "Resource Changes Query: First Page",
+ "description": "A resource changes query requesting the first page.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "parameters": {
+ "resourceId": "/subscriptions/4d962866-1e3f-47f2-bd18-450c08f914c1/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount",
+ "interval": {
+ "start": "2018-10-30T12:09:03.141Z",
+ "end": "2018-10-31T12:09:03.141Z"
+ },
+ "$top": 2
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "changes": [
+ {
+ "changeId": "2db0ad2d-f6f0-4f46-b529-5c4e8c494648",
+ "changeType": "Update",
+ "beforeSnapshot": {
+ "timestamp": "2018-10-31T01:32:05.993Z"
+ },
+ "afterSnapshot": {
+ "timestamp": "2018-10-31T01:54:24.42Z"
+ }
+ },
+ {
+ "changeId": "9dc352cb-b7c1-4198-9eda-e5e3ed66aec8",
+ "changeType": "Create",
+ "beforeSnapshot": {
+ "timestamp": "2018-10-30T10:30:19.68Z"
+ },
+ "afterSnapshot": {
+ "timestamp": "2018-10-30T21:12:31.337Z"
+ }
+ }
+ ],
+ "$skipToken": "ew0KICAiJGlkIjogIjEiLA0KICAiRW5kVGltZSI6ICJcL0RhdGUoMTU1MDc0NT"
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangesNextPage.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangesNextPage.json
new file mode 100644
index 000000000000..244c4c092b1f
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourceChangesNextPage.json
@@ -0,0 +1,45 @@
+{
+ "title": "Resource Changes Query: Next Page",
+ "description": "A resource changes query requesting the next page using a skip token.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "parameters": {
+ "resourceId": "/subscriptions/4d962866-1e3f-47f2-bd18-450c08f914c1/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount",
+ "interval": {
+ "start": "2018-10-30T12:09:03.141Z",
+ "end": "2018-10-31T12:09:03.141Z"
+ },
+ "$top": 2,
+ "$skipToken": "ew0KICAiJGlkIjogIjEiLA0KICAiRW5kVGltZSI6ICJcL0RhdGUoMTU1MDc0NT"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "changes": [
+ {
+ "changeId": "55f458c4-f1c0-4963-bc6c-af275cd47702",
+ "changeType": "Update",
+ "beforeSnapshot": {
+ "timestamp": "2018-10-31T03:43:08.629Z"
+ },
+ "afterSnapshot": {
+ "timestamp": "2018-10-31T05:12:32.087Z"
+ }
+ },
+ {
+ "changeId": "0495b929-b86d-46cc-a972-939145feed90",
+ "changeType": "Create",
+ "beforeSnapshot": {
+ "timestamp": "2018-10-31T01:54:24.42Z"
+ },
+ "afterSnapshot": {
+ "timestamp": "2018-10-31T02:01:02.163Z"
+ }
+ }
+ ],
+ "$skipToken": "kVGltZSI6ICJcL0RhdGUoMTU1MDc0NTew0KICAiJGlkIjogIjEiLA0KICAiRW5"
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesBasicQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesBasicQuery.json
new file mode 100644
index 000000000000..6b91850be571
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesBasicQuery.json
@@ -0,0 +1,72 @@
+{
+ "title": "Basic Query",
+ "description": "A simple resources query.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "subscriptions": [
+ "cfbbd179-59d2-4052-aa06-9270a38aa9d6"
+ ],
+ "query": "Resources | project id, name, type, location, tags | limit 3"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 3,
+ "count": 3,
+ "resultTruncated": "false",
+ "facets": [],
+ "data": {
+ "columns": [
+ {
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "type": "string"
+ },
+ {
+ "name": "tags",
+ "type": "object"
+ }
+ ],
+ "rows": [
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG1/providers/Microsoft.Network/networkInterfaces/myNetworkInterface",
+ "myNetworkInterface",
+ "microsoft.network/networkinterfaces",
+ "centralus",
+ {
+ "tag1": "Value1"
+ }
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Network/virtualNetworks/myVnet",
+ "myVnet",
+ "microsoft.network/virtualnetworks",
+ "westus",
+ {}
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Network/publicIPAddresses/myPublicIp",
+ "myPublicIp",
+ "microsoft.network/publicipaddresses",
+ "westus",
+ {}
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesComplexQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesComplexQuery.json
new file mode 100644
index 000000000000..793e7affef17
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesComplexQuery.json
@@ -0,0 +1,49 @@
+{
+ "title": "Complex Query",
+ "description": "A complex query on resources featuring multiple operations.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "subscriptions": [
+ "cfbbd179-59d2-4052-aa06-9270a38aa9d6"
+ ],
+ "query": "Resources | project id, name, type, location | where type =~ 'Microsoft.Compute/virtualMachines' | summarize count() by location | top 3 by count_"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 3,
+ "count": 3,
+ "resultTruncated": "false",
+ "facets": [],
+ "data": {
+ "columns": [
+ {
+ "name": "location",
+ "type": "string"
+ },
+ {
+ "name": "count_",
+ "type": "integer"
+ }
+ ],
+ "rows": [
+ [
+ "centralus",
+ 11
+ ],
+ [
+ "eastus",
+ 11
+ ],
+ [
+ "southcentralus",
+ 3
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFacetQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFacetQuery.json
new file mode 100644
index 000000000000..2c40467848f7
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFacetQuery.json
@@ -0,0 +1,257 @@
+{
+ "title": "Facet Query",
+ "description": "A query on resources requesting extra facets.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "subscriptions": [
+ "cfbbd179-59d2-4052-aa06-9270a38aa9d6"
+ ],
+ "query": "Resources | where type =~ 'Microsoft.Compute/virtualMachines' | project id, name, location, resourceGroup, properties.storageProfile.osDisk.osType | limit 5",
+ "facets": [
+ {
+ "expression": "location",
+ "options": {
+ "sortOrder": "desc",
+ "$top": 3
+ }
+ },
+ {
+ "expression": "properties.storageProfile.osDisk.osType",
+ "options": {
+ "sortOrder": "desc",
+ "$top": 3
+ }
+ },
+ {
+ "expression": "nonExistingColumn",
+ "options": {
+ "sortOrder": "desc",
+ "$top": 3
+ }
+ },
+ {
+ "expression": "resourceGroup",
+ "options": {
+ "sortBy": "tolower(resourceGroup)",
+ "sortOrder": "asc",
+ "$top": 3
+ }
+ },
+ {
+ "expression": "resourceGroup",
+ "options": {
+ "filter": "resourceGroup contains 'test'",
+ "$top": 3
+ }
+ }
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 5,
+ "count": 5,
+ "resultTruncated": "false",
+ "data": {
+ "columns": [
+ {
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "type": "string"
+ },
+ {
+ "name": "resourceGroup",
+ "type": "string"
+ },
+ {
+ "name": "properties_storageProfile_osDisk_osType",
+ "type": "object"
+ }
+ ],
+ "rows": [
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/B-TEST-RG/providers/Microsoft.Compute/virtualMachines/myTestVm",
+ "myTestVm",
+ "eastus",
+ "B-TEST-RG",
+ "Windows"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/c-rg/providers/Microsoft.Compute/virtualMachines/myTestAccountVm",
+ "myTestAccountVm",
+ "westcentralus",
+ "c-rg",
+ "Windows"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/I-RG/providers/Microsoft.Compute/virtualMachines/yetanothertest",
+ "yetanothertest",
+ "eastus",
+ "I-RG",
+ "Linux"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/x-test-rg/providers/Microsoft.Compute/virtualMachines/drafttest1bux4cv7a7q3aw",
+ "drafttest1bux4cv7a7q3aw",
+ "southcentralus",
+ "x-test-rg",
+ "Linux"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/y-rg/providers/Microsoft.Compute/virtualMachines/testvmntp25370",
+ "testvmntp25370",
+ "eastus",
+ "y-rg",
+ "Windows"
+ ]
+ ]
+ },
+ "facets": [
+ {
+ "expression": "location",
+ "resultType": "FacetResult",
+ "totalRecords": 3,
+ "count": 3,
+ "data": {
+ "columns": [
+ {
+ "name": "location",
+ "type": "string"
+ },
+ {
+ "name": "count",
+ "type": "integer"
+ }
+ ],
+ "rows": [
+ [
+ "eastus",
+ 3
+ ],
+ [
+ "southcentralus",
+ 1
+ ],
+ [
+ "westcentralus",
+ 1
+ ]
+ ]
+ }
+ },
+ {
+ "expression": "properties.storageProfile.osDisk.osType",
+ "resultType": "FacetResult",
+ "totalRecords": 2,
+ "count": 2,
+ "data": {
+ "columns": [
+ {
+ "name": "properties_storageProfile_osDisk_osType",
+ "type": "string"
+ },
+ {
+ "name": "count",
+ "type": "integer"
+ }
+ ],
+ "rows": [
+ [
+ "Linux",
+ 2
+ ],
+ [
+ "Windows",
+ 3
+ ]
+ ]
+ }
+ },
+ {
+ "expression": "nonExistingColumn",
+ "resultType": "FacetError",
+ "errors": [
+ {
+ "code": "NoValidColumns",
+ "message": "No valid columns in facet expression."
+ },
+ {
+ "code": "InvalidColumnNames",
+ "message": "Invalid column names: [nonExistingColumn]."
+ }
+ ]
+ },
+ {
+ "expression": "resourceGroup",
+ "resultType": "FacetResult",
+ "totalRecords": 5,
+ "count": 3,
+ "data": {
+ "columns": [
+ {
+ "name": "resourceGroup",
+ "type": "string"
+ },
+ {
+ "name": "count",
+ "type": "integer"
+ }
+ ],
+ "rows": [
+ [
+ "B-TEST-RG",
+ 1
+ ],
+ [
+ "c-rg",
+ 1
+ ],
+ [
+ "I-RG",
+ 1
+ ]
+ ]
+ }
+ },
+ {
+ "expression": "resourceGroup",
+ "resultType": "FacetResult",
+ "totalRecords": 2,
+ "count": 2,
+ "data": {
+ "columns": [
+ {
+ "name": "resourceGroup",
+ "type": "string"
+ },
+ {
+ "name": "count",
+ "type": "integer"
+ }
+ ],
+ "rows": [
+ [
+ "B-TEST-RG",
+ 1
+ ],
+ [
+ "x-test-rg",
+ 1
+ ]
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFilterQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFilterQuery.json
new file mode 100644
index 000000000000..be6104a21864
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFilterQuery.json
@@ -0,0 +1,63 @@
+{
+ "title": "Filter query",
+ "description": "A filtering query on resources.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "subscriptions": [
+ "cfbbd179-59d2-4052-aa06-9270a38aa9d6"
+ ],
+ "query": "Resources | project id, name, type, location | where type =~ 'Microsoft.Compute/virtualMachines' | limit 3"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 3,
+ "count": 3,
+ "resultTruncated": "false",
+ "facets": [],
+ "data": {
+ "columns": [
+ {
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "type": "string"
+ }
+ ],
+ "rows": [
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG1/providers/Microsoft.Compute/virtualMachines/myVm1",
+ "myVm1",
+ "microsoft.compute/virtualmachines",
+ "centralus"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Compute/virtualMachines/myVirtualMachine",
+ "myVirtualMachine",
+ "microsoft.compute/virtualmachines",
+ "eastus"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG3/providers/Microsoft.Compute/virtualMachines/testVm",
+ "testVm",
+ "microsoft.compute/virtualmachines",
+ "eastus"
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFirstPageQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFirstPageQuery.json
new file mode 100644
index 000000000000..e987ff228f38
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesFirstPageQuery.json
@@ -0,0 +1,68 @@
+{
+ "title": "First page query",
+ "description": "A query requesting a first page with of results. Please note id field is required in the response to return the pages in stable sorted fashion.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "subscriptions": [
+ "cfbbd179-59d2-4052-aa06-9270a38aa9d6"
+ ],
+ "query": "Resources | where name contains 'test' | project id, name, type, location",
+ "options": {
+ "$top": 3,
+ "$skip": 0
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 386,
+ "count": 3,
+ "resultTruncated": "false",
+ "facets": [],
+ "$skipToken": "eyAibm8iOiAibHVjayIsICJidXQiOiAibmljZSIsICJ0cnkiOiAiISIgfQ==",
+ "data": {
+ "columns": [
+ {
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "type": "string"
+ }
+ ],
+ "rows": [
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG1/providers/Microsoft.Compute/disks/yetanothertest_OsDisk_1_f396cbcb625a457bb69fe2abf5975820",
+ "yetanothertest_OsDisk_1_f396cbcb625a457bb69fe2abf5975820",
+ "microsoft.compute/disks",
+ "eastus"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Automation/automationAccounts/TestAA",
+ "TestAA",
+ "microsoft.automation/automationaccounts",
+ "westcentralus"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Automation/automationAccounts/TestAA/runbooks/TestRB",
+ "TestRB",
+ "microsoft.automation/automationaccounts/runbooks",
+ "westcentralus"
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesMgBasicQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesMgBasicQuery.json
new file mode 100644
index 000000000000..82ced5f17867
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesMgBasicQuery.json
@@ -0,0 +1,70 @@
+{
+ "title": "Basic Query",
+ "description": "A simple management group scoped resources query.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "managementGroupId": "e927f598-c1d4-4f72-8541-95d83a6a4ac8",
+ "query": "Resources | project id, name, type, location, tags | limit 3"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 3,
+ "count": 3,
+ "resultTruncated": "false",
+ "facets": [],
+ "data": {
+ "columns": [
+ {
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "type": "string"
+ },
+ {
+ "name": "tags",
+ "type": "object"
+ }
+ ],
+ "rows": [
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG1/providers/Microsoft.Network/networkInterfaces/myNetworkInterface",
+ "myNetworkInterface",
+ "microsoft.network/networkinterfaces",
+ "centralus",
+ {
+ "tag1": "Value1"
+ }
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Network/virtualNetworks/myVnet",
+ "myVnet",
+ "microsoft.network/virtualnetworks",
+ "westus",
+ {}
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Network/publicIPAddresses/myPublicIp",
+ "myPublicIp",
+ "microsoft.network/publicipaddresses",
+ "westus",
+ {}
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesNextPageQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesNextPageQuery.json
new file mode 100644
index 000000000000..386edff79d7c
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesNextPageQuery.json
@@ -0,0 +1,67 @@
+{
+ "title": "Next page query",
+ "description": "A query on resources requesting the next page using skip token. Please note id field is required in the response to return the pages in stable sorted fashion.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "subscriptions": [
+ "cfbbd179-59d2-4052-aa06-9270a38aa9d6"
+ ],
+ "query": "Resources | where name contains 'test' | project id, name, type, location",
+ "options": {
+ "$skipToken": "eyAibm8iOiAibHVjayIsICJidXQiOiAibmljZSIsICJ0cnkiOiAiISIgfQ=="
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 386,
+ "count": 3,
+ "resultTruncated": "false",
+ "facets": [],
+ "$skipToken": "eyAibm8yIjogImx1Y2syIiwgImJ1dDIiOiAibmljZTIiLCAidHJ5MiI6ICIhIiB9",
+ "data": {
+ "columns": [
+ {
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "type": "string"
+ }
+ ],
+ "rows": [
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG1/providers/Microsoft.Compute/disks/second_OsDisk_dddddbcb625a457bb69fe2abf5975820",
+ "second_OsDisk_dddddbcb625a457bb69fe2abf5975820",
+ "microsoft.compute/disks",
+ "eastus"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Automation/automationAccounts/AATest",
+ "AATest",
+ "microsoft.automation/automationaccounts",
+ "westcentralus"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Automation/automationAccounts/TestAA/runbooks/RBTest",
+ "RBTest",
+ "microsoft.automation/automationaccounts/runbooks",
+ "westcentralus"
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesPropertiesQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesPropertiesQuery.json
new file mode 100644
index 000000000000..1e883167a805
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesPropertiesQuery.json
@@ -0,0 +1,45 @@
+{
+ "title": "Properties Query",
+ "description": "A query accessing one of the resource properties.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "subscriptions": [
+ "cfbbd179-59d2-4052-aa06-9270a38aa9d6"
+ ],
+ "query": "Resources | where type =~ 'Microsoft.Compute/virtualMachines' | summarize count() by tostring(properties.storageProfile.osDisk.osType)"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 2,
+ "count": 2,
+ "resultTruncated": "false",
+ "facets": [],
+ "data": {
+ "columns": [
+ {
+ "name": "properties_storageProfile_osDisk_osType",
+ "type": "string"
+ },
+ {
+ "name": "count_",
+ "type": "integer"
+ }
+ ],
+ "rows": [
+ [
+ "Linux",
+ 7
+ ],
+ [
+ "Windows",
+ 23
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesRandomPageQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesRandomPageQuery.json
new file mode 100644
index 000000000000..6f38746d0b87
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesRandomPageQuery.json
@@ -0,0 +1,62 @@
+{
+ "title": "Random page query",
+ "description": "A query on resources specifying paging and max rows through query options",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "subscriptions": [
+ "cfbbd179-59d2-4052-aa06-9270a38aa9d6"
+ ],
+ "query": "Resources | where name contains 'test' | project id, name, type, location",
+ "options": {
+ "$top": 2,
+ "$skip": 10
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 386,
+ "count": 2,
+ "resultTruncated": "false",
+ "facets": [],
+ "$skipToken": "eyAibm8iOiAibHVjayIsICJidXQiOiAibmljZSIsICJ0cnkiOiAiISIgfQ==",
+ "data": {
+ "columns": [
+ {
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "type": "string"
+ }
+ ],
+ "rows": [
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG1/providers/Microsoft.Compute/disks/third_OsDisk_dddddbcb625a457bb69fe2abf5975820",
+ "third_OsDisk_dddddbcb625a457bb69fe2abf5975820",
+ "microsoft.compute/disks",
+ "eastus"
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Automation/automationAccounts/CCTest",
+ "CCTest",
+ "microsoft.automation/automationaccounts",
+ "westcentralus"
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesSummarizeQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesSummarizeQuery.json
new file mode 100644
index 000000000000..79f921e21732
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesSummarizeQuery.json
@@ -0,0 +1,42 @@
+{
+ "title": "Summarize Query",
+ "description": "A summarizing query on resources.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "subscriptions": [
+ "cfbbd179-59d2-4052-aa06-9270a38aa9d6"
+ ],
+ "query": "Resources | project id, name, type, location | summarize by location"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 3,
+ "count": 3,
+ "resultTruncated": "false",
+ "facets": [],
+ "data": {
+ "columns": [
+ {
+ "name": "location",
+ "type": "string"
+ }
+ ],
+ "rows": [
+ [
+ "centralus"
+ ],
+ [
+ "eastus"
+ ],
+ [
+ "westus"
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesTenantBasicQuery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesTenantBasicQuery.json
new file mode 100644
index 000000000000..66d4fcba940b
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/examples/ResourcesTenantBasicQuery.json
@@ -0,0 +1,69 @@
+{
+ "title": "Basic Query",
+ "description": "A simple tenant scoped resources query.",
+ "parameters": {
+ "api-version": "2020-04-01-preview",
+ "query": {
+ "query": "Resources | project id, name, type, location, tags | limit 3"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "totalRecords": 3,
+ "count": 3,
+ "resultTruncated": "false",
+ "facets": [],
+ "data": {
+ "columns": [
+ {
+ "name": "id",
+ "type": "string"
+ },
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "type": "string"
+ },
+ {
+ "name": "location",
+ "type": "string"
+ },
+ {
+ "name": "tags",
+ "type": "object"
+ }
+ ],
+ "rows": [
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG1/providers/Microsoft.Network/networkInterfaces/myNetworkInterface",
+ "myNetworkInterface",
+ "microsoft.network/networkinterfaces",
+ "centralus",
+ {
+ "tag1": "Value1"
+ }
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Network/virtualNetworks/myVnet",
+ "myVnet",
+ "microsoft.network/virtualnetworks",
+ "westus",
+ {}
+ ],
+ [
+ "/subscriptions/cfbbd179-59d2-4052-aa06-9270a38aa9d6/resourceGroups/RG2/providers/Microsoft.Network/publicIPAddresses/myPublicIp",
+ "myPublicIp",
+ "microsoft.network/publicipaddresses",
+ "westus",
+ {}
+ ]
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/graphquery.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/graphquery.json
new file mode 100644
index 000000000000..ef9c0ff36b8c
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/graphquery.json
@@ -0,0 +1,469 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Azure Resource Graph Query",
+ "description": "Azure Resource Graph Query API Reference",
+ "version": "2020-04-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries": {
+ "get": {
+ "tags": [
+ "GraphQuery"
+ ],
+ "description": "Get all graph queries defined within a specified subscription and resource group.",
+ "operationId": "GraphQuery_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "A list containing 0 or more graph queries.",
+ "schema": {
+ "$ref": "#/definitions/GraphQueryListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/GraphQueryError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Get a list of Graph Queries": {
+ "$ref": "./examples/GraphQueryList.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}": {
+ "get": {
+ "tags": [
+ "GraphQuery"
+ ],
+ "description": "Get a single graph query by its resourceName.",
+ "operationId": "GraphQuery_Get",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/GraphQueryResourceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "A graph query definition.",
+ "schema": {
+ "$ref": "#/definitions/GraphQueryResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/GraphQueryError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get Graph Query": {
+ "$ref": "./examples/GraphQueryGet.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "GraphQuery"
+ ],
+ "description": "Delete a graph query.",
+ "operationId": "GraphQuery_Delete",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/GraphQueryResourceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The graph query has been successfully deleted."
+ },
+ "204": {
+ "description": "The resource doesn't exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/GraphQueryError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Delete Graph Query": {
+ "$ref": "./examples/GraphQueryDelete.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "GraphQuery"
+ ],
+ "description": "Create a new graph query.",
+ "operationId": "GraphQuery_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/GraphQueryResourceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "properties",
+ "description": "Properties that need to be specified to create a new graph query.",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GraphQueryResource"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The newly created graph query.",
+ "schema": {
+ "$ref": "#/definitions/GraphQueryResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/GraphQueryError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create Graph Query": {
+ "$ref": "./examples/GraphQueryAdd.json"
+ }
+ }
+ },
+ "patch": {
+ "description": "Updates a graph query that has already been added.",
+ "operationId": "GraphQuery_Update",
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/GraphQueryResourceNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "body",
+ "description": "Properties that need to be specified to create a new graph query.",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GraphQueryUpdateParameters"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The graph query definition updated.",
+ "schema": {
+ "$ref": "#/definitions/GraphQueryResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/GraphQueryError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update Graph Query": {
+ "$ref": "./examples/GraphQueryUpdate.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "Resource": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Azure resource Id"
+ },
+ "name": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Azure resource name. This is GUID value. The display name should be assigned within properties field."
+ },
+ "location": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The location of the resource"
+ },
+ "type": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Azure resource type"
+ }
+ },
+ "x-ms-azure-resource": true,
+ "description": "An azure resource object"
+ },
+ "GraphQueryListResult": {
+ "properties": {
+ "nextLink": {
+ "description": "URL to fetch the next set of queries.",
+ "type": "string"
+ },
+ "value": {
+ "type": "array",
+ "readOnly": true,
+ "items": {
+ "$ref": "#/definitions/GraphQueryResource"
+ },
+ "description": "An array of graph queries."
+ }
+ },
+ "description": "Graph query list result."
+ },
+ "GraphQueryResource": {
+ "description": "Graph Query entity definition.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Metadata describing a graph query for an Azure resource.",
+ "$ref": "#/definitions/GraphQueryProperties"
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ },
+ "systemData": {
+ "readOnly": true,
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData"
+ },
+ "eTag": {
+ "type": "string",
+ "description": "This will be used to handle Optimistic Concurrency."
+ }
+ }
+ },
+ "GraphQueryProperties": {
+ "description": "Properties that contain a graph query.",
+ "required": [
+ "query"
+ ],
+ "properties": {
+ "timeModified": {
+ "type": "string",
+ "description": "Date and time in UTC of the last modification that was made to this graph query definition.",
+ "format": "date-time",
+ "readOnly": true
+ },
+ "description": {
+ "type": "string",
+ "description": "The description of a graph query."
+ },
+ "query": {
+ "type": "string",
+ "description": "KQL query that will be graph."
+ },
+ "resultKind": {
+ "description": "Enum indicating a type of graph query.",
+ "readOnly": true,
+ "type": "string",
+ "enum": [
+ "basic"
+ ],
+ "x-ms-enum": {
+ "name": "ResultKind",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "GraphQueryUpdateParameters": {
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ },
+ "eTag": {
+ "type": "string",
+ "description": "This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "description": "Metadata describing a graph query for an Azure resource.",
+ "$ref": "#/definitions/GraphQueryPropertiesUpdateParameters"
+ }
+ },
+ "description": "The parameters that can be provided when updating workbook properties properties."
+ },
+ "GraphQueryPropertiesUpdateParameters": {
+ "description": "Properties that contain a workbook for PATCH operation.",
+ "properties": {
+ "description": {
+ "type": "string",
+ "description": "The description of a graph query."
+ },
+ "query": {
+ "type": "string",
+ "description": "KQL query that will be graph."
+ }
+ }
+ },
+ "ErrorFieldContract": {
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "Property level error code."
+ },
+ "message": {
+ "type": "string",
+ "description": "Human-readable representation of property-level error."
+ },
+ "target": {
+ "type": "string",
+ "description": "Property name."
+ }
+ },
+ "description": "Error Field contract."
+ },
+ "GraphQueryError": {
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response."
+ },
+ "message": {
+ "type": "string",
+ "description": "Human-readable representation of the error."
+ },
+ "details": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorFieldContract"
+ },
+ "description": "The list of invalid fields send in request, in case of validation error."
+ }
+ },
+ "description": "Error message body that will indicate why the operation failed."
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The Azure subscription Id."
+ },
+ "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.",
+ "x-ms-parameter-location": "method"
+ },
+ "GraphQueryResourceNameParameter": {
+ "name": "resourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Graph Query resource.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json
new file mode 100644
index 000000000000..87ee4ab7c39e
--- /dev/null
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json
@@ -0,0 +1,868 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Azure Resource Graph",
+ "description": "Azure Resource Graph API Reference",
+ "version": "2020-04-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.ResourceGraph/resources": {
+ "post": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources",
+ "description": "Queries the resources managed by Azure Resource Manager for all subscriptions specified in the request.",
+ "externalDocs": {
+ "description": "Learn more about the query syntax here",
+ "url": "https://aka.ms/resource-graph/learntoquery"
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "query",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/QueryRequest"
+ },
+ "description": "Request specifying query and its options."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Result of the query operation",
+ "schema": {
+ "$ref": "#/definitions/QueryResponse"
+ }
+ },
+ "default": {
+ "description": "An error occurred while processing the request. See the error.code parameter to identify the specific error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Basic query": {
+ "$ref": "./examples/ResourcesBasicQuery.json"
+ },
+ "Basic tenant query": {
+ "$ref": "./examples/ResourcesTenantBasicQuery.json"
+ },
+ "Basic management group query": {
+ "$ref": "./examples/ResourcesMgBasicQuery.json"
+ },
+ "Filter resources": {
+ "$ref": "./examples/ResourcesFilterQuery.json"
+ },
+ "Summarize resources by location": {
+ "$ref": "./examples/ResourcesSummarizeQuery.json"
+ },
+ "Complex query": {
+ "$ref": "./examples/ResourcesComplexQuery.json"
+ },
+ "Access a properties field": {
+ "$ref": "./examples/ResourcesPropertiesQuery.json"
+ },
+ "Query with a facet request": {
+ "$ref": "./examples/ResourcesFacetQuery.json"
+ },
+ "First page query": {
+ "$ref": "./examples/ResourcesFirstPageQuery.json"
+ },
+ "Next page query": {
+ "$ref": "./examples/ResourcesNextPageQuery.json"
+ },
+ "Random page query": {
+ "$ref": "./examples/ResourcesRandomPageQuery.json"
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.ResourceGraph/resourceChanges": {
+ "post": {
+ "description": "List changes to a resource for a given time interval.",
+ "operationId": "List_ResourceChanges",
+ "tags": [
+ "Changes"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "description": "the parameters for this request for changes.",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ResourceChangesRequestParameters"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "A list of changes associated with a resource over a specific time interval.",
+ "schema": {
+ "$ref": "#/definitions/ResourceChangeList"
+ }
+ },
+ "default": {
+ "description": "A response indicating an error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Basic query": {
+ "$ref": "./examples/ResourceChanges.json"
+ },
+ "First page query": {
+ "$ref": "./examples/ResourceChangesFirstPage.json"
+ },
+ "Next page query": {
+ "$ref": "./examples/ResourceChangesNextPage.json"
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.ResourceGraph/resourceChangeDetails": {
+ "post": {
+ "description": "Get resource change details.",
+ "operationId": "Get_ResourceChangeDetails",
+ "tags": [
+ "Changes"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "description": "The parameters for this request for resource change details.",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ResourceChangeDetailsRequestParameters"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Resource change details.",
+ "schema": {
+ "$ref": "#/definitions/ResourceChangeData"
+ }
+ },
+ "default": {
+ "description": "A response indicating an error.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Basic query": {
+ "$ref": "./examples/ResourceChangeDetails.json"
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.ResourceGraph/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "description": "Lists all of the available REST API operations.",
+ "operationId": "Operations_List",
+ "x-ms-examples": {
+ "OperationsList": {
+ "$ref": "./examples/OperationsList.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ }
+ },
+ "definitions": {
+ "QueryRequest": {
+ "description": "Describes a query to be executed.",
+ "type": "object",
+ "properties": {
+ "subscriptions": {
+ "description": "Azure subscriptions against which to execute the query.",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "description": "Subscription Id."
+ }
+ },
+ "managementGroupId": {
+ "description": "The management group identifier.",
+ "type": "string"
+ },
+ "query": {
+ "description": "The resources query.",
+ "type": "string"
+ },
+ "options": {
+ "description": "The query evaluation options",
+ "$ref": "#/definitions/QueryRequestOptions"
+ },
+ "facets": {
+ "description": "An array of facet requests to be computed against the query result.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/FacetRequest"
+ }
+ }
+ },
+ "required": [
+ "query"
+ ]
+ },
+ "QueryRequestOptions": {
+ "description": "The options for query evaluation",
+ "properties": {
+ "$skipToken": {
+ "description": "Continuation token for pagination, capturing the next page size and offset, as well as the context of the query.",
+ "type": "string"
+ },
+ "$top": {
+ "description": "The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present.",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 1000
+ },
+ "$skip": {
+ "description": "The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present.",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0
+ },
+ "resultFormat": {
+ "description": "Defines in which format query result returned.",
+ "type": "string",
+ "enum": [
+ "table",
+ "objectArray"
+ ],
+ "x-ms-enum": {
+ "name": "ResultFormat",
+ "modelAsString": false
+ }
+ }
+ }
+ },
+ "FacetRequest": {
+ "description": "A request to compute additional statistics (facets) over the query results.",
+ "type": "object",
+ "properties": {
+ "expression": {
+ "description": "The column or list of columns to summarize by",
+ "type": "string"
+ },
+ "options": {
+ "description": "The options for facet evaluation",
+ "$ref": "#/definitions/FacetRequestOptions"
+ }
+ },
+ "required": [
+ "expression"
+ ]
+ },
+ "FacetRequestOptions": {
+ "description": "The options for facet evaluation",
+ "properties": {
+ "sortBy": {
+ "description": "The column name or query expression to sort on. Defaults to count if not present.",
+ "type": "string"
+ },
+ "sortOrder": {
+ "description": "The sorting order by the selected column (count by default).",
+ "type": "string",
+ "default": "desc",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "x-ms-enum": {
+ "name": "FacetSortOrder",
+ "modelAsString": false
+ }
+ },
+ "filter": {
+ "description": "Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting.",
+ "type": "string"
+ },
+ "$top": {
+ "description": "The maximum number of facet rows that should be returned.",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 1000
+ }
+ }
+ },
+ "QueryResponse": {
+ "description": "Query result.",
+ "type": "object",
+ "properties": {
+ "totalRecords": {
+ "description": "Number of total records matching the query.",
+ "type": "integer",
+ "format": "int64"
+ },
+ "count": {
+ "description": "Number of records returned in the current response. In the case of paging, this is the number of records in the current page.",
+ "type": "integer",
+ "format": "int64"
+ },
+ "resultTruncated": {
+ "description": "Indicates whether the query results are truncated.",
+ "type": "string",
+ "enum": [
+ "true",
+ "false"
+ ],
+ "x-ms-enum": {
+ "name": "ResultTruncated",
+ "modelAsString": false
+ }
+ },
+ "$skipToken": {
+ "description": "When present, the value can be passed to a subsequent query call (together with the same query and subscriptions used in the current request) to retrieve the next page of data.",
+ "type": "string"
+ },
+ "data": {
+ "description": "Query output in tabular format.",
+ "type": "object"
+ },
+ "facets": {
+ "description": "Query facets.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Facet"
+ }
+ }
+ },
+ "required": [
+ "totalRecords",
+ "count",
+ "resultTruncated",
+ "data"
+ ]
+ },
+ "Table": {
+ "description": "Query output in tabular format.",
+ "type": "object",
+ "properties": {
+ "columns": {
+ "description": "Query result column descriptors.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Column",
+ "description": "Column descriptor."
+ }
+ },
+ "rows": {
+ "description": "Query result rows.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Row",
+ "description": "Query result row."
+ }
+ }
+ },
+ "required": [
+ "columns",
+ "rows"
+ ]
+ },
+ "Column": {
+ "description": "Query result column descriptor.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Column name.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Column data type.",
+ "$ref": "#/definitions/ColumnDataType"
+ }
+ },
+ "required": [
+ "name",
+ "type"
+ ]
+ },
+ "ColumnDataType": {
+ "description": "Data type of a column in a table.",
+ "type": "string",
+ "enum": [
+ "string",
+ "integer",
+ "number",
+ "boolean",
+ "object"
+ ],
+ "x-ms-enum": {
+ "name": "ColumnDataType",
+ "modelAsString": false
+ }
+ },
+ "Row": {
+ "description": "Query result row.",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "description": "Cell value."
+ }
+ },
+ "Facet": {
+ "description": "A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError.",
+ "type": "object",
+ "properties": {
+ "expression": {
+ "description": "Facet expression, same as in the corresponding facet request.",
+ "type": "string"
+ },
+ "resultType": {
+ "description": "Result type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "expression",
+ "resultType"
+ ],
+ "discriminator": "resultType"
+ },
+ "FacetResult": {
+ "x-ms-discriminator-value": "FacetResult",
+ "description": "Successfully executed facet containing additional statistics on the response of a query.",
+ "type": "object",
+ "properties": {
+ "totalRecords": {
+ "description": "Number of total records in the facet results.",
+ "type": "integer",
+ "format": "int64"
+ },
+ "count": {
+ "description": "Number of records returned in the facet response.",
+ "type": "integer",
+ "format": "int32"
+ },
+ "data": {
+ "description": "A table containing the desired facets. Only present if the facet is valid.",
+ "type": "object"
+ }
+ },
+ "required": [
+ "totalRecords",
+ "count",
+ "data"
+ ],
+ "allOf": [
+ {
+ "$ref": "#/definitions/Facet"
+ }
+ ]
+ },
+ "FacetError": {
+ "x-ms-discriminator-value": "FacetError",
+ "description": "A facet whose execution resulted in an error.",
+ "type": "object",
+ "properties": {
+ "errors": {
+ "description": "An array containing detected facet errors with details.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "required": [
+ "errors"
+ ],
+ "allOf": [
+ {
+ "$ref": "#/definitions/Facet"
+ }
+ ]
+ },
+ "ResourceChangesRequestParameters": {
+ "description": "The parameters for a specific changes request.",
+ "type": "object",
+ "properties": {
+ "resourceId": {
+ "description": "Specifies the resource for a changes request.",
+ "type": "string"
+ },
+ "interval": {
+ "description": "Specifies the date and time interval for a changes request.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/DateTimeInterval"
+ }
+ ]
+ },
+ "$skipToken": {
+ "description": "Acts as the continuation token for paged responses.",
+ "type": "string"
+ },
+ "$top": {
+ "description": "The maximum number of changes the client can accept in a paged response.",
+ "type": "integer",
+ "format": "int32",
+ "minimum": 1,
+ "maximum": 1000
+ },
+ "fetchPropertyChanges": {
+ "description": "The flag if set to true will fetch property changes",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "resourceId",
+ "interval"
+ ]
+ },
+ "ResourceChangeList": {
+ "description": "A list of changes associated with a resource over a specific time interval.",
+ "type": "object",
+ "properties": {
+ "changes": {
+ "description": "The pageable value returned by the operation, i.e. a list of changes to the resource.\n\n- The list is ordered from the most recent changes to the least recent changes.\n- This list will be empty if there were no changes during the requested interval.\n- The `Before` snapshot timestamp value of the oldest change can be outside of the specified time interval.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceChangeData"
+ }
+ },
+ "$skipToken": {
+ "description": "Skip token that encodes the skip information while executing the current request"
+ }
+ }
+ },
+ "ResourceChangeData": {
+ "description": "Data on a specific change, represented by a pair of before and after resource snapshots.",
+ "type": "object",
+ "properties": {
+ "changeId": {
+ "description": "The change ID. Valid and unique within the specified resource only.",
+ "type": "string"
+ },
+ "beforeSnapshot": {
+ "description": "The snapshot before the change.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ResourceSnapshotData"
+ }
+ ]
+ },
+ "afterSnapshot": {
+ "description": "The snapshot after the change.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ResourceSnapshotData"
+ }
+ ]
+ },
+ "changeType": {
+ "description": "The change type for snapshot. PropertyChanges will be provided in case of Update change type",
+ "type": "string",
+ "enum": [
+ "Create",
+ "Update",
+ "Delete"
+ ],
+ "x-ms-enum": {
+ "name": "ChangeType",
+ "modelAsString": false
+ }
+ },
+ "propertyChanges": {
+ "description": "An array of resource property change",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourcePropertyChange"
+ }
+ }
+ },
+ "required": [
+ "changeId",
+ "beforeSnapshot",
+ "afterSnapshot"
+ ]
+ },
+ "ResourcePropertyChange": {
+ "description": "The resource property change",
+ "type": "object",
+ "properties": {
+ "propertyName": {
+ "description": "The property name",
+ "type": "string"
+ },
+ "beforeValue": {
+ "description": "The property value in before snapshot",
+ "type": "string"
+ },
+ "afterValue": {
+ "description": "The property value in after snapshot",
+ "type": "string"
+ },
+ "changeCategory": {
+ "description": "The change category.",
+ "type": "string",
+ "enum": [
+ "User",
+ "System"
+ ],
+ "x-ms-enum": {
+ "name": "ChangeCategory",
+ "modelAsString": false
+ }
+ },
+ "propertyChangeType": {
+ "description": "The property change Type",
+ "type": "string",
+ "enum": [
+ "Insert",
+ "Update",
+ "Remove"
+ ],
+ "x-ms-enum": {
+ "name": "PropertyChangeType",
+ "modelAsString": false
+ }
+ }
+ },
+ "required": [
+ "propertyName",
+ "changeCategory",
+ "propertyChangeType"
+ ]
+ },
+ "ResourceSnapshotData": {
+ "description": "Data on a specific resource snapshot.",
+ "type": "object",
+ "properties": {
+ "timestamp": {
+ "description": "The time when the snapshot was created.\nThe snapshot timestamp provides an approximation as to when a modification to a resource was detected. There can be a difference between the actual modification time and the detection time. This is due to differences in how operations that modify a resource are processed, versus how operation that record resource snapshots are processed.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "content": {
+ "description": "The resource snapshot content (in resourceChangeDetails response only).",
+ "type": "object"
+ }
+ },
+ "required": [
+ "timestamp"
+ ]
+ },
+ "ResourceChangeDetailsRequestParameters": {
+ "description": "The parameters for a specific change details request.",
+ "type": "object",
+ "properties": {
+ "resourceId": {
+ "description": "Specifies the resource for a change details request.",
+ "type": "string"
+ },
+ "changeId": {
+ "description": "Specifies the change ID.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "resourceId",
+ "changeId"
+ ]
+ },
+ "DateTimeInterval": {
+ "description": "An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`.",
+ "type": "object",
+ "properties": {
+ "start": {
+ "description": "A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "end": {
+ "description": "A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error.",
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "start",
+ "end"
+ ]
+ },
+ "ErrorResponse": {
+ "title": "Error response.",
+ "type": "object",
+ "description": "An error response from the API.",
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/Error",
+ "description": "Error information."
+ }
+ },
+ "required": [
+ "error"
+ ]
+ },
+ "Error": {
+ "title": "Error info.",
+ "type": "object",
+ "description": "Error details.",
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "Error code identifying the specific error."
+ },
+ "message": {
+ "type": "string",
+ "description": "A human readable error message."
+ },
+ "details": {
+ "type": "array",
+ "description": "Error details",
+ "items": {
+ "$ref": "#/definitions/ErrorDetails"
+ }
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ]
+ },
+ "ErrorDetails": {
+ "title": "Error details.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "Error code identifying the specific error."
+ },
+ "message": {
+ "type": "string",
+ "description": "A human readable error message."
+ }
+ },
+ "additionalProperties": {
+ "type": "object"
+ },
+ "required": [
+ "code",
+ "message"
+ ]
+ },
+ "OperationListResult": {
+ "description": "Result of the request to list Resource Graph operations. It contains a list of operations and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "description": "List of Resource Graph operations supported by the Resource Graph resource provider."
+ }
+ }
+ },
+ "Operation": {
+ "description": "Resource Graph REST API operation definition.",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}",
+ "type": "string"
+ },
+ "display": {
+ "description": "Display metadata associated with the operation.",
+ "properties": {
+ "provider": {
+ "description": "Service provider: Microsoft Resource Graph.",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Resource on which the operation is performed etc.",
+ "type": "string"
+ },
+ "operation": {
+ "description": "Type of operation: get, read, delete, etc.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description for the operation.",
+ "type": "string"
+ }
+ }
+ },
+ "origin": {
+ "type": "string",
+ "description": "The origin of operations."
+ }
+ }
+ }
+ },
+ "parameters": {
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "Api Version."
+ }
+ }
+}
diff --git a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/stable/2019-04-01/resourcegraph.json b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/stable/2019-04-01/resourcegraph.json
index 5a76305a7a52..4dced5564006 100644
--- a/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/stable/2019-04-01/resourcegraph.json
+++ b/specification/resourcegraph/resource-manager/Microsoft.ResourceGraph/stable/2019-04-01/resourcegraph.json
@@ -290,7 +290,8 @@
"type": "string"
},
"data": {
- "description": "Query output in tabular format."
+ "description": "Query output in tabular format.",
+ "type": "object"
},
"facets": {
"description": "Query facets.",
@@ -409,7 +410,8 @@
"format": "int32"
},
"data": {
- "description": "A table containing the desired facets. Only present if the facet is valid."
+ "description": "A table containing the desired facets. Only present if the facet is valid.",
+ "type": "object"
}
},
"required": [
diff --git a/specification/resourcegraph/resource-manager/readme.md b/specification/resourcegraph/resource-manager/readme.md
index 0975fa101476..3c818b78b7d8 100644
--- a/specification/resourcegraph/resource-manager/readme.md
+++ b/specification/resourcegraph/resource-manager/readme.md
@@ -27,7 +27,7 @@ These are the global settings for the ResourceGraph API.
``` yaml
title: ResourceGraphClient
openapi-type: arm
-tag: package-2019-04
+tag: package-preview-2020-04
```
### Validations
@@ -41,11 +41,20 @@ model-validator: true
message-format: json
```
+### Tag: package-preview-2020-04
+
+These settings apply only when `--tag=package-preview-2020-04` is specified on the command line.
+
+``` yaml $(tag) == 'package-preview-2020-04'
+input-file:
+ - Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json
+```
+
### Tag: package-2019-04
These settings apply only when `--tag=package-2019-04` is specified on the command line.
-```yaml $(tag) == 'package-2019-04'
+``` yaml $(tag) == 'package-2019-04'
input-file:
- Microsoft.ResourceGraph/stable/2019-04-01/resourcegraph.json
```
@@ -114,9 +123,13 @@ directive:
Renaming it to ResourceChanges_ListResourceChanges causes yet another warning:
"Per the Noun_Verb convention for Operation Ids, the noun 'ResourceChanges' should not appear after the underscore."
Renaming it to ResourceChanges_Listresourcechanges seems to get rid of warnings, but the result looks very strange.
+ - suppress: EnumInsteadOfBoolean
+ where: $.definitions.ResourceChangesRequestParameters.properties.fetchPropertyChanges
+ from: resourcegraph.json
+ reason: This is a clear scenario for a boolean and will not have more than 2 values in the future.
```
-## Multi-API/Profile support for AutoRest v3 generators
+## Multi-API/Profile support for AutoRest v3 generators
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
@@ -128,13 +141,14 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.ResourceGraph/preview/2020-04-01-preview/resourcegraph.json
- $(this-folder)/Microsoft.ResourceGraph/stable/2019-04-01/resourcegraph.json
- $(this-folder)/Microsoft.ResourceGraph/preview/2018-09-01-preview/resourcegraph.json
- $(this-folder)/Microsoft.ResourceGraph/preview/2018-09-01-preview/graphquery.json
```
-If there are files that should not be in the `all-api-versions` set,
+If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.
``` yaml $(tag) == 'all-api-versions'
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsCreate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsCreate.json
new file mode 100644
index 000000000000..7027130afd46
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsCreate.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG",
+ "templateSpecName": "simpleTemplateSpec",
+ "templateSpecVersion": "v1.0",
+ "templateSpecVersionModel": {
+ "location": "eastus",
+ "properties": {
+ "description": "This is version v1.0 of our template content",
+ "template": {
+ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0",
+ "parameters": {},
+ "resources": []
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0",
+ "type": "Microsoft.Resources/templateSpecs/versions",
+ "name": "v1.0",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "This is version v1.0 of our template content",
+ "template": {
+ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0",
+ "parameters": {},
+ "resources": []
+ }
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0",
+ "type": "Microsoft.Resources/templateSpecs/versions",
+ "name": "v1.0",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-01T01:01:01.1075056Z"
+ },
+ "properties": {
+ "description": "This is version v1.0 of our template content",
+ "template": {
+ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0",
+ "parameters": {},
+ "resources": []
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsDelete.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsDelete.json
new file mode 100644
index 000000000000..e7c2a152a793
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG",
+ "templateSpecName": "simpleTemplateSpec",
+ "templateSpecVersion": "v1.0"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsGet.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsGet.json
new file mode 100644
index 000000000000..c24ac4e90725
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsGet.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG",
+ "templateSpecName": "simpleTemplateSpec",
+ "templateSpecVersion": "v1.0"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0",
+ "type": "Microsoft.Resources/templateSpecs/versions",
+ "name": "v1.0",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "This is version v1.0 of our template content",
+ "template": {
+ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0",
+ "parameters": {},
+ "resources": []
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsList.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsList.json
new file mode 100644
index 000000000000..6c747f9c7623
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsList.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG",
+ "templateSpecName": "simpleTemplateSpec"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0",
+ "type": "Microsoft.Resources/templateSpecs/versions",
+ "name": "v1.0",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "This is version v1.0"
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v2.0",
+ "type": "Microsoft.Resources/templateSpecs/versions",
+ "name": "v2.0",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-03T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "This is another version (v2.0)"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsPatch.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsPatch.json
new file mode 100644
index 000000000000..ae6ac0541e28
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecVersionsPatch.json
@@ -0,0 +1,44 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG",
+ "templateSpecName": "simpleTemplateSpec",
+ "templateSpecVersion": "v1.0",
+ "templateSpecVersionUpdateModel": {
+ "tags": {
+ "myTag": "My Value"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0",
+ "type": "Microsoft.Resources/templateSpecs/versions",
+ "name": "v1.0",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "This is version v1.0 of our template content",
+ "template": {
+ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0",
+ "parameters": {},
+ "resources": []
+ }
+ },
+ "tags": {
+ "myTag": "My Value"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsCreate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsCreate.json
new file mode 100644
index 000000000000..68b29c856064
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsCreate.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG",
+ "templateSpecName": "simpleTemplateSpec",
+ "templateSpec": {
+ "location": "eastus",
+ "properties": {
+ "description": "A very simple Template Spec"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec",
+ "type": "Microsoft.Resources/templateSpecs",
+ "name": "simpleTemplateSpec",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-01T01:01:01.1075056Z"
+ },
+ "properties": {
+ "description": "A very simple Template Spec"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec",
+ "type": "Microsoft.Resources/templateSpecs",
+ "name": "simpleTemplateSpec",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "A very simple Template Spec"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsDelete.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsDelete.json
new file mode 100644
index 000000000000..9e62f14c3c13
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsDelete.json
@@ -0,0 +1,12 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG",
+ "templateSpecName": "simpleTemplateSpec"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsGet.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsGet.json
new file mode 100644
index 000000000000..09213ca6a682
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsGet.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG",
+ "templateSpecName": "simpleTemplateSpec"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec",
+ "type": "Microsoft.Resources/templateSpecs",
+ "name": "simpleTemplateSpec",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "A very simple Template Spec"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsListByResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsListByResourceGroup.json
new file mode 100644
index 000000000000..601e93f3d384
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsListByResourceGroup.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec",
+ "type": "Microsoft.Resources/templateSpecs",
+ "name": "simpleTemplateSpec",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "A very simple Template Spec"
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/anotherSimpleTemplateSpec",
+ "type": "Microsoft.Resources/templateSpecs",
+ "name": "anotherSimpleTemplateSpec",
+ "location": "westus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-02T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-03T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "Another very simple Template Spec"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsListBySubscription.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsListBySubscription.json
new file mode 100644
index 000000000000..d06d40a793ba
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsListBySubscription.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec",
+ "type": "Microsoft.Resources/templateSpecs",
+ "name": "simpleTemplateSpec",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "A very simple Template Spec"
+ }
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG2/providers/Microsoft.Resources/templateSpecs/anotherSimpleTemplateSpec",
+ "type": "Microsoft.Resources/templateSpecs",
+ "name": "anotherSimpleTemplateSpec",
+ "location": "westus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-02T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-03T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "Another very simple Template Spec"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsPatch.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsPatch.json
new file mode 100644
index 000000000000..4170c4ad0219
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/examples/TemplateSpecsPatch.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "api-version": "2019-06-01-preview",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "templateSpecRG",
+ "templateSpecName": "simpleTemplateSpec",
+ "templateSpec": {
+ "tags": {
+ "myTag": "My Value"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec",
+ "type": "Microsoft.Resources/templateSpecs",
+ "name": "simpleTemplateSpec",
+ "location": "eastus",
+ "systemData": {
+ "createdBy": "string",
+ "createdByType": "Application",
+ "createdAt": "2020-02-01T01:01:01.1075056Z",
+ "lastModifiedBy": "string",
+ "lastModifiedByType": "Application",
+ "lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
+ },
+ "properties": {
+ "description": "A very simple Template Spec"
+ },
+ "tags": {
+ "myTag": "My Value"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/templateSpecs.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/templateSpecs.json
new file mode 100644
index 000000000000..9cc8d212cd87
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2019-06-01-preview/templateSpecs.json
@@ -0,0 +1,863 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "TemplateSpecsClient",
+ "description": "The APIs listed in this specification can be used to manage Template Spec resources through the Azure Resource Manager.",
+ "version": "2019-06-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}": {
+ "put": {
+ "tags": [
+ "TemplateSpecs"
+ ],
+ "operationId": "TemplateSpecs_CreateOrUpdate",
+ "description": "Creates or updates a Template Spec.",
+ "x-ms-examples": {
+ "TemplateSpecsCreateUpdate": {
+ "$ref": "./examples/TemplateSpecsCreate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "templateSpec",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecModel"
+ },
+ "description": "Template Spec supplied to the operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - The Template Spec update request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecModel"
+ }
+ },
+ "201": {
+ "description": "Template Spec created.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecModel"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "TemplateSpecs"
+ ],
+ "operationId": "TemplateSpecs_Update",
+ "description": "Updates Template Spec tags with specified values.",
+ "x-ms-examples": {
+ "TemplateSpecsPatch": {
+ "$ref": "./examples/TemplateSpecsPatch.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "templateSpec",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecUpdateModel"
+ },
+ "description": "Template Spec resource with the tags to be updated."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Template Spec tags are updated.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecModel"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "TemplateSpecs"
+ ],
+ "operationId": "TemplateSpecs_Get",
+ "description": "Gets a Template Spec with a given name.",
+ "x-ms-examples": {
+ "TemplateSpecsGet": {
+ "$ref": "./examples/TemplateSpecsGet.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the Template Spec.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecModel"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "TemplateSpecs"
+ ],
+ "operationId": "TemplateSpecs_Delete",
+ "description": "Deletes a Template Spec by name. When operation completes, status code 200 returned without content.",
+ "x-ms-examples": {
+ "TemplateSpecsDelete": {
+ "$ref": "./examples/TemplateSpecsDelete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Template Spec deleted."
+ },
+ "204": {
+ "description": "Template Spec does not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/": {
+ "get": {
+ "tags": [
+ "TemplateSpecs"
+ ],
+ "operationId": "TemplateSpecs_ListBySubscription",
+ "description": "Lists all the Template Specs within the specified subscriptions.",
+ "x-ms-examples": {
+ "TemplatesSpecsListBySubscription": {
+ "$ref": "./examples/TemplateSpecsListBySubscription.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of Template Specs.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/": {
+ "get": {
+ "tags": [
+ "TemplateSpecs"
+ ],
+ "operationId": "TemplateSpecs_ListByResourceGroup",
+ "description": "Lists all the Template Specs within the specified resource group.",
+ "x-ms-examples": {
+ "TemplateSpecsListByResourceGroup": {
+ "$ref": "./examples/TemplateSpecsListByResourceGroup.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of Template Specs.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}": {
+ "put": {
+ "tags": [
+ "TemplateSpecVersions"
+ ],
+ "operationId": "TemplateSpecVersions_CreateOrUpdate",
+ "description": "Creates or updates a Template Spec version.",
+ "x-ms-examples": {
+ "TemplateSpecVersionsCreateUpdate": {
+ "$ref": "./examples/TemplateSpecVersionsCreate.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "templateSpecVersionModel",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecVersionModel"
+ },
+ "description": "Template Spec Version supplied to the operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - The Template Spec Version has been successfully updated.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecVersionModel"
+ }
+ },
+ "201": {
+ "description": "Template Spec Version created.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecVersionModel"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "TemplateSpecVersions"
+ ],
+ "operationId": "TemplateSpecVersions_Update",
+ "description": "Updates Template Spec Version tags with specified values.",
+ "x-ms-examples": {
+ "TemplateSpecsPatch": {
+ "$ref": "./examples/TemplateSpecVersionsPatch.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecVersionParameter"
+ },
+ {
+ "name": "templateSpecVersionUpdateModel",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecVersionUpdateModel"
+ },
+ "description": "Template Spec Version resource with the tags to be updated."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Template Spec Version tags are updated.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecVersionModel"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "TemplateSpecVersions"
+ ],
+ "operationId": "TemplateSpecVersions_Get",
+ "description": "Gets a Template Spec version from a specific Template Spec.",
+ "x-ms-examples": {
+ "TemplateSpecVersionsGet": {
+ "$ref": "./examples/TemplateSpecVersionsGet.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the Template Spec version.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecVersionModel"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "TemplateSpecVersions"
+ ],
+ "operationId": "TemplateSpecVersions_Delete",
+ "description": "Deletes a specific version from a Template Spec. When operation completes, status code 200 returned without content.",
+ "x-ms-examples": {
+ "TemplateSpecVersionsDelete": {
+ "$ref": "./examples/TemplateSpecVersionsDelete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Template Spec Version deleted."
+ },
+ "204": {
+ "description": "Template Spec Version does not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions": {
+ "get": {
+ "tags": [
+ "TemplateSpecVersions"
+ ],
+ "operationId": "TemplateSpecVersions_List",
+ "description": "Lists all the Template Spec versions in the specified Template Spec.",
+ "x-ms-examples": {
+ "TemplateSpecVersions_List": {
+ "$ref": "./examples/TemplateSpecVersionsList.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/TemplateSpecNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of Template Spec versions.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecVersionsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/TemplateSpecsError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "TemplateSpecModel": {
+ "required": [
+ "location"
+ ],
+ "type": "object",
+ "description": "Template Spec object.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AzureResourceBase"
+ }
+ ],
+ "properties": {
+ "location": {
+ "type": "string",
+ "x-ms-mutability": [
+ "read",
+ "create"
+ ],
+ "description": "The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations."
+ },
+ "properties": {
+ "description": "Template Spec properties.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/TemplateSpecProperties"
+ },
+ "tags": {
+ "type": "object",
+ "description": "Resource tags.",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "TemplateSpecProperties": {
+ "type": "object",
+ "description": "Template Spec properties.",
+ "properties": {
+ "description": {
+ "type": "string",
+ "maxLength": 4096,
+ "description": "Template Spec description."
+ },
+ "displayName": {
+ "type": "string",
+ "maxLength": 64,
+ "description": "Template Spec display name."
+ }
+ }
+ },
+ "TemplateSpecsListResult": {
+ "description": "List of Template Specs.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TemplateSpecModel"
+ },
+ "description": "An array of Template Specs."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URL to use for getting the next set of results."
+ }
+ }
+ },
+ "TemplateSpecUpdateModel": {
+ "type": "object",
+ "description": "Template Spec properties to be updated (only tags are currently supported).",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "description": "Resource tags.",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AzureResourceBase"
+ }
+ ]
+ },
+ "TemplateSpecVersionUpdateModel": {
+ "type": "object",
+ "description": "Template Spec Version properties to be updated (only tags are currently supported).",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "description": "Resource tags.",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AzureResourceBase"
+ }
+ ]
+ },
+ "AzureResourceBase": {
+ "x-ms-azure-resource": true,
+ "type": "object",
+ "description": "Common properties for all Azure resources.",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "String Id used to locate any resource on Azure."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Name of this resource."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Type of this resource."
+ },
+ "systemData": {
+ "readOnly": true,
+ "type": "object",
+ "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData"
+ }
+ }
+ },
+ "TemplateSpecVersionModel": {
+ "required": [
+ "properties",
+ "location"
+ ],
+ "type": "object",
+ "description": "Template Spec Version object.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AzureResourceBase"
+ }
+ ],
+ "properties": {
+ "location": {
+ "type": "string",
+ "x-ms-mutability": [
+ "read",
+ "create"
+ ],
+ "description": "The location of the Template Spec Version. It must match the location of the parent Template Spec."
+ },
+ "properties": {
+ "description": "Template Spec Version properties.",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/TemplateSpecVersionProperties"
+ },
+ "tags": {
+ "type": "object",
+ "description": "Resource tags.",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "TemplateSpecVersionProperties": {
+ "type": "object",
+ "description": "Template Spec Version properties.",
+ "properties": {
+ "artifacts": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TemplateSpecArtifact"
+ },
+ "description": "An array of Template Spec artifacts."
+ },
+ "description": {
+ "type": "string",
+ "maxLength": 4096,
+ "description": "Template Spec version description."
+ },
+ "template": {
+ "type": "object",
+ "description": "The Azure Resource Manager template content."
+ }
+ }
+ },
+ "TemplateSpecVersionsListResult": {
+ "description": "List of Template Specs versions",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TemplateSpecVersionModel"
+ },
+ "description": "An array of Template Spec versions."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URL to use for getting the next set of results."
+ }
+ }
+ },
+ "TemplateSpecArtifact": {
+ "type": "object",
+ "discriminator": "kind",
+ "description": "Represents a Template Spec artifact.",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "A filesystem safe relative path of the artifact."
+ },
+ "kind": {
+ "type": "string",
+ "description": "The kind of artifact.",
+ "enum": [
+ "template"
+ ],
+ "x-ms-enum": {
+ "name": "TemplateSpecArtifactKind",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "template",
+ "description": "The artifact represents an embedded Azure Resource Manager template."
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "kind",
+ "path"
+ ]
+ },
+ "TemplateSpecTemplateArtifact": {
+ "type": "object",
+ "x-ms-discriminator-value": "template",
+ "description": "Represents a Template Spec artifact containing an embedded Azure Resource Manager template.",
+ "properties": {
+ "template": {
+ "type": "object",
+ "description": "The Azure Resource Manager template."
+ }
+ },
+ "required": [
+ "template"
+ ],
+ "allOf": [
+ {
+ "$ref": "#/definitions/TemplateSpecArtifact"
+ }
+ ]
+ },
+ "TemplateSpecsError": {
+ "properties": {
+ "error": {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "description": "Template Specs error response."
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client",
+ "description": "Subscription Id which forms part of the URI for every service call."
+ },
+ "ResourceGroupNameParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method"
+ },
+ "TemplateSpecNameParameter": {
+ "name": "templateSpecName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "description": "Name of the Template Spec.",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method"
+ },
+ "TemplateSpecVersionParameter": {
+ "name": "templateSpecVersion",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "description": "The version of the Template Spec.",
+ "minLength": 1,
+ "maxLength": 90,
+ "x-ms-parameter-location": "method"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client",
+ "description": "Client Api version."
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-08-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-08-01/resources.json
index 9052916fa211..9e93e552c6db 100644
--- a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-08-01/resources.json
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-08-01/resources.json
@@ -2730,7 +2730,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
@@ -2803,7 +2804,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
@@ -2880,7 +2882,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"name": "parameters",
@@ -2972,7 +2975,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"name": "parameters",
@@ -3058,7 +3062,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
@@ -3101,7 +3106,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
}
],
"responses": {
@@ -3139,7 +3145,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
}
],
"responses": {
@@ -3181,7 +3188,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"name": "parameters",
@@ -3238,7 +3246,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"name": "parameters",
@@ -3289,7 +3298,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
}
],
"responses": {
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-10-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-10-01/resources.json
index 76b3ad069184..399946292489 100644
--- a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-10-01/resources.json
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-10-01/resources.json
@@ -2620,7 +2620,7 @@
"$ref": "#/parameters/ApiVersionParameter"
},
{
- "$ref": "#/parameters/SourceSubscriptionIdParameter"
+ "$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
@@ -2750,7 +2750,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
@@ -2823,7 +2824,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
@@ -2900,7 +2902,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"name": "parameters",
@@ -2992,7 +2995,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"name": "parameters",
@@ -3078,7 +3082,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
@@ -3121,7 +3126,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
}
],
"responses": {
@@ -3159,7 +3165,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
}
],
"responses": {
@@ -3201,7 +3208,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"name": "parameters",
@@ -3258,7 +3266,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
},
{
"name": "parameters",
@@ -3309,7 +3318,8 @@
"in": "query",
"required": true,
"type": "string",
- "description": "The API version to use for the operation."
+ "description": "The API version to use for the operation.",
+ "x-ms-api-version": false
}
],
"responses": {
@@ -5034,9 +5044,9 @@
},
"userAssignedIdentities": {
"type": "object",
- "x-ms-client-name": "IdentityUserAssignedIdentitiesValue",
"additionalProperties": {
"type": "object",
+ "x-ms-client-name": "IdentityUserAssignedIdentitiesValue",
"properties": {
"principalId": {
"readOnly": true,
@@ -5839,13 +5849,6 @@
"type": "string",
"description": "The ID of the target subscription."
},
- "SourceSubscriptionIdParameter": {
- "name": "subscriptionId",
- "in": "path",
- "required": true,
- "type": "string",
- "description": "The ID of the source subscription."
- },
"DeploymentNameParameter": {
"name": "deploymentName",
"in": "path",
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/CalculateTemplateHash.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/CalculateTemplateHash.json
new file mode 100644
index 000000000000..719bd2aff5e6
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/CalculateTemplateHash.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "api-version": "2020-06-01",
+ "template": {
+ "$schema": "http://schemas.management.azure.com/deploymentTemplate?api-version=2014-04-01-preview",
+ "contentVersion": "1.0.0.0",
+ "parameters": {
+ "string": {
+ "type": "string"
+ }
+ },
+ "variables": {
+ "string": "string",
+ "int": 42,
+ "bool": true,
+ "array": [
+ 1,
+ 2,
+ 3,
+ 4
+ ],
+ "object": {
+ "object": {
+ "vmSize": "Large",
+ "location": "West US"
+ }
+ }
+ },
+ "resources": [],
+ "outputs": {
+ "string": {
+ "type": "string",
+ "value": "myvalue"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "minifiedTemplate": "{\"$SCHEMA\":\"HTTP://SCHEMAS.MANAGEMENT.AZURE.COM/DEPLOYMENTTEMPLATE?API-VERSION=2014-04-01-PREVIEW\",\"CONTENTVERSION\":\"1.0.0.0\",\"PARAMETERS\":{\"STRING\":{\"TYPE\":\"STRING\"}},\"VARIABLES\":{\"STRING\":\"STRING\",\"INT\":42,\"BOOL\":TRUE,\"ARRAY\":[1,2,3,4],\"OBJECT\":{\"OBJECT\":{\"VMSIZE\":\"LARGE\",\"LOCATION\":\"WEST US\"}}},\"RESOURCES\":[],\"OUTPUTS\":{\"STRING\":{\"TYPE\":\"STRING\",\"VALUE\":\"MYVALUE\"}}}",
+ "templateHash": "695440707931307747"
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/CreateResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/CreateResourceGroup.json
new file mode 100644
index 000000000000..096db5c70dc5
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/CreateResourceGroup.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "my-resource-group",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "location": "eastus"
+ }
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group",
+ "name": "my-resource-group",
+ "location": "eastus",
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group",
+ "name": "my-resource-group",
+ "location": "eastus",
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/ExportResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/ExportResourceGroup.json
new file mode 100644
index 000000000000..d611dfcf411c
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/ExportResourceGroup.json
@@ -0,0 +1,68 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "my-resource-group",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "resources": [
+ "*"
+ ],
+ "options": "IncludeParameterDefaultValue,IncludeComments"
+ }
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01"
+ }
+ },
+ "200": {
+ "body": {
+ "template": {
+ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0",
+ "parameters": {
+ "myResourceType_myFirstResource_name": {
+ "defaultValue": "myFirstResource",
+ "type": "String"
+ },
+ "myResourceType_mySecondResource_name": {
+ "defaultValue": "mySecondResource",
+ "type": "String"
+ },
+ "myResourceType_myFirstResource_secret": {
+ "defaultValue": null,
+ "type": "SecureString"
+ }
+ },
+ "variables": {},
+ "resources": [
+ {
+ "type": "My.RP/myResourceType",
+ "apiVersion": "2019-01-01",
+ "name": "[parameters('myResourceType_myFirstResource_name')]",
+ "location": "West US",
+ "properties": {
+ "secret": "[parameters('myResourceType_myFirstResource_secret')]"
+ }
+ },
+ {
+ "type": "My.RP/myResourceType",
+ "apiVersion": "2019-01-01",
+ "name": "[parameters('myResourceType_mySecondResource_name')]",
+ "location": "West US",
+ "properties": {
+ "customProperty": "hello!"
+ }
+ }
+ ]
+ },
+ "error": {
+ "code": "ExportTemplateCompletedWithErrors",
+ "message": "Export template operation completed with errors. Some resources were not exported. Please see details for more information.",
+ "details": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/ExportResourceGroupWithFiltering.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/ExportResourceGroupWithFiltering.json
new file mode 100644
index 000000000000..b0b251b7414f
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/ExportResourceGroupWithFiltering.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "my-resource-group",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "resources": [
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/My.RP/myResourceType/myFirstResource"
+ ],
+ "options": "SkipResourceNameParameterization"
+ }
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01"
+ }
+ },
+ "200": {
+ "body": {
+ "template": {
+ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0",
+ "parameters": {
+ "myResourceType_myFirstResource_secret": {
+ "defaultValue": null,
+ "type": "SecureString"
+ }
+ },
+ "variables": {},
+ "resources": [
+ {
+ "type": "My.RP/myResourceType",
+ "apiVersion": "2019-01-01",
+ "name": "myFirstResource",
+ "location": "West US",
+ "properties": {
+ "secret": "[parameters('myResourceType_myFirstResource_secret')]"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/GetTagsResource.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/GetTagsResource.json
new file mode 100644
index 000000000000..56144dde4570
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/GetTagsResource.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm",
+ "api-version": "2020-06-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/GetTagsSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/GetTagsSubscription.json
new file mode 100644
index 000000000000..f9687306265e
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/GetTagsSubscription.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000",
+ "api-version": "2020-06-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PostDeploymentWhatIfOnResourceGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PostDeploymentWhatIfOnResourceGroup.json
new file mode 100644
index 000000000000..0fd56fa4f3cd
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PostDeploymentWhatIfOnResourceGroup.json
@@ -0,0 +1,73 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000001",
+ "resourceGroupName": "my-resource-group",
+ "deploymentName": "my-deployment",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "properties": {
+ "templateLink": "https://example.com/exampleTemplate.json",
+ "parameters": {},
+ "mode": "Incremental"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "succeeded",
+ "properties": {
+ "changes": [
+ {
+ "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity",
+ "changeType": "Modify",
+ "before": {
+ "apiVersion": "2018-11-30",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity",
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
+ "name": "myExistingIdentity",
+ "location": "westus2"
+ },
+ "after": {
+ "apiVersion": "2018-11-30",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity",
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
+ "name": "myExistingIdentity",
+ "location": "westus2",
+ "tags": {
+ "myNewTag": "my tag value"
+ }
+ },
+ "delta": [
+ {
+ "path": "tags.myNewTag",
+ "propertyChangeType": "Create",
+ "after": "my tag value"
+ }
+ ]
+ },
+ {
+ "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity",
+ "changeType": "Create",
+ "after": {
+ "apiVersion": "2018-11-30",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity",
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
+ "name": "myNewIdentity",
+ "location": "eastus",
+ "tags": {
+ "myOtherNewTag": "another new tag value"
+ }
+ }
+ }
+ ]
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "Location": "/subscriptions/00000000-0000-0000-0000-000000000000/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PostDeploymentWhatIfOnSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PostDeploymentWhatIfOnSubscription.json
new file mode 100644
index 000000000000..07e9ab646da7
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PostDeploymentWhatIfOnSubscription.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000001",
+ "deploymentName": "my-deployment",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "location": "westus",
+ "properties": {
+ "templateLink": "https://example.com/exampleTemplate.json",
+ "parameters": {},
+ "mode": "Incremental"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "status": "succeeded",
+ "properties": {
+ "changes": [
+ {
+ "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity",
+ "changeType": "Modify",
+ "before": {
+ "apiVersion": "2018-11-30",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity",
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
+ "name": "myExistingIdentity",
+ "location": "westus2"
+ },
+ "after": {
+ "apiVersion": "2018-11-30",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myExistingIdentity",
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
+ "name": "myExistingIdentity",
+ "location": "westus2",
+ "tags": {
+ "myNewTag": "my tag value"
+ }
+ },
+ "delta": [
+ {
+ "path": "tags.myNewTag",
+ "propertyChangeType": "Create",
+ "after": "my tag value"
+ }
+ ]
+ },
+ {
+ "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity",
+ "changeType": "Create",
+ "after": {
+ "apiVersion": "2018-11-30",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myNewIdentity",
+ "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
+ "name": "myNewIdentity",
+ "location": "eastus",
+ "tags": {
+ "myOtherNewTag": "another new tag value"
+ }
+ }
+ },
+ {
+ "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group2",
+ "changeType": "Create",
+ "after": {
+ "apiVersion": "2019-03-01",
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group2",
+ "type": "Microsoft.Resources/resourceGroups",
+ "name": "my-resource-group2",
+ "location": "{location3}"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "Location": "/subscriptions/00000000-0000-0000-0000-000000000000/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtManagementGroup.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtManagementGroup.json
new file mode 100644
index 000000000000..e6fe90cae1e0
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtManagementGroup.json
@@ -0,0 +1,139 @@
+{
+ "parameters": {
+ "groupId": "my-management-group-id",
+ "deploymentName": "my-deployment",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "templateLink": {
+ "uri": "https://example.com/exampleTemplate.json"
+ },
+ "parameters": {},
+ "mode": "Incremental"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "location": "eastus",
+ "properties": {
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-04-24T22:52:38.7895563Z",
+ "duration": "PT1.2970875S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Authorization",
+ "resourceTypes": [
+ {
+ "resourceType": "policyDefinitions",
+ "locations": [
+ null
+ ]
+ },
+ {
+ "resourceType": "policyAssignments",
+ "locations": [
+ null
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "Microsoft.Resources",
+ "resourceTypes": [
+ {
+ "resourceType": "deployments",
+ "locations": [
+ "eastus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name",
+ "resourceType": "Microsoft.Authorization/policyDefinitions",
+ "resourceName": "policy-definition-name"
+ }
+ ],
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock",
+ "resourceType": "Microsoft.Authorization/policyAssignments",
+ "resourceName": "location-lock"
+ }
+ ]
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "location": "eastus",
+ "properties": {
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-04-24T22:52:38.7895563Z",
+ "duration": "PT1.2970875S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Authorization",
+ "resourceTypes": [
+ {
+ "resourceType": "policyDefinitions",
+ "locations": [
+ null
+ ]
+ },
+ {
+ "resourceType": "policyAssignments",
+ "locations": [
+ null
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "Microsoft.Resources",
+ "resourceTypes": [
+ {
+ "resourceType": "deployments",
+ "locations": [
+ "eastus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name",
+ "resourceType": "Microsoft.Authorization/policyDefinitions",
+ "resourceName": "policy-definition-name"
+ }
+ ],
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock",
+ "resourceType": "Microsoft.Authorization/policyAssignments",
+ "resourceName": "location-lock"
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtScope.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtScope.json
new file mode 100644
index 000000000000..b3964c7fa7bf
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtScope.json
@@ -0,0 +1,151 @@
+{
+ "parameters": {
+ "scope": "providers/Microsoft.Management/managementGroups/my-management-group-id",
+ "deploymentName": "my-deployment",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "templateLink": {
+ "uri": "https://example.com/exampleTemplate.json"
+ },
+ "parameters": {},
+ "mode": "Incremental"
+ },
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "location": "eastus",
+ "properties": {
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-04-24T22:52:38.7895563Z",
+ "duration": "PT1.2970875S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Authorization",
+ "resourceTypes": [
+ {
+ "resourceType": "policyDefinitions",
+ "locations": [
+ null
+ ]
+ },
+ {
+ "resourceType": "policyAssignments",
+ "locations": [
+ null
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "Microsoft.Resources",
+ "resourceTypes": [
+ {
+ "resourceType": "deployments",
+ "locations": [
+ "eastus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name",
+ "resourceType": "Microsoft.Authorization/policyDefinitions",
+ "resourceName": "policy-definition-name"
+ }
+ ],
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock",
+ "resourceType": "Microsoft.Authorization/policyAssignments",
+ "resourceName": "location-lock"
+ }
+ ]
+ },
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "location": "eastus",
+ "properties": {
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-04-24T22:52:38.7895563Z",
+ "duration": "PT1.2970875S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Authorization",
+ "resourceTypes": [
+ {
+ "resourceType": "policyDefinitions",
+ "locations": [
+ null
+ ]
+ },
+ {
+ "resourceType": "policyAssignments",
+ "locations": [
+ null
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "Microsoft.Resources",
+ "resourceTypes": [
+ {
+ "resourceType": "deployments",
+ "locations": [
+ "eastus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name",
+ "resourceType": "Microsoft.Authorization/policyDefinitions",
+ "resourceName": "policy-definition-name"
+ }
+ ],
+ "id": "/providers/Microsoft.Management/managementGroups/my-management-group-id/providers/Microsoft.Authorization/policyAssignments/location-lock",
+ "resourceType": "Microsoft.Authorization/policyAssignments",
+ "resourceName": "location-lock"
+ }
+ ]
+ },
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtTenant.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtTenant.json
new file mode 100644
index 000000000000..9b8a3f96e2d5
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentAtTenant.json
@@ -0,0 +1,150 @@
+{
+ "parameters": {
+ "deploymentName": "tenant-dep01",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "templateLink": {
+ "uri": "https://example.com/exampleTemplate.json"
+ },
+ "parameters": {},
+ "mode": "Incremental"
+ },
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/providers/Microsoft.Resources/deployments/tenant-dep01",
+ "name": "tenant-dep01",
+ "type": "Microsoft.Resources/deployments",
+ "location": "eastus",
+ "properties": {
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-04-24T22:52:38.7895563Z",
+ "duration": "PT1.2970875S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Authorization",
+ "resourceTypes": [
+ {
+ "resourceType": "policyDefinitions",
+ "locations": [
+ null
+ ]
+ },
+ {
+ "resourceType": "policyAssignments",
+ "locations": [
+ null
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "Microsoft.Resources",
+ "resourceTypes": [
+ {
+ "resourceType": "deployments",
+ "locations": [
+ "eastus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name",
+ "resourceType": "Microsoft.Authorization/policyDefinitions",
+ "resourceName": "policy-definition-name"
+ }
+ ],
+ "id": "/providers/Microsoft.Authorization/policyAssignments/location-lock",
+ "resourceType": "Microsoft.Authorization/policyAssignments",
+ "resourceName": "location-lock"
+ }
+ ]
+ },
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/providers/Microsoft.Resources/deployments/tenant-dep01",
+ "name": "tenant-dep01",
+ "type": "Microsoft.Resources/deployments",
+ "location": "eastus",
+ "properties": {
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-04-24T22:52:38.7895563Z",
+ "duration": "PT1.2970875S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Authorization",
+ "resourceTypes": [
+ {
+ "resourceType": "policyDefinitions",
+ "locations": [
+ null
+ ]
+ },
+ {
+ "resourceType": "policyAssignments",
+ "locations": [
+ null
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "Microsoft.Resources",
+ "resourceTypes": [
+ {
+ "resourceType": "deployments",
+ "locations": [
+ "eastus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "/providers/Microsoft.Authorization/policyDefinitions/policy-definition-name",
+ "resourceType": "Microsoft.Authorization/policyDefinitions",
+ "resourceName": "policy-definition-name"
+ }
+ ],
+ "id": "/providers/Microsoft.Authorization/policyAssignments/location-lock",
+ "resourceType": "Microsoft.Authorization/policyAssignments",
+ "resourceName": "location-lock"
+ }
+ ]
+ },
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json
new file mode 100644
index 000000000000..621dc58ff4a8
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentResourceGroupTemplateSpecsWithId.json
@@ -0,0 +1,92 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000001",
+ "resourceGroupName": "my-resource-group",
+ "deploymentName": "my-deployment",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "properties": {
+ "templateLink": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1"
+ },
+ "parameters": {},
+ "mode": "Incremental"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "properties": {
+ "templateLink": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1",
+ "contentVersion": "1.0.0.0"
+ },
+ "templateHash": "0000000000000000000",
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Succeeded",
+ "timestamp": "2020-06-05T01:20:01.723776Z",
+ "duration": "PT22.8356799S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Storage",
+ "resourceTypes": [
+ {
+ "resourceType": "storageAccounts",
+ "locations": [
+ "eastus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [],
+ "outputResources": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/my-storage-account"
+ }
+ ]
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "properties": {
+ "templateLink": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1",
+ "contentVersion": "1.0.0.0"
+ },
+ "templateHash": "0000000000000000000",
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Accepted",
+ "timestamp": "2020-06-05T01:20:01.723776Z",
+ "duration": "PT22.8356799S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Storage",
+ "resourceTypes": [
+ {
+ "resourceType": "storageAccounts",
+ "locations": [
+ "eastus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json
new file mode 100644
index 000000000000..0535e39dc58b
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentSubscriptionTemplateSpecsWithId.json
@@ -0,0 +1,66 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000001",
+ "deploymentName": "my-deployment",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "location": "eastus",
+ "properties": {
+ "templateLink": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1"
+ },
+ "parameters": {},
+ "mode": "Incremental"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "location": "eastus",
+ "properties": {
+ "templateLink": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1",
+ "contentVersion": "1.0.0.0"
+ },
+ "templateHash": "0000000000000000000",
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Succeeded",
+ "timestamp": "2020-06-05T01:51:58.6288067Z",
+ "duration": "PT1.2637681S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [],
+ "dependencies": [],
+ "outputResources": []
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "location": "eastus",
+ "properties": {
+ "templateLink": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1",
+ "contentVersion": "1.0.0.0"
+ },
+ "templateHash": "0000000000000000000",
+ "parameters": {},
+ "mode": "Incremental",
+ "provisioningState": "Accepted",
+ "timestamp": "2020-06-05T01:51:58.6288067Z",
+ "duration": "PT1.2637681S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [],
+ "dependencies": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json
new file mode 100644
index 000000000000..dd3f441c1c5c
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json
@@ -0,0 +1,168 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "my-resource-group",
+ "deploymentName": "my-deployment",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "properties": {
+ "templateLink": {
+ "uri": "https://example.com/exampleTemplate.json"
+ },
+ "parameters": {},
+ "mode": "Complete",
+ "onErrorDeployment": {
+ "type": "LastSuccessful"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "properties": {
+ "templateLink": {
+ "uri": "https://example.com/exampleTemplate.json",
+ "contentVersion": "1.0.0.0"
+ },
+ "parameters": {},
+ "mode": "Complete",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-03-01T00:00:00.0000000Z",
+ "duration": "PT0.8204881S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Network",
+ "resourceTypes": [
+ {
+ "resourceType": "virtualNetworks",
+ "locations": [
+ "centralus"
+ ]
+ },
+ {
+ "resourceType": "virtualNetworks/subnets",
+ "locations": [
+ "centralus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks",
+ "resourceName": "VNet1"
+ }
+ ],
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet1"
+ },
+ {
+ "dependsOn": [
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks",
+ "resourceName": "VNet1"
+ },
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet1"
+ }
+ ],
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet2"
+ }
+ ],
+ "onErrorDeployment": {
+ "type": "LastSuccessful",
+ "deploymentName": "{nameOfLastSuccesfulDeployment}"
+ }
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "properties": {
+ "templateLink": {
+ "uri": "https://example.com/exampleTemplate.json",
+ "contentVersion": "1.0.0.0"
+ },
+ "parameters": {},
+ "mode": "Complete",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-03-01T00:00:00.0000000Z",
+ "duration": "PT0.8204881S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Network",
+ "resourceTypes": [
+ {
+ "resourceType": "virtualNetworks",
+ "locations": [
+ "centralus"
+ ]
+ },
+ {
+ "resourceType": "virtualNetworks/subnets",
+ "locations": [
+ "centralus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks",
+ "resourceName": "VNet1"
+ }
+ ],
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet1"
+ },
+ {
+ "dependsOn": [
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks",
+ "resourceName": "VNet1"
+ },
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet1"
+ }
+ ],
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet2"
+ }
+ ],
+ "onErrorDeployment": {
+ "type": "LastSuccessful",
+ "deploymentName": "{nameOfLastSuccesfulDeployment}"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json
new file mode 100644
index 000000000000..795092a412d5
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json
@@ -0,0 +1,169 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "my-resource-group",
+ "deploymentName": "my-deployment",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "properties": {
+ "templateLink": {
+ "uri": "https://example.com/exampleTemplate.json"
+ },
+ "parameters": {},
+ "mode": "Complete",
+ "onErrorDeployment": {
+ "type": "SpecificDeployment",
+ "deploymentName": "name-of-deployment-to-use"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "properties": {
+ "templateLink": {
+ "uri": "https://example.com/exampleTemplate.json",
+ "contentVersion": "1.0.0.0"
+ },
+ "parameters": {},
+ "mode": "Complete",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-03-01T00:00:00.0000000Z",
+ "duration": "PT0.8204881S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Network",
+ "resourceTypes": [
+ {
+ "resourceType": "virtualNetworks",
+ "locations": [
+ "centralus"
+ ]
+ },
+ {
+ "resourceType": "virtualNetworks/subnets",
+ "locations": [
+ "centralus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks",
+ "resourceName": "VNet1"
+ }
+ ],
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet1"
+ },
+ {
+ "dependsOn": [
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks",
+ "resourceName": "VNet1"
+ },
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet1"
+ }
+ ],
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet2"
+ }
+ ],
+ "onErrorDeployment": {
+ "type": "SpecificDeployment",
+ "deploymentName": "name-of-deployment-to-use"
+ }
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/Microsoft.Resources/deployments/my-deployment",
+ "name": "my-deployment",
+ "type": "Microsoft.Resources/deployments",
+ "properties": {
+ "templateLink": {
+ "uri": "https://example.com/exampleTemplate.json",
+ "contentVersion": "1.0.0.0"
+ },
+ "parameters": {},
+ "mode": "Complete",
+ "provisioningState": "Accepted",
+ "timestamp": "2019-03-01T00:00:00.0000000Z",
+ "duration": "PT0.8204881S",
+ "correlationId": "00000000-0000-0000-0000-000000000000",
+ "providers": [
+ {
+ "namespace": "Microsoft.Network",
+ "resourceTypes": [
+ {
+ "resourceType": "virtualNetworks",
+ "locations": [
+ "centralus"
+ ]
+ },
+ {
+ "resourceType": "virtualNetworks/subnets",
+ "locations": [
+ "centralus"
+ ]
+ }
+ ]
+ }
+ ],
+ "dependencies": [
+ {
+ "dependsOn": [
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks",
+ "resourceName": "VNet1"
+ }
+ ],
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet1"
+ },
+ {
+ "dependsOn": [
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks",
+ "resourceName": "VNet1"
+ },
+ {
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet1"
+ }
+ ],
+ "id": "{resourceid}",
+ "resourceType": "Microsoft.Network/virtualNetworks/subnets",
+ "resourceName": "VNet1/Subnet2"
+ }
+ ],
+ "onErrorDeployment": {
+ "type": "SpecificDeployment",
+ "deploymentName": "name-of-deployment-to-use"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutTagsResource.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutTagsResource.json
new file mode 100644
index 000000000000..613d9770af33
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutTagsResource.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/my-resource-group/providers/myPRNameSpace/VM/myVm",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "properties": {
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutTagsSubscription.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutTagsSubscription.json
new file mode 100644
index 000000000000..8a603526dbce
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/examples/PutTagsSubscription.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "scope": "subscriptions/00000000-0000-0000-0000-000000000000",
+ "api-version": "2020-06-01",
+ "parameters": {
+ "properties": {
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "tags": {
+ "tagKey1": "tag-value-1",
+ "tagKey2": "tag-value-2"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json
new file mode 100644
index 000000000000..ff07635dde6f
--- /dev/null
+++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json
@@ -0,0 +1,5913 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "ResourceManagementClient",
+ "version": "2020-06-01",
+ "description": "Provides operations for working with resources and resource groups."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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.Resources/operations": {
+ "get": {
+ "tags": [
+ "Operations"
+ ],
+ "operationId": "Operations_List",
+ "description": "Lists all of the available Microsoft.Resources REST API operations.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The request has succeeded.",
+ "schema": {
+ "$ref": "#/definitions/OperationListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}": {
+ "delete": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_DeleteAtScope",
+ "summary": "Deletes a deployment from the deployment history.",
+ "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted - Returns this status until the asynchronous operation has completed."
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "head": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CheckExistenceAtScope",
+ "description": "Checks whether the deployment exists.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "404": {
+ "description": "Not Found"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CreateOrUpdateAtScope",
+ "summary": "Deploys resources at a given scope.",
+ "description": "You can provide the template and parameters directly in the request or link to JSON files.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Deployment"
+ },
+ "description": "Additional parameters supplied to the operation."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create deployment at a given scope.": {
+ "$ref": "./examples/PutDeploymentAtScope.json"
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_GetAtScope",
+ "description": "Gets a deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CancelAtScope",
+ "summary": "Cancels a currently running template deployment.",
+ "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ValidateAtScope",
+ "x-ms-long-running-operation": true,
+ "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Deployment"
+ },
+ "description": "Parameters to validate."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "202": {
+ "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously."
+ },
+ "400": {
+ "description": "Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ExportTemplateAtScope",
+ "description": "Exports the template used for specified deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the template.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExportResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.Resources/deployments/": {
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ListAtScope",
+ "description": "Get all the deployments at the given scope.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'."
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to get. If null is passed, returns all deployments."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of deployments.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/DeploymentExtendedFilter"
+ }
+ },
+ "/providers/Microsoft.Resources/deployments/{deploymentName}": {
+ "delete": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_DeleteAtTenantScope",
+ "summary": "Deletes a deployment from the deployment history.",
+ "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted - Returns this status until the asynchronous operation has completed."
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "head": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CheckExistenceAtTenantScope",
+ "description": "Checks whether the deployment exists.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "404": {
+ "description": "Not Found"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CreateOrUpdateAtTenantScope",
+ "summary": "Deploys resources at tenant scope.",
+ "description": "You can provide the template and parameters directly in the request or link to JSON files.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ScopedDeployment"
+ },
+ "description": "Additional parameters supplied to the operation."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create deployment at tenant scope.": {
+ "$ref": "./examples/PutDeploymentAtTenant.json"
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_GetAtTenantScope",
+ "description": "Gets a deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CancelAtTenantScope",
+ "summary": "Cancels a currently running template deployment.",
+ "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Resources/deployments/{deploymentName}/validate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ValidateAtTenantScope",
+ "x-ms-long-running-operation": true,
+ "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ScopedDeployment"
+ },
+ "description": "Parameters to validate."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "202": {
+ "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously."
+ },
+ "400": {
+ "description": "Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ExportTemplateAtTenantScope",
+ "description": "Exports the template used for specified deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the template.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExportResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Resources/deployments/": {
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ListAtTenantScope",
+ "description": "Get all the deployments at the tenant scope.",
+ "parameters": [
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'."
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to get. If null is passed, returns all deployments."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of deployments.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/DeploymentExtendedFilter"
+ }
+ },
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}": {
+ "delete": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_DeleteAtManagementGroupScope",
+ "summary": "Deletes a deployment from the deployment history.",
+ "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted - Returns this status until the asynchronous operation has completed."
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "head": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CheckExistenceAtManagementGroupScope",
+ "description": "Checks whether the deployment exists.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "404": {
+ "description": "Not Found"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CreateOrUpdateAtManagementGroupScope",
+ "summary": "Deploys resources at management group scope.",
+ "description": "You can provide the template and parameters directly in the request or link to JSON files.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ScopedDeployment"
+ },
+ "description": "Additional parameters supplied to the operation."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create deployment at management group scope.": {
+ "$ref": "./examples/PutDeploymentAtManagementGroup.json"
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_GetAtManagementGroupScope",
+ "description": "Gets a deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CancelAtManagementGroupScope",
+ "summary": "Cancels a currently running template deployment.",
+ "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ValidateAtManagementGroupScope",
+ "x-ms-long-running-operation": true,
+ "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ScopedDeployment"
+ },
+ "description": "Parameters to validate."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "202": {
+ "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously."
+ },
+ "400": {
+ "description": "Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ExportTemplateAtManagementGroupScope",
+ "description": "Exports the template used for specified deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the template.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExportResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/": {
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ListAtManagementGroupScope",
+ "description": "Get all the deployments for a management group.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'."
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to get. If null is passed, returns all deployments."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of deployments.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/DeploymentExtendedFilter"
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}": {
+ "delete": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_DeleteAtSubscriptionScope",
+ "summary": "Deletes a deployment from the deployment history.",
+ "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted - Returns this status until the asynchronous operation has completed."
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "head": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CheckExistenceAtSubscriptionScope",
+ "description": "Checks whether the deployment exists.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "404": {
+ "description": "Not Found"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CreateOrUpdateAtSubscriptionScope",
+ "summary": "Deploys resources at subscription scope.",
+ "description": "You can provide the template and parameters directly in the request or link to JSON files.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Deployment"
+ },
+ "description": "Additional parameters supplied to the operation."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create a deployment that will deploy a templateSpec with the given resourceId": {
+ "$ref": "./examples/PutDeploymentSubscriptionTemplateSpecsWithId.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_GetAtSubscriptionScope",
+ "description": "Gets a deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CancelAtSubscriptionScope",
+ "summary": "Cancels a currently running template deployment.",
+ "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resources partially deployed.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ValidateAtSubscriptionScope",
+ "x-ms-long-running-operation": true,
+ "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Deployment"
+ },
+ "description": "Parameters to validate."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "202": {
+ "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously."
+ },
+ "400": {
+ "description": "Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_WhatIfAtSubscriptionScope",
+ "description": "Returns changes that will be made by the deployment if executed at the scope of the subscription.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DeploymentWhatIf"
+ },
+ "description": "Parameters to What If."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns What-If operation status",
+ "schema": {
+ "$ref": "#/definitions/WhatIfOperationResult"
+ }
+ },
+ "202": {
+ "description": "Accepted - Returns URL in Location header to query for long-running operation status.",
+ "headers": {
+ "Location": {
+ "type": "string",
+ "description": "URL to get status of this long-running operation."
+ },
+ "Retry-After": {
+ "type": "string",
+ "description": "Number of seconds to wait before polling for status."
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Predict template changes at subscription scope": {
+ "$ref": "./examples/PostDeploymentWhatIfOnSubscription.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ExportTemplateAtSubscriptionScope",
+ "description": "Exports the template used for specified deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the template.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExportResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/": {
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ListAtSubscriptionScope",
+ "description": "Get all the deployments for a subscription.",
+ "parameters": [
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'."
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to get. If null is passed, returns all deployments."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of deployments.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/DeploymentExtendedFilter"
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}": {
+ "delete": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_Delete",
+ "summary": "Deletes a deployment from the deployment history.",
+ "description": "A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group with the deployment to delete. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted - Returns this status until the asynchronous operation has completed."
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "head": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CheckExistence",
+ "description": "Checks whether the deployment exists.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group with the deployment to check. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "404": {
+ "description": "Not Found"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CreateOrUpdate",
+ "summary": "Deploys resources to a resource group.",
+ "description": "You can provide the template and parameters directly in the request or link to JSON files.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Deployment"
+ },
+ "description": "Additional parameters supplied to the operation."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Create a deployment that will redeploy the last successful deployment on failure": {
+ "$ref": "./examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json"
+ },
+ "Create a deployment that will redeploy another deployment on failure": {
+ "$ref": "./examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json"
+ },
+ "Create a deployment that will deploy a templateSpec with the given resourceId": {
+ "$ref": "./examples/PutDeploymentResourceGroupTemplateSpecsWithId.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_Get",
+ "description": "Gets a deployment.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment, including provisioning status.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExtended"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_Cancel",
+ "summary": "Cancels a currently running template deployment.",
+ "description": "You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_Validate",
+ "x-ms-long-running-operation": true,
+ "description": "Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group the template will be deployed to. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/Deployment"
+ },
+ "description": "Parameters to validate."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "202": {
+ "description": "Accepted - The request has been accepted for processing and the operation will complete asynchronously."
+ },
+ "400": {
+ "description": "Returns the validation result.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentValidateResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_WhatIf",
+ "description": "Returns changes that will be made by the deployment if executed at the scope of the resource group.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group the template will be deployed to. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/DeploymentWhatIf"
+ },
+ "description": "Parameters to validate."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns What-If operation status",
+ "schema": {
+ "$ref": "#/definitions/WhatIfOperationResult"
+ }
+ },
+ "202": {
+ "description": "Accepted - Returns URL in Location header to query for long-running operation status.",
+ "headers": {
+ "Location": {
+ "type": "string",
+ "description": "URL to get status of this long-running operation."
+ },
+ "Retry-After": {
+ "type": "string",
+ "description": "Number of seconds to wait before polling for status."
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Predict template changes at resource group scope": {
+ "$ref": "./examples/PostDeploymentWhatIfOnResourceGroup.json"
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ExportTemplate",
+ "description": "Exports the template used for specified deployment.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns the template.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentExportResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/": {
+ "get": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_ListByResourceGroup",
+ "description": "Get all the deployments for a resource group.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group with the deployments to get. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'."
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to get. If null is passed, returns all deployments."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of deployments.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/DeploymentExtendedFilter"
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister": {
+ "post": {
+ "tags": [
+ "Providers"
+ ],
+ "operationId": "Providers_Unregister",
+ "description": "Unregisters a subscription from a resource provider.",
+ "parameters": [
+ {
+ "name": "resourceProviderNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The namespace of the resource provider to unregister."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource provider.",
+ "schema": {
+ "$ref": "#/definitions/Provider"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register": {
+ "post": {
+ "tags": [
+ "Providers"
+ ],
+ "operationId": "Providers_Register",
+ "description": "Registers a subscription with a resource provider.",
+ "parameters": [
+ {
+ "name": "resourceProviderNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The namespace of the resource provider to register."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource provider.",
+ "schema": {
+ "$ref": "#/definitions/Provider"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers": {
+ "get": {
+ "tags": [
+ "Providers"
+ ],
+ "operationId": "Providers_List",
+ "description": "Gets all resource providers for a subscription.",
+ "parameters": [
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return. If null is passed returns all deployments."
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of resource providers.",
+ "schema": {
+ "$ref": "#/definitions/ProviderListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers": {
+ "get": {
+ "tags": [
+ "Providers"
+ ],
+ "operationId": "Providers_ListAtTenantScope",
+ "description": "Gets all resource providers for the tenant.",
+ "parameters": [
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return. If null is passed returns all providers."
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of resource providers.",
+ "schema": {
+ "$ref": "#/definitions/ProviderListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}": {
+ "get": {
+ "tags": [
+ "Providers"
+ ],
+ "operationId": "Providers_Get",
+ "description": "Gets the specified resource provider.",
+ "parameters": [
+ {
+ "name": "$expand",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases."
+ },
+ {
+ "name": "resourceProviderNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The namespace of the resource provider."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource provider.",
+ "schema": {
+ "$ref": "#/definitions/Provider"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/{resourceProviderNamespace}": {
+ "get": {
+ "tags": [
+ "Providers"
+ ],
+ "operationId": "Providers_GetAtTenantScope",
+ "description": "Gets the specified resource provider at the tenant level.",
+ "parameters": [
+ {
+ "name": "$expand",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases."
+ },
+ {
+ "name": "resourceProviderNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The namespace of the resource provider."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource provider.",
+ "schema": {
+ "$ref": "#/definitions/Provider"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources": {
+ "get": {
+ "tags": [
+ "ResourceGroups"
+ ],
+ "operationId": "Resources_ListByResourceGroup",
+ "description": "Get all the resources for a resource group.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The resource group with the resources to get.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The filter to apply on the operation.
The properties you can use for eq (equals) or ne (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, plan, plan/publisher, plan/product, plan/name, plan/version, and plan/promotionCode.
For example, to filter by a resource type, use: $filter=resourceType eq 'Microsoft.Network/virtualNetworks'
You can use substringof(value, property) in the filter. The properties you can use for substring are: name and resourceGroup.
For example, to get all resources with 'demo' anywhere in the name, use: $filter=substringof('demo', name)
You can link more than one substringof together by adding and/or operators.
You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When you filter by a tag name and value, the tags for each resource are not returned in the results.
You can use some properties together when filtering. The combinations you can use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and identity/principalId."
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`."
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return. If null is passed, returns all resources."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of resources",
+ "schema": {
+ "$ref": "#/definitions/ResourceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/GenericResourceFilter"
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}": {
+ "head": {
+ "tags": [
+ "ResourceGroups"
+ ],
+ "operationId": "ResourceGroups_CheckExistence",
+ "description": "Checks whether a resource group exists.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group to check. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "404": {
+ "description": "Not Found"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ResourceGroups"
+ ],
+ "x-ms-examples": {
+ "Create or update a resource group": {
+ "$ref": "./examples/CreateResourceGroup.json"
+ }
+ },
+ "operationId": "ResourceGroups_CreateOrUpdate",
+ "description": "Creates or updates a resource group.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group to create or update. Can include alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed characters.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ResourceGroup"
+ },
+ "description": "Parameters supplied to the create or update a resource group."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the new resource group.",
+ "schema": {
+ "$ref": "#/definitions/ResourceGroup"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the new resource group.",
+ "schema": {
+ "$ref": "#/definitions/ResourceGroup"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ResourceGroups"
+ ],
+ "operationId": "ResourceGroups_Delete",
+ "summary": "Deletes a resource group.",
+ "description": "When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group to delete. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "ResourceGroups"
+ ],
+ "operationId": "ResourceGroups_Get",
+ "description": "Gets a resource group.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group to get. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource group.",
+ "schema": {
+ "$ref": "#/definitions/ResourceGroup"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "ResourceGroups"
+ ],
+ "operationId": "ResourceGroups_Update",
+ "summary": "Updates a resource group.",
+ "description": "Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group to update. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ResourceGroupPatchable"
+ },
+ "description": "Parameters supplied to update a resource group."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource group.",
+ "schema": {
+ "$ref": "#/definitions/ResourceGroup"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate": {
+ "post": {
+ "tags": [
+ "ResourceGroups"
+ ],
+ "operationId": "ResourceGroups_ExportTemplate",
+ "description": "Captures the specified resource group as a template.",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ExportTemplateRequest"
+ },
+ "description": "Parameters for exporting the template."
+ }
+ ],
+ "x-ms-examples": {
+ "Export a resource group": {
+ "$ref": "./examples/ExportResourceGroup.json"
+ },
+ "Export a resource group with filtering": {
+ "$ref": "./examples/ExportResourceGroupWithFiltering.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK - Returns the result of the export.",
+ "schema": {
+ "$ref": "#/definitions/ResourceGroupExportResult"
+ }
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "location"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups": {
+ "get": {
+ "tags": [
+ "ResourceGroups"
+ ],
+ "operationId": "ResourceGroups_List",
+ "description": "Gets all the resource groups for a subscription.",
+ "parameters": [
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The filter to apply on the operation.
You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'"
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return. If null is passed, returns all resource groups."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of resource groups.",
+ "schema": {
+ "$ref": "#/definitions/ResourceGroupListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/ResourceGroupFilter"
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources": {
+ "post": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_MoveResources",
+ "summary": "Moves resources from one resource group to another resource group.",
+ "description": "The resources to move must be in the same source resource group. The target resource group may be in a different subscription. When moving resources, both the source group and the target group are locked for the duration of the operation. Write and delete operations are blocked on the groups until the move completes. ",
+ "parameters": [
+ {
+ "name": "sourceResourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing the resources to move.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ResourcesMoveInfo"
+ },
+ "description": "Parameters for moving resources."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources": {
+ "post": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_ValidateMoveResources",
+ "summary": "Validates whether resources can be moved from one resource group to another resource group.",
+ "description": "This operation checks whether the specified resources can be moved to the target. The resources to move must be in the same source resource group. The target resource group may be in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation.",
+ "parameters": [
+ {
+ "name": "sourceResourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing the resources to validate for move.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ResourcesMoveInfo"
+ },
+ "description": "Parameters for moving resources."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SourceSubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resources": {
+ "get": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_List",
+ "description": "Get all the resources in a subscription.",
+ "parameters": [
+ {
+ "name": "$filter",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "The filter to apply on the operation.
The properties you can use for eq (equals) or ne (not equals) are: location, resourceType, name, resourceGroup, identity, identity/principalId, plan, plan/publisher, plan/product, plan/name, plan/version, and plan/promotionCode.
For example, to filter by a resource type, use: $filter=resourceType eq 'Microsoft.Network/virtualNetworks'
You can use substringof(value, property) in the filter. The properties you can use for substring are: name and resourceGroup.
For example, to get all resources with 'demo' anywhere in the name, use: $filter=substringof('demo', name)
You can link more than one substringof together by adding and/or operators.
You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'. When you filter by a tag name and value, the tags for each resource are not returned in the results.
You can use some properties together when filtering. The combinations you can use are: substringof and/or resourceType, plan and plan/publisher and plan/name, identity and identity/principalId."
+ },
+ {
+ "name": "$expand",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`."
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return. If null is passed, returns all resource groups."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of resources.",
+ "schema": {
+ "$ref": "#/definitions/ResourceListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-odata": "#/definitions/GenericResourceFilter"
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}": {
+ "head": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_CheckExistence",
+ "description": "Checks whether a resource exists.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing the resource to check. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "resourceProviderNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The resource provider of the resource to check."
+ },
+ {
+ "name": "parentResourcePath",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The parent resource identity.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceType",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The resource type.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource to check whether it exists."
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "404": {
+ "description": "Not Found"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_Delete",
+ "description": "Deletes a resource.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group that contains the resource to delete. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "resourceProviderNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The namespace of the resource provider."
+ },
+ {
+ "name": "parentResourcePath",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The parent resource identity.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceType",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The resource type.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource to delete."
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "put": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_CreateOrUpdate",
+ "description": "Creates a resource.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group for the resource. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "resourceProviderNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The namespace of the resource provider."
+ },
+ {
+ "name": "parentResourcePath",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The parent resource identity.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceType",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The resource type of the resource to create.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource to create."
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ },
+ "description": "Parameters for creating or updating the resource."
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource.",
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the resource.",
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ }
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_Update",
+ "description": "Updates a resource.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group for the resource. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "resourceProviderNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The namespace of the resource provider."
+ },
+ {
+ "name": "parentResourcePath",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The parent resource identity.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceType",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The resource type of the resource to update.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource to update."
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ },
+ "description": "Parameters for updating the resource."
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource.",
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ }
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_Get",
+ "description": "Gets a resource.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group containing the resource to get. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "name": "resourceProviderNamespace",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The namespace of the resource provider."
+ },
+ {
+ "name": "parentResourcePath",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The parent resource identity.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceType",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The resource type of the resource.",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "resourceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource to get."
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource.",
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/{resourceId}": {
+ "head": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_CheckExistenceById",
+ "description": "Checks by ID whether a resource exists.",
+ "parameters": [
+ {
+ "name": "resourceId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content"
+ },
+ "404": {
+ "description": "Not Found"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_DeleteById",
+ "description": "Deletes a resource by ID.",
+ "parameters": [
+ {
+ "name": "resourceId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "put": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_CreateOrUpdateById",
+ "description": "Create a resource by ID.",
+ "parameters": [
+ {
+ "name": "resourceId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ },
+ "description": "Create or update resource parameters."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource.",
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ }
+ },
+ "201": {
+ "description": "Created - Returns information about the resource.",
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ }
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_UpdateById",
+ "description": "Updates a resource by ID.",
+ "parameters": [
+ {
+ "name": "resourceId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ },
+ "description": "Update resource parameters."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource.",
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ }
+ },
+ "202": {
+ "description": "Accepted"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "tags": [
+ "Resources"
+ ],
+ "operationId": "Resources_GetById",
+ "description": "Gets a resource by ID.",
+ "parameters": [
+ {
+ "name": "resourceId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for the operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the resource.",
+ "schema": {
+ "$ref": "#/definitions/GenericResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}": {
+ "delete": {
+ "tags": [
+ "Tags"
+ ],
+ "operationId": "TagsOperation_DeleteValue",
+ "summary": "Deletes a predefined tag value for a predefined tag name.",
+ "description": "This operation allows deleting a value from the list of predefined values for an existing predefined tag name. The value being deleted must not be in use as a tag value for the given tag name for any resource.",
+ "parameters": [
+ {
+ "name": "tagName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the tag."
+ },
+ {
+ "name": "tagValue",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The value of the tag to delete."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Predefined tag value successfully deleted."
+ },
+ "204": {
+ "description": "Predefined tag value did not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "Tags"
+ ],
+ "operationId": "TagsOperation_CreateOrUpdateValue",
+ "summary": "Creates a predefined value for a predefined tag name.",
+ "description": "This operation allows adding a value to the list of predefined values for an existing predefined tag name. A tag value can have a maximum of 256 characters.",
+ "parameters": [
+ {
+ "name": "tagName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the tag."
+ },
+ {
+ "name": "tagValue",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The value of the tag to create."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Predefined tag value already exists. Returns information about the predefined tag value.",
+ "schema": {
+ "$ref": "#/definitions/TagValue"
+ }
+ },
+ "201": {
+ "description": "Predefined tag value successfully created. Returns information about the predefined tag value.",
+ "schema": {
+ "$ref": "#/definitions/TagValue"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/tagNames/{tagName}": {
+ "put": {
+ "tags": [
+ "Tags"
+ ],
+ "operationId": "TagsOperation_CreateOrUpdate",
+ "summary": "Creates a predefined tag name.",
+ "description": "This operation allows adding a name to the list of predefined tag names for the given subscription. A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.",
+ "parameters": [
+ {
+ "name": "tagName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the tag to create."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Predefined tag name already exists. Returns information about the predefined tag name.",
+ "schema": {
+ "$ref": "#/definitions/TagDetails"
+ }
+ },
+ "201": {
+ "description": "Predefined tag name successfully created. Returns information about the predefined tag name.",
+ "schema": {
+ "$ref": "#/definitions/TagDetails"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Tags"
+ ],
+ "operationId": "TagsOperation_Delete",
+ "summary": "Deletes a predefined tag name.",
+ "description": "This operation allows deleting a name from the list of predefined tag names for the given subscription. The name being deleted must not be in use as a tag name for any resource. All predefined values for the given name must have already been deleted.",
+ "parameters": [
+ {
+ "name": "tagName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the tag."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Predefined tag name successfully deleted."
+ },
+ "204": {
+ "description": "Predefined tag name did not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/tagNames": {
+ "get": {
+ "tags": [
+ "Tags"
+ ],
+ "operationId": "TagsOperation_List",
+ "summary": "Gets a summary of tag usage under the subscription.",
+ "description": "This operation performs a union of predefined tags, resource tags, resource group tags and subscription tags, and returns a summary of usage for each tag name and value under the given subscription. In case of a large number of tags, this operation may return a previously cached result.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns an array of tag names and values.",
+ "schema": {
+ "$ref": "#/definitions/TagsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_GetAtScope",
+ "description": "Gets a deployments operation.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "operationId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The ID of the operation to get."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment operation.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperation"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_ListAtScope",
+ "description": "Gets all deployments operations for a deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Return an array of deployment operations.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperationsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_GetAtTenantScope",
+ "description": "Gets a deployments operation.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "operationId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The ID of the operation to get."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment operation.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperation"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Resources/deployments/{deploymentName}/operations": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_ListAtTenantScope",
+ "description": "Gets all deployments operations for a deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Return an array of deployment operations.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperationsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_GetAtManagementGroupScope",
+ "description": "Gets a deployments operation.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "operationId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The ID of the operation to get."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment operation.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperation"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_ListAtManagementGroupScope",
+ "description": "Gets all deployments operations for a deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/GroupIdParameter"
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Return an array of deployment operations.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperationsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_GetAtSubscriptionScope",
+ "description": "Gets a deployments operation.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "operationId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The ID of the operation to get."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment operation.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperation"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_ListAtSubscriptionScope",
+ "description": "Gets all deployments operations for a deployment.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Return an array of deployment operations.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperationsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_Get",
+ "description": "Gets a deployments operation.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "operationId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The ID of the operation to get."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Returns information about the deployment operation.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperation"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations": {
+ "get": {
+ "tags": [
+ "DeploymentOperations"
+ ],
+ "operationId": "DeploymentOperations_List",
+ "description": "Gets all deployments operations for a deployment.",
+ "parameters": [
+ {
+ "name": "resourceGroupName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the resource group. The name is case insensitive.",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ {
+ "$ref": "#/parameters/DeploymentNameParameter"
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "format": "int32",
+ "description": "The number of results to return."
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK - Return an array of deployment operations.",
+ "schema": {
+ "$ref": "#/definitions/DeploymentOperationsListResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Resources/calculateTemplateHash": {
+ "post": {
+ "tags": [
+ "Deployments"
+ ],
+ "operationId": "Deployments_CalculateTemplateHash",
+ "description": "Calculate the hash of the given template.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "template",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "type": "object"
+ },
+ "description": "The template provided to calculate hash."
+ }
+ ],
+ "x-ms-examples": {
+ "Calculate template hash": {
+ "$ref": "./examples/CalculateTemplateHash.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK - Returns the hash.",
+ "schema": {
+ "$ref": "#/definitions/TemplateHashResult"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/{scope}/providers/Microsoft.Resources/tags/default": {
+ "put": {
+ "tags": [
+ "Tags"
+ ],
+ "operationId": "TagsOperation_CreateOrUpdateAtScope",
+ "summary": "Creates or updates the entire set of tags on a resource or subscription.",
+ "description": "This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TagsResource"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Tags updated successfully. Returns tags from the specified object.",
+ "schema": {
+ "$ref": "#/definitions/TagsResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update tags on a resource": {
+ "$ref": "./examples/PutTagsResource.json"
+ },
+ "Update tags on a subscription": {
+ "$ref": "./examples/PutTagsSubscription.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "Tags"
+ ],
+ "operationId": "TagsOperation_UpdateAtScope",
+ "summary": "Selectively updates the set of tags on a resource or subscription.",
+ "description": "This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TagsPatchResource"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Tags updated successfully. Returns tags from the specified object.",
+ "schema": {
+ "$ref": "#/definitions/TagsResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "Tags"
+ ],
+ "operationId": "TagsOperation_GetAtScope",
+ "summary": "Gets the entire set of tags on a resource or subscription.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Returns tags from the specified object.",
+ "schema": {
+ "$ref": "#/definitions/TagsResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get tags on a resource": {
+ "$ref": "./examples/GetTagsResource.json"
+ },
+ "Get tags on a subscription": {
+ "$ref": "./examples/GetTagsSubscription.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "Tags"
+ ],
+ "operationId": "TagsOperation_DeleteAtScope",
+ "summary": "Deletes the entire set of tags on a resource or subscription.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ScopeParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Tags successfully deleted."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "DeploymentExtendedFilter": {
+ "properties": {
+ "provisioningState": {
+ "type": "string",
+ "description": "The provisioning state."
+ }
+ },
+ "description": "Deployment filter."
+ },
+ "GenericResourceFilter": {
+ "properties": {
+ "resourceType": {
+ "type": "string",
+ "description": "The resource type."
+ },
+ "tagname": {
+ "type": "string",
+ "description": "The tag name."
+ },
+ "tagvalue": {
+ "type": "string",
+ "description": "The tag value."
+ }
+ },
+ "description": "Resource filter."
+ },
+ "ResourceGroupFilter": {
+ "properties": {
+ "tagName": {
+ "type": "string",
+ "description": "The tag name."
+ },
+ "tagValue": {
+ "type": "string",
+ "description": "The tag value."
+ }
+ },
+ "description": "Resource group filter."
+ },
+ "TemplateLink": {
+ "properties": {
+ "uri": {
+ "type": "string",
+ "description": "The URI of the template to deploy. Use either the uri or id property, but not both."
+ },
+ "id": {
+ "type": "string",
+ "description": "The resource id of a Template Spec. Use either the id or uri property, but not both."
+ },
+ "relativePath": {
+ "type": "string",
+ "description": "Applicable only if this template link references a Template Spec. This relativePath property can optionally be used to reference a Template Spec artifact by path."
+ },
+ "contentVersion": {
+ "type": "string",
+ "description": "If included, must match the ContentVersion in the template."
+ }
+ },
+ "description": "Entity representing the reference to the template."
+ },
+ "ParametersLink": {
+ "properties": {
+ "uri": {
+ "type": "string",
+ "description": "The URI of the parameters file."
+ },
+ "contentVersion": {
+ "type": "string",
+ "description": "If included, must match the ContentVersion in the template."
+ }
+ },
+ "required": [
+ "uri"
+ ],
+ "description": "Entity representing the reference to the deployment parameters."
+ },
+ "DeploymentProperties": {
+ "properties": {
+ "template": {
+ "type": "object",
+ "description": "The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both."
+ },
+ "templateLink": {
+ "$ref": "#/definitions/TemplateLink",
+ "description": "The URI of the template. Use either the templateLink property or the template property, but not both."
+ },
+ "parameters": {
+ "type": "object",
+ "description": "Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string."
+ },
+ "parametersLink": {
+ "$ref": "#/definitions/ParametersLink",
+ "description": "The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both."
+ },
+ "mode": {
+ "type": "string",
+ "description": "The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources.",
+ "enum": [
+ "Incremental",
+ "Complete"
+ ],
+ "x-ms-enum": {
+ "name": "DeploymentMode",
+ "modelAsString": false
+ }
+ },
+ "debugSetting": {
+ "$ref": "#/definitions/DebugSetting",
+ "description": "The debug setting of the deployment."
+ },
+ "onErrorDeployment": {
+ "$ref": "#/definitions/OnErrorDeployment",
+ "description": "The deployment on error behavior."
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "description": "Deployment properties."
+ },
+ "DebugSetting": {
+ "properties": {
+ "detailLevel": {
+ "type": "string",
+ "description": "Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations."
+ }
+ },
+ "description": "The debug setting."
+ },
+ "Deployment": {
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "The location to store the deployment data."
+ },
+ "properties": {
+ "$ref": "#/definitions/DeploymentProperties",
+ "description": "The deployment properties."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Deployment tags"
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "description": "Deployment operation parameters."
+ },
+ "ScopedDeployment": {
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "The location to store the deployment data."
+ },
+ "properties": {
+ "$ref": "#/definitions/DeploymentProperties",
+ "description": "The deployment properties."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Deployment tags"
+ }
+ },
+ "required": [
+ "location",
+ "properties"
+ ],
+ "description": "Deployment operation parameters."
+ },
+ "DeploymentExportResult": {
+ "properties": {
+ "template": {
+ "type": "object",
+ "description": "The template content."
+ }
+ },
+ "description": "The deployment export result. "
+ },
+ "DeploymentWhatIf": {
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "The location to store the deployment data."
+ },
+ "properties": {
+ "$ref": "#/definitions/DeploymentWhatIfProperties",
+ "description": "The deployment properties."
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "description": "Deployment What-if operation parameters."
+ },
+ "DeploymentWhatIfProperties": {
+ "properties": {
+ "whatIfSettings": {
+ "$ref": "#/definitions/DeploymentWhatIfSettings",
+ "description": "Optional What-If operation settings."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DeploymentProperties"
+ }
+ ],
+ "description": "Deployment What-if properties."
+ },
+ "DeploymentWhatIfSettings": {
+ "properties": {
+ "resultFormat": {
+ "type": "string",
+ "description": "The format of the What-If results",
+ "enum": [
+ "ResourceIdOnly",
+ "FullResourcePayloads"
+ ],
+ "x-ms-enum": {
+ "name": "WhatIfResultFormat",
+ "modelAsString": false
+ }
+ }
+ },
+ "description": "Deployment What-If operation settings."
+ },
+ "CloudError": {
+ "x-ms-external": true,
+ "properties": {
+ "error": {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
+ }
+ },
+ "description": "An error response for a resource management request."
+ },
+ "AliasPath": {
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path of an alias."
+ },
+ "apiVersions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The API versions."
+ },
+ "pattern": {
+ "$ref": "#/definitions/AliasPattern",
+ "description": "The pattern for an alias path."
+ }
+ },
+ "description": "The type of the paths for alias."
+ },
+ "AliasPattern": {
+ "properties": {
+ "phrase": {
+ "type": "string",
+ "description": "The alias pattern phrase."
+ },
+ "variable": {
+ "type": "string",
+ "description": "The alias pattern variable."
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "NotSpecified",
+ "Extract"
+ ],
+ "x-ms-enum": {
+ "name": "AliasPatternType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "NotSpecified",
+ "description": "NotSpecified is not allowed."
+ },
+ {
+ "value": "Extract",
+ "description": "Extract is the only allowed value."
+ }
+ ]
+ },
+ "description": "The type of alias pattern"
+ }
+ },
+ "description": "The type of the pattern for an alias path."
+ },
+ "Alias": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The alias name."
+ },
+ "paths": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AliasPath"
+ },
+ "description": "The paths for an alias."
+ },
+ "type": {
+ "type": "string",
+ "description": "The type of the alias.",
+ "enum": [
+ "NotSpecified",
+ "PlainText",
+ "Mask"
+ ],
+ "x-ms-enum": {
+ "name": "AliasType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "NotSpecified",
+ "description": "Alias type is unknown (same as not providing alias type)."
+ },
+ {
+ "value": "PlainText",
+ "description": "Alias value is not secret."
+ },
+ {
+ "value": "Mask",
+ "description": "Alias value is secret."
+ }
+ ]
+ }
+ },
+ "defaultPath": {
+ "type": "string",
+ "description": "The default path for an alias."
+ },
+ "defaultPattern": {
+ "$ref": "#/definitions/AliasPattern",
+ "description": "The default pattern for an alias."
+ }
+ },
+ "description": "The alias type. "
+ },
+ "ProviderResourceType": {
+ "properties": {
+ "resourceType": {
+ "type": "string",
+ "description": "The resource type."
+ },
+ "locations": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The collection of locations where this resource type can be created."
+ },
+ "aliases": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Alias"
+ },
+ "description": "The aliases that are supported by this resource type."
+ },
+ "apiVersions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The API version."
+ },
+ "capabilities": {
+ "type": "string",
+ "description": "The additional capabilities offered by this resource type."
+ },
+ "properties": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "description": "The additional properties. "
+ },
+ "description": "The properties."
+ }
+ },
+ "description": "Resource type managed by the resource provider."
+ },
+ "Provider": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The provider ID."
+ },
+ "namespace": {
+ "type": "string",
+ "description": "The namespace of the resource provider."
+ },
+ "registrationState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The registration state of the resource provider."
+ },
+ "registrationPolicy": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The registration policy of the resource provider."
+ },
+ "resourceTypes": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ProviderResourceType"
+ },
+ "description": "The collection of provider resource types."
+ }
+ },
+ "description": "Resource provider information."
+ },
+ "BasicDependency": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the dependency."
+ },
+ "resourceType": {
+ "type": "string",
+ "description": "The dependency resource type."
+ },
+ "resourceName": {
+ "type": "string",
+ "description": "The dependency resource name."
+ }
+ },
+ "description": "Deployment dependency information."
+ },
+ "Dependency": {
+ "properties": {
+ "dependsOn": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/BasicDependency"
+ },
+ "description": "The list of dependencies."
+ },
+ "id": {
+ "type": "string",
+ "description": "The ID of the dependency."
+ },
+ "resourceType": {
+ "type": "string",
+ "description": "The dependency resource type."
+ },
+ "resourceName": {
+ "type": "string",
+ "description": "The dependency resource name."
+ }
+ },
+ "description": "Deployment dependency information."
+ },
+ "DeploymentPropertiesExtended": {
+ "properties": {
+ "provisioningState": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Denotes the state of provisioning.",
+ "enum": [
+ "NotSpecified",
+ "Accepted",
+ "Running",
+ "Ready",
+ "Creating",
+ "Created",
+ "Deleting",
+ "Deleted",
+ "Canceled",
+ "Failed",
+ "Succeeded",
+ "Updating"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "correlationId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The correlation ID of the deployment."
+ },
+ "timestamp": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The timestamp of the template deployment."
+ },
+ "duration": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The duration of the template deployment."
+ },
+ "outputs": {
+ "readOnly": true,
+ "type": "object",
+ "description": "Key/value pairs that represent deployment output."
+ },
+ "providers": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Provider"
+ },
+ "description": "The list of resource providers needed for the deployment."
+ },
+ "dependencies": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Dependency"
+ },
+ "description": "The list of deployment dependencies."
+ },
+ "templateLink": {
+ "readOnly": true,
+ "$ref": "#/definitions/TemplateLink",
+ "description": "The URI referencing the template."
+ },
+ "parameters": {
+ "readOnly": true,
+ "type": "object",
+ "description": "Deployment parameters. "
+ },
+ "parametersLink": {
+ "readOnly": true,
+ "$ref": "#/definitions/ParametersLink",
+ "description": "The URI referencing the parameters. "
+ },
+ "mode": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The deployment mode. Possible values are Incremental and Complete.",
+ "enum": [
+ "Incremental",
+ "Complete"
+ ],
+ "x-ms-enum": {
+ "name": "DeploymentMode",
+ "modelAsString": false
+ }
+ },
+ "debugSetting": {
+ "readOnly": true,
+ "$ref": "#/definitions/DebugSetting",
+ "description": "The debug setting of the deployment."
+ },
+ "onErrorDeployment": {
+ "readOnly": true,
+ "$ref": "#/definitions/OnErrorDeploymentExtended",
+ "description": "The deployment on error behavior."
+ },
+ "templateHash": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The hash produced for the template."
+ },
+ "outputResources": {
+ "readOnly": true,
+ "type": "array",
+ "description": "Array of provisioned resources.",
+ "items": {
+ "$ref": "#/definitions/ResourceReference",
+ "description": "Details of provisioned resources."
+ }
+ },
+ "validatedResources": {
+ "readOnly": true,
+ "type": "array",
+ "description": "Array of validated resources.",
+ "items": {
+ "$ref": "#/definitions/ResourceReference",
+ "description": "Details of validated resources."
+ }
+ },
+ "error": {
+ "readOnly": true,
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
+ "description": "The deployment error."
+ }
+ },
+ "description": "Deployment properties with additional details."
+ },
+ "ResourceReference": {
+ "description": "The resource Id model.",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The fully qualified resource Id."
+ }
+ }
+ },
+ "OnErrorDeployment": {
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.",
+ "enum": [
+ "LastSuccessful",
+ "SpecificDeployment"
+ ],
+ "x-ms-enum": {
+ "name": "OnErrorDeploymentType",
+ "modelAsString": false
+ }
+ },
+ "deploymentName": {
+ "type": "string",
+ "description": "The deployment to be used on error case."
+ }
+ },
+ "description": "Deployment on error behavior."
+ },
+ "OnErrorDeploymentExtended": {
+ "properties": {
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The state of the provisioning for the on error deployment."
+ },
+ "type": {
+ "type": "string",
+ "description": "The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.",
+ "enum": [
+ "LastSuccessful",
+ "SpecificDeployment"
+ ],
+ "x-ms-enum": {
+ "name": "OnErrorDeploymentType",
+ "modelAsString": false
+ }
+ },
+ "deploymentName": {
+ "type": "string",
+ "description": "The deployment to be used on error case."
+ }
+ },
+ "description": "Deployment on error behavior with additional details."
+ },
+ "DeploymentValidateResult": {
+ "properties": {
+ "error": {
+ "readOnly": true,
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
+ "description": "The deployment validation error."
+ },
+ "properties": {
+ "$ref": "#/definitions/DeploymentPropertiesExtended",
+ "description": "The template deployment properties."
+ }
+ },
+ "description": "Information from validate template deployment response."
+ },
+ "DeploymentExtended": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ID of the deployment."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the deployment."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of the deployment."
+ },
+ "location": {
+ "type": "string",
+ "description": "the location of the deployment."
+ },
+ "properties": {
+ "$ref": "#/definitions/DeploymentPropertiesExtended",
+ "description": "Deployment properties."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Deployment tags"
+ }
+ },
+ "x-ms-azure-resource": true,
+ "description": "Deployment information."
+ },
+ "DeploymentListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentExtended"
+ },
+ "description": "An array of deployments."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URL to use for getting the next set of results."
+ }
+ },
+ "description": "List of deployments."
+ },
+ "ProviderListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Provider"
+ },
+ "description": "An array of resource providers."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URL to use for getting the next set of results."
+ }
+ },
+ "description": "List of resource providers."
+ },
+ "GenericResource": {
+ "properties": {
+ "plan": {
+ "$ref": "#/definitions/Plan",
+ "description": "The plan of the resource."
+ },
+ "properties": {
+ "type": "object",
+ "description": "The resource properties."
+ },
+ "kind": {
+ "type": "string",
+ "description": "The kind of the resource.",
+ "pattern": "^[-\\w\\._,\\(\\)]+$"
+ },
+ "managedBy": {
+ "type": "string",
+ "description": "ID of the resource that manages this resource."
+ },
+ "sku": {
+ "$ref": "#/definitions/Sku",
+ "description": "The SKU of the resource."
+ },
+ "identity": {
+ "$ref": "#/definitions/Identity",
+ "description": "The identity of the resource."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "description": "Resource information."
+ },
+ "GenericResourceExpanded": {
+ "properties": {
+ "createdTime": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The created time of the resource. This is only present if requested via the $expand query parameter."
+ },
+ "changedTime": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The changed time of the resource. This is only present if requested via the $expand query parameter."
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The provisioning state of the resource. This is only present if requested via the $expand query parameter."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/GenericResource"
+ }
+ ],
+ "description": "Resource information."
+ },
+ "Plan": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The plan ID."
+ },
+ "publisher": {
+ "type": "string",
+ "description": "The publisher ID."
+ },
+ "product": {
+ "type": "string",
+ "description": "The offer ID."
+ },
+ "promotionCode": {
+ "type": "string",
+ "description": "The promotion code."
+ },
+ "version": {
+ "type": "string",
+ "description": "The plan's version."
+ }
+ },
+ "description": "Plan for the resource."
+ },
+ "Sku": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The SKU name."
+ },
+ "tier": {
+ "type": "string",
+ "description": "The SKU tier."
+ },
+ "size": {
+ "type": "string",
+ "description": "The SKU size."
+ },
+ "family": {
+ "type": "string",
+ "description": "The SKU family."
+ },
+ "model": {
+ "type": "string",
+ "description": "The SKU model."
+ },
+ "capacity": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The SKU capacity."
+ }
+ },
+ "description": "SKU for the resource."
+ },
+ "Identity": {
+ "properties": {
+ "principalId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The principal ID of resource identity."
+ },
+ "tenantId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The tenant ID of resource."
+ },
+ "type": {
+ "type": "string",
+ "description": "The identity type.",
+ "enum": [
+ "SystemAssigned",
+ "UserAssigned",
+ "SystemAssigned, UserAssigned",
+ "None"
+ ],
+ "x-ms-enum": {
+ "name": "ResourceIdentityType",
+ "modelAsString": false
+ }
+ },
+ "userAssignedIdentities": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "x-ms-client-name": "IdentityUserAssignedIdentitiesValue",
+ "properties": {
+ "principalId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The principal id of user assigned identity."
+ },
+ "clientId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The client id of user assigned identity."
+ }
+ }
+ },
+ "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."
+ }
+ },
+ "description": "Identity for the resource."
+ },
+ "ResourceListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/GenericResourceExpanded"
+ },
+ "description": "An array of resources."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URL to use for getting the next set of results."
+ }
+ },
+ "description": "List of resource groups."
+ },
+ "ResourceGroup": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ID of the resource group."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the resource group."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of the resource group."
+ },
+ "properties": {
+ "$ref": "#/definitions/ResourceGroupProperties",
+ "description": "The resource group properties."
+ },
+ "location": {
+ "type": "string",
+ "description": "The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations."
+ },
+ "managedBy": {
+ "type": "string",
+ "description": "The ID of the resource that manages this resource group."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "description": "The additional properties. "
+ },
+ "description": "The tags attached to the resource group."
+ }
+ },
+ "required": [
+ "location"
+ ],
+ "x-ms-azure-resource": true,
+ "description": "Resource group information."
+ },
+ "ResourceGroupPatchable": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the resource group."
+ },
+ "properties": {
+ "$ref": "#/definitions/ResourceGroupProperties",
+ "description": "The resource group properties."
+ },
+ "managedBy": {
+ "type": "string",
+ "description": "The ID of the resource that manages this resource group."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "description": "The additional properties. "
+ },
+ "description": "The tags attached to the resource group."
+ }
+ },
+ "description": "Resource group information."
+ },
+ "ResourceGroupProperties": {
+ "properties": {
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The provisioning state. "
+ }
+ },
+ "description": "The resource group properties."
+ },
+ "ResourceGroupListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ResourceGroup"
+ },
+ "description": "An array of resource groups."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URL to use for getting the next set of results."
+ }
+ },
+ "description": "List of resource groups."
+ },
+ "ResourcesMoveInfo": {
+ "properties": {
+ "resources": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The IDs of the resources."
+ },
+ "targetResourceGroup": {
+ "type": "string",
+ "description": "The target resource group."
+ }
+ },
+ "description": "Parameters of move resources."
+ },
+ "ExportTemplateRequest": {
+ "properties": {
+ "resources": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'."
+ },
+ "options": {
+ "type": "string",
+ "description": "The export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'"
+ }
+ },
+ "description": "Export resource group template request parameters."
+ },
+ "TagCount": {
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "Type of count."
+ },
+ "value": {
+ "type": "integer",
+ "description": "Value of count."
+ }
+ },
+ "description": "Tag count."
+ },
+ "TagValue": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The tag value ID."
+ },
+ "tagValue": {
+ "type": "string",
+ "description": "The tag value."
+ },
+ "count": {
+ "$ref": "#/definitions/TagCount",
+ "description": "The tag value count."
+ }
+ },
+ "x-ms-azure-resource": true,
+ "description": "Tag information."
+ },
+ "TagDetails": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The tag name ID."
+ },
+ "tagName": {
+ "type": "string",
+ "description": "The tag name."
+ },
+ "count": {
+ "$ref": "#/definitions/TagCount",
+ "description": "The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0."
+ },
+ "values": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TagValue"
+ },
+ "description": "The list of tag values."
+ }
+ },
+ "x-ms-azure-resource": true,
+ "description": "Tag details."
+ },
+ "TagsListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TagDetails"
+ },
+ "description": "An array of tags."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URL to use for getting the next set of results."
+ }
+ },
+ "description": "List of subscription tags."
+ },
+ "TargetResource": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the resource."
+ },
+ "resourceName": {
+ "type": "string",
+ "description": "The name of the resource."
+ },
+ "resourceType": {
+ "type": "string",
+ "description": "The type of the resource."
+ }
+ },
+ "description": "Target resource."
+ },
+ "HttpMessage": {
+ "properties": {
+ "content": {
+ "type": "object",
+ "description": "HTTP message content."
+ }
+ },
+ "description": "HTTP message."
+ },
+ "DeploymentOperationProperties": {
+ "properties": {
+ "provisioningOperation": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the current provisioning operation.",
+ "enum": [
+ "NotSpecified",
+ "Create",
+ "Delete",
+ "Waiting",
+ "AzureAsyncOperationWaiting",
+ "ResourceCacheWaiting",
+ "Action",
+ "Read",
+ "EvaluateDeploymentOutput",
+ "DeploymentCleanup"
+ ],
+ "x-ms-enum": {
+ "name": "ProvisioningOperation",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "NotSpecified",
+ "description": "The provisioning operation is not specified."
+ },
+ {
+ "value": "Create",
+ "description": "The provisioning operation is create."
+ },
+ {
+ "value": "Delete",
+ "description": "The provisioning operation is delete."
+ },
+ {
+ "value": "Waiting",
+ "description": "The provisioning operation is waiting."
+ },
+ {
+ "value": "AzureAsyncOperationWaiting",
+ "description": "The provisioning operation is waiting Azure async operation."
+ },
+ {
+ "value": "ResourceCacheWaiting",
+ "description": "The provisioning operation is waiting for resource cache."
+ },
+ {
+ "value": "Action",
+ "description": "The provisioning operation is action."
+ },
+ {
+ "value": "Read",
+ "description": "The provisioning operation is read."
+ },
+ {
+ "value": "EvaluateDeploymentOutput",
+ "description": "The provisioning operation is evaluate output."
+ },
+ {
+ "value": "DeploymentCleanup",
+ "description": "The provisioning operation is cleanup. This operation is part of the 'complete' mode deployment."
+ }
+ ]
+ }
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The state of the provisioning."
+ },
+ "timestamp": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The date and time of the operation."
+ },
+ "duration": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The duration of the operation."
+ },
+ "serviceRequestId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Deployment operation service request id."
+ },
+ "statusCode": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Operation status code."
+ },
+ "statusMessage": {
+ "readOnly": true,
+ "description": "Operation status message.",
+ "$ref": "#/definitions/StatusMessage"
+ },
+ "targetResource": {
+ "readOnly": true,
+ "$ref": "#/definitions/TargetResource",
+ "description": "The target resource."
+ },
+ "request": {
+ "readOnly": true,
+ "$ref": "#/definitions/HttpMessage",
+ "description": "The HTTP request message."
+ },
+ "response": {
+ "readOnly": true,
+ "$ref": "#/definitions/HttpMessage",
+ "description": "The HTTP response message."
+ }
+ },
+ "description": "Deployment operation properties."
+ },
+ "DeploymentOperation": {
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Full deployment operation ID."
+ },
+ "operationId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Deployment operation ID."
+ },
+ "properties": {
+ "$ref": "#/definitions/DeploymentOperationProperties",
+ "description": "Deployment properties."
+ }
+ },
+ "description": "Deployment operation information."
+ },
+ "DeploymentOperationsListResult": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DeploymentOperation"
+ },
+ "description": "An array of deployment operations."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URL to use for getting the next set of results."
+ }
+ },
+ "description": "List of deployment operations."
+ },
+ "ResourceProviderOperationDisplayProperties": {
+ "properties": {
+ "publisher": {
+ "type": "string",
+ "description": "Operation description."
+ },
+ "provider": {
+ "type": "string",
+ "description": "Operation provider."
+ },
+ "resource": {
+ "type": "string",
+ "description": "Operation resource."
+ },
+ "operation": {
+ "type": "string",
+ "description": "Resource provider operation."
+ },
+ "description": {
+ "type": "string",
+ "description": "Operation description."
+ }
+ },
+ "description": "Resource provider operation's display properties."
+ },
+ "Resource": {
+ "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"
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Resource tags"
+ }
+ },
+ "x-ms-azure-resource": true,
+ "description": "Specified resource."
+ },
+ "SubResource": {
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Resource ID"
+ }
+ },
+ "x-ms-azure-resource": true,
+ "description": "Sub-resource."
+ },
+ "ResourceGroupExportResult": {
+ "properties": {
+ "template": {
+ "type": "object",
+ "description": "The template content."
+ },
+ "error": {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
+ "description": "The template export error."
+ }
+ },
+ "description": "Resource group export result."
+ },
+ "Operation": {
+ "description": "Microsoft.Resources operation",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}",
+ "type": "string"
+ },
+ "display": {
+ "description": "The object that represents the operation.",
+ "properties": {
+ "provider": {
+ "description": "Service provider: Microsoft.Resources",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Resource on which the operation is performed: Profile, endpoint, etc.",
+ "type": "string"
+ },
+ "operation": {
+ "description": "Operation type: Read, write, delete, etc.",
+ "type": "string"
+ },
+ "description": {
+ "description": "Description of the operation.",
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "OperationListResult": {
+ "description": "Result of the request to list Microsoft.Resources operations. It contains a list of operations and a URL link to get the next set of results.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ },
+ "description": "List of Microsoft.Resources operations."
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "URL to get the next set of operation list results if there are any."
+ }
+ }
+ },
+ "TemplateHashResult": {
+ "description": "Result of the request to calculate template hash. It contains a string of minified template and its hash.",
+ "properties": {
+ "minifiedTemplate": {
+ "type": "string",
+ "description": "The minified template string."
+ },
+ "templateHash": {
+ "type": "string",
+ "description": "The template hash."
+ }
+ }
+ },
+ "WhatIfPropertyChange": {
+ "required": [
+ "path",
+ "propertyChangeType"
+ ],
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path of the property."
+ },
+ "propertyChangeType": {
+ "type": "string",
+ "description": "The type of property change.",
+ "enum": [
+ "Create",
+ "Delete",
+ "Modify",
+ "Array"
+ ],
+ "x-ms-enum": {
+ "name": "PropertyChangeType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Create",
+ "description": "The property does not exist in the current state but is present in the desired state. The property will be created when the deployment is executed."
+ },
+ {
+ "value": "Delete",
+ "description": "The property exists in the current state and is missing from the desired state. It will be deleted when the deployment is executed."
+ },
+ {
+ "value": "Modify",
+ "description": "The property exists in both current and desired state and is different. The value of the property will change when the deployment is executed."
+ },
+ {
+ "value": "Array",
+ "description": "The property is an array and contains nested changes."
+ }
+ ]
+ }
+ },
+ "before": {
+ "type": "object",
+ "description": "The value of the property before the deployment is executed."
+ },
+ "after": {
+ "type": "object",
+ "description": "The value of the property after the deployment is executed."
+ },
+ "children": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/WhatIfPropertyChange"
+ },
+ "description": "Nested property changes."
+ }
+ },
+ "description": "The predicted change to the resource property."
+ },
+ "WhatIfChange": {
+ "description": "Information about a single resource change predicted by What-If operation.",
+ "required": [
+ "resourceId",
+ "changeType"
+ ],
+ "properties": {
+ "resourceId": {
+ "type": "string",
+ "description": "Resource ID"
+ },
+ "changeType": {
+ "type": "string",
+ "description": "Type of change that will be made to the resource when the deployment is executed.",
+ "enum": [
+ "Create",
+ "Delete",
+ "Ignore",
+ "Deploy",
+ "NoChange",
+ "Modify"
+ ],
+ "x-ms-enum": {
+ "name": "ChangeType",
+ "modelAsString": false,
+ "values": [
+ {
+ "value": "Create",
+ "description": "The resource does not exist in the current state but is present in the desired state. The resource will be created when the deployment is executed."
+ },
+ {
+ "value": "Delete",
+ "description": "The resource exists in the current state and is missing from the desired state. The resource will be deleted when the deployment is executed."
+ },
+ {
+ "value": "Ignore",
+ "description": "The resource exists in the current state and is missing from the desired state. The resource will not be deployed or modified when the deployment is executed."
+ },
+ {
+ "value": "Deploy",
+ "description": "The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource may or may not change."
+ },
+ {
+ "value": "NoChange",
+ "description": "The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource will not change."
+ },
+ {
+ "value": "Modify",
+ "description": "The resource exists in the current state and the desired state and will be redeployed when the deployment is executed. The properties of the resource will change."
+ }
+ ]
+ }
+ },
+ "before": {
+ "type": "object",
+ "description": "The snapshot of the resource before the deployment is executed."
+ },
+ "after": {
+ "type": "object",
+ "description": "The predicted snapshot of the resource after the deployment is executed."
+ },
+ "delta": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/WhatIfPropertyChange"
+ },
+ "description": "The predicted changes to resource properties."
+ }
+ }
+ },
+ "WhatIfOperationProperties": {
+ "description": "Deployment operation properties.",
+ "properties": {
+ "changes": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/WhatIfChange"
+ },
+ "description": "List of resource changes predicted by What-If operation."
+ }
+ }
+ },
+ "WhatIfOperationResult": {
+ "description": "Result of the What-If operation. Contains a list of predicted changes and a URL link to get to the next set of results.",
+ "properties": {
+ "status": {
+ "type": "string",
+ "description": "Status of the What-If operation."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/WhatIfOperationProperties",
+ "description": "What-If operation properties."
+ },
+ "error": {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
+ "description": "Error when What-If operation fails."
+ }
+ }
+ },
+ "Tags": {
+ "description": "A dictionary of name and value pairs.",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "description": "The tag value."
+ }
+ }
+ }
+ },
+ "TagsPatchResource": {
+ "type": "object",
+ "description": "Wrapper resource for tags patch API request only.",
+ "properties": {
+ "operation": {
+ "type": "string",
+ "description": "The operation type for the patch API.",
+ "enum": [
+ "Replace",
+ "Merge",
+ "Delete"
+ ]
+ },
+ "properties": {
+ "$ref": "#/definitions/Tags",
+ "description": "The set of tags."
+ }
+ }
+ },
+ "TagsResource": {
+ "type": "object",
+ "description": "Wrapper resource for tags API requests and responses.",
+ "required": [
+ "properties"
+ ],
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ID of the tags wrapper resource."
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the tags wrapper resource."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of the tags wrapper resource."
+ },
+ "properties": {
+ "$ref": "#/definitions/Tags",
+ "description": "The set of tags."
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "StatusMessage": {
+ "type": "object",
+ "description": "Operation status message object.",
+ "properties": {
+ "status": {
+ "type": "string",
+ "description": "Status of the deployment operation."
+ },
+ "error": {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
+ "description": "The error reported by the operation."
+ }
+ }
+ }
+ },
+ "parameters": {
+ "ScopeParameter": {
+ "name": "scope",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The resource scope.",
+ "x-ms-parameter-location": "method",
+ "x-ms-skip-url-encoding": true
+ },
+ "GroupIdParameter": {
+ "name": "groupId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The management group ID.",
+ "x-ms-parameter-location": "method",
+ "minLength": 1,
+ "maxLength": 90
+ },
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The ID of the target subscription."
+ },
+ "SourceSubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The ID of the source subscription."
+ },
+ "DeploymentNameParameter": {
+ "name": "deploymentName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "pattern": "^[-\\w\\._\\(\\)]+$",
+ "x-ms-parameter-location": "method",
+ "minLength": 1,
+ "maxLength": 64,
+ "description": "The name of the deployment."
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The API version to use for this operation."
+ }
+ }
+}
diff --git a/specification/resources/resource-manager/readme.csharp.md b/specification/resources/resource-manager/readme.csharp.md
index 8035831712c8..0364f5d7d6c2 100644
--- a/specification/resources/resource-manager/readme.csharp.md
+++ b/specification/resources/resource-manager/readme.csharp.md
@@ -24,6 +24,7 @@ batch:
- package-subscriptions: true
- package-links: true
- package-deploymentscripts: true
+ - package-templatespecs: true
# - package-managedapplications: true
```
@@ -137,6 +138,19 @@ batch:
ApiVersionName: Api2019_10_01
- policyD-2016-12-01: true
ApiVersionName: Api2019_10_01
+
+ - resources-2020-06-01: true
+ ApiVersionName: Api2020_06_01
+ - links-2016-09-01: true
+ ApiVersionName: Api2020_06_01
+ - subscription-2016-06-01: true
+ ApiVersionName: Api2020_06_01
+ - locks-2016-09-01: true
+ ApiVersionName: Api2020_06_01
+ - policyA-2016-12-01: true
+ ApiVersionName: Api2020_06_01
+ - policyD-2016-12-01: true
+ ApiVersionName: Api2020_06_01
```
@@ -258,6 +272,72 @@ input-file:
input-file:
- Microsoft.Authorization/stable/2016-12-01/policyDefinitions.json
```
+``` yaml $(Separator)
+###########################################################################
+###########################################################################
+```
+
+``` yaml $(resources-2020-06-01)
+tag: pkg-2020-06-Az-res
+```
+
+``` yaml $(links-2016-09-01)
+tag: pkg-2020-06-Az-lnk
+```
+
+``` yaml $(subscription-2016-06-01)
+tag: pkg-2020-06-Az-sub
+```
+
+``` yaml $(locks-2016-09-01)
+tag: pkg-2020-06-Az-loc
+```
+
+``` yaml $(policyA-2016-12-01)
+tag: pkg-2020-06-Az-polA
+```
+
+``` yaml $(policyD-2016-12-01)
+tag: pkg-2020-06-Az-polD
+```
+
+
+## Tag: Packages for Azure Stack
+### 1) pkg-2020-06-AzStk-res
+``` yaml $(tag) == 'pkg-2020-06-Az-res'
+input-file:
+- Microsoft.Resources/stable/2019-05-01/resources.json
+```
+
+### 2) pkg-2020-06-AzStk-lnk
+``` yaml $(tag) == 'pkg-2020-06-Az-lnk'
+input-file:
+- Microsoft.Resources/stable/2016-09-01/links.json
+```
+
+### 3) pkg-2020-06-AzStk-sub
+``` yaml $(tag) == 'pkg-2020-06-Az-sub'
+input-file:
+- Microsoft.Resources/stable/2016-06-01/subscriptions.json
+```
+
+### 4) pkg-2020-06-AzStk-loc
+``` yaml $(tag) == 'pkg-2020-06-Az-loc'
+input-file:
+- Microsoft.Authorization/stable/2016-09-01/locks.json
+```
+
+### 5) pkg-2020-06-AzStk-polA
+``` yaml $(tag) == 'pkg-2020-06-Az-polA'
+input-file:
+- Microsoft.Authorization/stable/2016-12-01/policyAssignments.json
+```
+
+### 6) pkg-2020-06-AzStk-polD
+``` yaml $(tag) == 'pkg-2020-06-Az-polD'
+input-file:
+- Microsoft.Authorization/stable/2016-12-01/policyDefinitions.json
+```
``` yaml $(Separator)
###########################################################################
diff --git a/specification/resources/resource-manager/readme.java.md b/specification/resources/resource-manager/readme.java.md
index c8705dc8d7f5..5e5e0d5c92b8 100644
--- a/specification/resources/resource-manager/readme.java.md
+++ b/specification/resources/resource-manager/readme.java.md
@@ -27,6 +27,7 @@ batch:
- tag: package-policy-2018-05
- tag: package-policy-2018-03
- tag: package-policy-2016-12
+ - tag: package-resources-2020-06
- tag: package-resources-2019-08
- tag: package-resources-2019-07
- tag: package-resources-2019-0510
@@ -189,6 +190,19 @@ directive:
transform: $['x-ms-client-name'] = 'scopeProperty'
```
+### Tag: package-resources-2020-06 and java
+
+These settings apply only when `--tag=package-resources-2020-06 --java` is specified on the command line.
+Please also specify `--azure-libraries-for-java-folder=`.
+
+``` yaml $(tag) == 'package-resources-2020-06' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.resources.v2020_06_01
+ output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2020_06_01
+regenerate-manager: true
+generate-interface: true
+```
+
### Tag: package-resources-2019-08 and java
These settings apply only when `--tag=package-resources-2019-08 --java` is specified on the command line.
diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md
index 32aea908a345..7ae41c1ac69c 100644
--- a/specification/resources/resource-manager/readme.md
+++ b/specification/resources/resource-manager/readme.md
@@ -41,7 +41,7 @@ tag: package-policy-2019-09
```
``` yaml $(package-resources)
-tag: package-resources-2019-10
+tag: package-resources-2020-06
```
``` yaml $(package-subscriptions)
@@ -60,6 +60,19 @@ tag: package-managedapplications-2018-06
tag: package-deploymentscripts-2019-10-preview
```
+``` yaml $(package-templatespecs)
+tag: package-templatespecs-2019-06-preview
+```
+
+### Tag: package-resources-2020-06
+
+These settings apply only when `--tag=package-resources-2020-06` is specified on the command line.
+
+``` yaml $(tag) == 'package-resources-2020-06'
+input-file:
+- Microsoft.Resources/stable/2020-06-01/resources.json
+```
+
### Tag: package-subscriptions-2020-01
These settings apply only when `--tag=package-subscriptions-2020-01` is specified on the command line.
@@ -209,6 +222,15 @@ override-info:
title: PolicyClient
```
+### Tag: package-templatespecs-2019-06-preview
+
+These settings apply only when `--tag=package-templatespecs-2019-06-preview` is specified on the command line.
+
+``` yaml $(tag) == 'package-templatespecs-2019-06-preview'
+input-file:
+- Microsoft.Resources/preview/2019-06-01-preview/templateSpecs.json
+```
+
### Tag: package-policy-2016-12
These settings apply only when `--tag=package-policy-2016-12` is specified on the command line.
@@ -551,6 +573,26 @@ directive:
- $.definitions.AzureCliScript.properties
- $.definitions.AzurePowerShellScript.properties
reason: Currently systemData is not allowed
+ - suppress: OperationsAPIImplementation
+ from: templateSpecs.json
+ where: $.paths
+ reason: OperationsAPI will come from Resources
+ - suppress: R3006 #BodyTopLevelProperties
+ from: templateSpecs.json
+ where:
+ - $.definitions.TemplateSpecModel.properties
+ - $.definitions.TemplateSpecVersionModel.properties
+ - $.definitions.TemplateSpecUpdateModel.properties
+ - $.definitions.TemplateSpecVersionUpdateModel.properties
+ reason: Currently systemData is not allowed
+ - suppress: TrackedResourceListByImmediateParent
+ from: templateSpecs.json
+ where: $.definitions
+ reason: Tooling issue
+ - suppress: TrackedResourceListByResourceGroup
+ from: templateSpecs.json
+ where: $.definitions.TemplateSpecVersionModel
+ reason: Tooling issue
```
---
@@ -574,6 +616,7 @@ swagger-to-sdk:
- python ./scripts/multiapi_init_gen.py azure-mgmt-resource#subscriptions
- python ./scripts/multiapi_init_gen.py azure-mgmt-resource#links
- python ./scripts/multiapi_init_gen.py azure-mgmt-resource#deploymentscripts
+ - repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
@@ -602,6 +645,7 @@ batch:
- package-links: true
- package-managedapplications: true
- package-deploymentscripts: true
+ - package-templatespecs: true
```
### Tag: profile-hybrid-2019-03-01
diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md
index e000118f5bbd..709ec28a6bf9 100644
--- a/specification/resources/resource-manager/readme.python.md
+++ b/specification/resources/resource-manager/readme.python.md
@@ -41,6 +41,7 @@ batch:
- tag: package-policy-2016-12
- tag: package-policy-2016-04
- tag: package-policy-2015-10
+ - tag: package-resources-2020-06
- tag: package-resources-2019-10
- tag: package-resources-2019-08
- tag: package-resources-2019-07
@@ -63,9 +64,12 @@ batch:
clear-output-folder: true
batch:
- tag: package-features-2015-12
+ - multiapiscript-features: true
- tag: package-links-2016-09
+ - multiapiscript-links: true
- tag: package-locks-2016-09
- tag: package-locks-2015-01
+ - multiapiscript-locks: true
- tag: package-managedapplications-2018-06
- tag: package-policy-2019-09
- tag: package-policy-2019-06
@@ -76,6 +80,8 @@ batch:
- tag: package-policy-2016-12
- tag: package-policy-2016-04
- tag: package-policy-2015-10
+ - multiapiscript-policy: true
+ - tag: package-resources-2020-06
- tag: package-resources-2019-10
- tag: package-resources-2019-08
- tag: package-resources-2019-07
@@ -87,16 +93,61 @@ batch:
- tag: package-resources-2017-05
- tag: package-resources-2016-09
- tag: package-resources-2016-02
+ - multiapiscript-resources: true
- tag: package-subscriptions-2019-11
- tag: package-subscriptions-2019-06
- tag: package-subscriptions-2018-06
- tag: package-subscriptions-2016-06
+ - multiapiscript-subscriptions: true
- tag: package-deploymentscripts-2019-10-preview
- - multiapiscript: true
+ - multiapiscript-deploymentscripts: true
```
-``` yaml $(multiapiscript)
-output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/
+```yaml $(multiapiscript-features)
+multiapiscript: true
+output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/features
+clear-output-folder: false
+perform-load: false
+```
+
+```yaml $(multiapiscript-policy)
+multiapiscript: true
+output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy
+clear-output-folder: false
+perform-load: false
+```
+
+```yaml $(multiapiscript-resources)
+multiapiscript: true
+output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/resources
+clear-output-folder: false
+perform-load: false
+```
+
+```yaml $(multiapiscript-subscriptions)
+multiapiscript: true
+output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions
+clear-output-folder: false
+perform-load: false
+```
+
+```yaml $(multiapiscript-deploymentscripts)
+multiapiscript: true
+output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts
+clear-output-folder: false
+perform-load: false
+```
+
+```yaml $(multiapiscript-locks)
+multiapiscript: true
+output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/locks
+clear-output-folder: false
+perform-load: false
+```
+
+```yaml $(multiapiscript-links)
+multiapiscript: true
+output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/links
clear-output-folder: false
perform-load: false
```
@@ -283,6 +334,19 @@ python:
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview
```
+### Tag: package-resources-2020-06 and python
+
+These settings apply only when `--tag=package-resources-2020-06 --python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+
+``` yaml $(tag) == 'package-resources-2020-06'
+namespace: azure.mgmt.resource.resources.v2020_06_01
+output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01
+python:
+ namespace: azure.mgmt.resource.resources.v2020_06_01
+ output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_06_01
+```
+
### Tag: package-resources-2019-10 and python
These settings apply only when `--tag=package-resources-2019-10 --python` is specified on the command line.
diff --git a/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json b/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json
index d41c4f4d31dc..c2a69aac29b9 100644
--- a/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json
+++ b/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json
@@ -6830,7 +6830,6 @@
},
"required": [
"name",
- "description",
"skills"
],
"externalDocs": {
@@ -7016,10 +7015,6 @@
}
],
"properties": {
- "textExtractionAlgorithm": {
- "$ref": "#/definitions/TextExtractionAlgorithm",
- "description": "A value indicating which algorithm to use for extracting text. Default is printed."
- },
"defaultLanguageCode": {
"$ref": "#/definitions/OcrSkillLanguage",
"description": "A value indicating which language code to use. Default is en."
@@ -7301,30 +7296,6 @@
],
"description": "Response from a list skillset request. If successful, it includes the full definitions of all skillsets."
},
- "TextExtractionAlgorithm": {
- "type": "string",
- "enum": [
- "printed",
- "handwritten"
- ],
- "x-ms-enum": {
- "name": "TextExtractionAlgorithm",
- "modelAsString": false,
- "values": [
- {
- "value": "printed",
- "name": "Printed",
- "description": "An algorithm suitable for printed text."
- },
- {
- "value": "handwritten",
- "name": "Handwritten",
- "description": "An algorithm suitable for handwritten text."
- }
- ]
- },
- "description": "A value indicating which algorithm to use. Default is printed."
- },
"TextSplitMode": {
"type": "string",
"enum": [
@@ -7333,7 +7304,7 @@
],
"x-ms-enum": {
"name": "TextSplitMode",
- "modelAsString": false,
+ "modelAsString": true,
"values": [
{
"value": "pages",
@@ -7362,7 +7333,7 @@
],
"x-ms-enum": {
"name": "VisualFeature",
- "modelAsString": false,
+ "modelAsString": true,
"values": [
{
"value": "adult",
@@ -7411,7 +7382,7 @@
],
"x-ms-enum": {
"name": "ImageDetail",
- "modelAsString": false,
+ "modelAsString": true,
"values": [
{
"value": "celebrities",
@@ -7440,7 +7411,7 @@
],
"x-ms-enum": {
"name": "EntityCategory",
- "modelAsString": false,
+ "modelAsString": true,
"values": [
{
"value": "location",
diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/examples/SearchIndexSearchDocumentsGet.json b/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/examples/SearchIndexSearchDocumentsGet.json
index d3eff019e3ac..e28054126c8e 100644
--- a/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/examples/SearchIndexSearchDocumentsGet.json
+++ b/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/examples/SearchIndexSearchDocumentsGet.json
@@ -21,7 +21,6 @@
],
"queryType": "simple",
"sessionId": "mysessionid",
- "featuresMode": "enabled",
"scoringStatistics": "global",
"scoringParameters": [
"currentLocation--122.123,44.77233"
@@ -77,16 +76,6 @@
"Fancy Hotel"
]
},
- "@search.features": {
- "description": {
- "uniqueTokenMatches": 1.0,
- "similarityScore": 0.023745812
- },
- "title": {
- "uniqueTokenMatches": 1.0,
- "similarityScore": 0.016049799
- }
- },
"description": "Best hotel in town",
"docId": "2",
"title": "Fancy Hotel"
diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/examples/SearchIndexSearchDocumentsPost.json b/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/examples/SearchIndexSearchDocumentsPost.json
index c95e8c51acd2..b834f10417f1 100644
--- a/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/examples/SearchIndexSearchDocumentsPost.json
+++ b/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/examples/SearchIndexSearchDocumentsPost.json
@@ -24,7 +24,6 @@
"searchFields": "title,description",
"searchMode": "any",
"sessionId": "mysessionid",
- "featuresMode": "enabled",
"scoringStatistics": "global",
"select": "docId,title,description",
"skip": 0,
@@ -60,7 +59,6 @@
"orderby": "search.score() desc,rating desc",
"queryType": "simple",
"sessionId": "mysessionid",
- "featuresMode": "enabled",
"scoringStatistics": "global",
"scoringParameters": [
"currentLocation--122.123,44.77233"
@@ -92,16 +90,6 @@
"Fancy Hotel"
]
},
- "@search.features": {
- "description": {
- "uniqueTokenMatches": 1.0,
- "similarityScore": 0.023745812
- },
- "title": {
- "uniqueTokenMatches": 1.0,
- "similarityScore": 0.016049799
- }
- },
"description": "Best hotel in town",
"docId": "2",
"title": "Fancy Hotel"
diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/searchindex.json b/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/searchindex.json
index 073df28cd754..e785feeed67d 100644
--- a/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/searchindex.json
+++ b/specification/search/data-plane/Microsoft.Azure.Search.Data/preview/2019-05-06-preview/searchindex.json
@@ -248,24 +248,6 @@
"name": "SearchParameters"
}
},
- {
- "name": "featuresMode",
- "in": "query",
- "type": "string",
- "enum": [
- "disabled",
- "enabled"
- ],
- "x-ms-enum": {
- "name": "FeaturesMode",
- "modelAsString": false
- },
- "x-nullable": false,
- "description": "A value that specifies whether the results should include scoring features such as per field similarity.",
- "x-ms-parameter-grouping": {
- "name": "SearchParameters"
- }
- },
{
"name": "scoringStatistics",
"in": "query",
@@ -902,27 +884,6 @@
"additionalProperties": true,
"description": "A single bucket of a facet query result. Reports the number of documents with a field value falling within a particular range or having a particular value or interval."
},
- "SearchFeatures": {
- "properties": {
- "uniqueTokenMatches": {
- "type": "number",
- "readOnly": true,
- "format": "double",
- "description": "The number of unique tokens from the search query that matched this field."
- },
- "similarityScore": {
- "type": "number",
- "readOnly": true,
- "format": "double",
- "description": "The similarity score computed between the search query and this field."
- }
- },
- "required": [
- "uniqueTokenMatches",
- "similarityScore"
- ],
- "description": "A list of features describing the scoring of a specific field against the search query."
- },
"DocumentSearchResult": {
"properties": {
"@odata.count": {
@@ -996,15 +957,6 @@
"readOnly": true,
"x-ms-client-name": "Highlights",
"description": "Text fragments from the document that indicate the matching search terms, organized by each applicable field; null if hit highlighting was not enabled for the query."
- },
- "@search.features": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/SearchFeatures"
- },
- "readOnly": true,
- "x-ms-client-name": "Features",
- "description": "description for the feature"
}
},
"additionalProperties": true,
@@ -1114,18 +1066,6 @@
},
"description": "Specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax."
},
- "FeaturesMode": {
- "type": "string",
- "enum": [
- "disabled",
- "enabled"
- ],
- "x-ms-enum": {
- "name": "FeaturesMode",
- "modelAsString": false
- },
- "description": "A value that specifies whether the results should include scoring features, such as per field similarity. The default is 'disabled'. Use 'enabled' to expose additional scoring features."
- },
"ScoringStatistics": {
"type": "string",
"enum": [
@@ -1202,10 +1142,6 @@
"$ref": "#/definitions/QueryType",
"description": "A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the Lucene query syntax."
},
- "featuresMode": {
- "$ref": "#/definitions/FeaturesMode",
- "description": "A value that specifies whether the results should include scoring features, such as per field similarity. The default is 'disabled'. Use 'enabled' to expose additional scoring features."
- },
"scoringStatistics": {
"$ref": "#/definitions/ScoringStatistics",
"description": "A value that specifies whether we want to calculate scoring statistics (such as document frequency) globally for more consistent scoring, or locally, for lower latency. The default is 'local'. Use 'global' to aggregate scoring statistics globally before scoring. Using global scoring statistics can increase latency of search queries."
diff --git a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/CreateOrUpdateSharedPrivateLinkResource.json b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/CreateOrUpdateSharedPrivateLinkResource.json
index ef0592e7e14f..9a595ad24cd6 100644
--- a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/CreateOrUpdateSharedPrivateLinkResource.json
+++ b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/CreateOrUpdateSharedPrivateLinkResource.json
@@ -6,7 +6,6 @@
"subscriptionId": "subid",
"sharedPrivateLinkResourceName": "testResource",
"sharedPrivateLinkResource": {
- "name": "testResource",
"properties": {
"requestMessage": "please approve",
"groupId": "blob",
diff --git a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json
new file mode 100644
index 000000000000..c0c46c253951
--- /dev/null
+++ b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json
@@ -0,0 +1,81 @@
+{
+ "parameters": {
+ "searchServiceName": "mysearchservice",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-03-13",
+ "subscriptionId": "subid",
+ "service": {
+ "location": "westus",
+ "tags": {
+ "app-name": "My e-commerce app"
+ },
+ "sku": {
+ "name": "standard"
+ },
+ "properties": {
+ "replicaCount": 3,
+ "partitionCount": 1,
+ "publicNetworkAccess": "disabled",
+ "hostingMode": "default"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice",
+ "name": "mysearchservice",
+ "location": "westus",
+ "type": "Microsoft.Search/searchServices",
+ "tags": {
+ "app-name": "My e-commerce app"
+ },
+ "sku": {
+ "name": "standard"
+ },
+ "properties": {
+ "replicaCount": 3,
+ "partitionCount": 1,
+ "status": "provisioning",
+ "statusDetails": "",
+ "hostingMode": "default",
+ "provisioningState": "provisioning",
+ "publicNetworkAccess": "disabled",
+ "networkRuleSet": {
+ "ipRules": []
+ },
+ "privateEndpointConnections": [],
+ "sharedPrivateLinkResources": []
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice",
+ "name": "mysearchservice",
+ "location": "westus",
+ "type": "Microsoft.Search/searchServices",
+ "tags": {
+ "app-name": "My e-commerce app"
+ },
+ "sku": {
+ "name": "standard"
+ },
+ "properties": {
+ "replicaCount": 3,
+ "partitionCount": 1,
+ "status": "provisioning",
+ "statusDetails": "",
+ "hostingMode": "default",
+ "provisioningState": "provisioning",
+ "publicNetworkAccess": "disabled",
+ "networkRuleSet": {
+ "ipRules": []
+ },
+ "privateEndpointConnections": [],
+ "sharedPrivateLinkResources": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json
new file mode 100644
index 000000000000..04a1a93a0753
--- /dev/null
+++ b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json
@@ -0,0 +1,104 @@
+{
+ "parameters": {
+ "searchServiceName": "mysearchservice",
+ "resourceGroupName": "rg1",
+ "api-version": "2020-03-13",
+ "subscriptionId": "subid",
+ "service": {
+ "location": "westus",
+ "tags": {
+ "app-name": "My e-commerce app"
+ },
+ "sku": {
+ "name": "standard"
+ },
+ "properties": {
+ "replicaCount": 1,
+ "partitionCount": 1,
+ "networkRuleSet": {
+ "ipRules": [
+ {
+ "value": "123.4.5.6"
+ },
+ {
+ "value": "123.4.6.0/18"
+ }
+ ]
+ },
+ "hostingMode": "default"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice",
+ "name": "mysearchservice",
+ "location": "westus",
+ "type": "Microsoft.Search/searchServices",
+ "tags": {
+ "app-name": "My e-commerce app"
+ },
+ "sku": {
+ "name": "standard"
+ },
+ "properties": {
+ "replicaCount": 1,
+ "partitionCount": 1,
+ "status": "provisioning",
+ "statusDetails": "",
+ "hostingMode": "default",
+ "provisioningState": "provisioning",
+ "publicNetworkAccess": "enabled",
+ "networkRuleSet": {
+ "ipRules": [
+ {
+ "value": "123.4.5.6"
+ },
+ {
+ "value": "123.4.6.0/18"
+ }
+ ]
+ },
+ "privateEndpointConnections": [],
+ "sharedPrivateLinkResources": []
+ }
+ }
+ },
+ "201": {
+ "body": {
+ "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice",
+ "name": "mysearchservice",
+ "location": "westus",
+ "type": "Microsoft.Search/searchServices",
+ "tags": {
+ "app-name": "My e-commerce app"
+ },
+ "sku": {
+ "name": "standard"
+ },
+ "properties": {
+ "replicaCount": 1,
+ "partitionCount": 1,
+ "status": "provisioning",
+ "statusDetails": "",
+ "hostingMode": "default",
+ "provisioningState": "provisioning",
+ "publicNetworkAccess": "enabled",
+ "networkRuleSet": {
+ "ipRules": [
+ {
+ "value": "123.4.5.6"
+ },
+ {
+ "value": "123.4.6.0/18"
+ }
+ ]
+ },
+ "privateEndpointConnections": [],
+ "sharedPrivateLinkResources": []
+ }
+ }
+ }
+ }
+}
diff --git a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json
index 9ca6ab6cb3c4..cb73c5c6854a 100644
--- a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json
+++ b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json
@@ -8,9 +8,7 @@
"properties": {
"replicaCount": 1,
"partitionCount": 1,
- "networkRuleSet": {
- "ipRules": []
- }
+ "publicNetworkAccess": "disabled"
}
}
},
@@ -35,7 +33,7 @@
"statusDetails": "",
"hostingMode": "default",
"provisioningState": "succeeded",
- "publicNetworkAccess": "enabled",
+ "publicNetworkAccess": "disabled",
"networkRuleSet": {
"ipRules": []
},
diff --git a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromCustomIPs.json b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json
similarity index 90%
rename from specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromCustomIPs.json
rename to specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json
index 82fb1e0c8d88..2220cb66433a 100644
--- a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromCustomIPs.json
+++ b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json
@@ -8,10 +8,14 @@
"properties": {
"replicaCount": 3,
"partitionCount": 1,
+ "publicNetworkAccess": "enabled",
"networkRuleSet": {
"ipRules": [
{
- "value": "10.2.3.4"
+ "value": "123.4.5.6"
+ },
+ {
+ "value": "123.4.6.0/18"
}
]
}
diff --git a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/UpdatePrivateEndpointConnection.json b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/UpdatePrivateEndpointConnection.json
index 00290d4e4d54..6aaee4ae003f 100644
--- a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/UpdatePrivateEndpointConnection.json
+++ b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/examples/UpdatePrivateEndpointConnection.json
@@ -6,7 +6,6 @@
"subscriptionId": "subid",
"privateEndpointConnectionName": "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546",
"privateEndpointConnection": {
- "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/privateEndpointConnections/testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546",
"properties": {
"privateLinkServiceConnectionState": {
"status": "Rejected",
diff --git a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/search.json b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/search.json
index e96041380541..4fe1afbaa3af 100644
--- a/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/search.json
+++ b/specification/search/resource-manager/Microsoft.Search/stable/2020-03-13/search.json
@@ -344,6 +344,12 @@
"SearchCreateOrUpdateService": {
"$ref": "./examples/SearchCreateOrUpdateService.json"
},
+ "SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs": {
+ "$ref": "./examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json"
+ },
+ "SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints": {
+ "$ref": "./examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json"
+ },
"SearchCreateOrUpdateServiceWithIdentity": {
"$ref": "./examples/SearchCreateOrUpdateServiceWithIdentity.json"
}
@@ -416,8 +422,8 @@
"SearchUpdateServiceToRemoveIdentity": {
"$ref": "./examples/SearchUpdateServiceToRemoveIdentity.json"
},
- "searchUpdateServiceToAllowAccessFromCustomIPs": {
- "$ref": "./examples/SearchUpdateServiceToAllowAccessFromCustomIPs.json"
+ "searchUpdateServiceToAllowAccessFromPublicCustomIPs": {
+ "$ref": "./examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json"
},
"searchUpdateServiceToAllowAccessFromPrivateEndpoints": {
"$ref": "./examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json"
@@ -1287,6 +1293,11 @@
"$ref": "#/definitions/QueryKey"
},
"description": "The query keys for the Azure Cognitive Search service."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Request URL that can be used to query next page of query keys. Returned when the total number of requested query keys exceed maximum page size."
}
},
"description": "Response containing the query API keys for a given Azure Cognitive Search service.",
@@ -1318,8 +1329,10 @@
}
},
"PrivateEndpointConnection": {
+ "x-ms-azure-resource": true,
"properties": {
"id": {
+ "readOnly": true,
"type": "string",
"description": "The ID of the private endpoint connection. This can be used with the Azure Resource Manager to link resources together.",
"externalDocs": {
@@ -1350,7 +1363,7 @@
"properties": {
"ipRules": {
"type": "array",
- "description": "A list of IP restriction rules that defines the inbound network access to the search service endpoint. These restriction rules are applied only when the EndpointAccess of the search service is Public.",
+ "description": "A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method.",
"items": {
"$ref": "#/definitions/IpRule"
}
@@ -1419,20 +1432,37 @@
"$ref": "#/definitions/PrivateEndpointConnection"
},
"description": "The list of Private Endpoint connections."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Request URL that can be used to query next page of private endpoint connections. Returned when the total number of requested private endpoint connections exceed maximum page size."
}
},
"description": "Response containing a list of Private Endpoint connections.",
"x-ms-external": true
},
"SharedPrivateLinkResource": {
+ "x-ms-azure-resource": true,
"properties": {
"name": {
+ "readOnly": true,
"type": "string",
"description": "The name of the shared private link resource.",
"externalDocs": {
"url": "https://aka.ms/search-naming-rules"
}
},
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The ID of the shared private link resource."
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The resource type."
+ },
"properties": {
"$ref": "#/definitions/SharedPrivateLinkResourceProperties",
"description": "Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service."
@@ -1732,6 +1762,11 @@
"$ref": "#/definitions/SearchService"
},
"description": "The list of Search services."
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Request URL that can be used to query next page of search services. Returned when the total number of requested search services exceed maximum page size."
}
},
"description": "Response containing a list of Azure Cognitive Search services.",
diff --git a/specification/search/resource-manager/readme.md b/specification/search/resource-manager/readme.md
index 2013e0992ec4..ea9072326d03 100644
--- a/specification/search/resource-manager/readme.md
+++ b/specification/search/resource-manager/readme.md
@@ -26,7 +26,7 @@ These are the global settings for the SearchManagementClient API.
``` yaml
openapi-type: arm
-tag: package-2015-08
+tag: package-2020-03
```
### Tag: package-2020-03
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json
new file mode 100644
index 000000000000..87b002a47d20
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json
@@ -0,0 +1,337 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Security Center",
+ "description": "API spec for Microsoft.Security (Azure Security Center) resource provider",
+ "version": "2019-01-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules": {
+ "get": {
+ "x-ms-examples": {
+ "Get suppression rules for subscription": {
+ "$ref": "./examples/AlertsSuppressionRules/GetAlertsSuppressionRules_example.json"
+ },
+ "Get suppression alert rule for subscription, filtered by AlertType": {
+ "$ref": "./examples/AlertsSuppressionRules/GetAlertsSuppressionRulesWithAlertType_example.json"
+ }
+ },
+ "tags": [
+ "AlertsSuppressionRules"
+ ],
+ "description": "List of all the dismiss rules for the given subscription",
+ "operationId": "AlertsSuppressionRules_List",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/AlertType"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AlertsSuppressionRulesList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}": {
+ "get": {
+ "x-ms-examples": {
+ "Get suppression alert rule for subscription": {
+ "$ref": "./examples/AlertsSuppressionRules/GetAlertsSuppressionRule_example.json"
+ }
+ },
+ "tags": [
+ "AlertsSuppressionRules"
+ ],
+ "description": "Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription",
+ "operationId": "AlertsSuppressionRules_Get",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/AlertsSuppressionRuleName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AlertsSuppressionRule"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "put": {
+ "x-ms-examples": {
+ "Update or create suppression rule for subscription": {
+ "$ref": "./examples/AlertsSuppressionRules/PutAlertsSuppressionRule_example.json"
+ }
+ },
+ "tags": [
+ "AlertsSuppressionRules"
+ ],
+ "description": "Update existing rule or create new rule if it doesn't exist",
+ "operationId": "AlertsSuppressionRules_Update",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/AlertsSuppressionRuleName"
+ },
+ {
+ "$ref": "#/parameters/AlertsSuppressionRule"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/AlertsSuppressionRule"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "x-ms-examples": {
+ "Delete suppression rule data for a subscription": {
+ "$ref": "./examples/AlertsSuppressionRules/DeleteAlertsSuppressionRule_example.json"
+ }
+ },
+ "tags": [
+ "AlertsSuppressionRules"
+ ],
+ "description": "Delete dismiss alert rule for this subscription.",
+ "operationId": "AlertsSuppressionRules_Delete",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/AlertsSuppressionRuleName"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "OK, No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "AlertsSuppressionRulesList": {
+ "type": "object",
+ "description": "Suppression rules list for subscription.",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AlertsSuppressionRule"
+ }
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "URI to fetch the next page."
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "AlertsSuppressionRule": {
+ "type": "object",
+ "description": "Describes the suppression rule",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/AlertsSuppressionRuleProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/Resource"
+ }
+ ]
+ },
+ "AlertsSuppressionRuleProperties": {
+ "type": "object",
+ "description": "describes AlertsSuppressionRule properties",
+ "properties": {
+ "alertType": {
+ "type": "string",
+ "description": "Type of the alert to automatically suppress. For all alert types, use '*'"
+ },
+ "lastModifiedUtc": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "The last time this rule was modified"
+ },
+ "expirationDateUtc": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Expiration date of the rule, if value is not provided or provided as null this field will default to the maximum allowed expiration date."
+ },
+ "reason": {
+ "type": "string",
+ "description": "The reason for dismissing the alert"
+ },
+ "state": {
+ "type": "string",
+ "description": "Possible states of the rule",
+ "x-ms-enum": {
+ "name": "RuleState"
+ },
+ "enum": [
+ "Enabled",
+ "Disabled",
+ "Expired"
+ ]
+ },
+ "comment": {
+ "type": "string",
+ "description": "Any comment regarding the rule"
+ },
+ "suppressionAlertsScope": {
+ "type": "object",
+ "description": "The suppression conditions",
+ "$ref": "#/definitions/SuppressionAlertsScope"
+ }
+ },
+ "required": [
+ "alertType",
+ "reason",
+ "state"
+ ]
+ },
+ "ScopeElement": {
+ "type": "object",
+ "additionalProperties": true,
+ "description": "A more specific scope used to identify the alerts to suppress.",
+ "properties": {
+ "field": {
+ "type": "string",
+ "description": "The alert entity type to suppress by."
+ }
+ }
+ },
+ "SuppressionAlertsScope": {
+ "type": "object",
+ "properties": {
+ "allOf": {
+ "type": "array",
+ "description": "All the conditions inside need to be true in order to suppress the alert",
+ "items": {
+ "$ref": "#/definitions/ScopeElement"
+ }
+ }
+ },
+ "required": [
+ "allOf"
+ ]
+ }
+ },
+ "parameters": {
+ "AlertType": {
+ "name": "AlertType",
+ "in": "query",
+ "type": "string",
+ "description": "Type of the alert to get rules for",
+ "x-ms-parameter-location": "method"
+ },
+ "AlertsSuppressionRule": {
+ "name": "alertsSuppressionRule",
+ "in": "body",
+ "required": true,
+ "description": "Suppression rule object",
+ "schema": {
+ "$ref": "#/definitions/AlertsSuppressionRule"
+ },
+ "x-ms-parameter-location": "method"
+ },
+ "AlertsSuppressionRuleName": {
+ "name": "alertsSuppressionRuleName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The unique name of the suppression alert rule",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/DeleteAlertsSuppressionRule_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/DeleteAlertsSuppressionRule_example.json
new file mode 100644
index 000000000000..d8663e727d45
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/DeleteAlertsSuppressionRule_example.json
@@ -0,0 +1,10 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "alertsSuppressionRuleName": "dismissIpAnomalyAlerts"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRule_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRule_example.json
new file mode 100644
index 000000000000..67228151c5fa
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRule_example.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "alertsSuppressionRuleName": "dismissIpAnomalyAlerts"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/alertsSuppressionRules/dismissIpAnomalyAlerts",
+ "name": "dismissIpAnomalyAlerts",
+ "type": "Microsoft.Security/alertsSuppressionRules",
+ "properties": {
+ "alertType": "IpAnomaly",
+ "lastModifiedUtc": "2019-07-31T19:50:47.083633Z",
+ "expirationDateUtc": "2019-12-01T19:50:47.083633Z",
+ "state": "Enabled",
+ "reason": "FalsePositive",
+ "comment": "Test VM",
+ "suppressionAlertsScope": {
+ "allOf": [
+ {
+ "field": "entities.ip.address",
+ "in": [
+ "104.215.95.187",
+ "52.164.206.56"
+ ]
+ },
+ {
+ "field": "entities.process.commandline",
+ "contains": "POWERSHELL.EXE"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRulesWithAlertType_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRulesWithAlertType_example.json
new file mode 100644
index 000000000000..a12282315400
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRulesWithAlertType_example.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "alertType": "IpAnomaly"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/alertsSuppressionRules/dismissIpAnomalyAlerts",
+ "name": "dismissIpAnomalyAlerts",
+ "type": "Microsoft.Security/alertsSuppressionRules",
+ "properties": {
+ "alertType": "IpAnomaly",
+ "lastModifiedUtc": "2019-07-31T19:50:47.083633Z",
+ "expirationDateUtc": "2019-12-01T19:50:47.083633Z",
+ "state": "Enabled",
+ "reason": "FalsePositive",
+ "comment": "Test VM",
+ "suppressionAlertsScope": {
+ "allOf": [
+ {
+ "field": "entities.ip.address",
+ "in": [
+ "104.215.95.187",
+ "52.164.206.56"
+ ]
+ },
+ {
+ "field": "entities.process.commandline",
+ "contains": "POWERSHELL.EXE"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRules_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRules_example.json
new file mode 100644
index 000000000000..493b914255bf
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/GetAlertsSuppressionRules_example.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/alertsSuppressionRules/dismissIpAnomalyAlerts",
+ "name": "dismissIpAnomalyAlerts",
+ "type": "Microsoft.Security/alertsSuppressionRules",
+ "properties": {
+ "alertType": "IpAnomaly",
+ "lastModifiedUtc": "2019-07-31T19:50:47.083633Z",
+ "expirationDateUtc": "2019-12-01T19:50:47.083633Z",
+ "state": "Enabled",
+ "reason": "FalsePositive",
+ "comment": "Test VM",
+ "suppressionAlertsScope": {
+ "allOf": [
+ {
+ "field": "entities.ip.address",
+ "in": [
+ "104.215.95.187",
+ "52.164.206.56"
+ ]
+ },
+ {
+ "field": "entities.process.commandline",
+ "contains": "POWERSHELL.EXE"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/alertsSuppressionRules/dismissDataExfiltrationAnomalyAlertsOnTestVMs",
+ "name": "dismissDataExfiltrationAnomalyAlertsOnTestVMs",
+ "type": "Microsoft.Security/alertsSuppressionRules",
+ "properties": {
+ "alertType": "DataExfiltrationAnomaly",
+ "lastModifiedUtc": "2019-07-31T19:50:47.083633Z",
+ "expirationDateUtc": "2019-12-01T19:50:47.083633Z",
+ "state": "Enabled",
+ "reason": "FalsePositive"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/PutAlertsSuppressionRule_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/PutAlertsSuppressionRule_example.json
new file mode 100644
index 000000000000..efd66de8a29d
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/AlertsSuppressionRules/PutAlertsSuppressionRule_example.json
@@ -0,0 +1,63 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "alertsSuppressionRuleName": "dismissIpAnomalyAlerts",
+ "alertsSuppressionRule": {
+ "properties": {
+ "alertType": "IpAnomaly",
+ "expirationDateUtc": "2019-12-01T19:50:47.083633Z",
+ "state": "Enabled",
+ "reason": "FalsePositive",
+ "comment": "Test VM",
+ "suppressionAlertsScope": {
+ "allOf": [
+ {
+ "field": "entities.ip.address",
+ "in": [
+ "104.215.95.187",
+ "52.164.206.56"
+ ]
+ },
+ {
+ "field": "entities.process.commandline",
+ "contains": "POWERSHELL.EXE"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/alertsSuppressionRules/dismissIpAnomalyAlerts",
+ "name": "dismissIpAnomalyAlerts",
+ "type": "Microsoft.Security/alertsSuppressionRules",
+ "properties": {
+ "alertType": "IpAnomaly",
+ "lastModifiedUtc": "2019-07-31T19:50:47.083633Z",
+ "expirationDateUtc": "2019-12-01T19:50:47.083633Z",
+ "state": "Enabled",
+ "reason": "FalsePositive",
+ "comment": "Test VM",
+ "suppressionAlertsScope": {
+ "allOf": [
+ {
+ "field": "entities.ip.address",
+ "in": [
+ "104.215.95.187",
+ "52.164.206.56"
+ ]
+ },
+ {
+ "field": "entities.process.commandline",
+ "contains": "POWERSHELL.EXE"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_example.json
new file mode 100644
index 000000000000..6556847ce39e
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_example.json
@@ -0,0 +1,58 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a9909064-42b4-4d34-8143-275477afe18b",
+ "name": "a9909064-42b4-4d34-8143-275477afe18b",
+ "type": "Microsoft.Security/SecureScoreControlDefinitions",
+ "properties": {
+ "source": {
+ "sourceType": "BuiltIn"
+ },
+ "displayName": "Protect applications against DDoS attacks",
+ "description": "This control contains recommendations regarding DDoS attack prevention",
+ "maxScore": 2,
+ "assessmentDefinitions": [
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/e3de1cc0-f4dd-3b34-e496-8b5381ba2d70"
+ }
+ ]
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a000c66f-6da2-4f9d-826d-2364347d2588",
+ "name": "a000c66f-6da2-4f9d-826d-2364347d2588",
+ "type": "Microsoft.Security/SecureScoreControlDefinitions",
+ "properties": {
+ "source": {
+ "sourceType": "BuiltIn"
+ },
+ "displayName": "Apply adaptive application control",
+ "description": "This control contains recommendations regarding enabling adaptive application control",
+ "maxScore": 3,
+ "assessmentDefinitions": [
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/35f45c95-27cf-4e52-891f-8390d1de5828"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/d1db3318-01ff-16de-29eb-28b344515626"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/e7ee30c4-bac9-2966-54bd-2023a4282872"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/8e2b96ff-3de2-289b-b5c1-3b9921a3441e"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_subscription_example.json
new file mode 100644
index 000000000000..899b522bce20
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_subscription_example.json
@@ -0,0 +1,83 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a9909064-42b4-4d34-8143-275477afe18b",
+ "name": "a9909064-42b4-4d34-8143-275477afe18b",
+ "type": "Microsoft.Security/SecureScoreControlDefinitions",
+ "properties": {
+ "source": {
+ "sourceType": "BuiltIn"
+ },
+ "displayName": "Protect applications against DDoS attacks",
+ "description": "This control contains recommendations regarding DDoS attack prevention",
+ "maxScore": 2,
+ "assessmentDefinitions": [
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/e3de1cc0-f4dd-3b34-e496-8b5381ba2d70"
+ }
+ ]
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "name": "34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "type": "Microsoft.Security/SecureScoreControlDefinitions",
+ "properties": {
+ "source": {
+ "sourceType": "BuiltIn"
+ },
+ "displayName": "Enable MFA",
+ "description": "This control contains recommendations regarding MFA",
+ "maxScore": 10,
+ "assessmentDefinitions": [
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/151e82c5-5341-a74b-1eb0-bc38d2c84bb5"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/57e98606-6b1e-6193-0e3d-fe621387c16b"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/94290b00-4d0c-d7b4-7cea-064a9554e681"
+ }
+ ]
+ }
+ },
+ {
+ "id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a000c66f-6da2-4f9d-826d-2364347d2588",
+ "name": "a000c66f-6da2-4f9d-826d-2364347d2588",
+ "type": "Microsoft.Security/SecureScoreControlDefinitions",
+ "properties": {
+ "source": {
+ "sourceType": "BuiltIn"
+ },
+ "displayName": "Apply adaptive application control",
+ "description": "This control contains recommendations regarding enabling adaptive application control",
+ "maxScore": 3,
+ "assessmentDefinitions": [
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/35f45c95-27cf-4e52-891f-8390d1de5828"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/d1db3318-01ff-16de-29eb-28b344515626"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/e7ee30c4-bac9-2966-54bd-2023a4282872"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/8e2b96ff-3de2-289b-b5c1-3b9921a3441e"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/GetSecureScoresSingle_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/GetSecureScoresSingle_example.json
new file mode 100644
index 000000000000..58c0d683cb8c
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/GetSecureScoresSingle_example.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "secureScoreName": "ascScore"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/secureScores/ascScore",
+ "name": "ascScore",
+ "type": "Microsoft.Security/secureScores",
+ "properties": {
+ "displayName": "ASC score",
+ "score": {
+ "max": 13,
+ "current": 3
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControlsForNameWithExpand_builtin_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControlsForNameWithExpand_builtin_example.json
new file mode 100644
index 000000000000..99b0d5df2e2e
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControlsForNameWithExpand_builtin_example.json
@@ -0,0 +1,133 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "secureScoreName": "ascScore",
+ "$expand": "definition"
+ },
+ "responses": {
+ "200": {
+ "parameters": {
+ "secureScoreName": "ascScore"
+ },
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a9909064-42b4-4d34-8143-275477afe18b",
+ "name": "a9909064-42b4-4d34-8143-275477afe18b",
+ "type": "Microsoft.Security/secureScoreControls",
+ "properties": {
+ "displayName": "Protect applications against DDoS attacks",
+ "healthyResourceCount": 0,
+ "unhealthyResourceCount": 0,
+ "notApplicableResourceCount": 10,
+ "score": {
+ "max": 0,
+ "current": 0
+ },
+ "definition": {
+ "id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a9909064-42b4-4d34-8143-275477afe18b",
+ "name": "a9909064-42b4-4d34-8143-275477afe18b",
+ "type": "Microsoft.Security/SecureScoreControlDefinitions",
+ "properties": {
+ "source": {
+ "sourceType": "BuiltIn"
+ },
+ "displayName": "Protect applications against DDoS attacks",
+ "description": "This control contains recommendations regarding DDoS attack prevention",
+ "maxScore": 2,
+ "assessmentDefinitions": [
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/e3de1cc0-f4dd-3b34-e496-8b5381ba2d70"
+ }
+ ]
+ }
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "name": "34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "type": "Microsoft.Security/SecureScoreControls",
+ "properties": {
+ "displayName": "Enable MFA",
+ "healthyResourceCount": 0,
+ "unhealthyResourceCount": 1,
+ "notApplicableResourceCount": 0,
+ "score": {
+ "max": 10,
+ "current": 0
+ },
+ "definition": {
+ "id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "name": "34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "type": "Microsoft.Security/SecureScoreControlDefinitions",
+ "properties": {
+ "source": {
+ "sourceType": "BuiltIn"
+ },
+ "displayName": "Enable MFA",
+ "description": "This control contains recommendations regarding MFA",
+ "maxScore": 10,
+ "assessmentDefinitions": [
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/151e82c5-5341-a74b-1eb0-bc38d2c84bb5"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/57e98606-6b1e-6193-0e3d-fe621387c16b"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/94290b00-4d0c-d7b4-7cea-064a9554e681"
+ }
+ ]
+ }
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a000c66f-6da2-4f9d-826d-2364347d2588",
+ "name": "a000c66f-6da2-4f9d-826d-2364347d2588",
+ "type": "Microsoft.Security/SecureScoreControls",
+ "properties": {
+ "displayName": "Apply adaptive application control",
+ "healthyResourceCount": 20,
+ "unhealthyResourceCount": 0,
+ "notApplicableResourceCount": 10,
+ "score": {
+ "max": 3,
+ "current": 3
+ },
+ "definition": {
+ "id": "/providers/Microsoft.Security/SecureScoreControlDefinitions/a000c66f-6da2-4f9d-826d-2364347d2588",
+ "name": "a000c66f-6da2-4f9d-826d-2364347d2588",
+ "type": "Microsoft.Security/SecureScoreControlDefinitions",
+ "properties": {
+ "source": {
+ "sourceType": "BuiltIn"
+ },
+ "displayName": "Apply adaptive application control",
+ "description": "This control contains recommendations regarding enabling adaptive application control",
+ "maxScore": 3,
+ "assessmentDefinitions": [
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/35f45c95-27cf-4e52-891f-8390d1de5828"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/d1db3318-01ff-16de-29eb-28b344515626"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/e7ee30c4-bac9-2966-54bd-2023a4282872"
+ },
+ {
+ "id": "/providers/Microsoft.Security/assessmentMetadata/8e2b96ff-3de2-289b-b5c1-3b9921a3441e"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControlsForName_builtin_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControlsForName_builtin_example.json
new file mode 100644
index 000000000000..aae8856966ea
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControlsForName_builtin_example.json
@@ -0,0 +1,60 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "secureScoreName": "ascScore"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a9909064-42b4-4d34-8143-275477afe18b",
+ "name": "a9909064-42b4-4d34-8143-275477afe18b",
+ "type": "Microsoft.Security/SecureScoreControls",
+ "properties": {
+ "displayName": "Protect applications against DDoS attacks",
+ "healthyResourceCount": 0,
+ "unhealthyResourceCount": 0,
+ "notApplicableResourceCount": 10,
+ "score": {
+ "max": 0,
+ "current": 0
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "name": "34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "type": "Microsoft.Security/SecureScoreControls",
+ "properties": {
+ "displayName": "Enable MFA",
+ "healthyResourceCount": 0,
+ "unhealthyResourceCount": 1,
+ "notApplicableResourceCount": 0,
+ "score": {
+ "max": 10,
+ "current": 0
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a000c66f-6da2-4f9d-826d-2364347d2588",
+ "name": "a000c66f-6da2-4f9d-826d-2364347d2588",
+ "type": "Microsoft.Security/SecureScoreControls",
+ "properties": {
+ "displayName": "Apply adaptive application control",
+ "healthyResourceCount": 20,
+ "unhealthyResourceCount": 0,
+ "notApplicableResourceCount": 10,
+ "score": {
+ "max": 3,
+ "current": 3
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControls_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControls_example.json
new file mode 100644
index 000000000000..c3c4542a72f3
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScoreControls_example.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a9909064-42b4-4d34-8143-275477afe18b",
+ "name": "a9909064-42b4-4d34-8143-275477afe18b",
+ "type": "Microsoft.Security/SecureScoreControls",
+ "properties": {
+ "displayName": "Protect applications against DDoS attacks",
+ "healthyResourceCount": 0,
+ "unhealthyResourceCount": 0,
+ "notApplicableResourceCount": 10,
+ "score": {
+ "max": 0,
+ "current": 0
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "name": "34a42fb3-e6db-409c-b56b-7b1db6b8aee0",
+ "type": "Microsoft.Security/SecureScoreControls",
+ "properties": {
+ "displayName": "Enable MFA",
+ "healthyResourceCount": 0,
+ "unhealthyResourceCount": 1,
+ "notApplicableResourceCount": 0,
+ "score": {
+ "max": 10,
+ "current": 0
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/SecureScoreControls/a000c66f-6da2-4f9d-826d-2364347d2588",
+ "name": "a000c66f-6da2-4f9d-826d-2364347d2588",
+ "type": "Microsoft.Security/SecureScoreControls",
+ "properties": {
+ "displayName": "Apply adaptive application control",
+ "healthyResourceCount": 20,
+ "unhealthyResourceCount": 0,
+ "notApplicableResourceCount": 10,
+ "score": {
+ "max": 3,
+ "current": 3
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScores_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScores_example.json
new file mode 100644
index 000000000000..c9fc267708c1
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/secureScores/ListSecureScores_example.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01-preview",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/secureScores/ascScore",
+ "name": "ascScore",
+ "type": "Microsoft.Security/secureScores",
+ "properties": {
+ "displayName": "ASC score",
+ "score": {
+ "max": 13,
+ "current": 3.5
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/secureScore.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/secureScore.json
new file mode 100644
index 000000000000..3e742573ba4f
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/secureScore.json
@@ -0,0 +1,586 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Security Center",
+ "description": "API spec for Microsoft.Security (Azure Security Center) resource provider",
+ "version": "2020-01-01-preview"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScores": {
+ "get": {
+ "x-ms-examples": {
+ "List secure scores": {
+ "$ref": "./examples/secureScores/ListSecureScores_example.json"
+ }
+ },
+ "tags": [
+ "Secure Score"
+ ],
+ "description": "List secure scores for all your Security Center initiatives within your current scope.",
+ "operationId": "SecureScores_List",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SecureScoresList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScores/{secureScoreName}": {
+ "get": {
+ "x-ms-examples": {
+ "Get single secure score": {
+ "$ref": "./examples/secureScores/GetSecureScoresSingle_example.json"
+ }
+ },
+ "tags": [
+ "Secure Score"
+ ],
+ "description": "Get secure score for a specific Security Center initiative within your current scope. For the ASC Default initiative, use 'ascScore'.",
+ "operationId": "SecureScores_Get",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/secureScoreName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SecureScoreItem"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScores/{secureScoreName}/secureScoreControls": {
+ "get": {
+ "x-ms-examples": {
+ "Get security controls and their current score for the specified initiative": {
+ "$ref": "./examples/secureScores/ListSecureScoreControlsForName_builtin_example.json"
+ },
+ "Get security controls and their current score for the specified initiative with the expand parameter": {
+ "$ref": "./examples/secureScores/ListSecureScoreControlsForNameWithExpand_builtin_example.json"
+ }
+ },
+ "tags": [
+ "Secure Score"
+ ],
+ "description": "Get all security controls for a specific initiative within a scope",
+ "operationId": "SecureScoreControls_ListBySecureScore",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/secureScoreName"
+ },
+ {
+ "$ref": "#/parameters/ExpandControlsDefinition"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SecureScoreControlList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScoreControls": {
+ "get": {
+ "x-ms-examples": {
+ "List all secure scores controls": {
+ "$ref": "./examples/secureScores/ListSecureScoreControls_example.json"
+ }
+ },
+ "tags": [
+ "Secure Score Controls"
+ ],
+ "description": "Get all security controls within a scope",
+ "operationId": "SecureScoreControls_List",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/ExpandControlsDefinition"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SecureScoreControlList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/providers/Microsoft.Security/secureScoreControlDefinitions": {
+ "get": {
+ "x-ms-examples": {
+ "List security controls definition": {
+ "$ref": "./examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_example.json"
+ }
+ },
+ "tags": [
+ "Secure Score Control Definitions"
+ ],
+ "description": "List the available security controls, their assessments, and the max score",
+ "operationId": "SecureScoreControlDefinitions_List",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/secureScoreControlDefinitionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScoreControlDefinitions": {
+ "get": {
+ "x-ms-examples": {
+ "List security controls definition by subscription": {
+ "$ref": "./examples/secureScoreControlDefinitions/ListSecureScoreControlDefinitions_subscription_example.json"
+ }
+ },
+ "tags": [
+ "Secure Score Control Definitions"
+ ],
+ "description": "For a specified subscription, list the available security controls, their assessments, and the max score",
+ "operationId": "SecureScoreControlDefinitions_ListBySubscription",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/secureScoreControlDefinitionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "SecureScoresList": {
+ "type": "object",
+ "description": "List of secure scores",
+ "properties": {
+ "value": {
+ "description": "Collection of secure scores in this page",
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SecureScoreItem"
+ }
+ },
+ "nextLink": {
+ "description": "The URI to fetch the next page.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "SecureScoreItem": {
+ "description": "Secure score item data model",
+ "readOnly": true,
+ "type": "object",
+ "properties": {
+ "properties": {
+ "description": "Secure score item",
+ "readOnly": true,
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/SecureScoreItemProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/Resource"
+ }
+ ]
+ },
+ "SecureScoreItemProperties": {
+ "description": "Describes properties of a calculated secure score.",
+ "readOnly": true,
+ "type": "object",
+ "properties": {
+ "displayName": {
+ "description": "The initiative’s name",
+ "readOnly": true,
+ "type": "string"
+ },
+ "score": {
+ "description": "score object",
+ "readOnly": true,
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ScoreDetails"
+ }
+ }
+ },
+ "ScoreDetails": {
+ "description": "Calculation result data",
+ "readOnly": true,
+ "type": "object",
+ "properties": {
+ "max": {
+ "description": "Maximum score available",
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "exclusiveMinimum": false
+ },
+ "current": {
+ "description": "Current score",
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "minimum": 0.00,
+ "exclusiveMinimum": false
+ }
+ }
+ },
+ "SecureScoreControlScore": {
+ "description": "Calculation result data",
+ "type": "object",
+ "properties": {
+ "max": {
+ "description": "Maximum control score (0..10)",
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 10,
+ "exclusiveMinimum": false
+ },
+ "current": {
+ "description": "Actual score for the control = (achieved points / total points) * max score. if total points is zeroed, the return number is 0.00",
+ "readOnly": true,
+ "type": "number",
+ "format": "double",
+ "minimum": 0.00,
+ "maximum": 10.00,
+ "exclusiveMinimum": false
+ }
+ }
+ },
+ "SecureScoreControlList": {
+ "description": "List of security controls",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of security controls in this page",
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SecureScoreControlDetails"
+ }
+ },
+ "nextLink": {
+ "description": "The URI to fetch the next page.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "SecureScoreControlDetails": {
+ "description": "Details of the security control, its score, and the health status of the relevant resources.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/SecureScoreControlScoreDetails"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/Resource"
+ }
+ ]
+ },
+ "SecureScoreControlScoreDetails": {
+ "description": "Calculation result data in control level",
+ "type": "object",
+ "properties": {
+ "displayName": {
+ "description": "User friendly display name of the control",
+ "readOnly": true,
+ "type": "string"
+ },
+ "score": {
+ "description": "Actual score object for the control",
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ScoreDetails"
+ },
+ "healthyResourceCount": {
+ "description": "Number of healthy resources in the control",
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32"
+ },
+ "unhealthyResourceCount": {
+ "description": "Number of unhealthy resources in the control",
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32"
+ },
+ "notApplicableResourceCount": {
+ "description": "Number of not applicable resources in the control",
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32"
+ },
+ "definition": {
+ "$ref": "#/definitions/SecureScoreControlDefinitionItem"
+ }
+ }
+ },
+ "secureScoreControlDefinitionList": {
+ "description": "List of security controls definition",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Collection of security controls definition in this page",
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SecureScoreControlDefinitionItem"
+ }
+ },
+ "nextLink": {
+ "description": "The URI to fetch the next page.",
+ "readOnly": true,
+ "type": "string"
+ }
+ }
+ },
+ "SecureScoreControlDefinitionItem": {
+ "description": "Information about the security control.",
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/SecureScoreControlDefinitionItemProperties"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/Resource"
+ }
+ ]
+ },
+ "SecureScoreControlDefinitionItemProperties": {
+ "description": "Security Control Definition Properties.",
+ "type": "object",
+ "properties": {
+ "displayName": {
+ "description": "User friendly display name of the control",
+ "readOnly": true,
+ "type": "string"
+ },
+ "description": {
+ "description": "User friendly description of the control",
+ "readOnly": true,
+ "type": "string",
+ "maxLength": 256
+ },
+ "maxScore": {
+ "description": "Maximum control score (0..10)",
+ "readOnly": true,
+ "type": "integer",
+ "format": "int32",
+ "minimum": 0,
+ "maximum": 10,
+ "exclusiveMinimum": false
+ },
+ "source": {
+ "description": "Source object from which the control was created",
+ "readOnly": true,
+ "$ref": "#/definitions/SecureScoreControlDefinitionSource"
+ },
+ "assessmentDefinitions": {
+ "description": "Array of assessments metadata IDs that are included in this security control",
+ "readOnly": true,
+ "$ref": "../../../common/v1/types.json#/definitions/AzureResourceLinks"
+ }
+ }
+ },
+ "SecureScoreControlDefinitionSource": {
+ "description": "The type of the security control (For example, BuiltIn)",
+ "readOnly": true,
+ "type": "object",
+ "properties": {
+ "sourceType": {
+ "description": "The type of security control (for example, BuiltIn)",
+ "type": "string",
+ "enum": [
+ "BuiltIn",
+ "Custom"
+ ],
+ "x-ms-enum": {
+ "name": "controlType",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "BuiltIn",
+ "description": "Azure Security Center managed assessments"
+ },
+ {
+ "value": "Custom",
+ "description": "Non Azure Security Center managed assessments"
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "parameters": {
+ "ExpandControlsDefinition": {
+ "name": "$expand",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "OData expand. Optional.",
+ "x-ms-parameter-location": "method",
+ "enum": [
+ "definition"
+ ],
+ "x-ms-enum": {
+ "name": "ExpandControlsEnum",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "definition",
+ "description": "Add definition object for each control"
+ }
+ ]
+ }
+ },
+ "secureScoreName": {
+ "name": "secureScoreName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample request below.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/alerts.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/alerts.json
index 5f1aeadddebe..cc3894b377cb 100644
--- a/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/alerts.json
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/alerts.json
@@ -39,6 +39,9 @@
"x-ms-examples": {
"Get security alerts on a subscription": {
"$ref": "./examples/Alerts/GetAlertsSubscription_example.json"
+ },
+ "Get security alerts, that were affected by auto dismiss rule, on a subscription": {
+ "$ref": "./examples/Alerts/GetAlertsSubscriptionWithAutoDismissRule_example.json"
}
},
"tags": [
@@ -61,6 +64,9 @@
},
{
"$ref": "#/parameters/ODataExpand"
+ },
+ {
+ "$ref": "#/parameters/AutoDismissRuleName"
}
],
"responses": {
@@ -87,6 +93,9 @@
"x-ms-examples": {
"Get security alerts on a resource group": {
"$ref": "./examples/Alerts/GetAlertsResourceGroup_example.json"
+ },
+ "Get security alerts, that should be dismissed by auto dismiss rule, on a resource group": {
+ "$ref": "./examples/Alerts/GetAlertsResourceGroupWithAutoDismissRule_example.json"
}
},
"tags": [
@@ -112,6 +121,9 @@
},
{
"$ref": "#/parameters/ODataExpand"
+ },
+ {
+ "$ref": "#/parameters/AutoDismissRuleName"
}
],
"responses": {
@@ -138,6 +150,9 @@
"x-ms-examples": {
"Get security alerts on a subscription from a security data location": {
"$ref": "./examples/Alerts/GetAlertsSubscriptionsLocation_example.json"
+ },
+ "Get security alerts, that should be dismissed by auto dismiss rule, on a subscription from a security data location": {
+ "$ref": "./examples/Alerts/GetAlertsSubscriptionsLocationWithAutoDismissRule_example.json"
}
},
"tags": [
@@ -163,6 +178,9 @@
},
{
"$ref": "#/parameters/ODataExpand"
+ },
+ {
+ "$ref": "#/parameters/AutoDismissRuleName"
}
],
"responses": {
@@ -189,6 +207,9 @@
"x-ms-examples": {
"Get security alerts on a resource group from a security data location": {
"$ref": "./examples/Alerts/GetAlertsResourceGroupLocation_example.json"
+ },
+ "Get security alerts, that should be dismissed by auto dismiss rule, on a resource group from a security data location": {
+ "$ref": "./examples/Alerts/GetAlertsResourceGroupLocationWithAutoDismissRule_example.json"
}
},
"tags": [
@@ -217,6 +238,9 @@
},
{
"$ref": "#/parameters/ODataExpand"
+ },
+ {
+ "$ref": "#/parameters/AutoDismissRuleName"
}
],
"responses": {
@@ -739,6 +763,13 @@
"type": "string",
"description": "Name of the alert object",
"x-ms-parameter-location": "method"
+ },
+ "AutoDismissRuleName": {
+ "name": "autoDismissRuleName",
+ "in": "query",
+ "type": "string",
+ "description": "The name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and get the alerts that would have been dismissed if the rule was enabled when the alert was created",
+ "x-ms-parameter-location": "method"
}
}
}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsResourceGroupLocationWithAutoDismissRule_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsResourceGroupLocationWithAutoDismissRule_example.json
new file mode 100644
index 000000000000..0815c5f5bd32
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsResourceGroupLocationWithAutoDismissRule_example.json
@@ -0,0 +1,86 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "resourceGroupName": "myRg1",
+ "ascLocation": "westeurope",
+ "autoDismissRuleName": "dismissThreatIntelligence"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/alerts/2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
+ "name": "2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
+ "type": "Microsoft.Security/Locations/alerts",
+ "properties": {
+ "vendorName": "Microsoft",
+ "alertDisplayName": "Threat Intelligence Alert",
+ "alertName": "ThreatIntelligence",
+ "detectedTimeUtc": "2018-05-01T19:50:47.083633Z",
+ "description": "Process was detected running on the host and is considered to be suspicious, verify that the user run it",
+ "remediationSteps": "verify that the user invoked this process\r\nrun antimalware scan of the VM",
+ "actionTaken": "Detected",
+ "reportedSeverity": "High",
+ "compromisedEntity": "vm1",
+ "associatedResource": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "instanceId": "f144ee95-a3e5-42da-a279-967d115809aa",
+ "extendedProperties": {
+ "user Name": "administrator",
+ "domain Name": "Contoso",
+ "attacker IP": "192.0.2.1",
+ "resourceType": "Virtual Machine"
+ },
+ "state": "Dismissed",
+ "reportedTimeUtc": "2018-05-02T05:36:12.2089889Z",
+ "confidenceScore": 0.8,
+ "confidenceReasons": [
+ {
+ "type": "User",
+ "reason": "Some user reason"
+ },
+ {
+ "type": "Process",
+ "reason": "Some proccess reason"
+ },
+ {
+ "type": "Computer",
+ "reason": "Some computer reason"
+ }
+ ],
+ "canBeInvestigated": true,
+ "isIncident": false,
+ "entities": [
+ {
+ "address": "192.0.2.1",
+ "location": {
+ "countryCode": "gb",
+ "state": "wokingham",
+ "city": "sonning",
+ "longitude": -0.909,
+ "latitude": 51.468,
+ "asn": 6584
+ },
+ "threatIntelligence": [
+ {
+ "providerName": "Team Cymru",
+ "threatType": "C2",
+ "threatName": "rarog",
+ "confidence": 0.8,
+ "reportLink": "http://www.microsoft.com",
+ "threatDescription": "In bot armies, the controller is the server machine(s) that gives instructions to the controlled (zombied) hosts that connect to the command and control (C2) network. The controller host is usually running a botnet management application that is sending the commands to the zombied members of the bot army. These commands include, but are not limited to, the following: updating bitcoin wallet information, distributed denial-of-service (DDoS) target listings, updated C2 communication contact lists, and targeting data. C2 servers may be either directly controlled by the malware operators or run on hardware compromised by malware. There are multiple techniques for dynamically changing the control servers so that they are not isolated and brought down. Control servers utilize two general architectures: client-server and peer-to-peer. In a client-server model, all the hosts are controlled by a single server or a few control servers. In a peer-to-peer model, the infected hosts are both clients and servers, and they control other hosts so that instead of isolating the few control servers, all the hosts need to be removed."
+ }
+ ],
+ "type": "ip"
+ }
+ ],
+ "correlationKey": "Rkso6LFWxzCll5tqrk4hnrBJ+MY1BX806W6q6+0s9Jk="
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsResourceGroupWithAutoDismissRule_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsResourceGroupWithAutoDismissRule_example.json
new file mode 100644
index 000000000000..55f3b45eb732
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsResourceGroupWithAutoDismissRule_example.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "resourceGroupName": "myRg1",
+ "autoDismissRuleName": "dismissThreatIntelligence"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/alerts/2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
+ "name": "2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
+ "type": "Microsoft.Security/Locations/alerts",
+ "properties": {
+ "vendorName": "Microsoft",
+ "alertDisplayName": "Threat Intelligence Alert",
+ "alertName": "ThreatIntelligence",
+ "detectedTimeUtc": "2018-05-01T19:50:47.083633Z",
+ "description": "Process was detected running on the host and is considered to be suspicious, verify that the user run it",
+ "remediationSteps": "verify that the user invoked this process\r\nrun antimalware scan of the VM",
+ "actionTaken": "Detected",
+ "reportedSeverity": "High",
+ "compromisedEntity": "vm1",
+ "associatedResource": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "instanceId": "f144ee95-a3e5-42da-a279-967d115809aa",
+ "extendedProperties": {
+ "user Name": "administrator",
+ "domain Name": "Contoso",
+ "attacker IP": "192.0.2.1",
+ "resourceType": "Virtual Machine"
+ },
+ "state": "Dismissed",
+ "reportedTimeUtc": "2018-05-02T05:36:12.2089889Z",
+ "confidenceScore": 0.8,
+ "confidenceReasons": [
+ {
+ "type": "User",
+ "reason": "Some user reason"
+ },
+ {
+ "type": "Process",
+ "reason": "Some proccess reason"
+ },
+ {
+ "type": "Computer",
+ "reason": "Some computer reason"
+ }
+ ],
+ "canBeInvestigated": true,
+ "isIncident": false,
+ "entities": [
+ {
+ "address": "192.0.2.1",
+ "location": {
+ "countryCode": "gb",
+ "state": "wokingham",
+ "city": "sonning",
+ "longitude": -0.909,
+ "latitude": 51.468,
+ "asn": 6584
+ },
+ "threatIntelligence": [
+ {
+ "providerName": "Team Cymru",
+ "threatType": "C2",
+ "threatName": "rarog",
+ "confidence": 0.8,
+ "reportLink": "http://www.microsoft.com",
+ "threatDescription": "In bot armies, the controller is the server machine(s) that gives instructions to the controlled (zombied) hosts that connect to the command and control (C2) network. The controller host is usually running a botnet management application that is sending the commands to the zombied members of the bot army. These commands include, but are not limited to, the following: updating bitcoin wallet information, distributed denial-of-service (DDoS) target listings, updated C2 communication contact lists, and targeting data. C2 servers may be either directly controlled by the malware operators or run on hardware compromised by malware. There are multiple techniques for dynamically changing the control servers so that they are not isolated and brought down. Control servers utilize two general architectures: client-server and peer-to-peer. In a client-server model, all the hosts are controlled by a single server or a few control servers. In a peer-to-peer model, the infected hosts are both clients and servers, and they control other hosts so that instead of isolating the few control servers, all the hosts need to be removed."
+ }
+ ],
+ "type": "ip"
+ }
+ ],
+ "correlationKey": "Rkso6LFWxzCll5tqrk4hnrBJ+MY1BX806W6q6+0s9Jk="
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsSubscriptionWithAutoDismissRule_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsSubscriptionWithAutoDismissRule_example.json
new file mode 100644
index 000000000000..85011eda2695
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsSubscriptionWithAutoDismissRule_example.json
@@ -0,0 +1,84 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "autoDismissRuleName": "dismissThreatIntelligence"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/alerts/2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
+ "name": "2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
+ "type": "Microsoft.Security/Locations/alerts",
+ "properties": {
+ "vendorName": "Microsoft",
+ "alertDisplayName": "Threat Intelligence Alert",
+ "alertName": "ThreatIntelligence",
+ "detectedTimeUtc": "2018-05-01T19:50:47.083633Z",
+ "description": "Process was detected running on the host and is considered to be suspicious, verify that the user run it",
+ "remediationSteps": "verify that the user invoked this process\r\nrun antimalware scan of the VM",
+ "actionTaken": "Detected",
+ "reportedSeverity": "High",
+ "compromisedEntity": "vm1",
+ "associatedResource": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "instanceId": "f144ee95-a3e5-42da-a279-967d115809aa",
+ "extendedProperties": {
+ "user Name": "administrator",
+ "domain Name": "Contoso",
+ "attacker IP": "192.0.2.1",
+ "resourceType": "Virtual Machine"
+ },
+ "state": "Dismissed",
+ "reportedTimeUtc": "2018-05-02T05:36:12.2089889Z",
+ "confidenceScore": 0.8,
+ "confidenceReasons": [
+ {
+ "type": "User",
+ "reason": "Some user reason"
+ },
+ {
+ "type": "Process",
+ "reason": "Some proccess reason"
+ },
+ {
+ "type": "Computer",
+ "reason": "Some computer reason"
+ }
+ ],
+ "canBeInvestigated": true,
+ "isIncident": false,
+ "entities": [
+ {
+ "address": "192.0.2.1",
+ "location": {
+ "countryCode": "gb",
+ "state": "wokingham",
+ "city": "sonning",
+ "longitude": -0.909,
+ "latitude": 51.468,
+ "asn": 6584
+ },
+ "threatIntelligence": [
+ {
+ "providerName": "Team Cymru",
+ "threatType": "C2",
+ "threatName": "rarog",
+ "confidence": 0.8,
+ "reportLink": "http://www.microsoft.com",
+ "threatDescription": "In bot armies, the controller is the server machine(s) that gives instructions to the controlled (zombied) hosts that connect to the command and control (C2) network. The controller host is usually running a botnet management application that is sending the commands to the zombied members of the bot army. These commands include, but are not limited to, the following: updating bitcoin wallet information, distributed denial-of-service (DDoS) target listings, updated C2 communication contact lists, and targeting data. C2 servers may be either directly controlled by the malware operators or run on hardware compromised by malware. There are multiple techniques for dynamically changing the control servers so that they are not isolated and brought down. Control servers utilize two general architectures: client-server and peer-to-peer. In a client-server model, all the hosts are controlled by a single server or a few control servers. In a peer-to-peer model, the infected hosts are both clients and servers, and they control other hosts so that instead of isolating the few control servers, all the hosts need to be removed."
+ }
+ ],
+ "type": "ip"
+ }
+ ],
+ "correlationKey": "Rkso6LFWxzCll5tqrk4hnrBJ+MY1BX806W6q6+0s9Jk="
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsSubscriptionsLocationWithAutoDismissRule_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsSubscriptionsLocationWithAutoDismissRule_example.json
new file mode 100644
index 000000000000..3b7698a86967
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/examples/Alerts/GetAlertsSubscriptionsLocationWithAutoDismissRule_example.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "ascLocation": "westeurope",
+ "autoDismissRuleName": "dismissThreatIntelligence"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/alerts/2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
+ "name": "2518770965529163669_F144EE95-A3E5-42DA-A279-967D115809AA",
+ "type": "Microsoft.Security/Locations/alerts",
+ "properties": {
+ "vendorName": "Microsoft",
+ "alertDisplayName": "Threat Intelligence Alert",
+ "alertName": "ThreatIntelligence",
+ "detectedTimeUtc": "2018-05-01T19:50:47.083633Z",
+ "description": "Process was detected running on the host and is considered to be suspicious, verify that the user run it",
+ "remediationSteps": "verify that the user invoked this process\r\nrun antimalware scan of the VM",
+ "actionTaken": "Detected",
+ "reportedSeverity": "High",
+ "compromisedEntity": "vm1",
+ "associatedResource": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "instanceId": "f144ee95-a3e5-42da-a279-967d115809aa",
+ "extendedProperties": {
+ "user Name": "administrator",
+ "domain Name": "Contoso",
+ "attacker IP": "192.0.2.1",
+ "resourceType": "Virtual Machine"
+ },
+ "state": "Dismissed",
+ "reportedTimeUtc": "2018-05-02T05:36:12.2089889Z",
+ "confidenceScore": 0.8,
+ "confidenceReasons": [
+ {
+ "type": "User",
+ "reason": "Some user reason"
+ },
+ {
+ "type": "Process",
+ "reason": "Some proccess reason"
+ },
+ {
+ "type": "Computer",
+ "reason": "Some computer reason"
+ }
+ ],
+ "canBeInvestigated": true,
+ "isIncident": false,
+ "entities": [
+ {
+ "address": "192.0.2.1",
+ "location": {
+ "countryCode": "gb",
+ "state": "wokingham",
+ "city": "sonning",
+ "longitude": -0.909,
+ "latitude": 51.468,
+ "asn": 6584
+ },
+ "threatIntelligence": [
+ {
+ "providerName": "Team Cymru",
+ "threatType": "C2",
+ "threatName": "rarog",
+ "confidence": 0.8,
+ "reportLink": "http://www.microsoft.com",
+ "threatDescription": "In bot armies, the controller is the server machine(s) that gives instructions to the controlled (zombied) hosts that connect to the command and control (C2) network. The controller host is usually running a botnet management application that is sending the commands to the zombied members of the bot army. These commands include, but are not limited to, the following: updating bitcoin wallet information, distributed denial-of-service (DDoS) target listings, updated C2 communication contact lists, and targeting data. C2 servers may be either directly controlled by the malware operators or run on hardware compromised by malware. There are multiple techniques for dynamically changing the control servers so that they are not isolated and brought down. Control servers utilize two general architectures: client-server and peer-to-peer. In a client-server model, all the hosts are controlled by a single server or a few control servers. In a peer-to-peer model, the infected hosts are both clients and servers, and they control other hosts so that instead of isolating the few control servers, all the hosts need to be removed."
+ }
+ ],
+ "type": "ip"
+ }
+ ],
+ "correlationKey": "Rkso6LFWxzCll5tqrk4hnrBJ+MY1BX806W6q6+0s9Jk="
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
index 347b29d179dd..8ff974f8c864 100644
--- a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
@@ -482,7 +482,6 @@
},
"required": [
"iotHubs",
- "workspace",
"displayName"
]
},
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/discoveredSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/discoveredSecuritySolutions.json
new file mode 100644
index 000000000000..ea7a8b9984c1
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/discoveredSecuritySolutions.json
@@ -0,0 +1,263 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Security Center",
+ "description": "API spec for Microsoft.Security (Azure Security Center) resource provider",
+ "version": "2020-01-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/discoveredSecuritySolutions": {
+ "get": {
+ "x-ms-examples": {
+ "Get discovered security solutions": {
+ "$ref": "./examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json"
+ }
+ },
+ "tags": [
+ "DiscoveredSecuritySolutions"
+ ],
+ "description": "Gets a list of discovered Security Solutions for the subscription.",
+ "operationId": "DiscoveredSecuritySolutions_List",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiscoveredSecuritySolutionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/discoveredSecuritySolutions": {
+ "get": {
+ "x-ms-examples": {
+ "Get discovered security solutions from a security data location": {
+ "$ref": "./examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json"
+ }
+ },
+ "tags": [
+ "DiscoveredSecuritySolutions"
+ ],
+ "description": "Gets a list of discovered Security Solutions for the subscription and location.",
+ "operationId": "DiscoveredSecuritySolutions_ListByHomeRegion",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/AscLocation"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiscoveredSecuritySolutionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/discoveredSecuritySolutions/{discoveredSecuritySolutionName}": {
+ "get": {
+ "x-ms-examples": {
+ "Get discovered security solution from a security data location": {
+ "$ref": "./examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json"
+ }
+ },
+ "tags": [
+ "DiscoveredSecuritySolutions"
+ ],
+ "description": "Gets a specific discovered Security Solution.",
+ "operationId": "DiscoveredSecuritySolutions_Get",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/AscLocation"
+ },
+ {
+ "$ref": "#/parameters/DiscoveredSecuritySolutionName"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/DiscoveredSecuritySolution"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "DiscoveredSecuritySolutionList": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DiscoveredSecuritySolution"
+ }
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URI to fetch the next page."
+ }
+ }
+ },
+ "DiscoveredSecuritySolution": {
+ "type": "object",
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/DiscoveredSecuritySolutionProperties"
+ }
+ },
+ "required": [
+ "properties"
+ ],
+ "allOf": [
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/Resource"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/Location"
+ }
+ ]
+ },
+ "DiscoveredSecuritySolutionProperties": {
+ "type": "object",
+ "properties": {
+ "securityFamily": {
+ "type": "string",
+ "description": "The security family of the discovered solution",
+ "enum": [
+ "Waf",
+ "Ngfw",
+ "SaasWaf",
+ "Va"
+ ],
+ "x-ms-enum": {
+ "name": "securityFamily",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Waf"
+ },
+ {
+ "value": "Ngfw"
+ },
+ {
+ "value": "SaasWaf"
+ },
+ {
+ "value": "Va"
+ }
+ ]
+ }
+ },
+ "offer": {
+ "type": "string",
+ "description": "The security solutions' image offer"
+ },
+ "publisher": {
+ "type": "string",
+ "description": "The security solutions' image publisher"
+ },
+ "sku": {
+ "type": "string",
+ "description": "The security solutions' image sku"
+ }
+ },
+ "required": [
+ "securityFamily",
+ "offer",
+ "publisher",
+ "sku"
+ ]
+ }
+ },
+ "parameters": {
+ "DiscoveredSecuritySolutionName": {
+ "name": "discoveredSecuritySolutionName",
+ "type": "string",
+ "in": "path",
+ "required": true,
+ "description": "Name of a discovered security solution.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json
new file mode 100644
index 000000000000..7fdd44705361
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "resourceGroupName": "myRg2",
+ "ascLocation": "centralus",
+ "discoveredSecuritySolutionName": "paloalto7"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "securityFamily": "Ngfw",
+ "offer": "vmseries1",
+ "publisher": "paloaltonetworks",
+ "sku": "byol"
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/paloalto7",
+ "name": "paloalto7",
+ "type": "Microsoft.Security/locations/discoveredSecuritySolutions",
+ "location": "eastus2"
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json
new file mode 100644
index 000000000000..dd0249b47d48
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "ascLocation": "centralus"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "securityFamily": "Ngfw",
+ "offer": "cisco-asav",
+ "publisher": "cisco",
+ "sku": "asav-azure-byol"
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/CP",
+ "name": "CP",
+ "type": "Microsoft.Security/locations/discoveredSecuritySolutions",
+ "location": "eastus"
+ },
+ {
+ "properties": {
+ "securityFamily": "Ngfw",
+ "offer": "vmseries1",
+ "publisher": "paloaltonetworks",
+ "sku": "byol"
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/paloalto7",
+ "name": "paloalto7",
+ "type": "Microsoft.Security/locations/discoveredSecuritySolutions",
+ "location": "eastus2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json
new file mode 100644
index 000000000000..d629d7ab5bfd
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "securityFamily": "Ngfw",
+ "offer": "cisco-asav",
+ "publisher": "cisco",
+ "sku": "asav-azure-byol"
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/CP",
+ "name": "CP",
+ "type": "Microsoft.Security/locations/discoveredSecuritySolutions",
+ "location": "eastus"
+ },
+ {
+ "properties": {
+ "securityFamily": "Ngfw",
+ "offer": "vmseries1",
+ "publisher": "paloaltonetworks",
+ "sku": "byol"
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/paloalto7",
+ "name": "paloalto7",
+ "type": "Microsoft.Security/locations/discoveredSecuritySolutions",
+ "location": "eastus2"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json
new file mode 100644
index 000000000000..063a365fcdf0
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "resourceGroupName": "defaultresourcegroup-eus",
+ "ascLocation": "centralus",
+ "externalSecuritySolutionsName": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "kind": "AAD",
+ "properties": {
+ "connectivityState": "Discovered",
+ "deviceVendor": "Microsoft",
+ "deviceType": "Azure Active Directory Identity Protection",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-eus/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus",
+ "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "eastus"
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json
new file mode 100644
index 000000000000..26626803e57d
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json
@@ -0,0 +1,123 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
+ "ascLocation": "centralus"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "kind": "AAD",
+ "properties": {
+ "connectivityState": "Discovered",
+ "deviceVendor": "Microsoft",
+ "deviceType": "Azure Active Directory Identity Protection",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-eus/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus",
+ "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "eastus"
+ },
+ {
+ "kind": "AAD",
+ "properties": {
+ "connectivityState": "Discovered",
+ "deviceVendor": "Microsoft",
+ "deviceType": "Azure Active Directory Identity Protection",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-weu/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-weu/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu",
+ "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westeurope"
+ },
+ {
+ "kind": "CEF",
+ "properties": {
+ "lastEventReceived": "2018-05-09T10:30:11.523Z",
+ "hostname": "barracuda",
+ "deviceVendor": "barracudanetworks",
+ "deviceType": "WAF",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_barracudanetworks_waf_barracuda",
+ "name": "cef_omsprd_barracudanetworks_waf_barracuda",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westcentralus"
+ },
+ {
+ "kind": "CEF",
+ "properties": {
+ "lastEventReceived": "2018-05-08T15:42:22.57Z",
+ "hostname": "demovm20",
+ "deviceVendor": "virtualHoneypot",
+ "deviceType": "Microsoft",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm20",
+ "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm20",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westcentralus"
+ },
+ {
+ "kind": "CEF",
+ "properties": {
+ "lastEventReceived": "2018-05-08T10:38:53.423Z",
+ "hostname": "demovm10",
+ "deviceVendor": "virtualHoneypot",
+ "deviceType": "Microsoft",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm10",
+ "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm10",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westcentralus"
+ },
+ {
+ "kind": "AAD",
+ "properties": {
+ "connectivityState": "Discovered",
+ "deviceVendor": "Microsoft",
+ "deviceType": "Azure Active Directory Identity Protection",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_omsprd",
+ "name": "aad_omsprd",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westcentralus"
+ },
+ {
+ "kind": "AAD",
+ "properties": {
+ "connectivityState": "Discovered",
+ "deviceVendor": "Microsoft",
+ "deviceType": "Azure Active Directory Identity Protection",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-ejp/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp",
+ "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "japaneast"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json
new file mode 100644
index 000000000000..90c72216fc02
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json
@@ -0,0 +1,122 @@
+{
+ "parameters": {
+ "api-version": "2020-01-01",
+ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "kind": "AAD",
+ "properties": {
+ "connectivityState": "Discovered",
+ "deviceVendor": "Microsoft",
+ "deviceType": "Azure Active Directory Identity Protection",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-eus/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus",
+ "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "eastus"
+ },
+ {
+ "kind": "AAD",
+ "properties": {
+ "connectivityState": "Discovered",
+ "deviceVendor": "Microsoft",
+ "deviceType": "Azure Active Directory Identity Protection",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-weu/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-weu/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu",
+ "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westeurope"
+ },
+ {
+ "kind": "CEF",
+ "properties": {
+ "lastEventReceived": "2018-05-09T10:30:11.523Z",
+ "hostname": "barracuda",
+ "deviceVendor": "barracudanetworks",
+ "deviceType": "WAF",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_barracudanetworks_waf_barracuda",
+ "name": "cef_omsprd_barracudanetworks_waf_barracuda",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westcentralus"
+ },
+ {
+ "kind": "CEF",
+ "properties": {
+ "lastEventReceived": "2018-05-08T15:42:22.57Z",
+ "hostname": "demovm20",
+ "deviceVendor": "virtualHoneypot",
+ "deviceType": "Microsoft",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm20",
+ "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm20",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westcentralus"
+ },
+ {
+ "kind": "CEF",
+ "properties": {
+ "lastEventReceived": "2018-05-08T10:38:53.423Z",
+ "hostname": "demovm10",
+ "deviceVendor": "virtualHoneypot",
+ "deviceType": "Microsoft",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm10",
+ "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm10",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westcentralus"
+ },
+ {
+ "kind": "AAD",
+ "properties": {
+ "connectivityState": "Discovered",
+ "deviceVendor": "Microsoft",
+ "deviceType": "Azure Active Directory Identity Protection",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_omsprd",
+ "name": "aad_omsprd",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "westcentralus"
+ },
+ {
+ "kind": "AAD",
+ "properties": {
+ "connectivityState": "Discovered",
+ "deviceVendor": "Microsoft",
+ "deviceType": "Azure Active Directory Identity Protection",
+ "workspace": {
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-ejp/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp"
+ }
+ },
+ "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp",
+ "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp",
+ "type": "Microsoft.Security/locations/externalSecuritySolutions",
+ "location": "japaneast"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
similarity index 96%
rename from specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
rename to specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
index 1bccb5ea5cce..eaed80294950 100644
--- a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json
@@ -1,6 +1,6 @@
{
"parameters": {
- "api-version": "2019-01-01-preview",
+ "api-version": "2020-01-01",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "rg1",
"resourceNamespace": "Microsoft.Compute",
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
similarity index 88%
rename from specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
rename to specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
index ebe431b2e5ae..b47510ee03bc 100644
--- a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json
@@ -1,6 +1,6 @@
{
"parameters": {
- "api-version": "2019-01-01-preview",
+ "api-version": "2020-01-01",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "rg1",
"resourceNamespace": "Microsoft.Compute",
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json
similarity index 94%
rename from specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json
rename to specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json
index aec69b3e88bf..59dddaa785dd 100644
--- a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json
@@ -1,6 +1,6 @@
{
"parameters": {
- "api-version": "2019-01-01-preview",
+ "api-version": "2020-01-01",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "rg1",
"resourceNamespace": "Microsoft.Compute",
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
similarity index 94%
rename from specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
rename to specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
index d96e15730233..cdf6cd825bdb 100644
--- a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json
@@ -1,6 +1,6 @@
{
"parameters": {
- "api-version": "2019-01-01-preview",
+ "api-version": "2020-01-01",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "rg1",
"resourceNamespace": "Microsoft.Compute",
diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/externalSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/externalSecuritySolutions.json
new file mode 100644
index 000000000000..3b8b3b072232
--- /dev/null
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/externalSecuritySolutions.json
@@ -0,0 +1,388 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Security Center",
+ "description": "API spec for Microsoft.Security (Azure Security Center) resource provider",
+ "version": "2020-01-01"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ],
+ "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": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/externalSecuritySolutions": {
+ "get": {
+ "x-ms-examples": {
+ "Get external security solutions on a subscription": {
+ "$ref": "./examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json"
+ }
+ },
+ "description": "Gets a list of external security solutions for the subscription.",
+ "tags": [
+ "ExternalSecuritySolutions"
+ ],
+ "operationId": "ExternalSecuritySolutions_List",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ExternalSecuritySolutionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/ExternalSecuritySolutions": {
+ "get": {
+ "x-ms-examples": {
+ "Get external security solutions on a subscription from security data location": {
+ "$ref": "./examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json"
+ }
+ },
+ "description": "Gets a list of external Security Solutions for the subscription and location.",
+ "tags": [
+ "ExternalSecuritySolutions"
+ ],
+ "operationId": "ExternalSecuritySolutions_ListByHomeRegion",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/AscLocation"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ExternalSecuritySolutionList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/ExternalSecuritySolutions/{externalSecuritySolutionsName}": {
+ "get": {
+ "x-ms-examples": {
+ "Get external security solution": {
+ "$ref": "./examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json"
+ }
+ },
+ "description": "Gets a specific external Security Solution.",
+ "tags": [
+ "ExternalSecuritySolutions"
+ ],
+ "operationId": "ExternalSecuritySolutions_Get",
+ "parameters": [
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/AscLocation"
+ },
+ {
+ "$ref": "#/parameters/ExternalSecuritySolutionsName"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/ExternalSecuritySolution"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "../../../common/v1/types.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ExternalSecuritySolutionList": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ExternalSecuritySolution"
+ }
+ },
+ "nextLink": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The URI to fetch the next page."
+ }
+ }
+ },
+ "ExternalSecuritySolution": {
+ "type": "object",
+ "description": "Represents a security solution external to Azure Security Center which sends information to an OMS workspace and whose data is displayed by Azure Security Center.",
+ "required": [
+ "kind"
+ ],
+ "discriminator": "kind",
+ "properties": {},
+ "allOf": [
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/Resource"
+ },
+ {
+ "$ref": "#/definitions/ExternalSecuritySolutionKind"
+ },
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/Location"
+ }
+ ]
+ },
+ "CefExternalSecuritySolution": {
+ "x-ms-discriminator-value": "CEF",
+ "type": "object",
+ "description": "Represents a security solution which sends CEF logs to an OMS workspace",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ExternalSecuritySolution"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/CefSolutionProperties"
+ }
+ }
+ },
+ "AtaExternalSecuritySolution": {
+ "x-ms-discriminator-value": "ATA",
+ "type": "object",
+ "description": "Represents an ATA security solution which sends logs to an OMS workspace",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ExternalSecuritySolution"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/AtaSolutionProperties"
+ }
+ }
+ },
+ "AadExternalSecuritySolution": {
+ "x-ms-discriminator-value": "AAD",
+ "type": "object",
+ "description": "Represents an AAD identity protection solution which sends logs to an OMS workspace.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ExternalSecuritySolution"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/AadSolutionProperties"
+ }
+ }
+ },
+ "ExternalSecuritySolutionKind": {
+ "type": "object",
+ "description": "Describes an Azure resource with kind",
+ "properties": {
+ "kind": {
+ "type": "string",
+ "description": "The kind of the external solution",
+ "enum": [
+ "CEF",
+ "ATA",
+ "AAD"
+ ],
+ "x-ms-enum": {
+ "name": "ExternalSecuritySolutionKind",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "CEF"
+ },
+ {
+ "value": "ATA"
+ },
+ {
+ "value": "AAD"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "ExternalSecuritySolutionProperties": {
+ "type": "object",
+ "description": "The solution properties (correspond to the solution kind)",
+ "additionalProperties": true,
+ "properties": {
+ "deviceVendor": {
+ "type": "string"
+ },
+ "deviceType": {
+ "type": "string"
+ },
+ "workspace": {
+ "$ref": "#/definitions/ConnectedWorkspace"
+ }
+ }
+ },
+ "ConnectedWorkspace": {
+ "type": "object",
+ "title": "Represents an OMS workspace to which the solution is connected",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Azure resource ID of the connected OMS workspace"
+ }
+ }
+ },
+ "AadConnectivityState": {
+ "type": "object",
+ "description": "Describes an Azure resource with kind",
+ "properties": {
+ "connectivityState": {
+ "type": "string",
+ "title": "The connectivity state of the external AAD solution ",
+ "enum": [
+ "Discovered",
+ "NotLicensed",
+ "Connected"
+ ],
+ "x-ms-enum": {
+ "name": "AadConnectivityState",
+ "modelAsString": true,
+ "values": [
+ {
+ "value": "Discovered"
+ },
+ {
+ "value": "NotLicensed"
+ },
+ {
+ "value": "Connected"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "AadSolutionProperties": {
+ "type": "object",
+ "title": "The external security solution properties for AAD solutions",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ExternalSecuritySolutionProperties"
+ },
+ {
+ "$ref": "#/definitions/AadConnectivityState"
+ }
+ ]
+ },
+ "CefSolutionProperties": {
+ "type": "object",
+ "title": "The external security solution properties for CEF solutions",
+ "properties": {
+ "hostname": {
+ "type": "string"
+ },
+ "agent": {
+ "type": "string"
+ },
+ "lastEventReceived": {
+ "type": "string"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ExternalSecuritySolutionProperties"
+ }
+ ]
+ },
+ "AtaSolutionProperties": {
+ "type": "object",
+ "title": "The external security solution properties for ATA solutions",
+ "properties": {
+ "lastEventReceived": {
+ "type": "string"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/ExternalSecuritySolutionProperties"
+ }
+ ]
+ }
+ },
+ "parameters": {
+ "ExternalSecuritySolutionsName": {
+ "name": "externalSecuritySolutionsName",
+ "in": "path",
+ "description": "Name of an external security solution.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/serverVulnerabilityAssessments.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/serverVulnerabilityAssessments.json
similarity index 99%
rename from specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/serverVulnerabilityAssessments.json
rename to specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/serverVulnerabilityAssessments.json
index 534a37477127..d21a7bca94c7 100644
--- a/specification/security/resource-manager/Microsoft.Security/preview/2019-01-01-preview/serverVulnerabilityAssessments.json
+++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/serverVulnerabilityAssessments.json
@@ -3,7 +3,7 @@
"info": {
"title": "Security Center",
"description": "API spec for Microsoft.Security (Azure Security Center) resource provider",
- "version": "2019-01-01-preview"
+ "version": "2020-01-01"
},
"host": "management.azure.com",
"schemes": [
diff --git a/specification/security/resource-manager/common/v1/types.json b/specification/security/resource-manager/common/v1/types.json
index 5996220fe2bc..1dd01005fbcc 100644
--- a/specification/security/resource-manager/common/v1/types.json
+++ b/specification/security/resource-manager/common/v1/types.json
@@ -241,6 +241,25 @@
"sourceComputerId",
"machineName"
]
+ },
+ "AzureResourceLinks": {
+ "description": "array of azure resource IDs",
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AzureResourceLink"
+ }
+ },
+ "AzureResourceLink": {
+ "type": "object",
+ "description": "Describes an Azure resource with kind",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Azure resource Id"
+ }
+ }
}
},
"parameters": {
diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md
index 701b7b442b90..982c3d005409 100644
--- a/specification/security/resource-manager/readme.md
+++ b/specification/security/resource-manager/readme.md
@@ -1,341 +1,362 @@
-# Security Center
-
-> see https://aka.ms/autorest
-
-This is the AutoRest configuration file for Security.
-
----
-
-## Getting Started
-
-To build the SDK for Security, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
-
-> `autorest`
-
-To see additional help and options, run:
-
-> `autorest --help`
-
----
-
-## Configuration
-
-## Suppression
-
-``` yaml
-directive:
- - suppress: ValidFormats
- from: securityContacts.json
- where: $.definitions.SecurityContactProperties.properties.email.format
- reason: email format is allowed
- - suppress: ValidFormats
- from: automations.json
- where: $.definitions.AutomationActionLogicApp.properties.uri.format
- reason: uri format is allowed
- - suppress: PageableOperation
- from: iotSecuritySolutionAnalytics.json
- where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels"].get'
- reason: The list returns limited number of items
-```
-
-### Basic Information
-
-These are the global settings for the Security API.
-
-``` yaml
-title: SecurityCenter
-description: API spec for Microsoft.Security (Azure Security Center) resource provider
-openapi-type: arm
-tag: package-composite-v3
-```
-
-## Composite packages
-
-The following packages may be composed from multiple api-versions.
-
-### Tag: package-composite-v1
-
-These settings apply only when `--tag=package-composite-v1` is specified on the command line.
-
-``` yaml $(tag) == 'package-composite-v1'
-input-file:
-- Microsoft.Security/preview/2019-01-01-preview/automations.json
-- Microsoft.Security/preview/2019-01-01-preview/subAssessments.json
-- Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json
-- Microsoft.Security/preview/2017-08-01-preview/pricings.json
-- Microsoft.Security/preview/2017-08-01-preview/securityContacts.json
-- Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json
-- Microsoft.Security/preview/2017-08-01-preview/autoProvisioningSettings.json
-- Microsoft.Security/preview/2017-08-01-preview/compliances.json
-- Microsoft.Security/preview/2017-08-01-preview/advancedThreatProtectionSettings.json
-- Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json
-- Microsoft.Security/preview/2017-08-01-preview/settings.json
-- Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json
-- Microsoft.Security/preview/2015-06-01-preview/operations.json
-- Microsoft.Security/preview/2015-06-01-preview/locations.json
-- Microsoft.Security/preview/2015-06-01-preview/tasks.json
-- Microsoft.Security/preview/2015-06-01-preview/alerts.json
-- Microsoft.Security/preview/2015-06-01-preview/discoveredSecuritySolutions.json
-- Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json
-- Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json
-- Microsoft.Security/preview/2015-06-01-preview/externalSecuritySolutions.json
-- Microsoft.Security/preview/2015-06-01-preview/topologies.json
-- Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json
-- Microsoft.Security/preview/2015-06-01-preview/adaptiveNetworkHardenings.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
-### Tag: package-composite-v2
-
-These settings apply only when `--tag=package-composite-v2` is specified on the command line.
-
-``` yaml $(tag) == 'package-composite-v2'
-input-file:
-- Microsoft.Security/preview/2019-01-01-preview/automations.json
-- Microsoft.Security/preview/2019-01-01-preview/subAssessments.json
-- Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json
-- Microsoft.Security/stable/2018-06-01/pricings.json
-- Microsoft.Security/preview/2017-08-01-preview/securityContacts.json
-- Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json
-- Microsoft.Security/preview/2017-08-01-preview/autoProvisioningSettings.json
-- Microsoft.Security/preview/2017-08-01-preview/compliances.json
-- Microsoft.Security/preview/2017-08-01-preview/advancedThreatProtectionSettings.json
-- Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json
-- Microsoft.Security/preview/2017-08-01-preview/settings.json
-- Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json
-- Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutions.json
-- Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutionAnalytics.json
-- Microsoft.Security/preview/2015-06-01-preview/operations.json
-- Microsoft.Security/preview/2015-06-01-preview/locations.json
-- Microsoft.Security/preview/2015-06-01-preview/tasks.json
-- Microsoft.Security/stable/2019-01-01/alerts.json
-- Microsoft.Security/preview/2015-06-01-preview/discoveredSecuritySolutions.json
-- Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json
-- Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json
-- Microsoft.Security/preview/2015-06-01-preview/externalSecuritySolutions.json
-- Microsoft.Security/preview/2015-06-01-preview/topologies.json
-- Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json
-- Microsoft.Security/preview/2015-06-01-preview/adaptiveNetworkHardenings.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
-### Tag: package-composite-v3
-
-These settings apply only when `--tag=package-composite-v3` is specified on the command line.
-
-``` yaml $(tag) == 'package-composite-v3'
-input-file:
-- Microsoft.Security/stable/2017-08-01/complianceResults.json
-- Microsoft.Security/stable/2018-06-01/pricings.json
-- Microsoft.Security/stable/2019-01-01/alerts.json
-- Microsoft.Security/stable/2019-01-01/settings.json
-- Microsoft.Security/stable/2019-01-01/advancedThreatProtectionSettings.json
-- Microsoft.Security/stable/2019-08-01/deviceSecurityGroups.json
-- Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
-- Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json
-- Microsoft.Security/preview/2015-06-01-preview/discoveredSecuritySolutions.json
-- Microsoft.Security/preview/2015-06-01-preview/externalSecuritySolutions.json
-- Microsoft.Security/preview/2015-06-01-preview/locations.json
-- Microsoft.Security/preview/2015-06-01-preview/operations.json
-- Microsoft.Security/preview/2015-06-01-preview/tasks.json
-- Microsoft.Security/preview/2017-08-01-preview/autoProvisioningSettings.json
-- Microsoft.Security/preview/2017-08-01-preview/compliances.json
-- Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json
-- Microsoft.Security/preview/2017-08-01-preview/securityContacts.json
-- Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json
-- Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json
-- Microsoft.Security/preview/2019-01-01-preview/serverVulnerabilityAssessments.json
-- Microsoft.Security/preview/2019-01-01-preview/subAssessments.json
-- Microsoft.Security/preview/2019-01-01-preview/automations.json
-- Microsoft.Security/stable/2020-01-01/assessmentMetadata.json
-- Microsoft.Security/stable/2020-01-01/assessments.json
-- Microsoft.Security/stable/2020-01-01/applicationWhitelistings.json
-- Microsoft.Security/stable/2020-01-01/adaptiveNetworkHardenings.json
-- Microsoft.Security/stable/2020-01-01/allowedConnections.json
-- Microsoft.Security/stable/2020-01-01/topologies.json
-- Microsoft.Security/stable/2020-01-01/jitNetworkAccessPolicies.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
-### Tag: package-2015-06-preview-only
-
-These settings apply only when `--tag=package-2015-06-preview-only` is specified on the command line.
-
-``` yaml $(tag) == 'package-2015-06-preview-only'
-input-file:
-- Microsoft.Security/preview/2015-06-01-preview/adaptiveNetworkHardenings.json
-- Microsoft.Security/preview/2015-06-01-preview/alerts.json
-- Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json
-- Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json
-- Microsoft.Security/preview/2015-06-01-preview/discoveredSecuritySolutions.json
-- Microsoft.Security/preview/2015-06-01-preview/externalSecuritySolutions.json
-- Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json
-- Microsoft.Security/preview/2015-06-01-preview/locations.json
-- Microsoft.Security/preview/2015-06-01-preview/operations.json
-- Microsoft.Security/preview/2015-06-01-preview/tasks.json
-- Microsoft.Security/preview/2015-06-01-preview/topologies.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
-### Tag: package-2017-08-preview-only
-
-These settings apply only when `--tag=package-2017-08-preview-only` is specified on the command line.
-
-``` yaml $(tag) == 'package-2017-08-preview-only'
-input-file:
-- Microsoft.Security/preview/2017-08-01-preview/advancedThreatProtectionSettings.json
-- Microsoft.Security/preview/2017-08-01-preview/autoProvisioningSettings.json
-- Microsoft.Security/preview/2017-08-01-preview/compliances.json
-- Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json
-- Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json
-- Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutionAnalytics.json
-- Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutions.json
-- Microsoft.Security/preview/2017-08-01-preview/pricings.json
-- Microsoft.Security/preview/2017-08-01-preview/securityContacts.json
-- Microsoft.Security/preview/2017-08-01-preview/settings.json
-- Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
-### Tag: package-2019-01-preview-only
-
-These settings apply only when `--tag=package-2019-01-preview-only` is specified on the command line.
-
-``` yaml $(tag) == 'package-2019-01-preview-only'
-input-file:
-- Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json
-- Microsoft.Security/preview/2019-01-01-preview/serverVulnerabilityAssessments.json
-- Microsoft.Security/preview/2019-01-01-preview/assessmentMetadata.json
-- Microsoft.Security/preview/2019-01-01-preview/assessments.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
-### Tag: package-2017-08-only
-
-These settings apply only when `--tag=package-2017-08-only` is specified on the command line.
-
-``` yaml $(tag) == 'package-2017-08-only'
-input-file:
-- Microsoft.Security/stable/2017-08-01/complianceResults.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
-### Tag: package-2018-06-only
-
-These settings apply only when `--tag=package-2018-06-only` is specified on the command line.
-
-``` yaml $(tag) == 'package-2018-06-only'
-input-file:
-- Microsoft.Security/stable/2018-06-01/pricings.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
-### Tag: package-2019-01-only
-
-These settings apply only when `--tag=package-2019-01-only` is specified on the command line.
-
-``` yaml $(tag) == 'package-2019-01-only'
-input-file:
-- Microsoft.Security/stable/2019-01-01/alerts.json
-- Microsoft.Security/stable/2019-01-01/settings.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
-### Tag: package-2019-08-only
-
-These settings apply only when `--tag=package-2019-08-only` is specified on the command line.
-
-``` yaml $(tag) == 'package-2019-08-only'
-input-file:
-- Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json
-- Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
-
-# Needed when there is more than one input file
-override-info:
- title: SecurityCenter
-```
-
----
-
-# Code Generation
-
-## Swagger to SDK
-
-This section describes what SDK should be generated by the automatic system.
-This is not used by Autorest itself.
-
-``` yaml $(swagger-to-sdk)
-swagger-to-sdk:
- - repo: azure-sdk-for-net
- - repo: azure-sdk-for-go
- - repo: azure-sdk-for-python
- - repo: azure-sdk-for-js
- - repo: azure-sdk-for-node
-```
-
-## C#
-
-See configuration in [readme.csharp.md](./readme.csharp.md)
-
-## Go
-
-See configuration in [readme.go.md](./readme.go.md)
-
-## Python
-
-See configuration in [readme.python.md](./readme.python.md)
-
-## Node.js
-
-See configuration in [readme.nodejs.md](./readme.nodejs.md)
-
-## TypeScript
-
-See configuration in [readme.typescript.md](./readme.typescript.md)
-
-## Ruby
-
-See configuration in [readme.ruby.md](./readme.ruby.md)
-
-## Multi-API/Profile support for AutoRest v3 generators
-
-AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
-
-This block is updated by an automatic script. Edits may be lost!
-
+# Security Center
+
+> see https://aka.ms/autorest
+
+This is the AutoRest configuration file for Security.
+
+---
+
+## Getting Started
+
+To build the SDK for Security, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
+
+> `autorest`
+
+To see additional help and options, run:
+
+> `autorest --help`
+
+---
+
+## Configuration
+
+## Suppression
+
+``` yaml
+directive:
+ - suppress: ValidFormats
+ from: securityContacts.json
+ where: $.definitions.SecurityContactProperties.properties.email.format
+ reason: email format is allowed
+ - suppress: ValidFormats
+ from: automations.json
+ where: $.definitions.AutomationActionLogicApp.properties.uri.format
+ reason: uri format is allowed
+ - suppress: PageableOperation
+ from: iotSecuritySolutionAnalytics.json
+ where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels"].get'
+ reason: The list returns limited number of items
+```
+
+### Basic Information
+
+These are the global settings for the Security API.
+
+``` yaml
+title: SecurityCenter
+description: API spec for Microsoft.Security (Azure Security Center) resource provider
+openapi-type: arm
+tag: package-composite-v3
+```
+
+## Composite packages
+
+The following packages may be composed from multiple api-versions.
+
+### Tag: package-composite-v1
+
+These settings apply only when `--tag=package-composite-v1` is specified on the command line.
+
+``` yaml $(tag) == 'package-composite-v1'
+input-file:
+- Microsoft.Security/preview/2020-01-01-preview/secureScore.json
+- Microsoft.Security/preview/2019-01-01-preview/automations.json
+- Microsoft.Security/preview/2019-01-01-preview/subAssessments.json
+- Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json
+- Microsoft.Security/preview/2017-08-01-preview/pricings.json
+- Microsoft.Security/preview/2017-08-01-preview/securityContacts.json
+- Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json
+- Microsoft.Security/preview/2017-08-01-preview/autoProvisioningSettings.json
+- Microsoft.Security/preview/2017-08-01-preview/compliances.json
+- Microsoft.Security/preview/2017-08-01-preview/advancedThreatProtectionSettings.json
+- Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json
+- Microsoft.Security/preview/2017-08-01-preview/settings.json
+- Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json
+- Microsoft.Security/preview/2015-06-01-preview/operations.json
+- Microsoft.Security/preview/2015-06-01-preview/locations.json
+- Microsoft.Security/preview/2015-06-01-preview/tasks.json
+- Microsoft.Security/preview/2015-06-01-preview/alerts.json
+- Microsoft.Security/preview/2015-06-01-preview/discoveredSecuritySolutions.json
+- Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json
+- Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json
+- Microsoft.Security/preview/2015-06-01-preview/externalSecuritySolutions.json
+- Microsoft.Security/preview/2015-06-01-preview/topologies.json
+- Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json
+- Microsoft.Security/preview/2015-06-01-preview/adaptiveNetworkHardenings.json
+- Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-composite-v2
+
+These settings apply only when `--tag=package-composite-v2` is specified on the command line.
+
+``` yaml $(tag) == 'package-composite-v2'
+input-file:
+- Microsoft.Security/preview/2020-01-01-preview/secureScore.json
+- Microsoft.Security/preview/2019-01-01-preview/automations.json
+- Microsoft.Security/preview/2019-01-01-preview/subAssessments.json
+- Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json
+- Microsoft.Security/stable/2018-06-01/pricings.json
+- Microsoft.Security/preview/2017-08-01-preview/securityContacts.json
+- Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json
+- Microsoft.Security/preview/2017-08-01-preview/autoProvisioningSettings.json
+- Microsoft.Security/preview/2017-08-01-preview/compliances.json
+- Microsoft.Security/preview/2017-08-01-preview/advancedThreatProtectionSettings.json
+- Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json
+- Microsoft.Security/preview/2017-08-01-preview/settings.json
+- Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json
+- Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutions.json
+- Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutionAnalytics.json
+- Microsoft.Security/preview/2015-06-01-preview/operations.json
+- Microsoft.Security/preview/2015-06-01-preview/locations.json
+- Microsoft.Security/preview/2015-06-01-preview/tasks.json
+- Microsoft.Security/stable/2019-01-01/alerts.json
+- Microsoft.Security/preview/2015-06-01-preview/discoveredSecuritySolutions.json
+- Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json
+- Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json
+- Microsoft.Security/preview/2015-06-01-preview/externalSecuritySolutions.json
+- Microsoft.Security/preview/2015-06-01-preview/topologies.json
+- Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json
+- Microsoft.Security/preview/2015-06-01-preview/adaptiveNetworkHardenings.json
+- Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-composite-v3
+
+These settings apply only when `--tag=package-composite-v3` is specified on the command line.
+
+``` yaml $(tag) == 'package-composite-v3'
+input-file:
+- Microsoft.Security/stable/2017-08-01/complianceResults.json
+- Microsoft.Security/stable/2018-06-01/pricings.json
+- Microsoft.Security/stable/2019-01-01/alerts.json
+- Microsoft.Security/stable/2019-01-01/settings.json
+- Microsoft.Security/stable/2019-01-01/advancedThreatProtectionSettings.json
+- Microsoft.Security/stable/2019-08-01/deviceSecurityGroups.json
+- Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
+- Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json
+- Microsoft.Security/preview/2015-06-01-preview/locations.json
+- Microsoft.Security/preview/2015-06-01-preview/operations.json
+- Microsoft.Security/preview/2015-06-01-preview/tasks.json
+- Microsoft.Security/preview/2017-08-01-preview/autoProvisioningSettings.json
+- Microsoft.Security/preview/2017-08-01-preview/compliances.json
+- Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json
+- Microsoft.Security/preview/2017-08-01-preview/securityContacts.json
+- Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json
+- Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json
+
+- Microsoft.Security/preview/2019-01-01-preview/subAssessments.json
+- Microsoft.Security/preview/2019-01-01-preview/automations.json
+- Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json
+- Microsoft.Security/stable/2020-01-01/serverVulnerabilityAssessments.json
+- Microsoft.Security/stable/2020-01-01/assessmentMetadata.json
+- Microsoft.Security/stable/2020-01-01/assessments.json
+- Microsoft.Security/stable/2020-01-01/applicationWhitelistings.json
+- Microsoft.Security/stable/2020-01-01/adaptiveNetworkHardenings.json
+- Microsoft.Security/stable/2020-01-01/allowedConnections.json
+- Microsoft.Security/stable/2020-01-01/topologies.json
+- Microsoft.Security/stable/2020-01-01/jitNetworkAccessPolicies.json
+- Microsoft.Security/stable/2020-01-01/discoveredSecuritySolutions.json
+- Microsoft.Security/stable/2020-01-01/externalSecuritySolutions.json
+- Microsoft.Security/preview/2020-01-01-preview/secureScore.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-2015-06-preview-only
+
+These settings apply only when `--tag=package-2015-06-preview-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2015-06-preview-only'
+input-file:
+- Microsoft.Security/preview/2015-06-01-preview/adaptiveNetworkHardenings.json
+- Microsoft.Security/preview/2015-06-01-preview/alerts.json
+- Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json
+- Microsoft.Security/preview/2015-06-01-preview/applicationWhitelistings.json
+- Microsoft.Security/preview/2015-06-01-preview/discoveredSecuritySolutions.json
+- Microsoft.Security/preview/2015-06-01-preview/externalSecuritySolutions.json
+- Microsoft.Security/preview/2015-06-01-preview/jitNetworkAccessPolicies.json
+- Microsoft.Security/preview/2015-06-01-preview/locations.json
+- Microsoft.Security/preview/2015-06-01-preview/operations.json
+- Microsoft.Security/preview/2015-06-01-preview/tasks.json
+- Microsoft.Security/preview/2015-06-01-preview/topologies.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-2017-08-preview-only
+
+These settings apply only when `--tag=package-2017-08-preview-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2017-08-preview-only'
+input-file:
+- Microsoft.Security/preview/2017-08-01-preview/advancedThreatProtectionSettings.json
+- Microsoft.Security/preview/2017-08-01-preview/autoProvisioningSettings.json
+- Microsoft.Security/preview/2017-08-01-preview/compliances.json
+- Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json
+- Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json
+- Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutionAnalytics.json
+- Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutions.json
+- Microsoft.Security/preview/2017-08-01-preview/pricings.json
+- Microsoft.Security/preview/2017-08-01-preview/securityContacts.json
+- Microsoft.Security/preview/2017-08-01-preview/settings.json
+- Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-2019-01-preview-only
+
+These settings apply only when `--tag=package-2019-01-preview-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2019-01-preview-only'
+input-file:
+- Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json
+- Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json
+- Microsoft.Security/preview/2019-01-01-preview/assessmentMetadata.json
+- Microsoft.Security/preview/2019-01-01-preview/assessments.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-2020-01-preview-only
+
+These settings apply only when `--tag=package-2020-01-preview-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-01-preview-only'
+input-file:
+- Microsoft.Security/preview/2020-01-01-preview/secureScore.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-2017-08-only
+
+These settings apply only when `--tag=package-2017-08-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2017-08-only'
+input-file:
+- Microsoft.Security/stable/2017-08-01/complianceResults.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-2018-06-only
+
+These settings apply only when `--tag=package-2018-06-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2018-06-only'
+input-file:
+- Microsoft.Security/stable/2018-06-01/pricings.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-2019-01-only
+
+These settings apply only when `--tag=package-2019-01-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2019-01-only'
+input-file:
+- Microsoft.Security/stable/2019-01-01/alerts.json
+- Microsoft.Security/stable/2019-01-01/settings.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+### Tag: package-2019-08-only
+
+These settings apply only when `--tag=package-2019-08-only` is specified on the command line.
+
+``` yaml $(tag) == 'package-2019-08-only'
+input-file:
+- Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json
+- Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
+
+# Needed when there is more than one input file
+override-info:
+ title: SecurityCenter
+```
+
+---
+
+# Code Generation
+
+## Swagger to SDK
+
+This section describes what SDK should be generated by the automatic system.
+This is not used by Autorest itself.
+
+``` yaml $(swagger-to-sdk)
+swagger-to-sdk:
+ - repo: azure-sdk-for-net
+ - repo: azure-sdk-for-go
+ - repo: azure-sdk-for-python
+ - repo: azure-sdk-for-js
+ - repo: azure-sdk-for-node
+```
+
+## C#
+
+See configuration in [readme.csharp.md](./readme.csharp.md)
+
+## Go
+
+See configuration in [readme.go.md](./readme.go.md)
+
+## Python
+
+See configuration in [readme.python.md](./readme.python.md)
+
+## Node.js
+
+See configuration in [readme.nodejs.md](./readme.nodejs.md)
+
+## TypeScript
+
+See configuration in [readme.typescript.md](./readme.typescript.md)
+
+## Ruby
+
+See configuration in [readme.ruby.md](./readme.ruby.md)
+
+## Multi-API/Profile support for AutoRest v3 generators
+
+AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
+
+This block is updated by an automatic script. Edits may be lost!
+
``` yaml $(tag) == 'all-api-versions' /* autogenerated */
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.Security/preview/2020-01-01-preview/secureScore.json
- $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/automations.json
- $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/subAssessments.json
- $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json
@@ -359,6 +380,7 @@ input-file:
- $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/topologies.json
- $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json
- $(this-folder)/Microsoft.Security/preview/2015-06-01-preview/adaptiveNetworkHardenings.json
+ - $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json
- $(this-folder)/Microsoft.Security/stable/2018-06-01/pricings.json
- $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutions.json
- $(this-folder)/Microsoft.Security/preview/2017-08-01-preview/iotSecuritySolutionAnalytics.json
@@ -369,7 +391,7 @@ input-file:
- $(this-folder)/Microsoft.Security/stable/2019-08-01/deviceSecurityGroups.json
- $(this-folder)/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json
- $(this-folder)/Microsoft.Security/stable/2019-08-01/iotSecuritySolutionAnalytics.json
- - $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/serverVulnerabilityAssessments.json
+ - $(this-folder)/Microsoft.Security/stable/2020-01-01/serverVulnerabilityAssessments.json
- $(this-folder)/Microsoft.Security/stable/2020-01-01/assessmentMetadata.json
- $(this-folder)/Microsoft.Security/stable/2020-01-01/assessments.json
- $(this-folder)/Microsoft.Security/stable/2020-01-01/applicationWhitelistings.json
@@ -377,15 +399,17 @@ input-file:
- $(this-folder)/Microsoft.Security/stable/2020-01-01/allowedConnections.json
- $(this-folder)/Microsoft.Security/stable/2020-01-01/topologies.json
- $(this-folder)/Microsoft.Security/stable/2020-01-01/jitNetworkAccessPolicies.json
+ - $(this-folder)/Microsoft.Security/stable/2020-01-01/discoveredSecuritySolutions.json
+ - $(this-folder)/Microsoft.Security/stable/2020-01-01/externalSecuritySolutions.json
- $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/assessmentMetadata.json
- $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/assessments.json
-```
-
-If there are files that should not be in the `all-api-versions` set,
-uncomment the `exclude-file` section below and add the file paths.
-
-``` yaml $(tag) == 'all-api-versions'
-#exclude-file:
-# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
+```
+
+If there are files that should not be in the `all-api-versions` set,
+uncomment the `exclude-file` section below and add the file paths.
+
+``` yaml $(tag) == 'all-api-versions'
+#exclude-file:
+# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
\ No newline at end of file
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json
index fd280dc50ef5..0bfdb0305304 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json
@@ -1427,7 +1427,7 @@
"200": {
"description": "OK",
"schema": {
- "$ref": "#/definitions/BookmarkRelationList"
+ "$ref": "#/definitions/RelationList"
}
},
"default": {
@@ -1437,7 +1437,7 @@
}
}
},
- "x-ms-odata": "#/definitions/BookmarkRelation",
+ "x-ms-odata": "#/definitions/Relation",
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
@@ -1533,7 +1533,7 @@
"200": {
"description": "OK",
"schema": {
- "$ref": "#/definitions/BookmarkRelation"
+ "$ref": "#/definitions/Relation"
}
},
"default": {
@@ -1578,20 +1578,20 @@
"$ref": "#/parameters/RelationName"
},
{
- "$ref": "#/parameters/RelationInputModel"
+ "$ref": "#/parameters/Relation"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
- "$ref": "#/definitions/BookmarkRelation"
+ "$ref": "#/definitions/Relation"
}
},
"201": {
"description": "Created",
"schema": {
- "$ref": "#/definitions/BookmarkRelation"
+ "$ref": "#/definitions/Relation"
}
},
"default": {
@@ -2391,14 +2391,56 @@
}
}
},
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings": {
"get": {
"x-ms-examples": {
- "Get UEBA settings.": {
- "$ref": "./examples/settings/GetUebaSettings.json"
+ "Get EyesOn settings.": {
+ "$ref": "./examples/settings/GetAllSettings.json"
+ }
+ },
+ "tags": [
+ "Settings"
+ ],
+ "description": "List of all the settings",
+ "operationId": "ProductSettings_GetAll",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersion"
},
- "Get Fusion settings.": {
- "$ref": "./examples/settings/GetFusionSettings.json"
+ {
+ "$ref": "#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/OperationalInsightsResourceProvider"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/SettingList"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}": {
+ "get": {
+ "x-ms-examples": {
+ "Get EyesOn settings.": {
+ "$ref": "./examples/settings/GetEyesOnSetting.json"
}
},
"tags": [
@@ -2441,16 +2483,62 @@
}
}
},
+ "delete": {
+ "x-ms-examples": {
+ "Delete EyesOn settings.": {
+ "$ref": "./examples/settings/DeleteEyesOnSetting.json"
+ }
+ },
+ "tags": [
+ "Settings"
+ ],
+ "description": "Delete setting of the product.",
+ "operationId": "ProductSettings_Delete",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersion"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionId"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "#/parameters/OperationalInsightsResourceProvider"
+ },
+ {
+ "$ref": "#/parameters/WorkspaceName"
+ },
+ {
+ "$ref": "#/parameters/SettingsName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ }
+ },
"put": {
"x-ms-examples": {
- "Update UEBA settings.": {
- "$ref": "./examples/settings/UpdateUebaSettings.json"
+ "Update EyesOn settings.": {
+ "$ref": "./examples/settings/UpdateEyesOnSetting.json"
}
},
"tags": [
"Settings"
],
- "description": "Updates the setting.",
+ "description": "Updates setting.",
"operationId": "ProductSettings_Update",
"parameters": [
{
@@ -4076,73 +4164,6 @@
"bookmarkId"
]
},
- "BookmarkRelationList": {
- "description": "List of bookmark relations.",
- "properties": {
- "nextLink": {
- "readOnly": true,
- "description": "URL to fetch the next set of relations.",
- "type": "string"
- },
- "value": {
- "description": "Array of relations.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/BookmarkRelation"
- }
- }
- },
- "required": [
- "value"
- ]
- },
- "BookmarkRelation": {
- "type": "object",
- "description": "Represents a bookmark relation",
- "allOf": [
- {
- "$ref": "#/definitions/RelationBase"
- }
- ],
- "properties": {
- "properties": {
- "x-ms-client-flatten": true,
- "description": "Bookmark relation properties",
- "$ref": "#/definitions/BookmarkRelationProperties"
- }
- }
- },
- "BookmarkRelationProperties": {
- "type": "object",
- "description": "Bookmark relation properties",
- "properties": {
- "relationName": {
- "type": "string",
- "description": "Name of relation"
- },
- "bookmarkId": {
- "type": "string",
- "description": "The case related bookmark id"
- },
- "caseIdentifier": {
- "type": "string",
- "description": "The case identifier"
- },
- "caseTitle": {
- "type": "string",
- "description": "The case title"
- },
- "caseSeverity": {
- "type": "string",
- "description": "The case severity"
- }
- },
- "required": [
- "relationName",
- "caseIdentifier",
- "bookmarkId"
- ]
- },
"RelationsModelInput": {
"type": "object",
"description": "Relation input model",
@@ -7142,6 +7163,7 @@
},
"relatedResourceName": {
"description": "The name of the related resource",
+ "readOnly": true,
"type": "string"
},
"relatedResourceType": {
@@ -7797,6 +7819,11 @@
"description": "The name of the vendor that raise the alert.",
"readOnly": true,
"type": "string"
+ },
+ "alertLink": {
+ "description": "The uri link of the alert.",
+ "readOnly": true,
+ "type": "string"
}
},
"type": "object"
@@ -7845,6 +7872,21 @@
},
"type": "object"
},
+ "SettingList": {
+ "description": "List of all the settings.",
+ "properties": {
+ "value": {
+ "description": "Array of settings.",
+ "items": {
+ "$ref": "#/definitions/Settings"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
"Settings": {
"allOf": [
{
@@ -7856,10 +7898,7 @@
],
"description": "The Setting.",
"discriminator": "kind",
- "type": "object",
- "required": [
- "kind"
- ]
+ "type": "object"
},
"SettingsKind": {
"description": "Describes an Azure resource with kind.",
@@ -7867,8 +7906,7 @@
"kind": {
"description": "The kind of the setting",
"enum": [
- "UebaSettings",
- "ToggleSettings"
+ "EyesOn"
],
"type": "string",
"x-ms-enum": {
@@ -8090,7 +8128,7 @@
},
"type": "object"
},
- "ToggleSettings": {
+ "EyesOn": {
"allOf": [
{
"$ref": "#/definitions/Settings"
@@ -8099,73 +8137,21 @@
"description": "Settings with single toggle.",
"properties": {
"properties": {
- "$ref": "#/definitions/ToggleSettingsProperties",
- "description": "toggle properties",
+ "$ref": "#/definitions/EyesOnSettingsProperties",
+ "description": "EyesOn properties",
"x-ms-client-flatten": true
}
},
"type": "object",
- "x-ms-discriminator-value": "ToggleSettings"
+ "x-ms-discriminator-value": "EyesOn"
},
- "ToggleSettingsProperties": {
- "description": "toggle property bag.",
+ "EyesOnSettingsProperties": {
+ "description": "EyesOn property bag.",
"properties": {
"isEnabled": {
"description": "Determines whether the setting is enable or disabled.",
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "UebaSettings": {
- "allOf": [
- {
- "$ref": "#/definitions/Settings"
- }
- ],
- "description": "Represents settings for User and Entity Behavior Analytics enablement.",
- "properties": {
- "properties": {
- "$ref": "#/definitions/UebaSettingsProperties",
- "description": "User and Entity Behavior Analytics settings properties",
- "x-ms-client-flatten": true
- }
- },
- "type": "object",
- "x-ms-discriminator-value": "UebaSettings"
- },
- "UebaSettingsProperties": {
- "description": "User and Entity Behavior Analytics settings property bag.",
- "properties": {
- "atpLicenseStatus": {
- "description": "Determines whether the tenant has ATP (Advanced Threat Protection) license.",
- "enum": [
- "Enabled",
- "Disabled"
- ],
"readOnly": true,
- "type": "string",
- "x-ms-enum": {
- "modelAsString": true,
- "name": "LicenseStatus"
- }
- },
- "isEnabled": {
- "description": "Determines whether User and Entity Behavior Analytics is enabled for this workspace.",
"type": "boolean"
- },
- "statusInMcas": {
- "description": "Determines whether User and Entity Behavior Analytics is enabled from MCAS (Microsoft Cloud App Security).",
- "enum": [
- "Enabled",
- "Disabled"
- ],
- "readOnly": true,
- "type": "string",
- "x-ms-enum": {
- "modelAsString": true,
- "name": "StatusInMcas"
- }
}
},
"type": "object"
@@ -8675,7 +8661,7 @@
"x-ms-parameter-location": "method"
},
"SettingsName": {
- "description": "The setting name. Supports- Fusion, UEBA",
+ "description": "The setting name. Supports- EyesOn",
"in": "path",
"name": "settingsName",
"required": true,
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/actions/CreateActionOfAlertRule.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/actions/CreateActionOfAlertRule.json
index b50eaeec2581..70983078afb8 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/actions/CreateActionOfAlertRule.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/actions/CreateActionOfAlertRule.json
@@ -8,9 +8,6 @@
"ruleId": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
"actionId": "912bec42-cb66-4c03-ac63-1761b6898c3e",
"action": {
- "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/73e01a99-5cd7-4139-a149-9f2736ff2ab5/actions/912bec42-cb66-4c03-ac63-1761b6898c3e",
- "name": "912bec42-cb66-4c03-ac63-1761b6898c3e",
- "type": "Microsoft.SecurityInsights/alertRules/actions",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"properties": {
"triggerUri": "https://prod-31.northcentralus.logic.azure.com:443/workflows/cd3765391efd48549fd7681ded1d48d7/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=signature",
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRules/CreateFusionAlertRule.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRules/CreateFusionAlertRule.json
index d3fc30ca7c5c..5e14cc180679 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRules/CreateFusionAlertRule.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/alertRules/CreateFusionAlertRule.json
@@ -10,7 +10,7 @@
"kind": "Fusion",
"etag": "3d00c3ca-0000-0100-0000-5d42d5010000",
"properties": {
- "enabled": "true",
+ "enabled": true,
"alertRuleTemplateName": "f71aba3d-28fb-450b-b192-4e76a83015c8"
}
}
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/CreateBookmark.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/CreateBookmark.json
index 13ff09f12a8f..af9c4dc03c91 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/CreateBookmark.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/CreateBookmark.json
@@ -7,21 +7,14 @@
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
"bookmarkId": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
"bookmark": {
- "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- "name": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- "type": "Microsoft.SecurityInsights/bookmarks",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"properties": {
"displayName": "My bookmark",
"createdBy": {
- "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
- "email": "john@contoso.com",
- "name": "john doe"
+ "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70"
},
"updatedBy": {
- "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
- "email": "john@contoso.com",
- "name": "john doe"
+ "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70"
},
"updated": "2019-01-01T13:15:30Z",
"created": "2019-01-01T13:15:30Z",
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
index 7f15971e4f2b..9c539588f1f8 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
@@ -7,16 +7,9 @@
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
"bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
"relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- "relationInputModel": {
+ "relation": {
"properties": {
- "sourceRelationNode": {
- "relationNodeId": "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "relationNodeKind": "Case"
- },
- "targetRelationNode": {
- "relationNodeId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
- "relationNodeKind": "Bookmark"
- }
+ "relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812"
}
}
},
@@ -26,14 +19,11 @@
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"type": "Microsoft.SecurityInsights/bookmarks/relations",
- "kind": "CasesToBookmarks",
"etag": "190057d0-0000-0d00-0000-5c6f5adb0000",
"properties": {
- "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
- "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "caseTitle": "Test case",
- "caseSeverity": "High"
+ "relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "relatedResourceName": "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "relatedResourceType": "Microsoft.SecurityInsights/incidents"
}
}
},
@@ -42,14 +32,11 @@
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"type": "Microsoft.SecurityInsights/bookmarks/relations",
- "kind": "CasesToBookmarks",
"etag": "190057d0-0000-0d00-0000-5c6f5adb0000",
"properties": {
- "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
- "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "caseTitle": "Test case",
- "caseSeverity": "High"
+ "relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "relatedResourceName": "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "relatedResourceType": "Microsoft.SecurityInsights/incidents"
}
}
}
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
index ebef2304130a..f9648d084a97 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
@@ -15,14 +15,11 @@
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"type": "Microsoft.SecurityInsights/bookmarks/relations",
- "kind": "CasesToBookmarks",
"etag": "190057d0-0000-0d00-0000-5c6f5adb0000",
"properties": {
- "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
- "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "caseTitle": "Test case",
- "caseSeverity": "High",
- "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014"
+ "relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "relatedResourceName": "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "relatedResourceType": "Microsoft.SecurityInsights/incidents"
}
}
]
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
index 2037ee51571e..f03b116a69f2 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
@@ -14,14 +14,11 @@
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"type": "Microsoft.SecurityInsights/bookmarks/relations",
- "kind": "CasesToBookmarks",
"etag": "190057d0-0000-0d00-0000-5c6f5adb0000",
"properties": {
- "bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
- "caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "caseTitle": "Test case",
- "caseSeverity": "High",
- "relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014"
+ "relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "relatedResourceName": "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "relatedResourceType": "Microsoft.SecurityInsights/incidents"
}
}
}
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/relations/CreateCaseRelation.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/relations/CreateCaseRelation.json
index 419bc9cee31f..ee9a7c92b6c6 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/relations/CreateCaseRelation.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/cases/relations/CreateCaseRelation.json
@@ -10,12 +10,10 @@
"relationInputModel": {
"properties": {
"sourceRelationNode": {
- "relationNodeId": "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "relationNodeKind": "Case"
+ "relationNodeId": "afbd324f-6c48-459c-8710-8d1e1cd03812"
},
"targetRelationNode": {
- "relationNodeId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
- "relationNodeKind": "Bookmark"
+ "relationNodeId": "2216d0e1-91e3-4902-89fd-d2df8c535096"
}
}
}
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
index efa14f9e4652..5a843a956be8 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
@@ -7,9 +7,6 @@
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
"dataConnectorId": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
"dataConnector": {
- "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- "name": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- "type": "Microsoft.SecurityInsights/dataConnectors",
"kind": "Office365",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"properties": {
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetSecurityAlertEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetSecurityAlertEntityById.json
index af742bb18b0a..640d2f28fa68 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetSecurityAlertEntityById.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetSecurityAlertEntityById.json
@@ -43,7 +43,8 @@
"Search Query Results Overall Count": "203",
"Total Account Entities": "1"
},
- "friendlyName": "Suspicious account detected"
+ "friendlyName": "Suspicious account detected",
+ "alertLink": "https://portal.azure.com/#blade/Microsoft_Azure_Security/AlertBlade/alertId/2518119885989999999_4aa486e0-6f85-41af-99ea-7acdce7be6c8/subscriptionId/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/myRg/myWorkspace/referencedFrom/alertDeepLink/location/centralus"
}
}
}
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/DeleteEyesOnSetting.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/DeleteEyesOnSetting.json
new file mode 100644
index 000000000000..1190612db5e6
--- /dev/null
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/DeleteEyesOnSetting.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01-preview",
+ "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
+ "resourceGroupName": "myRg",
+ "workspaceName": "myWorkspace",
+ "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights",
+ "settingsName": "EyesOn"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetAllSettings.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetAllSettings.json
new file mode 100644
index 000000000000..6bd881fec292
--- /dev/null
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetAllSettings.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "api-version": "2019-01-01-preview",
+ "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
+ "resourceGroupName": "myRg",
+ "workspaceName": "myWorkspace",
+ "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/bd794837-4d29-4647-9105-6339bfdb4e6a/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/avdvirInt/providers/Microsoft.SecurityInsights/settings/EyesOn",
+ "name": "EyesOn",
+ "type": "Microsoft.SecurityInsights/settings",
+ "kind": "EyesOn",
+ "properties": {
+ "isEnabled": true
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetFusionSettings.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetEyesOnSetting.json
similarity index 56%
rename from specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetFusionSettings.json
rename to specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetEyesOnSetting.json
index e3bea3867310..de6a916d486f 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetFusionSettings.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetEyesOnSetting.json
@@ -5,16 +5,15 @@
"resourceGroupName": "myRg",
"workspaceName": "myWorkspace",
"operationalInsightsResourceProvider": "Microsoft.OperationalIinsights",
- "settingsName": "Fusion"
+ "settingsName": "EyesOn"
},
"responses": {
"200": {
"body": {
- "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/settings/Fusion",
- "name": "Fusion",
+ "id": "/subscriptions/bd794837-4d29-4647-9105-6339bfdb4e6a/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/avdvirInt/providers/Microsoft.SecurityInsights/settings/EyesOn",
+ "name": "EyesOn",
"type": "Microsoft.SecurityInsights/settings",
- "kind": "ToggleSettings",
- "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
+ "kind": "EyesOn",
"properties": {
"isEnabled": true
}
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetUebaSettings.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/UpdateEyesOnSetting.json
similarity index 51%
rename from specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetUebaSettings.json
rename to specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/UpdateEyesOnSetting.json
index 615415059d28..6da0f3ed95de 100644
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/GetUebaSettings.json
+++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/UpdateEyesOnSetting.json
@@ -4,21 +4,24 @@
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
"resourceGroupName": "myRg",
"workspaceName": "myWorkspace",
- "operationalInsightsResourceProvider": "Microsoft.OperationalIinsights",
- "settingsName": "UEBA"
+ "operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
+ "settingsName": "EyesOn",
+ "settings": {
+ "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
+ "kind": "EyesOn",
+ "properties": {}
+ }
},
"responses": {
"200": {
"body": {
- "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/settings/UEBA",
- "name": "UEBA",
+ "id": "/subscriptions/bd794837-4d29-4647-9105-6339bfdb4e6a/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/avdvirInt/providers/Microsoft.SecurityInsights/settings/EyesOn",
+ "name": "EyesOn",
"type": "Microsoft.SecurityInsights/settings",
- "kind": "UebaSettings",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
+ "kind": "EyesOn",
"properties": {
- "isEnabled": true,
- "statusInMcas": "Enabled",
- "atpLicenseStatus": "Enabled"
+ "isEnabled": true
}
}
}
diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/UpdateUebaSettings.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/UpdateUebaSettings.json
deleted file mode 100644
index 59b8b92e4892..000000000000
--- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/settings/UpdateUebaSettings.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "parameters": {
- "api-version": "2019-01-01-preview",
- "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
- "resourceGroupName": "myRg",
- "workspaceName": "myWorkspace",
- "operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
- "settingsName": "UEBA",
- "settings": {
- "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/settings/UEBA",
- "name": "UEBA",
- "type": "Microsoft.SecurityInsights/settings",
- "kind": "UebaSettings",
- "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
- "properties": {
- "isEnabled": true,
- "statusInMcas": "Enabled",
- "atpLicenseStatus": "Enabled"
- }
- }
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/settings/UEBA",
- "name": "UEBA",
- "type": "Microsoft.SecurityInsights/settings",
- "kind": "UebaSettings",
- "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
- "properties": {
- "isEnabled": true,
- "statusInMcas": "Enabled",
- "atpLicenseStatus": "Enabled"
- }
- }
- }
- }
-}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2018-03-01-preview/examples/CreateOrUpdate.json b/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2018-03-01-preview/examples/CreateOrUpdate.json
index 2446709ef47b..3a92226cd0a1 100644
--- a/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2018-03-01-preview/examples/CreateOrUpdate.json
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2018-03-01-preview/examples/CreateOrUpdate.json
@@ -20,6 +20,32 @@
"resourceName": "mySignalRService"
},
"responses": {
+ "200": {
+ "body": {
+ "sku": {
+ "name": "Standard_S1",
+ "tier": "Standard",
+ "size": "S1",
+ "capacity": 1
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "externalIP": "10.0.0.1",
+ "hostName": "myservice.service.signalr.net",
+ "publicPort": 443,
+ "serverPort": 443,
+ "version": "1.0-preview",
+ "hostNamePrefix": null
+ },
+ "location": "eastus",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
+ "name": "mySignalRService",
+ "type": "Microsoft.SignalRService/SignalR"
+ }
+ },
"201": {
"body": {
"sku": {
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2018-03-01-preview/signalr.json b/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2018-03-01-preview/signalr.json
index 0a661c94b9f3..d8c5408c9640 100644
--- a/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2018-03-01-preview/signalr.json
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/preview/2018-03-01-preview/signalr.json
@@ -308,6 +308,12 @@
}
],
"responses": {
+ "200": {
+ "description": "Success. The response describes a SignalR service.",
+ "schema": {
+ "$ref": "#/definitions/SignalRResource"
+ }
+ },
"201": {
"description": "Created. The response describes the new service and contains a Location header to query the operation result.",
"schema": {
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/Operations_List.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/Operations_List.json
new file mode 100644
index 000000000000..d43346e00368
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/Operations_List.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.SignalRService/SignalR/read",
+ "isDataAction": false,
+ "display": {
+ "provider": "Microsoft.SignalRService",
+ "resource": "SignalR",
+ "operation": "Manage SignalR (read-only)",
+ "description": "View the SignalR's settings and configurations in the management portal or through API"
+ },
+ "properties": {}
+ }
+ ],
+ "nextLink": "providers/Microsoft.SignalRService?$skipToken={opaqueString}"
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Delete.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Delete.json
new file mode 100644
index 000000000000..f9c6b18ec351
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Delete.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService",
+ "privateEndpointConnectionName": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e"
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...",
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..."
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Get.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Get.json
new file mode 100644
index 000000000000..afdb580d1bba
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Get.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService",
+ "privateEndpointConnectionName": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": null,
+ "actionsRequired": "None"
+ }
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "type": "Microsoft.SignalRService/SignalR/privateEndpointConnections"
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Update.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Update.json
new file mode 100644
index 000000000000..1fa8b532aac5
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateEndpointConnections_Update.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "parameters": {
+ "properties": {
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": null,
+ "actionsRequired": "None"
+ }
+ }
+ },
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService",
+ "privateEndpointConnectionName": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": null,
+ "actionsRequired": "None"
+ }
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "type": "Microsoft.SignalRService/SignalR/privateEndpointConnections"
+ },
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...",
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateLinkResources_List.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateLinkResources_List.json
new file mode 100644
index 000000000000..90120de37bab
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalRPrivateLinkResources_List.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "groupId": "signalr",
+ "requiredMembers": [
+ "signalr"
+ ],
+ "requiredZoneNames": [
+ "privatelink.service.signalr.net"
+ ]
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/privateLinkResources",
+ "name": "signalr",
+ "type": "privateLinkResources"
+ }
+ ],
+ "nextLink": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToMoreResults..."
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_CheckNameAvailability.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_CheckNameAvailability.json
new file mode 100644
index 000000000000..a330b6b9ca3f
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_CheckNameAvailability.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "location": "eastus",
+ "parameters": {
+ "type": "Microsoft.SignalRService/SignalR",
+ "name": "my-signalr-service"
+ },
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": false,
+ "reason": "AlreadyExists",
+ "message": "The leaf is already used by other people"
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_CreateOrUpdate.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_CreateOrUpdate.json
new file mode 100644
index 000000000000..3eb1a78ba38b
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_CreateOrUpdate.json
@@ -0,0 +1,278 @@
+{
+ "parameters": {
+ "parameters": {
+ "sku": {
+ "name": "Standard_S1",
+ "tier": "Standard",
+ "capacity": 1
+ },
+ "properties": {
+ "hostNamePrefix": null,
+ "features": [
+ {
+ "flag": "ServiceMode",
+ "value": "Serverless",
+ "properties": {}
+ },
+ {
+ "flag": "EnableConnectivityLogs",
+ "value": "True",
+ "properties": {}
+ },
+ {
+ "flag": "EnableMessagingLogs",
+ "value": "False",
+ "properties": {}
+ }
+ ],
+ "cors": {
+ "allowedOrigins": [
+ "https://foo.com",
+ "https://bar.com"
+ ]
+ },
+ "upstream": {
+ "templates": [
+ {
+ "hubPattern": "*",
+ "eventPattern": "connect,disconnect",
+ "categoryPattern": "*",
+ "urlTemplate": "https://example.com/chat/api/connect"
+ }
+ ]
+ },
+ "networkACLs": {
+ "defaultAction": "Deny",
+ "publicNetwork": {
+ "allow": [
+ "ClientConnection"
+ ],
+ "deny": null
+ },
+ "privateEndpoints": [
+ {
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "allow": [
+ "ServerConnection"
+ ],
+ "deny": null
+ }
+ ]
+ }
+ },
+ "kind": "SignalR",
+ "location": "eastus",
+ "tags": {
+ "key1": "value1"
+ }
+ },
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sku": {
+ "name": "Standard_S1",
+ "tier": "Standard",
+ "size": "S1",
+ "capacity": 1
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "externalIP": "10.0.0.1",
+ "hostName": "mysignalrservice.service.signalr.net",
+ "publicPort": 443,
+ "serverPort": 443,
+ "version": "1.0",
+ "privateEndpointConnections": [
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": null,
+ "actionsRequired": "None"
+ }
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "type": "Microsoft.SignalRService/SignalR/privateEndpointConnections"
+ }
+ ],
+ "hostNamePrefix": "mysignalrservice",
+ "features": [
+ {
+ "flag": "ServiceMode",
+ "value": "Serverless",
+ "properties": {}
+ },
+ {
+ "flag": "EnableConnectivityLogs",
+ "value": "True",
+ "properties": {}
+ },
+ {
+ "flag": "EnableMessagingLogs",
+ "value": "False",
+ "properties": {}
+ }
+ ],
+ "cors": {
+ "allowedOrigins": [
+ "https://foo.com",
+ "https://bar.com"
+ ]
+ },
+ "upstream": {
+ "templates": [
+ {
+ "hubPattern": null,
+ "eventPattern": null,
+ "categoryPattern": null,
+ "urlTemplate": "http://foo.com"
+ }
+ ]
+ },
+ "networkACLs": {
+ "defaultAction": "Deny",
+ "publicNetwork": {
+ "allow": [
+ "ClientConnection"
+ ],
+ "deny": null
+ },
+ "privateEndpoints": [
+ {
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "allow": [
+ "ServerConnection"
+ ],
+ "deny": null
+ }
+ ]
+ }
+ },
+ "kind": "SignalR",
+ "location": "eastus",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
+ "name": "mySignalRService",
+ "type": "Microsoft.SignalRService/SignalR"
+ }
+ },
+ "201": {
+ "body": {
+ "sku": {
+ "name": "Standard_S1",
+ "tier": "Standard",
+ "size": "S1",
+ "capacity": 1
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "externalIP": "10.0.0.1",
+ "hostName": "mysignalrservice.service.signalr.net",
+ "publicPort": 443,
+ "serverPort": 443,
+ "version": "1.0",
+ "privateEndpointConnections": [
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": null,
+ "actionsRequired": "None"
+ }
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "type": "Microsoft.SignalRService/SignalR/privateEndpointConnections"
+ }
+ ],
+ "hostNamePrefix": "mysignalrservice",
+ "features": [
+ {
+ "flag": "ServiceMode",
+ "value": "Serverless",
+ "properties": {}
+ },
+ {
+ "flag": "EnableConnectivityLogs",
+ "value": "True",
+ "properties": {}
+ },
+ {
+ "flag": "EnableMessagingLogs",
+ "value": "False",
+ "properties": {}
+ }
+ ],
+ "cors": {
+ "allowedOrigins": [
+ "https://foo.com",
+ "https://bar.com"
+ ]
+ },
+ "upstream": {
+ "templates": [
+ {
+ "hubPattern": null,
+ "eventPattern": null,
+ "categoryPattern": null,
+ "urlTemplate": "http://foo.com"
+ }
+ ]
+ },
+ "networkACLs": {
+ "defaultAction": "Deny",
+ "publicNetwork": {
+ "allow": [
+ "ClientConnection"
+ ],
+ "deny": null
+ },
+ "privateEndpoints": [
+ {
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "allow": [
+ "ServerConnection"
+ ],
+ "deny": null
+ }
+ ]
+ }
+ },
+ "kind": "SignalR",
+ "location": "eastus",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
+ "name": "mySignalRService",
+ "type": "Microsoft.SignalRService/SignalR"
+ },
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...",
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..."
+ }
+ },
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...",
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Delete.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Delete.json
new file mode 100644
index 000000000000..d9e03852aebb
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Delete.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService"
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...",
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..."
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Get.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Get.json
new file mode 100644
index 000000000000..2c7bdf651621
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Get.json
@@ -0,0 +1,106 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sku": {
+ "name": "Standard_S1",
+ "tier": "Standard",
+ "size": "S1",
+ "capacity": 1
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "externalIP": "10.0.0.1",
+ "hostName": "mysignalrservice.service.signalr.net",
+ "publicPort": 443,
+ "serverPort": 443,
+ "version": "1.0",
+ "privateEndpointConnections": [
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": null,
+ "actionsRequired": "None"
+ }
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "type": "Microsoft.SignalRService/SignalR/privateEndpointConnections"
+ }
+ ],
+ "hostNamePrefix": "mysignalrservice",
+ "features": [
+ {
+ "flag": "ServiceMode",
+ "value": "Serverless",
+ "properties": {}
+ },
+ {
+ "flag": "EnableConnectivityLogs",
+ "value": "True",
+ "properties": {}
+ },
+ {
+ "flag": "EnableMessagingLogs",
+ "value": "False",
+ "properties": {}
+ }
+ ],
+ "cors": {
+ "allowedOrigins": [
+ "https://foo.com",
+ "https://bar.com"
+ ]
+ },
+ "upstream": {
+ "templates": [
+ {
+ "hubPattern": null,
+ "eventPattern": null,
+ "categoryPattern": null,
+ "urlTemplate": "http://foo.com"
+ }
+ ]
+ },
+ "networkACLs": {
+ "defaultAction": "Deny",
+ "publicNetwork": {
+ "allow": [
+ "ClientConnection"
+ ],
+ "deny": null
+ },
+ "privateEndpoints": [
+ {
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "allow": [
+ "ServerConnection"
+ ],
+ "deny": null
+ }
+ ]
+ }
+ },
+ "kind": "SignalR",
+ "location": "eastus",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
+ "name": "mySignalRService",
+ "type": "Microsoft.SignalRService/SignalR"
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListByResourceGroup.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListByResourceGroup.json
new file mode 100644
index 000000000000..f862bb2cfa40
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListByResourceGroup.json
@@ -0,0 +1,109 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "sku": {
+ "name": "Standard_S1",
+ "tier": "Standard",
+ "size": "S1",
+ "capacity": 1
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "externalIP": "10.0.0.1",
+ "hostName": "mysignalrservice.service.signalr.net",
+ "publicPort": 443,
+ "serverPort": 443,
+ "version": "1.0",
+ "privateEndpointConnections": [
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": null,
+ "actionsRequired": "None"
+ }
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "type": "Microsoft.SignalRService/SignalR/privateEndpointConnections"
+ }
+ ],
+ "hostNamePrefix": "mysignalrservice",
+ "features": [
+ {
+ "flag": "ServiceMode",
+ "value": "Serverless",
+ "properties": {}
+ },
+ {
+ "flag": "EnableConnectivityLogs",
+ "value": "True",
+ "properties": {}
+ },
+ {
+ "flag": "EnableMessagingLogs",
+ "value": "False",
+ "properties": {}
+ }
+ ],
+ "cors": {
+ "allowedOrigins": [
+ "https://foo.com",
+ "https://bar.com"
+ ]
+ },
+ "upstream": {
+ "templates": [
+ {
+ "hubPattern": null,
+ "eventPattern": null,
+ "categoryPattern": null,
+ "urlTemplate": "http://foo.com"
+ }
+ ]
+ },
+ "networkACLs": {
+ "defaultAction": "Deny",
+ "publicNetwork": {
+ "allow": [
+ "ClientConnection"
+ ],
+ "deny": null
+ },
+ "privateEndpoints": [
+ {
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "allow": [
+ "ServerConnection"
+ ],
+ "deny": null
+ }
+ ]
+ }
+ },
+ "kind": "SignalR",
+ "location": "eastus",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
+ "name": "mySignalRService",
+ "type": "Microsoft.SignalRService/SignalR"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListBySubscription.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListBySubscription.json
new file mode 100644
index 000000000000..1ed24a8269e7
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListBySubscription.json
@@ -0,0 +1,108 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "sku": {
+ "name": "Standard_S1",
+ "tier": "Standard",
+ "size": "S1",
+ "capacity": 1
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "externalIP": "10.0.0.1",
+ "hostName": "mysignalrservice.service.signalr.net",
+ "publicPort": 443,
+ "serverPort": 443,
+ "version": "1.0",
+ "privateEndpointConnections": [
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": null,
+ "actionsRequired": "None"
+ }
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "type": "Microsoft.SignalRService/SignalR/privateEndpointConnections"
+ }
+ ],
+ "hostNamePrefix": "mysignalrservice",
+ "features": [
+ {
+ "flag": "ServiceMode",
+ "value": "Serverless",
+ "properties": {}
+ },
+ {
+ "flag": "EnableConnectivityLogs",
+ "value": "True",
+ "properties": {}
+ },
+ {
+ "flag": "EnableMessagingLogs",
+ "value": "False",
+ "properties": {}
+ }
+ ],
+ "cors": {
+ "allowedOrigins": [
+ "https://foo.com",
+ "https://bar.com"
+ ]
+ },
+ "upstream": {
+ "templates": [
+ {
+ "hubPattern": null,
+ "eventPattern": null,
+ "categoryPattern": null,
+ "urlTemplate": "http://foo.com"
+ }
+ ]
+ },
+ "networkACLs": {
+ "defaultAction": "Deny",
+ "publicNetwork": {
+ "allow": [
+ "ClientConnection"
+ ],
+ "deny": null
+ },
+ "privateEndpoints": [
+ {
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "allow": [
+ "ServerConnection"
+ ],
+ "deny": null
+ }
+ ]
+ }
+ },
+ "kind": "SignalR",
+ "location": "eastus",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
+ "name": "mySignalRService",
+ "type": "Microsoft.SignalRService/SignalR"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListKeys.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListKeys.json
new file mode 100644
index 000000000000..8932231e33c4
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_ListKeys.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "primaryKey": "primaryAccessKey",
+ "secondaryKey": "secondaryAccessKey",
+ "primaryConnectionString": "Endpoint=https://yourServiceName.service.signalr.net;AccessKey=primaryAccessKey;Version=1.0",
+ "secondaryConnectionString": "Endpoint=https://yourServiceName.service.signalr.net;AccessKey=secondaryAccessKey;Version=1.0"
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_RegenerateKey.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_RegenerateKey.json
new file mode 100644
index 000000000000..0fb7ffb871bb
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_RegenerateKey.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "parameters": {
+ "keyType": "Primary"
+ },
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService"
+ },
+ "responses": {
+ "201": {
+ "body": {
+ "primaryKey": "primaryAccessKey",
+ "secondaryKey": "secondaryAccessKey",
+ "primaryConnectionString": "Endpoint=https://yourServiceName.service.signalr.net;AccessKey=primaryAccessKey;Version=1.0;",
+ "secondaryConnectionString": "Endpoint=https://yourServiceName.service.signalr.net;AccessKey=secondaryAccessKey;Version=1.0;"
+ },
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...",
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Restart.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Restart.json
new file mode 100644
index 000000000000..d9e03852aebb
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Restart.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService"
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...",
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..."
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Update.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Update.json
new file mode 100644
index 000000000000..29a1ef2fd73f
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/SignalR_Update.json
@@ -0,0 +1,178 @@
+{
+ "parameters": {
+ "parameters": {
+ "sku": {
+ "name": "Standard_S1",
+ "tier": "Standard",
+ "capacity": 1
+ },
+ "properties": {
+ "hostNamePrefix": null,
+ "features": [
+ {
+ "flag": "ServiceMode",
+ "value": "Serverless",
+ "properties": {}
+ },
+ {
+ "flag": "EnableConnectivityLogs",
+ "value": "True",
+ "properties": {}
+ },
+ {
+ "flag": "EnableMessagingLogs",
+ "value": "False",
+ "properties": {}
+ }
+ ],
+ "cors": {
+ "allowedOrigins": [
+ "https://foo.com",
+ "https://bar.com"
+ ]
+ },
+ "upstream": {
+ "templates": [
+ {
+ "hubPattern": "*",
+ "eventPattern": "connect,disconnect",
+ "categoryPattern": "*",
+ "urlTemplate": "https://example.com/chat/api/connect"
+ }
+ ]
+ },
+ "networkACLs": {
+ "defaultAction": "Deny",
+ "publicNetwork": {
+ "allow": [
+ "ClientConnection"
+ ],
+ "deny": null
+ },
+ "privateEndpoints": [
+ {
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "allow": [
+ "ServerConnection"
+ ],
+ "deny": null
+ }
+ ]
+ }
+ },
+ "kind": "SignalR",
+ "location": "eastus",
+ "tags": {
+ "key1": "value1"
+ }
+ },
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000",
+ "resourceGroupName": "myResourceGroup",
+ "resourceName": "mySignalRService"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "sku": {
+ "name": "Standard_S1",
+ "tier": "Standard",
+ "size": "S1",
+ "capacity": 1
+ },
+ "properties": {
+ "provisioningState": "Succeeded",
+ "externalIP": "10.0.0.1",
+ "hostName": "mysignalrservice.service.signalr.net",
+ "publicPort": 443,
+ "serverPort": 443,
+ "version": "1.0",
+ "privateEndpointConnections": [
+ {
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": null,
+ "actionsRequired": "None"
+ }
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "type": "Microsoft.SignalRService/SignalR/privateEndpointConnections"
+ }
+ ],
+ "hostNamePrefix": "mysignalrservice",
+ "features": [
+ {
+ "flag": "ServiceMode",
+ "value": "Serverless",
+ "properties": {}
+ },
+ {
+ "flag": "EnableConnectivityLogs",
+ "value": "True",
+ "properties": {}
+ },
+ {
+ "flag": "EnableMessagingLogs",
+ "value": "False",
+ "properties": {}
+ }
+ ],
+ "cors": {
+ "allowedOrigins": [
+ "https://foo.com",
+ "https://bar.com"
+ ]
+ },
+ "upstream": {
+ "templates": [
+ {
+ "hubPattern": null,
+ "eventPattern": null,
+ "categoryPattern": null,
+ "urlTemplate": "http://foo.com"
+ }
+ ]
+ },
+ "networkACLs": {
+ "defaultAction": "Deny",
+ "publicNetwork": {
+ "allow": [
+ "ClientConnection"
+ ],
+ "deny": null
+ },
+ "privateEndpoints": [
+ {
+ "name": "mySignalRService.1fa229cd-bf3f-47f0-8c49-afb36723997e",
+ "allow": [
+ "ServerConnection"
+ ],
+ "deny": null
+ }
+ ]
+ }
+ },
+ "kind": "SignalR",
+ "location": "eastus",
+ "tags": {
+ "key1": "value1"
+ },
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
+ "name": "mySignalRService",
+ "type": "Microsoft.SignalRService/SignalR"
+ }
+ },
+ "202": {
+ "headers": {
+ "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...",
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..."
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/Usages_List.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/Usages_List.json
new file mode 100644
index 000000000000..ae2279860df6
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/examples/Usages_List.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "location": "eastus",
+ "api-version": "2020-05-01",
+ "subscriptionId": "00000000-0000-0000-0000-000000000000"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SignalRService/locations/eastus/usages/Usage1",
+ "currentValue": 0,
+ "limit": 100,
+ "name": {
+ "value": "Usage1",
+ "localizedValue": "Usage1"
+ },
+ "unit": "Count"
+ },
+ {
+ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SignalRService/locations/eastus/usages/Usage2",
+ "currentValue": 0,
+ "limit": 100,
+ "name": {
+ "value": "Usage2",
+ "localizedValue": "Usage2"
+ },
+ "unit": "Count"
+ }
+ ],
+ "nextLink": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToMoreResults..."
+ }
+ }
+ }
+}
diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/signalr.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/signalr.json
new file mode 100644
index 000000000000..844d2f52801c
--- /dev/null
+++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2020-05-01/signalr.json
@@ -0,0 +1,1741 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2020-05-01",
+ "title": "SignalRManagementClient",
+ "description": "REST API for Azure SignalR Service"
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/providers/Microsoft.SignalRService/operations": {
+ "get": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Lists all of the available REST API operations of the Microsoft.SignalRService provider.",
+ "operationId": "Operations_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes the list of operations.",
+ "schema": {
+ "$ref": "#/definitions/OperationList"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Operations_List": {
+ "$ref": "./examples/Operations_List.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability": {
+ "post": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Checks that the SignalR name is valid and is not already in use.",
+ "operationId": "SignalR_CheckNameAvailability",
+ "parameters": [
+ {
+ "name": "location",
+ "in": "path",
+ "description": "the region",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Parameters supplied to the operation.",
+ "required": false,
+ "schema": {
+ "$ref": "#/definitions/NameAvailabilityParameters"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes the name availability.",
+ "schema": {
+ "$ref": "#/definitions/NameAvailability"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "SignalR_CheckNameAvailability": {
+ "$ref": "./examples/SignalR_CheckNameAvailability.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/signalR": {
+ "get": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Handles requests to list all resources in a subscription.",
+ "operationId": "SignalR_ListBySubscription",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes the list of SignalR services in the subscription.",
+ "schema": {
+ "$ref": "#/definitions/SignalRResourceList"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "SignalR_ListBySubscription": {
+ "$ref": "./examples/SignalR_ListBySubscription.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR": {
+ "get": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Handles requests to list all resources in a resource group.",
+ "operationId": "SignalR_ListByResourceGroup",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes the list of SignalR services in a resourceGroup.",
+ "schema": {
+ "$ref": "#/definitions/SignalRResourceList"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "SignalR_ListByResourceGroup": {
+ "$ref": "./examples/SignalR_ListByResourceGroup.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}": {
+ "get": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Get the specified private endpoint connection associated with a SignalR resource.",
+ "operationId": "SignalRPrivateEndpointConnections_Get",
+ "parameters": [
+ {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "description": "The name of the private endpoint connection associated with the SignalR resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes a list of private link resources.",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "SignalRPrivateEndpointConnections_Get": {
+ "$ref": "./examples/SignalRPrivateEndpointConnections_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Update the state of specified private endpoint connection associated with a SignalR resource.",
+ "operationId": "SignalRPrivateEndpointConnections_Update",
+ "parameters": [
+ {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "description": "The name of the private endpoint connection associated with the SignalR resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The resource of private endpoint and its properties.",
+ "required": false,
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK. The response indicates the private endpoint connection is updated successfully.",
+ "schema": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "SignalRPrivateEndpointConnections_Update": {
+ "$ref": "./examples/SignalRPrivateEndpointConnections_Update.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Delete the specified private endpoint connection associated with a SignalR resource.",
+ "operationId": "SignalRPrivateEndpointConnections_Delete",
+ "parameters": [
+ {
+ "name": "privateEndpointConnectionName",
+ "in": "path",
+ "description": "The name of the private endpoint connection associated with the SignalR resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Success"
+ },
+ "204": {
+ "description": "Success. The response indicates the private endpoint connection is already deleted."
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "SignalRPrivateEndpointConnections_Delete": {
+ "$ref": "./examples/SignalRPrivateEndpointConnections_Delete.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateLinkResources": {
+ "get": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Get the private link resources that need to be created for a SignalR resource.",
+ "operationId": "SignalRPrivateLinkResources_List",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes a list of private link resources.",
+ "schema": {
+ "$ref": "#/definitions/PrivateLinkResourceList"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "SignalRPrivateLinkResources_List": {
+ "$ref": "./examples/SignalRPrivateLinkResources_List.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys": {
+ "post": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Get the access keys of the SignalR resource.",
+ "operationId": "SignalR_ListKeys",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes SignalR service access keys.",
+ "schema": {
+ "$ref": "#/definitions/SignalRKeys"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "SignalR_ListKeys": {
+ "$ref": "./examples/SignalR_ListKeys.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey": {
+ "post": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.",
+ "operationId": "SignalR_RegenerateKey",
+ "parameters": [
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Parameter that describes the Regenerate Key Operation.",
+ "required": false,
+ "schema": {
+ "$ref": "#/definitions/RegenerateKeyParameters"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created and an async operation is executing in background to make the new key to take effect. The response contains new keys and a Location header to query the async operation result.",
+ "schema": {
+ "$ref": "#/definitions/SignalRKeys"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "x-ms-examples": {
+ "SignalR_RegenerateKey": {
+ "$ref": "./examples/SignalR_RegenerateKey.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}": {
+ "get": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Get the SignalR service and its properties.",
+ "operationId": "SignalR_Get",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes the corresponding SignalR service.",
+ "schema": {
+ "$ref": "#/definitions/SignalRResource"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "SignalR_Get": {
+ "$ref": "./examples/SignalR_Get.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Create a new SignalR service and update an exiting SignalR service.",
+ "operationId": "SignalR_CreateOrUpdate",
+ "parameters": [
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Parameters for the create or update operation",
+ "required": false,
+ "schema": {
+ "$ref": "#/definitions/SignalRResource"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes a SignalR service.",
+ "schema": {
+ "$ref": "#/definitions/SignalRResource"
+ }
+ },
+ "201": {
+ "description": "Created. The response describes the new service and contains a Location header to query the operation result.",
+ "schema": {
+ "$ref": "#/definitions/SignalRResource"
+ }
+ },
+ "202": {
+ "description": "Accepted. The response indicates the exiting SignalR service is now updating and contains a Location header to query the operation result.."
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "SignalR_CreateOrUpdate": {
+ "$ref": "./examples/SignalR_CreateOrUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Operation to delete a SignalR service.",
+ "operationId": "SignalR_Delete",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted. The response indicates the delete operation is performed in the background."
+ },
+ "204": {
+ "description": "Success. The response indicates the resource is already deleted."
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "SignalR_Delete": {
+ "$ref": "./examples/SignalR_Delete.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Operation to update an exiting SignalR service.",
+ "operationId": "SignalR_Update",
+ "parameters": [
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Parameters for the update operation",
+ "required": false,
+ "schema": {
+ "$ref": "#/definitions/SignalRResource"
+ }
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describes a SignalR service.",
+ "schema": {
+ "$ref": "#/definitions/SignalRResource"
+ }
+ },
+ "202": {
+ "description": "Accepted. The response indicates the exiting SignalR service is now updating and contains a Location header to query the operation result.."
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "SignalR_Update": {
+ "$ref": "./examples/SignalR_Update.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart": {
+ "post": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "Operation to restart a SignalR service.",
+ "operationId": "SignalR_Restart",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/SignalRServiceName"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted. The response indicates the restart operation is performed in the background."
+ },
+ "204": {
+ "description": "Success. The response indicates the operation is successful and no content will be returned."
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-long-running-operation-options": {
+ "final-state-via": "azure-async-operation"
+ },
+ "x-ms-examples": {
+ "SignalR_Restart": {
+ "$ref": "./examples/SignalR_Restart.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages": {
+ "get": {
+ "tags": [
+ "SignalR"
+ ],
+ "description": "List usage quotas for Azure SignalR service by location.",
+ "operationId": "Usages_List",
+ "parameters": [
+ {
+ "name": "location",
+ "in": "path",
+ "description": "the location like \"eastus\"",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success. The response describe the usage quotas of a subscription in specified region.",
+ "schema": {
+ "$ref": "#/definitions/SignalRUsageList"
+ }
+ },
+ "default": {
+ "description": "An unexpected error occurred during the operation.",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Usages_List": {
+ "$ref": "./examples/Usages_List.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "OperationList": {
+ "description": "Result of the request to list REST API operations. It contains a list of operations.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "List of operations supported by the resource provider.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Operation"
+ }
+ },
+ "nextLink": {
+ "description": "The URL the client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.",
+ "type": "string"
+ }
+ }
+ },
+ "Operation": {
+ "description": "REST API operation supported by SignalR resource provider.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the operation with format: {provider}/{resource}/{operation}",
+ "type": "string"
+ },
+ "isDataAction": {
+ "description": "If the operation is a data action. (for data plane rbac)",
+ "type": "boolean"
+ },
+ "display": {
+ "$ref": "#/definitions/OperationDisplay",
+ "description": "The object that describes the operation."
+ },
+ "origin": {
+ "description": "Optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX.",
+ "type": "string"
+ },
+ "properties": {
+ "$ref": "#/definitions/OperationProperties",
+ "description": "Extra properties for the operation.",
+ "x-ms-client-flatten": false
+ }
+ }
+ },
+ "OperationDisplay": {
+ "description": "The object that describes a operation.",
+ "type": "object",
+ "properties": {
+ "provider": {
+ "description": "Friendly name of the resource provider",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Resource type on which the operation is performed.",
+ "type": "string"
+ },
+ "operation": {
+ "description": "The localized friendly name for the operation.",
+ "type": "string"
+ },
+ "description": {
+ "description": "The localized friendly description for the operation",
+ "type": "string"
+ }
+ }
+ },
+ "OperationProperties": {
+ "description": "Extra Operation properties.",
+ "type": "object",
+ "properties": {
+ "serviceSpecification": {
+ "$ref": "#/definitions/ServiceSpecification",
+ "description": "The service specifications."
+ }
+ }
+ },
+ "ServiceSpecification": {
+ "description": "An object that describes a specification.",
+ "type": "object",
+ "properties": {
+ "metricSpecifications": {
+ "description": "Specifications of the Metrics for Azure Monitoring.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MetricSpecification"
+ }
+ },
+ "logSpecifications": {
+ "description": "Specifications of the Logs for Azure Monitoring.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/LogSpecification"
+ }
+ }
+ }
+ },
+ "MetricSpecification": {
+ "description": "Specifications of the Metrics for Azure Monitoring.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the metric.",
+ "type": "string"
+ },
+ "displayName": {
+ "description": "Localized friendly display name of the metric.",
+ "type": "string"
+ },
+ "displayDescription": {
+ "description": "Localized friendly description of the metric.",
+ "type": "string"
+ },
+ "unit": {
+ "description": "The unit that makes sense for the metric.",
+ "type": "string"
+ },
+ "aggregationType": {
+ "description": "Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.",
+ "type": "string"
+ },
+ "fillGapWithZero": {
+ "description": "Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. \r\nEx. a metric that returns the number of times a particular error code was emitted. The error code may not appear \r\noften, instead of the RP publishing 0, Shoebox can auto fill in 0s for time periods where nothing was emitted.",
+ "type": "string"
+ },
+ "category": {
+ "description": "The name of the metric category that the metric belongs to. A metric can only belong to a single category.",
+ "type": "string"
+ },
+ "dimensions": {
+ "description": "The dimensions of the metrics.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Dimension"
+ }
+ }
+ }
+ },
+ "LogSpecification": {
+ "description": "Specifications of the Logs for Azure Monitoring.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Name of the log.",
+ "type": "string"
+ },
+ "displayName": {
+ "description": "Localized friendly display name of the log.",
+ "type": "string"
+ }
+ }
+ },
+ "Dimension": {
+ "description": "Specifications of the Dimension of metrics.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The public facing name of the dimension.",
+ "type": "string"
+ },
+ "displayName": {
+ "description": "Localized friendly display name of the dimension.",
+ "type": "string"
+ },
+ "internalName": {
+ "description": "Name of the dimension as it appears in MDM.",
+ "type": "string"
+ },
+ "toBeExportedForShoebox": {
+ "description": "A Boolean flag indicating whether this dimension should be included for the shoebox export scenario.",
+ "type": "boolean"
+ }
+ }
+ },
+ "ErrorResponse": {
+ "description": "Contains information about an API error.",
+ "type": "object",
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/ErrorResponseBody",
+ "description": "Describes a particular API error with an error code and a message."
+ }
+ }
+ },
+ "ErrorResponseBody": {
+ "description": "Describes a particular API error with an error code and a message.",
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "An error code that describes the error condition more precisely than an HTTP status code. \r\nCan be used to programmatically handle specific error cases.",
+ "type": "string"
+ },
+ "message": {
+ "description": "A message that describes the error in detail and provides debugging information.",
+ "type": "string"
+ },
+ "target": {
+ "description": "The target of the particular error (for example, the name of the property in error).",
+ "type": "string"
+ },
+ "details": {
+ "description": "Contains nested errors that are related to this error.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ErrorResponseBody"
+ }
+ }
+ }
+ },
+ "NameAvailabilityParameters": {
+ "description": "Data POST-ed to the nameAvailability action",
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "type": {
+ "description": "The resource type. Should be always \"Microsoft.SignalRService/SignalR\".",
+ "type": "string"
+ },
+ "name": {
+ "description": "The SignalR service name to validate. e.g.\"my-signalR-name-here\"",
+ "type": "string"
+ }
+ }
+ },
+ "NameAvailability": {
+ "description": "Result of the request to check name availability. It contains a flag and possible reason of failure.",
+ "type": "object",
+ "properties": {
+ "nameAvailable": {
+ "description": "Indicates whether the name is available or not.",
+ "type": "boolean"
+ },
+ "reason": {
+ "description": "The reason of the availability. Required if name is not available.",
+ "type": "string"
+ },
+ "message": {
+ "description": "The message of the operation.",
+ "type": "string"
+ }
+ }
+ },
+ "SignalRResourceList": {
+ "description": "Object that includes an array of SignalR services and a possible link for next set.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "List of SignalR services",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SignalRResource"
+ }
+ },
+ "nextLink": {
+ "description": "The URL the client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.",
+ "type": "string"
+ }
+ }
+ },
+ "SignalRResource": {
+ "description": "A class represent a SignalR service resource.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "sku": {
+ "$ref": "#/definitions/ResourceSku",
+ "description": "The billing information of the resource.(e.g. Free, Standard)"
+ },
+ "properties": {
+ "$ref": "#/definitions/SignalRProperties",
+ "description": "Settings used to provision or configure the resource",
+ "x-ms-client-flatten": true
+ },
+ "kind": {
+ "$ref": "#/definitions/ServiceKind",
+ "description": "The kind of the service - e.g. \"SignalR\", or \"RawWebSockets\" for \"Microsoft.SignalRService/SignalR\"",
+ "x-ms-mutability": [
+ "read",
+ "create"
+ ]
+ }
+ }
+ },
+ "ServiceKind": {
+ "description": "The kind of the service - e.g. \"SignalR\", or \"RawWebSockets\" for \"Microsoft.SignalRService/SignalR\"",
+ "enum": [
+ "SignalR",
+ "RawWebSockets"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ServiceKind",
+ "modelAsString": true
+ }
+ },
+ "TrackedResource": {
+ "description": "The resource model definition for a ARM tracked top level resource.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {
+ "location": {
+ "description": "The GEO location of the SignalR service. e.g. West US | East US | North Central US | South Central US.",
+ "type": "string",
+ "x-ms-mutability": [
+ "read",
+ "create"
+ ]
+ },
+ "tags": {
+ "description": "Tags of the service which is a list of key value pairs that describe the resource.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "Resource": {
+ "description": "The core properties of ARM resources.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Fully qualified resource Id for the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "name": {
+ "description": "The name of the resource.",
+ "type": "string",
+ "readOnly": true
+ },
+ "type": {
+ "description": "The type of the resource - e.g. \"Microsoft.SignalRService/SignalR\"",
+ "type": "string",
+ "readOnly": true
+ }
+ },
+ "x-ms-azure-resource": true
+ },
+ "ResourceSku": {
+ "description": "The billing information of the SignalR resource.",
+ "required": [
+ "name"
+ ],
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The name of the SKU. Required.\r\n\r\nAllowed values: Standard_S1, Free_F1",
+ "type": "string"
+ },
+ "tier": {
+ "$ref": "#/definitions/SignalRSkuTier",
+ "description": "Optional tier of this particular SKU. 'Standard' or 'Free'. \r\n\r\n`Basic` is deprecated, use `Standard` instead."
+ },
+ "size": {
+ "description": "Optional string. For future use.",
+ "type": "string"
+ },
+ "family": {
+ "description": "Optional string. For future use.",
+ "type": "string"
+ },
+ "capacity": {
+ "format": "int32",
+ "description": "Optional, integer. The unit count of SignalR resource. 1 by default.\r\n\r\nIf present, following values are allowed:\r\n Free: 1\r\n Standard: 1,2,5,10,20,50,100",
+ "type": "integer"
+ }
+ }
+ },
+ "SignalRSkuTier": {
+ "description": "Optional tier of this particular SKU. 'Standard' or 'Free'. \r\n\r\n`Basic` is deprecated, use `Standard` instead.",
+ "enum": [
+ "Free",
+ "Basic",
+ "Standard",
+ "Premium"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SignalRSkuTier",
+ "modelAsString": true
+ }
+ },
+ "SignalRProperties": {
+ "description": "A class that describes the properties of the SignalR service that should contain more read-only properties than AzSignalR.Models.SignalRCreateOrUpdateProperties",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/SignalRCreateOrUpdateProperties"
+ }
+ ],
+ "properties": {
+ "provisioningState": {
+ "$ref": "#/definitions/ProvisioningState",
+ "description": "Provisioning state of the resource.",
+ "readOnly": true
+ },
+ "externalIP": {
+ "description": "The publicly accessible IP of the SignalR service.",
+ "type": "string",
+ "readOnly": true
+ },
+ "hostName": {
+ "description": "FQDN of the SignalR service instance. Format: xxx.service.signalr.net",
+ "type": "string",
+ "readOnly": true
+ },
+ "publicPort": {
+ "format": "int32",
+ "description": "The publicly accessible port of the SignalR service which is designed for browser/client side usage.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "serverPort": {
+ "format": "int32",
+ "description": "The publicly accessible port of the SignalR service which is designed for customer server side usage.",
+ "type": "integer",
+ "readOnly": true
+ },
+ "version": {
+ "description": "Version of the SignalR resource. Probably you need the same or higher version of client SDKs.",
+ "type": "string",
+ "readOnly": true
+ },
+ "privateEndpointConnections": {
+ "description": "Private endpoint connections to the SignalR resource.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointConnection"
+ },
+ "readOnly": true
+ }
+ }
+ },
+ "ProvisioningState": {
+ "description": "Provisioning state of the resource.",
+ "enum": [
+ "Unknown",
+ "Succeeded",
+ "Failed",
+ "Canceled",
+ "Running",
+ "Creating",
+ "Updating",
+ "Deleting",
+ "Moving"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ProvisioningState",
+ "modelAsString": true
+ }
+ },
+ "SignalRCreateOrUpdateProperties": {
+ "description": "Settings used to provision or configure the resource.",
+ "type": "object",
+ "properties": {
+ "hostNamePrefix": {
+ "description": "Prefix for the hostName of the SignalR service. Retained for future use.\r\nThe hostname will be of format: <hostNamePrefix>.service.signalr.net.",
+ "type": "string"
+ },
+ "features": {
+ "description": "List of SignalR featureFlags. e.g. ServiceMode.\r\n\r\nFeatureFlags that are not included in the parameters for the update operation will not be modified.\r\nAnd the response will only include featureFlags that are explicitly set. \r\nWhen a featureFlag is not explicitly set, SignalR service will use its globally default value. \r\nBut keep in mind, the default value doesn't mean \"false\". It varies in terms of different FeatureFlags.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SignalRFeature"
+ }
+ },
+ "cors": {
+ "$ref": "#/definitions/SignalRCorsSettings",
+ "description": "Cross-Origin Resource Sharing (CORS) settings."
+ },
+ "upstream": {
+ "$ref": "#/definitions/ServerlessUpstreamSettings",
+ "description": "Upstream settings when the Azure SignalR is in server-less mode."
+ },
+ "networkACLs": {
+ "$ref": "#/definitions/SignalRNetworkACLs",
+ "description": "Network ACLs"
+ }
+ }
+ },
+ "SignalRFeature": {
+ "description": "Feature of a SignalR resource, which controls the SignalR runtime behavior.",
+ "required": [
+ "flag",
+ "value"
+ ],
+ "type": "object",
+ "properties": {
+ "flag": {
+ "$ref": "#/definitions/FeatureFlags",
+ "description": "FeatureFlags is the supported features of Azure SignalR service.\r\n- ServiceMode: Flag for backend server for SignalR service. Values allowed: \"Default\": have your own backend server; \"Serverless\": your application doesn't have a backend server; \"Classic\": for backward compatibility. Support both Default and Serverless mode but not recommended; \"PredefinedOnly\": for future use.\r\n- EnableConnectivityLogs: \"true\"/\"false\", to enable/disable the connectivity log category respectively."
+ },
+ "value": {
+ "description": "Value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/azure/azure-signalr/ for allowed values.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "properties": {
+ "description": "Optional properties related to this feature.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "FeatureFlags": {
+ "description": "FeatureFlags is the supported features of Azure SignalR service.\r\n- ServiceMode: Flag for backend server for SignalR service. Values allowed: \"Default\": have your own backend server; \"Serverless\": your application doesn't have a backend server; \"Classic\": for backward compatibility. Support both Default and Serverless mode but not recommended; \"PredefinedOnly\": for future use.\r\n- EnableConnectivityLogs: \"true\"/\"false\", to enable/disable the connectivity log category respectively.",
+ "enum": [
+ "ServiceMode",
+ "EnableConnectivityLogs",
+ "EnableMessagingLogs"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "FeatureFlags",
+ "modelAsString": true
+ }
+ },
+ "SignalRCorsSettings": {
+ "description": "Cross-Origin Resource Sharing (CORS) settings.",
+ "type": "object",
+ "properties": {
+ "allowedOrigins": {
+ "description": "Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use \"*\" to allow all. If omitted, allow all by default.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "ServerlessUpstreamSettings": {
+ "description": "The settings for the Upstream when the Azure SignalR is in server-less mode.",
+ "type": "object",
+ "properties": {
+ "templates": {
+ "description": "Gets or sets the list of Upstream URL templates. Order matters, and the first matching template takes effects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/UpstreamTemplate"
+ }
+ }
+ }
+ },
+ "SignalRNetworkACLs": {
+ "description": "Network ACLs for SignalR",
+ "type": "object",
+ "properties": {
+ "defaultAction": {
+ "$ref": "#/definitions/ACLAction",
+ "description": "Default action when no other rule matches"
+ },
+ "publicNetwork": {
+ "$ref": "#/definitions/NetworkACL",
+ "description": "ACL for requests from public network"
+ },
+ "privateEndpoints": {
+ "description": "ACLs for requests from private endpoints",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateEndpointACL"
+ }
+ }
+ }
+ },
+ "ACLAction": {
+ "description": "Default action when no other rule matches",
+ "enum": [
+ "Allow",
+ "Deny"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "ACLAction",
+ "modelAsString": true
+ }
+ },
+ "UpstreamTemplate": {
+ "description": "Upstream template item settings. It defines the Upstream URL of the incoming requests.\r\nThe template defines the pattern of the event, the hub or the category of the incoming request that matches current URL template.",
+ "required": [
+ "urlTemplate"
+ ],
+ "type": "object",
+ "properties": {
+ "hubPattern": {
+ "description": "Gets or sets the matching pattern for hub names. If not set, it matches any hub.\r\nThere are 3 kind of patterns supported:\r\n 1. \"*\", it to matches any hub name\r\n 2. Combine multiple hubs with \",\", for example \"hub1,hub2\", it matches \"hub1\" and \"hub2\"\r\n 3. The single hub name, for example, \"hub1\", it matches \"hub1\"",
+ "type": "string"
+ },
+ "eventPattern": {
+ "description": "Gets or sets the matching pattern for event names. If not set, it matches any event.\r\nThere are 3 kind of patterns supported:\r\n 1. \"*\", it to matches any event name\r\n 2. Combine multiple events with \",\", for example \"connect,disconnect\", it matches event \"connect\" and \"disconnect\"\r\n 3. The single event name, for example, \"connect\", it matches \"connect\"",
+ "type": "string"
+ },
+ "categoryPattern": {
+ "description": "Gets or sets the matching pattern for category names. If not set, it matches any category.\r\nThere are 3 kind of patterns supported:\r\n 1. \"*\", it to matches any category name\r\n 2. Combine multiple categories with \",\", for example \"connections,messages\", it matches category \"connections\" and \"messages\"\r\n 3. The single category name, for example, \"connections\", it matches the category \"connections\"",
+ "type": "string"
+ },
+ "urlTemplate": {
+ "description": "Gets or sets the Upstream URL template. You can use 3 predefined parameters {hub}, {category} {event} inside the template, the value of the Upstream URL is dynamically calculated when the client request comes in.\r\nFor example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client request from hub `chat` connects, it will first POST to this URL: `http://example.com/chat/api/connect`.",
+ "type": "string"
+ }
+ }
+ },
+ "NetworkACL": {
+ "description": "Network ACL",
+ "type": "object",
+ "properties": {
+ "allow": {
+ "description": "Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SignalRRequestType"
+ }
+ },
+ "deny": {
+ "description": "Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SignalRRequestType"
+ }
+ }
+ }
+ },
+ "SignalRRequestType": {
+ "description": "Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.",
+ "enum": [
+ "ClientConnection",
+ "ServerConnection",
+ "RESTAPI"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SignalRRequestType",
+ "modelAsString": true
+ }
+ },
+ "PrivateEndpointACL": {
+ "description": "ACL for a private endpoint",
+ "required": [
+ "name"
+ ],
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/NetworkACL"
+ }
+ ],
+ "properties": {
+ "name": {
+ "description": "Name of the private endpoint connection",
+ "type": "string"
+ }
+ }
+ },
+ "PrivateEndpointConnection": {
+ "description": "A private endpoint connection to SignalR resource",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateEndpointConnectionProperties",
+ "description": "Properties of the private endpoint connection",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "ProxyResource": {
+ "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/Resource"
+ }
+ ],
+ "properties": {}
+ },
+ "PrivateEndpointConnectionProperties": {
+ "description": "Private endpoint connection properties",
+ "type": "object",
+ "properties": {
+ "provisioningState": {
+ "$ref": "#/definitions/ProvisioningState",
+ "description": "Provisioning state of the private endpoint connection",
+ "readOnly": true
+ },
+ "privateEndpoint": {
+ "$ref": "#/definitions/PrivateEndpoint",
+ "description": "Private endpoint associated with the private endpoint connection"
+ },
+ "privateLinkServiceConnectionState": {
+ "$ref": "#/definitions/PrivateLinkServiceConnectionState",
+ "description": "Connection state"
+ }
+ }
+ },
+ "PrivateEndpoint": {
+ "description": "Private endpoint",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Full qualified Id of the private endpoint",
+ "type": "string"
+ }
+ }
+ },
+ "PrivateLinkServiceConnectionState": {
+ "description": "Connection state of the private endpoint connection",
+ "type": "object",
+ "properties": {
+ "status": {
+ "$ref": "#/definitions/PrivateLinkServiceConnectionStatus",
+ "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
+ },
+ "description": {
+ "description": "The reason for approval/rejection of the connection.",
+ "type": "string"
+ },
+ "actionsRequired": {
+ "description": "A message indicating if changes on the service provider require any updates on the consumer.",
+ "type": "string"
+ }
+ }
+ },
+ "PrivateLinkServiceConnectionStatus": {
+ "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.",
+ "enum": [
+ "Pending",
+ "Approved",
+ "Rejected",
+ "Disconnected"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PrivateLinkServiceConnectionStatus",
+ "modelAsString": true
+ }
+ },
+ "PrivateLinkResourceList": {
+ "description": "Contains a list of AzSignalR.Models.Response.PrivateLink.PrivateLinkResource and a possible link to query more results",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "List of PrivateLinkResource",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PrivateLinkResource"
+ }
+ },
+ "nextLink": {
+ "description": "The URL the client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.",
+ "type": "string"
+ }
+ }
+ },
+ "PrivateLinkResource": {
+ "description": "Private link resource",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/PrivateLinkResourceProperties",
+ "description": "Properties of a private link resource",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "PrivateLinkResourceProperties": {
+ "description": "Private link resource properties",
+ "type": "object",
+ "properties": {
+ "groupId": {
+ "description": "Group Id of the private link resource",
+ "type": "string"
+ },
+ "requiredMembers": {
+ "description": "Required members of the private link resource",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "requiredZoneNames": {
+ "description": "Required private DNS zone names",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "SignalRKeys": {
+ "description": "A class represents the access keys of SignalR service.",
+ "type": "object",
+ "properties": {
+ "primaryKey": {
+ "description": "The primary access key.",
+ "type": "string"
+ },
+ "secondaryKey": {
+ "description": "The secondary access key.",
+ "type": "string"
+ },
+ "primaryConnectionString": {
+ "description": "SignalR connection string constructed via the primaryKey",
+ "type": "string"
+ },
+ "secondaryConnectionString": {
+ "description": "SignalR connection string constructed via the secondaryKey",
+ "type": "string"
+ }
+ }
+ },
+ "RegenerateKeyParameters": {
+ "description": "Parameters describes the request to regenerate access keys",
+ "type": "object",
+ "properties": {
+ "keyType": {
+ "$ref": "#/definitions/KeyType",
+ "description": "The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive)."
+ }
+ }
+ },
+ "KeyType": {
+ "description": "The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive).",
+ "enum": [
+ "Primary",
+ "Secondary"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "KeyType",
+ "modelAsString": true
+ }
+ },
+ "SignalRUsageList": {
+ "description": "Object that includes an array of SignalR resource usages and a possible link for next set.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "List of SignalR usages",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SignalRUsage"
+ }
+ },
+ "nextLink": {
+ "description": "The URL the client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.",
+ "type": "string"
+ }
+ }
+ },
+ "SignalRUsage": {
+ "description": "Object that describes a specific usage of SignalR resources.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "Fully qualified ARM resource id",
+ "type": "string"
+ },
+ "currentValue": {
+ "format": "int64",
+ "description": "Current value for the usage quota.",
+ "type": "integer"
+ },
+ "limit": {
+ "format": "int64",
+ "description": "The maximum permitted value for the usage quota. If there is no limit, this value will be -1.",
+ "type": "integer"
+ },
+ "name": {
+ "$ref": "#/definitions/SignalRUsageName",
+ "description": "Localizable String object containing the name and a localized value."
+ },
+ "unit": {
+ "description": "Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond.",
+ "type": "string"
+ }
+ }
+ },
+ "SignalRUsageName": {
+ "description": "Localizable String object containing the name and a localized value.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "The identifier of the usage.",
+ "type": "string"
+ },
+ "localizedValue": {
+ "description": "Localized name of the usage.",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "description": "Client Api Version.",
+ "required": true,
+ "type": "string"
+ },
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "Gets subscription Id which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
+ "required": true,
+ "type": "string"
+ },
+ "ResourceGroupParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "SignalRServiceName": {
+ "name": "resourceName",
+ "in": "path",
+ "description": "The name of the SignalR resource.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ },
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow"
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/signalr/resource-manager/readme.go.md b/specification/signalr/resource-manager/readme.go.md
index f84c87f6866a..c7fed8130266 100644
--- a/specification/signalr/resource-manager/readme.go.md
+++ b/specification/signalr/resource-manager/readme.go.md
@@ -15,6 +15,7 @@ go:
batch:
- tag: package-2018-03-01-preview
- tag: package-2018-10-01
+ - tag: package-2020-05-01
```
### Tag: package-2018-03-01-preview and go
@@ -34,3 +35,12 @@ Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag) == 'package-2020-05-01' && $(go)
+output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-05-01/$(namespace)
+```
diff --git a/specification/signalr/resource-manager/readme.java.md b/specification/signalr/resource-manager/readme.java.md
index b6b8cbf12242..332c4a397833 100644
--- a/specification/signalr/resource-manager/readme.java.md
+++ b/specification/signalr/resource-manager/readme.java.md
@@ -18,6 +18,20 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-signalr
batch:
- tag: package-2018-03-01-preview
- tag: package-2018-10-01
+ - tag: package-2020-05-01
+```
+
+### Tag: package-2020-05-01 and java
+
+These settings apply only when `--tag=package-2020-05-01 --java` is specified on the command line.
+Please also specify `--azure-libraries-for-java-folder=`.
+
+``` yaml $(tag) == 'package-2020-05-01' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.signalr.v2020_05_01
+ output-folder: $(azure-libraries-for-java-folder)/sdk/signalr/mgmt-v2020_05_01
+regenerate-manager: true
+generate-interface: true
```
### Tag: package-2018-10-01 and java
@@ -44,4 +58,4 @@ java:
output-folder: $(azure-libraries-for-java-folder)/sdk/signalr/mgmt-v2018_03_01_preview
regenerate-manager: true
generate-interface: true
-```
\ No newline at end of file
+```
diff --git a/specification/signalr/resource-manager/readme.md b/specification/signalr/resource-manager/readme.md
index 356ff90245d8..807ff01765c9 100644
--- a/specification/signalr/resource-manager/readme.md
+++ b/specification/signalr/resource-manager/readme.md
@@ -26,7 +26,7 @@ These are the global settings for the SignalR API.
``` yaml
openapi-type: arm
-tag: package-2018-10-01
+tag: package-2020-05-01
```
### Suppression
@@ -40,11 +40,28 @@ directive:
- suppress: EnumInsteadOfBoolean
from: signalr.json
where: $.definitions.Dimension.properties.toBeExportedForShoebox
- reason: The boolean properties 'toBeExportedForShoebox' is defined by Geneva metrics
- - suppress: PutRequestResponseScheme
+ reason: The boolean properties 'toBeExportedForShoebox' is defined by Geneva metrics.
+ - suppress: EnumInsteadOfBoolean
+ from: signalr.json
+ where: $.definitions.Operation.properties.isDataAction
+ reason: The boolean properties 'isDataAction' is a standard property for Azuer Operatoins.
+ - suppress: TrackedResourceListByImmediateParent
+ reason: Another list APIs naming approach is used over the specs
+ - suppress: AvoidNestedProperties
from: signalr.json
- where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}"].put
- reason: The schema of the PUT request body is a superset of the GET response body, we have a PATCH operation to make the resource updatable
+ where:
+ - $.definitions.SignalRFeature.properties.properties
+ - $.definitions.PrivateEndpointConnection.properties.properties
+ reason: The 'properties' is a user-defined dictionary, cannot be flattened.
+```
+
+### Tag: package-2020-05-01
+
+These settings apply only when `--tag=package-2020-05-01` is specified on the command line.
+
+``` yaml $(tag) == 'package-2020-05-01'
+input-file:
+- Microsoft.SignalRService/stable/2020-05-01/signalr.json
```
### Tag: package-2018-10-01
@@ -123,6 +140,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.SignalRService/stable/2020-05-01/signalr.json
- $(this-folder)/Microsoft.SignalRService/stable/2018-10-01/signalr.json
- $(this-folder)/Microsoft.SignalRService/preview/2018-03-01-preview/signalr.json
diff --git a/specification/signalr/resource-manager/readme.ruby.md b/specification/signalr/resource-manager/readme.ruby.md
index 39b11888ae39..b10560ba58b6 100644
--- a/specification/signalr/resource-manager/readme.ruby.md
+++ b/specification/signalr/resource-manager/readme.ruby.md
@@ -14,6 +14,17 @@ azure-arm: true
batch:
- tag: package-2018-03-01-preview
- tag: package-2018-10-01
+ - tag: package-2020-05-01
+```
+
+### Tag: package-2020-05-01 and ruby
+
+These settings apply only when `--tag=package-2020-05-01 --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2020-05-01' && $(ruby)
+namespace: "Azure::Signalr::Mgmt::V2020_05_01"
+output-folder: $(ruby-sdks-folder)/management/azure_mgmt_signalr/lib
```
### Tag: package-2018-10-01 and ruby
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceCreateMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceCreateMax.json
index 1552d4b274c1..6e307cb7fdb7 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceCreateMax.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceCreateMax.json
@@ -25,7 +25,8 @@
"publicDataEndpointEnabled": false,
"proxyOverride": "Redirect",
"timezoneId": "UTC",
- "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1"
+ "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
},
@@ -51,7 +52,8 @@
"proxyOverride": "Redirect",
"dnsZone": "1b4e2caff2530",
"timezoneId": "UTC",
- "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1"
+ "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
},
"location": "japaneast",
"tags": {
@@ -83,7 +85,8 @@
"proxyOverride": "Redirect",
"dnsZone": "1b4e2caff2530",
"timezoneId": "UTC",
- "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1"
+ "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_westeurope_MI_Mon_Fri_10PM_6AM"
},
"location": "japaneast",
"tags": {
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceGet.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceGet.json
index d81c083a4af4..4ad01f466643 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceGet.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceGet.json
@@ -26,7 +26,8 @@
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
"dnsZone": "1b4e2caff2530",
- "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1"
+ "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
},
"location": "japaneast",
"tags": {
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceList.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceList.json
index 640b037c3ba0..19bc87170b8d 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceList.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceList.json
@@ -29,7 +29,8 @@
"collation": "SQL_Latin1_General_CP1_CI_AS",
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
- "dnsZone": "1b4e2caff2530"
+ "dnsZone": "1b4e2caff2530",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
},
{
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceListByResourceGroup.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceListByResourceGroup.json
index a08933264aac..2123619ea897 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceListByResourceGroup.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceListByResourceGroup.json
@@ -30,7 +30,8 @@
"collation": "SQL_Latin1_General_CP1_CI_AS",
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
- "dnsZone": "1b4e2caff2530"
+ "dnsZone": "1b4e2caff2530",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
},
{
@@ -55,7 +56,8 @@
"collation": "SQL_Latin1_General_CP1_CI_AS",
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
- "dnsZone": "2c3d1bdae3412"
+ "dnsZone": "2c3d1bdae3412",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
]
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMax.json
index f60ec5b9c93e..51268336c84e 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMax.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMax.json
@@ -21,7 +21,8 @@
"licenseType": "BasePrice",
"vCores": 8,
"storageSizeInGB": 448,
- "collation": "SQL_Latin1_General_CP1_CI_AS"
+ "collation": "SQL_Latin1_General_CP1_CI_AS",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
},
@@ -53,7 +54,8 @@
"publicDataEndpointEnabled": false,
"proxyOverride": "Redirect",
"dnsZone": "1b4e2caff2530",
- "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1"
+ "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
},
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMin.json
index b67afb7b384f..aa87197d2540 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMin.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMin.json
@@ -31,7 +31,8 @@
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
"dnsZone": "1b4e2caff2530",
- "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1"
+ "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
},
"location": "japaneast",
"tags": {
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/managedInstances.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/managedInstances.json
index 0e817f870ea3..f73579be3d37 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/managedInstances.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2015-05-01-preview/managedInstances.json
@@ -439,6 +439,10 @@
"description": "The Id of the instance pool this managed server belongs to.",
"type": "string"
},
+ "maintenanceConfigurationId": {
+ "description": "Specifies maintenance configuration id to apply to this managed instance.",
+ "type": "string"
+ },
"minimalTlsVersion": {
"description": "Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'",
"type": "string"
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/databases.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/databases.json
index 08a4b9ae7774..d93a3000d8e5 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/databases.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-10-01-preview/databases.json
@@ -787,7 +787,7 @@
"type": "boolean"
},
"licenseType": {
- "description": "The license type to apply for this database.",
+ "description": "The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit.",
"enum": [
"LicenseIncluded",
"BasePrice"
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceCreateMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceCreateMax.json
index cd3e090e3398..ed423629d53a 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceCreateMax.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceCreateMax.json
@@ -25,7 +25,8 @@
"publicDataEndpointEnabled": false,
"proxyOverride": "Redirect",
"timezoneId": "UTC",
- "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1"
+ "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
},
@@ -51,7 +52,8 @@
"proxyOverride": "Redirect",
"dnsZone": "1b4e2caff2530",
"timezoneId": "UTC",
- "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1"
+ "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
},
"location": "japaneast",
"tags": {
@@ -83,7 +85,8 @@
"proxyOverride": "Redirect",
"dnsZone": "1b4e2caff2530",
"timezoneId": "UTC",
- "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1"
+ "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/pool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
},
"location": "japaneast",
"tags": {
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceGet.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceGet.json
index 9da73f2a4849..b78074a7820a 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceGet.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceGet.json
@@ -26,7 +26,8 @@
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
"dnsZone": "1b4e2caff2530",
- "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1"
+ "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
},
"location": "japaneast",
"tags": {
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceList.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceList.json
index 4ff1240668ef..faf180b0c9a1 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceList.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceList.json
@@ -29,7 +29,8 @@
"collation": "SQL_Latin1_General_CP1_CI_AS",
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
- "dnsZone": "1b4e2caff2530"
+ "dnsZone": "1b4e2caff2530",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
},
{
@@ -54,7 +55,8 @@
"collation": "SQL_Latin1_General_CP1_CI_AS",
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
- "dnsZone": "2c3d1bdae3412"
+ "dnsZone": "2c3d1bdae3412",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
]
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByInstancePool.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByInstancePool.json
index 313ef50fc116..0eeffd79dfdd 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByInstancePool.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByInstancePool.json
@@ -32,7 +32,8 @@
"publicDataEndpointEnabled": false,
"dnsZone": "1b4e2caff2530",
"proxyOverride": "Redirect",
- "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/Test1/providers/Microsoft.Sql/instancePools/pool1"
+ "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/Test1/providers/Microsoft.Sql/instancePools/pool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
},
{
@@ -58,7 +59,8 @@
"publicDataEndpointEnabled": false,
"dnsZone": "2c3d1bdae3412",
"proxyOverride": "Redirect",
- "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/Test1/providers/Microsoft.Sql/instancePools/pool1"
+ "instancePoolId": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/Test1/providers/Microsoft.Sql/instancePools/pool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
]
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByResourceGroup.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByResourceGroup.json
index 7ef8a934da16..812771b07788 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByResourceGroup.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceListByResourceGroup.json
@@ -30,7 +30,8 @@
"collation": "SQL_Latin1_General_CP1_CI_AS",
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
- "dnsZone": "1b4e2caff2530"
+ "dnsZone": "1b4e2caff2530",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
},
{
@@ -55,7 +56,8 @@
"collation": "SQL_Latin1_General_CP1_CI_AS",
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
- "dnsZone": "2c3d1bdae3412"
+ "dnsZone": "2c3d1bdae3412",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
]
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMax.json
index 79d81c6aa48b..4f07238c0e25 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMax.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMax.json
@@ -21,7 +21,8 @@
"licenseType": "BasePrice",
"vCores": 8,
"storageSizeInGB": 448,
- "collation": "SQL_Latin1_General_CP1_CI_AS"
+ "collation": "SQL_Latin1_General_CP1_CI_AS",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
},
@@ -53,7 +54,8 @@
"publicDataEndpointEnabled": false,
"proxyOverride": "Redirect",
"dnsZone": "1b4e2caff2530",
- "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1"
+ "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
}
}
},
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMin.json
index 7fa48928dee9..e2247037c5c6 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMin.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedInstanceUpdateMin.json
@@ -31,7 +31,8 @@
"publicDataEndpointEnabled": false,
"proxyOverride": "Default",
"dnsZone": "1b4e2caff2530",
- "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1"
+ "instancePoolId": "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
+ "maintenanceConfigurationId": "/subscriptions/ab0e51c0-83c0-4380-8ae9-025516df392f/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestEurope_MI_Mon_Fri_10PM_6AM"
},
"location": "japaneast",
"tags": {
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json
index 14afdcdb4e85..5006cad54c5f 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/managedInstances.json
@@ -485,6 +485,10 @@
"description": "The Id of the instance pool this managed server belongs to.",
"type": "string"
},
+ "maintenanceConfigurationId": {
+ "description": "Specifies maintenance configuration id to apply to this managed instance.",
+ "type": "string"
+ },
"minimalTlsVersion": {
"description": "Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'",
"type": "string"
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/databases.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/databases.json
index 045b85a77c88..2e2db731b65d 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/databases.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/databases.json
@@ -885,7 +885,7 @@
"type": "boolean"
},
"licenseType": {
- "description": "The license type to apply for this database.",
+ "description": "The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit.",
"enum": [
"LicenseIncluded",
"BasePrice"
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupCancelSync.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupCancelSync.json
new file mode 100644
index 000000000000..48b0b1dad5ee
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupCancelSync.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupCreate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupCreate.json
new file mode 100644
index 000000000000..8a6f8994ec21
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupCreate.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview",
+ "parameters": {
+ "properties": {
+ "interval": -1,
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "usePrivateLinkConnection": false
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "interval": -1,
+ "lastSyncTime": "0001-01-01T08:00:00Z",
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "syncState": "NotReady",
+ "usePrivateLinkConnection": false
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
+ "name": "syncgroupcrud-3187",
+ "type": "Microsoft.Sql/servers/databases/syncGroups"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "interval": -1,
+ "lastSyncTime": "0001-01-01T08:00:00Z",
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "syncState": "NotReady",
+ "usePrivateLinkConnection": false
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
+ "name": "syncgroupcrud-3187",
+ "type": "Microsoft.Sql/servers/databases/syncGroups"
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupDelete.json
new file mode 100644
index 000000000000..a9691bbae29d
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupDelete.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGet.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGet.json
new file mode 100644
index 000000000000..8a88e81a9966
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGet.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "interval": -1,
+ "lastSyncTime": "0001-01-01T08:00:00Z",
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "syncState": "NotReady",
+ "usePrivateLinkConnection": false
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
+ "name": "syncgroupcrud-3187",
+ "type": "Microsoft.Sql/servers/databases/syncGroups"
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetHubSchema.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetHubSchema.json
new file mode 100644
index 000000000000..06aa277287aa
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetHubSchema.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "tables": [
+ {
+ "columns": [
+ {
+ "dataSize": "4",
+ "dataType": "int",
+ "hasError": false,
+ "isPrimaryKey": false,
+ "name": "intField",
+ "quotedName": "[intField]"
+ },
+ {
+ "dataSize": "100",
+ "dataType": "nvarchar",
+ "hasError": false,
+ "isPrimaryKey": false,
+ "name": "charField",
+ "quotedName": "[charField]"
+ }
+ ],
+ "errorId": "Schema_TableHasNoPrimaryKey",
+ "hasError": true,
+ "name": "dbo.myTable",
+ "quotedName": "[dbo].[myTable]"
+ }
+ ],
+ "lastUpdateTime": "2017-05-30T07:16:08.21Z"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetLog.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetLog.json
new file mode 100644
index 000000000000..8c3db95f2725
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetLog.json
@@ -0,0 +1,37 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "startTime": "2017-01-01T00:00:00",
+ "endTime": "2017-12-31T00:00:00",
+ "type": "All",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "timestamp": "2017-05-30T07:16:08.25Z",
+ "type": "Success",
+ "source": "syncgroupcrud-8475.database.windows.net/hub",
+ "details": "Schema information obtained successfully.",
+ "tracingId": "c0480c8e-6269-424e-9404-b00efce0ebae",
+ "operationStatus": "SchemaRefreshSuccess"
+ },
+ {
+ "timestamp": "2017-05-30T07:03:37.5733333Z",
+ "type": "Error",
+ "source": "syncgroupcrud-8475.database.windows.net/member",
+ "details": "Getting schema information for the database failed with the exception \"Failed to connect to server .\nInner exception: SqlException Error Code: -2146232060 - SqlError Number:53, Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) \nInner exception: The network path was not found\n For more information, provide tracing ID ‘cd3aa28c-0c31-471f-8a77-f1b21c908cbd’ to customer support.\"",
+ "tracingId": "cd3aa28c-0c31-471f-8a77-f1b21c908cbd",
+ "operationStatus": "SchemaRefreshFailure"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetSyncDatabaseId.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetSyncDatabaseId.json
new file mode 100644
index 000000000000..73987d320296
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupGetSyncDatabaseId.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "locationName": "westus",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupListByDatabase.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupListByDatabase.json
new file mode 100644
index 000000000000..4b6924abcdd7
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupListByDatabase.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "interval": -1,
+ "lastSyncTime": "0001-01-01T08:00:00Z",
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "syncState": "NotReady",
+ "usePrivateLinkConnection": false
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
+ "name": "syncgroupcrud-3187",
+ "type": "Microsoft.Sql/servers/databases/syncGroups"
+ },
+ {
+ "properties": {
+ "interval": -1,
+ "lastSyncTime": "0001-01-01T08:00:00Z",
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "syncState": "NotReady",
+ "usePrivateLinkConnection": false
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-5374",
+ "name": "syncgroupcrud-5374",
+ "type": "Microsoft.Sql/servers/databases/syncGroups"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupPatch.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupPatch.json
new file mode 100644
index 000000000000..9ac1bb8b2539
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupPatch.json
@@ -0,0 +1,39 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview",
+ "parameters": {
+ "properties": {
+ "interval": -1,
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "hubDatabasePassword": "hubPassword",
+ "usePrivateLinkConnection": false
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "interval": -1,
+ "lastSyncTime": "0001-01-01T08:00:00Z",
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "syncState": "NotReady",
+ "usePrivateLinkConnection": false
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
+ "name": "syncgroup",
+ "type": "Microsoft.Sql/servers/databases/syncGroups"
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupRefreshHubSchema.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupRefreshHubSchema.json
new file mode 100644
index 000000000000..a81b4f0950db
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupRefreshHubSchema.json
@@ -0,0 +1,14 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupTriggerSync.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupTriggerSync.json
new file mode 100644
index 000000000000..48b0b1dad5ee
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupTriggerSync.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupUpdate.json
new file mode 100644
index 000000000000..8a6f8994ec21
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncGroupUpdate.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview",
+ "parameters": {
+ "properties": {
+ "interval": -1,
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "usePrivateLinkConnection": false
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "interval": -1,
+ "lastSyncTime": "0001-01-01T08:00:00Z",
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "syncState": "NotReady",
+ "usePrivateLinkConnection": false
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
+ "name": "syncgroupcrud-3187",
+ "type": "Microsoft.Sql/servers/databases/syncGroups"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "interval": -1,
+ "lastSyncTime": "0001-01-01T08:00:00Z",
+ "conflictResolutionPolicy": "HubWin",
+ "syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
+ "hubDatabaseUserName": "hubUser",
+ "syncState": "NotReady",
+ "usePrivateLinkConnection": false
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
+ "name": "syncgroupcrud-3187",
+ "type": "Microsoft.Sql/servers/databases/syncGroups"
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberCreate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberCreate.json
new file mode 100644
index 000000000000..1ccc734d27a2
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberCreate.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "syncMemberName": "syncgroupcrud-4879",
+ "api-version": "2019-06-01-preview",
+ "parameters": {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "syncState": "UnProvisioned",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187/syncMembers/syncgroupcrud-4879",
+ "name": "syncgroupcrud-4879",
+ "type": "Microsoft.Sql/servers/databases/syncGroups/syncMembers"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "syncState": "UnProvisioned",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187/syncMembers/syncgroupcrud-4879",
+ "name": "syncgroupcrud-4879",
+ "type": "Microsoft.Sql/servers/databases/syncGroups/syncMembers"
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberDelete.json
new file mode 100644
index 000000000000..f6f8db22c960
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberDelete.json
@@ -0,0 +1,16 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "syncMemberName": "syncgroupcrud-4879",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberGet.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberGet.json
new file mode 100644
index 000000000000..8a1e356bfa96
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberGet.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "syncMemberName": "syncgroupcrud-4879",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "syncState": "UnProvisioned",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187/syncMembers/syncgroupcrud-4879",
+ "name": "syncgroupcrud-4879",
+ "type": "Microsoft.Sql/servers/databases/syncGroups/syncMembers"
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberGetSchema.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberGetSchema.json
new file mode 100644
index 000000000000..3cf3816fd255
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberGetSchema.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "syncMemberName": "syncgroupcrud-4879",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "tables": [
+ {
+ "columns": [
+ {
+ "dataSize": "4",
+ "dataType": "int",
+ "hasError": false,
+ "isPrimaryKey": false,
+ "name": "intField",
+ "quotedName": "[intField]"
+ },
+ {
+ "dataSize": "100",
+ "dataType": "nvarchar",
+ "hasError": false,
+ "isPrimaryKey": false,
+ "name": "charField",
+ "quotedName": "[charField]"
+ }
+ ],
+ "errorId": "Schema_TableHasNoPrimaryKey",
+ "hasError": true,
+ "name": "dbo.myTable",
+ "quotedName": "[dbo].[myTable]"
+ }
+ ],
+ "lastUpdateTime": "2017-05-30T07:16:08.21Z"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberListBySyncGroup.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberListBySyncGroup.json
new file mode 100644
index 000000000000..11497c9e4d7d
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberListBySyncGroup.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "syncState": "UnProvisioned",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187/syncMembers/syncgroupcrud-4879",
+ "name": "syncgroupcrud-4879",
+ "type": "Microsoft.Sql/servers/databases/syncGroups/syncMembers"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberPatch.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberPatch.json
new file mode 100644
index 000000000000..1746bb5774c7
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberPatch.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "syncMemberName": "syncgroupcrud-4879",
+ "api-version": "2019-06-01-preview",
+ "parameters": {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "syncState": "UnProvisioned",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187/syncMembers/syncgroupcrud-4879",
+ "name": "syncgroupcrud-4879",
+ "type": "Microsoft.Sql/servers/databases/syncGroups/syncMembers"
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberRefreshSchema.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberRefreshSchema.json
new file mode 100644
index 000000000000..e1624a144833
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberRefreshSchema.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "syncMemberName": "syncgroupcrud-4879",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "202": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberUpdate.json
new file mode 100644
index 000000000000..1ccc734d27a2
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/examples/SyncMemberUpdate.json
@@ -0,0 +1,59 @@
+{
+ "parameters": {
+ "subscriptionId": "00000000-1111-2222-3333-444444444444",
+ "resourceGroupName": "syncgroupcrud-65440",
+ "serverName": "syncgroupcrud-8475",
+ "databaseName": "syncgroupcrud-4328",
+ "syncGroupName": "syncgroupcrud-3187",
+ "syncMemberName": "syncgroupcrud-4879",
+ "api-version": "2019-06-01-preview",
+ "parameters": {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "syncState": "UnProvisioned",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187/syncMembers/syncgroupcrud-4879",
+ "name": "syncgroupcrud-4879",
+ "type": "Microsoft.Sql/servers/databases/syncGroups/syncMembers"
+ }
+ },
+ "201": {
+ "body": {
+ "properties": {
+ "databaseType": "AzureSqlDatabase",
+ "serverName": "syncgroupcrud-3379.database.windows.net",
+ "databaseName": "syncgroupcrud-7421",
+ "userName": "myUser",
+ "syncDirection": "Bidirectional",
+ "syncState": "UnProvisioned",
+ "usePrivateLinkConnection": true,
+ "syncMemberAzureDatabaseResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"
+ },
+ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187/syncMembers/syncgroupcrud-4879",
+ "name": "syncgroupcrud-4879",
+ "type": "Microsoft.Sql/servers/databases/syncGroups/syncMembers"
+ }
+ },
+ "202": {}
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/managedDatabases.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/managedDatabases.json
index 195dd2b4ce58..37b1e4031a56 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/managedDatabases.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/managedDatabases.json
@@ -101,7 +101,7 @@
}
},
"default": {
- "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription."
+ "description": "*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"
}
},
"x-ms-pageable": {
@@ -146,7 +146,7 @@
}
},
"default": {
- "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."
+ "description": "*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found."
}
},
"x-ms-examples": {
@@ -257,7 +257,7 @@
"description": "Successfully deleted the managed database."
},
"default": {
- "description": "*** Error Responses: ***\n\n * 400 CannotUseReservedDatabaseName - Cannot use reserved database name in this operation.\n\n * 400 CannotMoveOrDropJobAccountDatabase - Cannot drop database associated with job account.\n\n * 400 CannotMoveOrDropSyncMetadataDatabase - Cannot drop database used as sync metadata database.\n\n * 400 GeoReplicationDatabaseNotPrimary - The operation cannot be performed since the database '{0}' is a replication target.\n\n * 400 GeoReplicationDatabaseNotSecondary - The operation expects the database to be a replication target.\n\n * 400 ManagedInstanceUpdateSloInProgress - \"The operation could not be completed because a service tier change is in progress for managed instance '{0}.' Please wait for the operation in progress to complete and try again.\"\n\n * 400 DropDisallowedDuringFailover - Can not drop database because a failover operation is in progress on the failover group.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 409 ServerDisabled - Server is disabled.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
+ "description": "*** Error Responses: ***\n\n * 400 CannotMoveOrDropJobAccountDatabase - Cannot drop database associated with job account.\n\n * 400 CannotUseReservedDatabaseName - Cannot use reserved database name in this operation.\n\n * 400 CannotMoveOrDropSyncMetadataDatabase - Cannot drop database used as sync metadata database.\n\n * 400 GeoReplicationDatabaseNotPrimary - The operation cannot be performed since the database '{0}' is a replication target.\n\n * 400 GeoReplicationDatabaseNotSecondary - The operation expects the database to be a replication target.\n\n * 400 DropDisallowedDuringFailover - Can not drop database because a failover operation is in progress on the failover group.\n\n * 400 ManagedInstanceUpdateSloInProgress - \"The operation could not be completed because a service tier change is in progress for managed instance '{0}.' Please wait for the operation in progress to complete and try again.\"\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 409 ServerDisabled - Server is disabled.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
},
"202": {
"description": "Deleting the managed database is in progress."
@@ -313,7 +313,7 @@
}
},
"default": {
- "description": "*** Error Responses: ***\n\n * 400 PitrPointInTimeInvalid - The point in time {0} is not valid. Valid point in time range from {1} days early to now and not before source server creation time.\n\n * 400 CannotUseTrailingWhitespacesInDatabaseName - The database name validation failed.\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 ManagedDatabaseNameInUse - Database '{0}' already exists. Choose a different database name.\n\n * 400 NoMoreSpaceInManagedInstance - The managed instance has reached its storage limit. The storage usage for the managed instance cannot exceed (%d) MBs.\n\n * 400 ManagedInstanceUpdateSloInProgress - \"The operation could not be completed because a service tier change is in progress for managed instance '{0}.' Please wait for the operation in progress to complete and try again.\"\n\n * 400 SourceDatabaseNotFound - The source database does not exist.\n\n * 400 RegionDoesNotSupportVersion - A user attempted to create a server of a specified version in a location where that server version isn't supported.\n\n * 400 PasswordNotComplex - The provided password is not complex enough.\n\n * 400 CannotUseReservedDatabaseName - Cannot use reserved database name in this operation.\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 400 SourceServerNotFound - The server part of a source database id provided in a CreateDatabaseAsCopy API call doesn't map to an existing server.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 CurrentDatabaseSizeExceedsMaxSize - User attempted to reduce the max size for a database to a size smaller than the current usage.\n\n * 400 InvalidCollation - Collation is not recognized by the server.\n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 UnsupportedServiceName - The specified name is an invalid name because it contains one or more unsupported unicode characters.\n\n * 400 CurrentDatabaseLogSizeExceedsMaxSize - User attempted to change the database to a sku with lower max log size than the current usage.\n\n * 400 DatabaseNumberLimitReached - Maximum number of databases for SQL Database Managed Instance reached.\n\n * 400 InvalidDatabaseCreateOrUpdateRequest - The request body for the create or update database operation is invalid.\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 InvalidSourceDatabaseId - Invalid source database identifier.\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MissingCollation - Collation is required.\n\n * 400 MissingSourceDatabaseId - Missing source database identifier.\n\n * 400 MissingRestorePointInTime - Missing restore point in time\n\n * 400 MissingStorageContainerSasToken - Missing storage container SAS token\n\n * 400 MissingStorageContainerUri - Missing storage container URI\n\n * 400 RestorableDroppedDatabaseIdGivenForRestoreWithSourceDatabaseId - Cannot specify restorableDroppedDatabaseId when sourceDatabaseId is already given in restore create mode\n\n * 400 CannotUseReservedDatabaseName - Cannot use reserved database name in this operation.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 CannotFindServerCertificateWithThumbprint - Cannot find server certificate with thumbprint '{0}'. Please use PowerShell Cmdlet 'Add-AzureRmSqlManagedInstanceTransparentDataEncryptionCertificate' to create the certificate.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 RestoreSourceDatabaseNotFound - Could not find database '{0}' at time '{1}' that can be restored.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 RemoteDatabaseExists - The destination database name already exists on the destination server.\n\n * 409 ConflictingDatabaseOperation - There is already some operation on the database and the current operation should wait till it is done.\n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 409 ManagementServiceDatabaseBusy - Database '{0}' is busy with another operation. Please try your operation later.\n\n * 409 ConflictingSystemOperationInProgress - A system maintenance operation is in progress on the database and further operations need to wait until it is completed.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 500 ActivateOrDeactivateWorkflowThrottling - Activation or deactivation workflow failed because there are too many concurrent workflows\n\n * 503 DatabaseUnavailable - The operation failed because the database is unavailable.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
+ "description": "*** Error Responses: ***\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 ManagedInstanceUpdateSloInProgress - \"The operation could not be completed because a service tier change is in progress for managed instance '{0}.' Please wait for the operation in progress to complete and try again.\"\n\n * 400 DatabaseNumberLimitReached - Maximum number of databases for SQL Database Managed Instance reached.\n\n * 400 CurrentDatabaseSizeExceedsMaxSize - User attempted to reduce the max size for a database to a size smaller than the current usage.\n\n * 400 InvalidCollation - Collation is not recognized by the server.\n\n * 400 SourceDatabaseNotFound - The source database does not exist.\n\n * 400 PitrPointInTimeInvalid - The point in time {0} is not valid. Valid point in time range from {1} days early to now and not before source server creation time.\n\n * 400 PasswordNotComplex - The provided password is not complex enough.\n\n * 400 ManagedDatabaseNameInUse - Database '{0}' already exists. Choose a different database name.\n\n * 400 CannotUseTrailingWhitespacesInDatabaseName - The database name validation failed.\n\n * 400 NoMoreSpaceInManagedInstance - The managed instance has reached its storage limit. The storage usage for the managed instance cannot exceed (%d) MBs.\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 RegionDoesNotSupportVersion - A user attempted to create a server of a specified version in a location where that server version isn't supported.\n\n * 400 SourceServerNotFound - The server part of a source database id provided in a CreateDatabaseAsCopy API call doesn't map to an existing server.\n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 UnsupportedServiceName - The specified name is an invalid name because it contains one or more unsupported unicode characters.\n\n * 400 CannotUseReservedDatabaseName - Cannot use reserved database name in this operation.\n\n * 400 SubscriptionNotFound - The requested subscription was not found.\n\n * 400 CurrentDatabaseLogSizeExceedsMaxSize - User attempted to change the database to a sku with lower max log size than the current usage.\n\n * 400 InvalidDatabaseCreateOrUpdateRequest - The request body for the create or update database operation is invalid.\n\n * 400 InvalidResourceId - Invalid resource identifier.\n\n * 400 InvalidSourceDatabaseId - Invalid source database identifier.\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 MissingCollation - Collation is required.\n\n * 400 MissingSourceDatabaseId - Missing source database identifier.\n\n * 400 MissingRestorePointInTime - Missing restore point in time\n\n * 400 MissingStorageContainerSasToken - Missing storage container SAS token\n\n * 400 MissingStorageContainerUri - Missing storage container URI\n\n * 400 RestorableDroppedDatabaseIdGivenForRestoreWithSourceDatabaseId - Cannot specify restorableDroppedDatabaseId when sourceDatabaseId is already given in restore create mode\n\n * 400 CannotUseReservedDatabaseName - Cannot use reserved database name in this operation.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 404 RestoreSourceDatabaseNotFound - Could not find database '{0}' at time '{1}' that can be restored.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 CannotFindServerCertificateWithThumbprint - Cannot find server certificate with thumbprint '{0}'. Please use PowerShell Cmdlet 'Add-AzureRmSqlManagedInstanceTransparentDataEncryptionCertificate' to create the certificate.\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 409 RemoteDatabaseExists - The destination database name already exists on the destination server.\n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 409 ManagementServiceDatabaseBusy - Database '{0}' is busy with another operation. Please try your operation later.\n\n * 409 ConflictingDatabaseOperation - There is already some operation on the database and the current operation should wait till it is done.\n\n * 409 ConflictingSystemOperationInProgress - A system maintenance operation is in progress on the database and further operations need to wait until it is completed.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 500 ActivateOrDeactivateWorkflowThrottling - Activation or deactivation workflow failed because there are too many concurrent workflows\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 DatabaseUnavailable - The operation failed because the database is unavailable.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
},
"202": {
"description": "Updating the managed database is in progress."
@@ -359,7 +359,7 @@
}
},
"default": {
- "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription."
+ "description": "*** Error Responses: ***\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found"
}
},
"x-ms-pageable": {
@@ -410,7 +410,7 @@
"description": "Successfully completed restore request."
},
"default": {
- "description": "*** Error Responses: ***\n\n * 400 InvalidDatabaseCompleteRestoreRequest - The complete database restore request is invalid\n\n * 400 InvalidDatabaseCompleteRestoreRequestLastBackupName - The last backup name is invalid\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 SourceDatabaseNotFound - The source database does not exist.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 UnsupportedServiceName - The specified name is an invalid name because it contains one or more unsupported unicode characters.\n\n * 400 MissingThumbprint - Can not find server certificate.\n\n * 400 PartiallyContainedDatabaseUnsupported - \"Backup for a partially contained database is not supported.\"\n\n * 400 RequiredBackupIsNotLastRestored - Migration cannot be completed because provided backup file name is not the name of the last backup file that is restored.\n\n * 400 IncompatiblePhysicalLayoutTooFewDataFiles - Database backup contains incompatible physical layout. No data files are found in the backup.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineDataFilesExist - Database backup contains incompatible physical layout. Non-online data files exist.\n\n * 400 IncompatiblePhysicalLayoutWrongNumberOfLogFiles - Database backup contains incompatible physical layout. Multiple log files are not supported.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineLogFilesExist - Database backup contains incompatible physical layout. Non-online log files exist.\n\n * 400 IncompatiblePhysicalLayoutTooManyNonDataLogFiles - Database backup contains incompatible physical layout. Too many non-data/log files.\n\n * 400 BackupSetNotFound - \"No backups were found to restore the database. Please contact support to restore the database.\n\n * 400 ExternalBackupAlreadySignaledToComplete - The restore request has already been signaled to complete.\n\n * 400 FullBackupNotFound - Full backup can not be found.\n\n * 400 ExternalBackupRestoreHasNotBeenStarted - The restore request can only be completed once the restore has started.\n\n * 400 ExternalBackupUpgradeInProgress - The restore request cannot be completed, since upgrade is in progress.\n\n * 400 RestoreFromStripedBackupsNotEnabled - Restoring from striped backups is not supported.\n\n * 400 BrokenRestorePlanNoFullBackup - The restore plan is broken because there is no full backup.\n\n * 400 IncompatiblePhysicalLayoutTooManyXTPFiles - Database backup contains incompatible physical layout. Multiple files found in the filegroup that contains MEMORY_OPTIMIZED_DATA.\n\n * 400 BrokenRestorePlanWrongLogBackupLSN - The restore plan is broken because firstLsn of current log backup is not <= lastLsn of next log backup.\n\n * 400 BrokenRestorePlanWrongDiffBackupLSN - The restore plan is broken because firstLsn of diff backup is not >= firstLsn of full backup.\n\n * 400 BrokenRestorePlanGapInLogBackups - The restore plan is broken because firstLsn of current log backup is not equal to lastLsn of prev log backup.\n\n * 400 XtpInitializedDuringRestore - Memory-optimized filegroup must be empty in order to be restored on General Purpose tier of SQL Database Managed Instance.\n\n * 400 FullBackupMissingChecksum - Provided full backup is missing checksum.\n\n * 400 FullBackupDamaged - Provided full backup is damaged.\n\n * 400 ManagedInstanceStorageLimitHit - The managed instance has reached its storage limit.\n\n * 404 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources."
+ "description": "*** Error Responses: ***\n\n * 400 InvalidDatabaseCompleteRestoreRequest - The complete database restore request is invalid\n\n * 400 InvalidDatabaseCompleteRestoreRequestLastBackupName - The last backup name is invalid\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 UnsupportedServiceName - The specified name is an invalid name because it contains one or more unsupported unicode characters.\n\n * 400 SourceDatabaseNotFound - The source database does not exist.\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 ManagedInstanceStorageLimitHit - The managed instance has reached its storage limit.\n\n * 400 BackupSetNotFound - \"No backups were found to restore the database. Please contact support to restore the database.\n\n * 400 FullBackupNotFound - Full backup can not be found.\n\n * 400 RestoreFromStripedBackupsNotEnabled - Restoring from striped backups is not supported.\n\n * 400 BrokenRestorePlanNoFullBackup - The restore plan is broken because there is no full backup.\n\n * 400 BrokenRestorePlanWrongLogBackupLSN - The restore plan is broken because firstLsn of current log backup is not <= lastLsn of next log backup.\n\n * 400 BrokenRestorePlanWrongDiffBackupLSN - The restore plan is broken because firstLsn of diff backup is not >= firstLsn of full backup.\n\n * 400 BrokenRestorePlanGapInLogBackups - The restore plan is broken because firstLsn of current log backup is not equal to lastLsn of prev log backup.\n\n * 400 XtpInitializedDuringRestore - Memory-optimized filegroup must be empty in order to be restored on General Purpose tier of SQL Database Managed Instance.\n\n * 400 FullBackupMissingChecksum - Provided full backup is missing checksum.\n\n * 400 FullBackupDamaged - Provided full backup is damaged.\n\n * 400 PartiallyContainedDatabaseUnsupported - \"Backup for a partially contained database is not supported.\"\n\n * 400 RequiredBackupIsNotLastRestored - Migration cannot be completed because provided backup file name is not the name of the last backup file that is restored.\n\n * 400 IncompatiblePhysicalLayoutTooFewDataFiles - Database backup contains incompatible physical layout. No data files are found in the backup.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineDataFilesExist - Database backup contains incompatible physical layout. Non-online data files exist.\n\n * 400 IncompatiblePhysicalLayoutWrongNumberOfLogFiles - Database backup contains incompatible physical layout. Multiple log files are not supported.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineLogFilesExist - Database backup contains incompatible physical layout. Non-online log files exist.\n\n * 400 IncompatiblePhysicalLayoutTooManyNonDataLogFiles - Database backup contains incompatible physical layout. Too many non-data/log files.\n\n * 400 ExternalBackupAlreadySignaledToComplete - The restore request has already been signaled to complete.\n\n * 400 ExternalBackupRestoreHasNotBeenStarted - The restore request can only be completed once the restore has started.\n\n * 400 ExternalBackupUpgradeInProgress - The restore request cannot be completed, since upgrade is in progress.\n\n * 400 IncompatiblePhysicalLayoutTooManyXTPFiles - Database backup contains incompatible physical layout. Multiple files found in the filegroup that contains MEMORY_OPTIMIZED_DATA.\n\n * 400 BlobStorageFailure - Blob storage failure has occurred.\n\n * 400 MissingThumbprint - Can not find server certificate.\n\n * 404 ResourceDoesNotExist - Resource with the name '{0}' does not exist. To continue, specify a valid resource name.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources."
},
"202": {
"description": "Completing restore request is in progress."
@@ -606,7 +606,7 @@
]
},
"createMode": {
- "description": "Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore.",
+ "description": "Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required).",
"enum": [
"Default",
"RestoreExternalBackup",
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json
new file mode 100644
index 000000000000..ab80ff901950
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json
@@ -0,0 +1,1079 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2019-06-01-preview",
+ "title": "SqlManagementClient",
+ "description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/syncDatabaseIds": {
+ "get": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Gets a collection of sync database ids.",
+ "operationId": "SyncGroups_ListSyncDatabaseIds",
+ "parameters": [
+ {
+ "name": "locationName",
+ "in": "path",
+ "description": "The name of the region where the resource is located.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved collection of sync database ids.",
+ "schema": {
+ "$ref": "#/definitions/SyncDatabaseIdListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Get a sync database ID": {
+ "$ref": "./examples/SyncGroupGetSyncDatabaseId.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/refreshHubSchema": {
+ "post": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Refreshes a hub database schema.",
+ "operationId": "SyncGroups_RefreshHubSchema",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully refreshed a sync hub schema."
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ },
+ "202": {
+ "description": "The sync hub schema refresh operation is on going."
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Refresh a hub database schema.": {
+ "$ref": "./examples/SyncGroupRefreshHubSchema.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/hubSchemas": {
+ "get": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Gets a collection of hub database schemas.",
+ "operationId": "SyncGroups_ListHubSchemas",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully get a sync group hub database schema.",
+ "schema": {
+ "$ref": "#/definitions/SyncFullSchemaPropertiesListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Get a hub database schema.": {
+ "$ref": "./examples/SyncGroupGetHubSchema.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs": {
+ "get": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Gets a collection of sync group logs.",
+ "operationId": "SyncGroups_ListLogs",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "startTime",
+ "in": "query",
+ "description": "Get logs generated after this time.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "endTime",
+ "in": "query",
+ "description": "Get logs generated before this time.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "description": "The types of logs to retrieve.",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "All",
+ "Error",
+ "Warning",
+ "Success"
+ ]
+ },
+ {
+ "name": "continuationToken",
+ "in": "query",
+ "description": "The continuation token for this operation.",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved sync group logs.",
+ "schema": {
+ "$ref": "#/definitions/SyncGroupLogListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Get sync group logs": {
+ "$ref": "./examples/SyncGroupGetLog.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/cancelSync": {
+ "post": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Cancels a sync group synchronization.",
+ "operationId": "SyncGroups_CancelSync",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully cancel a sync group synchronization."
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ }
+ },
+ "x-ms-examples": {
+ "Cancel a sync group synchronization": {
+ "$ref": "./examples/SyncGroupCancelSync.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/triggerSync": {
+ "post": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Triggers a sync group synchronization.",
+ "operationId": "SyncGroups_TriggerSync",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully triggered a sync group synchronization."
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ }
+ },
+ "x-ms-examples": {
+ "Trigger a sync group synchronization.": {
+ "$ref": "./examples/SyncGroupTriggerSync.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}": {
+ "get": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Gets a sync group.",
+ "operationId": "SyncGroups_Get",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved the specified sync group.",
+ "schema": {
+ "$ref": "#/definitions/SyncGroup"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ }
+ },
+ "x-ms-examples": {
+ "Get a sync group": {
+ "$ref": "./examples/SyncGroupGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Creates or updates a sync group.",
+ "operationId": "SyncGroups_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The requested sync group resource state.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SyncGroup"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully updated the sync group.",
+ "schema": {
+ "$ref": "#/definitions/SyncGroup"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ },
+ "202": {
+ "description": "Creating or updating the sync group is in progress."
+ },
+ "201": {
+ "description": "Successfully created the sync group.",
+ "schema": {
+ "$ref": "#/definitions/SyncGroup"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create a sync group": {
+ "$ref": "./examples/SyncGroupCreate.json"
+ },
+ "Update a sync group": {
+ "$ref": "./examples/SyncGroupUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Deletes a sync group.",
+ "operationId": "SyncGroups_Delete",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully deleted the sync group."
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ },
+ "202": {
+ "description": "Deleting the sync group is in progress."
+ },
+ "204": {
+ "description": "The specified sync group does not exist."
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Delete a sync group": {
+ "$ref": "./examples/SyncGroupDelete.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Updates a sync group.",
+ "operationId": "SyncGroups_Update",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The requested sync group resource state.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SyncGroup"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully updated the sync group.",
+ "schema": {
+ "$ref": "#/definitions/SyncGroup"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ },
+ "202": {
+ "description": "Updating the sync group is in progress."
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Update a sync group": {
+ "$ref": "./examples/SyncGroupPatch.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups": {
+ "get": {
+ "tags": [
+ "SyncGroups"
+ ],
+ "description": "Lists sync groups under a hub database.",
+ "operationId": "SyncGroups_ListByDatabase",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved the list of sync groups.",
+ "schema": {
+ "$ref": "#/definitions/SyncGroupListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncGroupDueToQuotaExceeded - Cannot create sync group due to quota exceeded."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List sync groups under a given database": {
+ "$ref": "./examples/SyncGroupListByDatabase.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "SyncDatabaseIdListResult": {
+ "description": "A list of sync database ID properties.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Array of results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncDatabaseIdProperties"
+ },
+ "readOnly": true
+ },
+ "nextLink": {
+ "description": "Link to retrieve next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncDatabaseIdProperties": {
+ "description": "Properties of the sync database id.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "ARM resource id of sync database.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncFullSchemaPropertiesListResult": {
+ "description": "A list of sync schema properties.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Array of results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncFullSchemaProperties"
+ },
+ "readOnly": true
+ },
+ "nextLink": {
+ "description": "Link to retrieve next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncFullSchemaProperties": {
+ "description": "Properties of the database full schema.",
+ "type": "object",
+ "properties": {
+ "tables": {
+ "description": "List of tables in the database full schema.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncFullSchemaTable"
+ },
+ "readOnly": true
+ },
+ "lastUpdateTime": {
+ "format": "date-time",
+ "description": "Last update time of the database schema.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncFullSchemaTable": {
+ "description": "Properties of the table in the database full schema.",
+ "type": "object",
+ "properties": {
+ "columns": {
+ "description": "List of columns in the table of database full schema.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncFullSchemaTableColumn"
+ },
+ "readOnly": true
+ },
+ "errorId": {
+ "description": "Error id of the table.",
+ "type": "string",
+ "readOnly": true
+ },
+ "hasError": {
+ "description": "If there is error in the table.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "name": {
+ "description": "Name of the table.",
+ "type": "string",
+ "readOnly": true
+ },
+ "quotedName": {
+ "description": "Quoted name of the table.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncFullSchemaTableColumn": {
+ "description": "Properties of the column in the table of database full schema.",
+ "type": "object",
+ "properties": {
+ "dataSize": {
+ "description": "Data size of the column.",
+ "type": "string",
+ "readOnly": true
+ },
+ "dataType": {
+ "description": "Data type of the column.",
+ "type": "string",
+ "readOnly": true
+ },
+ "errorId": {
+ "description": "Error id of the column.",
+ "type": "string",
+ "readOnly": true
+ },
+ "hasError": {
+ "description": "If there is error in the table.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "isPrimaryKey": {
+ "description": "If it is the primary key of the table.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "name": {
+ "description": "Name of the column.",
+ "type": "string",
+ "readOnly": true
+ },
+ "quotedName": {
+ "description": "Quoted name of the column.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncGroupLogListResult": {
+ "description": "A list of sync group log properties.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Array of results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncGroupLogProperties"
+ },
+ "readOnly": true
+ },
+ "nextLink": {
+ "description": "Link to retrieve next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncGroupLogProperties": {
+ "description": "Properties of an Azure SQL Database sync group log.",
+ "type": "object",
+ "properties": {
+ "timestamp": {
+ "format": "date-time",
+ "description": "Timestamp of the sync group log.",
+ "type": "string",
+ "readOnly": true
+ },
+ "type": {
+ "description": "Type of the sync group log.",
+ "enum": [
+ "All",
+ "Error",
+ "Warning",
+ "Success"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "SyncGroupLogType",
+ "modelAsString": true
+ }
+ },
+ "source": {
+ "description": "Source of the sync group log.",
+ "type": "string",
+ "readOnly": true
+ },
+ "details": {
+ "description": "Details of the sync group log.",
+ "type": "string",
+ "readOnly": true
+ },
+ "tracingId": {
+ "format": "uuid",
+ "description": "TracingId of the sync group log.",
+ "type": "string",
+ "readOnly": true
+ },
+ "operationStatus": {
+ "description": "OperationStatus of the sync group log.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncGroupProperties": {
+ "description": "Properties of a sync group.",
+ "type": "object",
+ "properties": {
+ "interval": {
+ "format": "int32",
+ "description": "Sync interval of the sync group.",
+ "type": "integer"
+ },
+ "lastSyncTime": {
+ "format": "date-time",
+ "description": "Last sync time of the sync group.",
+ "type": "string",
+ "readOnly": true
+ },
+ "conflictResolutionPolicy": {
+ "description": "Conflict resolution policy of the sync group.",
+ "enum": [
+ "HubWin",
+ "MemberWin"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SyncConflictResolutionPolicy",
+ "modelAsString": true
+ }
+ },
+ "syncDatabaseId": {
+ "description": "ARM resource id of the sync database in the sync group.",
+ "type": "string"
+ },
+ "hubDatabaseUserName": {
+ "description": "User name for the sync group hub database credential.",
+ "type": "string"
+ },
+ "hubDatabasePassword": {
+ "description": "Password for the sync group hub database credential.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ]
+ },
+ "syncState": {
+ "description": "Sync state of the sync group.",
+ "enum": [
+ "NotReady",
+ "Error",
+ "Warning",
+ "Progressing",
+ "Good"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "SyncGroupState",
+ "modelAsString": true
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/SyncGroupSchema",
+ "description": "Sync schema of the sync group."
+ },
+ "usePrivateLinkConnection": {
+ "description": "If use private link connection is enabled.",
+ "type": "boolean"
+ }
+ }
+ },
+ "SyncGroupSchema": {
+ "description": "Properties of sync group schema.",
+ "type": "object",
+ "properties": {
+ "tables": {
+ "description": "List of tables in sync group schema.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncGroupSchemaTable"
+ }
+ },
+ "masterSyncMemberName": {
+ "description": "Name of master sync member where the schema is from.",
+ "type": "string"
+ }
+ }
+ },
+ "SyncGroupSchemaTable": {
+ "description": "Properties of table in sync group schema.",
+ "type": "object",
+ "properties": {
+ "columns": {
+ "description": "List of columns in sync group schema.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncGroupSchemaTableColumn"
+ }
+ },
+ "quotedName": {
+ "description": "Quoted name of sync group schema table.",
+ "type": "string"
+ }
+ }
+ },
+ "SyncGroupSchemaTableColumn": {
+ "description": "Properties of column in sync group table.",
+ "type": "object",
+ "properties": {
+ "quotedName": {
+ "description": "Quoted name of sync group table column.",
+ "type": "string"
+ },
+ "dataSize": {
+ "description": "Data size of the column.",
+ "type": "string"
+ },
+ "dataType": {
+ "description": "Data type of the column.",
+ "type": "string"
+ }
+ }
+ },
+ "SyncGroup": {
+ "description": "An Azure SQL Database sync group.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/SyncGroupProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "SyncGroupListResult": {
+ "description": "A list of sync groups.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Array of results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncGroup"
+ },
+ "readOnly": true
+ },
+ "nextLink": {
+ "description": "Link to retrieve next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "The subscription ID that identifies an Azure subscription.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "description": "The API version to use for the request.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client"
+ },
+ "ResourceGroupParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "ServerNameParameter": {
+ "name": "serverName",
+ "in": "path",
+ "description": "The name of the server.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "DatabaseNameParameter": {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json
new file mode 100644
index 000000000000..ba60112d1b74
--- /dev/null
+++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json
@@ -0,0 +1,774 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2019-06-01-preview",
+ "title": "SqlManagementClient",
+ "description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}": {
+ "get": {
+ "tags": [
+ "SyncMembers"
+ ],
+ "description": "Gets a sync member.",
+ "operationId": "SyncMembers_Get",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group on which the sync member is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncMemberName",
+ "in": "path",
+ "description": "The name of the sync member.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved the specified sync member.",
+ "schema": {
+ "$ref": "#/definitions/SyncMember"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMember - Sync member is invalid.\n\n * 400 InvalidSyncAgent - Sync agent is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncMemberDueToQuotaExceeded - Cannot create sync member due to quota exceeded."
+ }
+ },
+ "x-ms-examples": {
+ "Get a sync member": {
+ "$ref": "./examples/SyncMemberGet.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "SyncMembers"
+ ],
+ "description": "Creates or updates a sync member.",
+ "operationId": "SyncMembers_CreateOrUpdate",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group on which the sync member is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncMemberName",
+ "in": "path",
+ "description": "The name of the sync member.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The requested sync member resource state.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SyncMember"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully updated the sync member.",
+ "schema": {
+ "$ref": "#/definitions/SyncMember"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMember - Sync member is invalid.\n\n * 400 InvalidSyncAgent - Sync agent is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncMemberDueToQuotaExceeded - Cannot create sync member due to quota exceeded."
+ },
+ "202": {
+ "description": "Creating or updating the sync member is in progress."
+ },
+ "201": {
+ "description": "Successfully created the sync member.",
+ "schema": {
+ "$ref": "#/definitions/SyncMember"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Create a new sync member": {
+ "$ref": "./examples/SyncMemberCreate.json"
+ },
+ "Update a sync member": {
+ "$ref": "./examples/SyncMemberUpdate.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "SyncMembers"
+ ],
+ "description": "Deletes a sync member.",
+ "operationId": "SyncMembers_Delete",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group on which the sync member is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncMemberName",
+ "in": "path",
+ "description": "The name of the sync member.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully deleted the sync member."
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMember - Sync member is invalid.\n\n * 400 InvalidSyncAgent - Sync agent is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncMemberDueToQuotaExceeded - Cannot create sync member due to quota exceeded."
+ },
+ "202": {
+ "description": "Deleting the sync member is in progress."
+ },
+ "204": {
+ "description": "The specified sync member does not exist."
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Delete a sync member": {
+ "$ref": "./examples/SyncMemberDelete.json"
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "SyncMembers"
+ ],
+ "description": "Updates an existing sync member.",
+ "operationId": "SyncMembers_Update",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group on which the sync member is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncMemberName",
+ "in": "path",
+ "description": "The name of the sync member.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "The requested sync member resource state.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SyncMember"
+ }
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully updated the sync member.",
+ "schema": {
+ "$ref": "#/definitions/SyncMember"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMember - Sync member is invalid.\n\n * 400 InvalidSyncAgent - Sync agent is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncMemberDueToQuotaExceeded - Cannot create sync member due to quota exceeded."
+ },
+ "202": {
+ "description": "Updating the sync member is in progress."
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Update an existing sync member": {
+ "$ref": "./examples/SyncMemberPatch.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers": {
+ "get": {
+ "tags": [
+ "SyncMembers"
+ ],
+ "description": "Lists sync members in the given sync group.",
+ "operationId": "SyncMembers_ListBySyncGroup",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved the list of sync members.",
+ "schema": {
+ "$ref": "#/definitions/SyncMemberListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMember - Sync member is invalid.\n\n * 400 InvalidSyncAgent - Sync agent is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncMemberDueToQuotaExceeded - Cannot create sync member due to quota exceeded."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List sync members under a sync group": {
+ "$ref": "./examples/SyncMemberListBySyncGroup.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/schemas": {
+ "get": {
+ "tags": [
+ "SyncMembers"
+ ],
+ "description": "Gets a sync member database schema.",
+ "operationId": "SyncMembers_ListMemberSchemas",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group on which the sync member is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncMemberName",
+ "in": "path",
+ "description": "The name of the sync member.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully get a sync member schema.",
+ "schema": {
+ "$ref": "#/definitions/SyncFullSchemaPropertiesListResult"
+ }
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMember - Sync member is invalid.\n\n * 400 InvalidSyncAgent - Sync agent is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncMemberDueToQuotaExceeded - Cannot create sync member due to quota exceeded."
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "Get a sync member schema": {
+ "$ref": "./examples/SyncMemberGetSchema.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}/refreshSchema": {
+ "post": {
+ "tags": [
+ "SyncMembers"
+ ],
+ "description": "Refreshes a sync member database schema.",
+ "operationId": "SyncMembers_RefreshMemberSchema",
+ "parameters": [
+ {
+ "$ref": "#/parameters/ResourceGroupParameter"
+ },
+ {
+ "$ref": "#/parameters/ServerNameParameter"
+ },
+ {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database on which the sync group is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "The name of the sync group on which the sync member is hosted.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncMemberName",
+ "in": "path",
+ "description": "The name of the sync member.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully refreshed a sync member schema."
+ },
+ "default": {
+ "description": "*** Error Responses: ***\n\n * 400 InvalidSyncGroupCreateOrUpdateRequest - The create or update sync group request body is empty.\n\n * 400 InvalidSyncMemberCreateOrUpdateRequest - The create or update sync member request body is empty.\n\n * 400 InvalidSyncAgentCreateOrUpdateRequest - The create or update sync agent request body is empty.\n\n * 400 InvalidDatabaseResourceId - Invalid database resource identifier.\n\n * 400 MismatchingSubscriptionWithUrl - The provided subscription did not match the subscription in the Url.\n\n * 400 InvalidSyncAgentResourceId - Invalid sync agent resource identifier.\n\n * 400 MismatchingResourceGroupNameWithUrl - The provided resource group name did not match the name in the Url.\n\n * 400 MismatchingServerNameWithUrl - The provided server name did not match the name in the Url.\n\n * 400 InvalidSyncGroup - Sync group is invalid.\n\n * 400 InvalidSyncMember - Sync member is invalid.\n\n * 400 InvalidSyncAgent - Sync agent is invalid.\n\n * 400 InvalidSyncMetadataDatabase - Sync metadata database is invalid.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 409 CannotCreateSyncMemberDueToQuotaExceeded - Cannot create sync member due to quota exceeded."
+ },
+ "202": {
+ "description": "The sync member schema refresh operation is on going."
+ }
+ },
+ "x-ms-long-running-operation": true,
+ "x-ms-examples": {
+ "Refresh a sync member database schema": {
+ "$ref": "./examples/SyncMemberRefreshSchema.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "SyncMemberProperties": {
+ "description": "Properties of a sync member.",
+ "type": "object",
+ "properties": {
+ "databaseType": {
+ "description": "Database type of the sync member.",
+ "enum": [
+ "AzureSqlDatabase",
+ "SqlServerDatabase"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SyncMemberDbType",
+ "modelAsString": true
+ }
+ },
+ "syncAgentId": {
+ "description": "ARM resource id of the sync agent in the sync member.",
+ "type": "string"
+ },
+ "sqlServerDatabaseId": {
+ "format": "uuid",
+ "description": "SQL Server database id of the sync member.",
+ "type": "string"
+ },
+ "syncMemberAzureDatabaseResourceId": {
+ "description": "ARM resource id of the sync member logical database, for sync members in Azure.",
+ "type": "string"
+ },
+ "usePrivateLinkConnection": {
+ "description": "Whether to use private link connection.",
+ "type": "boolean"
+ },
+ "serverName": {
+ "description": "Server name of the member database in the sync member",
+ "type": "string"
+ },
+ "databaseName": {
+ "description": "Database name of the member database in the sync member.",
+ "type": "string"
+ },
+ "userName": {
+ "description": "User name of the member database in the sync member.",
+ "type": "string"
+ },
+ "password": {
+ "description": "Password of the member database in the sync member.",
+ "type": "string",
+ "x-ms-mutability": [
+ "create",
+ "update"
+ ]
+ },
+ "syncDirection": {
+ "description": "Sync direction of the sync member.",
+ "enum": [
+ "Bidirectional",
+ "OneWayMemberToHub",
+ "OneWayHubToMember"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "name": "SyncDirection",
+ "modelAsString": true
+ }
+ },
+ "syncState": {
+ "description": "Sync state of the sync member.",
+ "enum": [
+ "SyncInProgress",
+ "SyncSucceeded",
+ "SyncFailed",
+ "DisabledTombstoneCleanup",
+ "DisabledBackupRestore",
+ "SyncSucceededWithWarnings",
+ "SyncCancelling",
+ "SyncCancelled",
+ "UnProvisioned",
+ "Provisioning",
+ "Provisioned",
+ "ProvisionFailed",
+ "DeProvisioning",
+ "DeProvisioned",
+ "DeProvisionFailed",
+ "Reprovisioning",
+ "ReprovisionFailed",
+ "UnReprovisioned"
+ ],
+ "type": "string",
+ "readOnly": true,
+ "x-ms-enum": {
+ "name": "SyncMemberState",
+ "modelAsString": true
+ }
+ }
+ }
+ },
+ "SyncMember": {
+ "description": "An Azure SQL Database sync member.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/SyncMemberProperties",
+ "description": "Resource properties.",
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "SyncMemberListResult": {
+ "description": "A list of Azure SQL Database sync members.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Array of results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncMember"
+ },
+ "readOnly": true
+ },
+ "nextLink": {
+ "description": "Link to retrieve next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncFullSchemaPropertiesListResult": {
+ "description": "A list of sync schema properties.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "description": "Array of results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncFullSchemaProperties"
+ },
+ "readOnly": true
+ },
+ "nextLink": {
+ "description": "Link to retrieve next page of results.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncFullSchemaProperties": {
+ "description": "Properties of the database full schema.",
+ "type": "object",
+ "properties": {
+ "tables": {
+ "description": "List of tables in the database full schema.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncFullSchemaTable"
+ },
+ "readOnly": true
+ },
+ "lastUpdateTime": {
+ "format": "date-time",
+ "description": "Last update time of the database schema.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncFullSchemaTable": {
+ "description": "Properties of the table in the database full schema.",
+ "type": "object",
+ "properties": {
+ "columns": {
+ "description": "List of columns in the table of database full schema.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SyncFullSchemaTableColumn"
+ },
+ "readOnly": true
+ },
+ "errorId": {
+ "description": "Error id of the table.",
+ "type": "string",
+ "readOnly": true
+ },
+ "hasError": {
+ "description": "If there is error in the table.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "name": {
+ "description": "Name of the table.",
+ "type": "string",
+ "readOnly": true
+ },
+ "quotedName": {
+ "description": "Quoted name of the table.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "SyncFullSchemaTableColumn": {
+ "description": "Properties of the column in the table of database full schema.",
+ "type": "object",
+ "properties": {
+ "dataSize": {
+ "description": "Data size of the column.",
+ "type": "string",
+ "readOnly": true
+ },
+ "dataType": {
+ "description": "Data type of the column.",
+ "type": "string",
+ "readOnly": true
+ },
+ "errorId": {
+ "description": "Error id of the column.",
+ "type": "string",
+ "readOnly": true
+ },
+ "hasError": {
+ "description": "If there is error in the table.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "isPrimaryKey": {
+ "description": "If it is the primary key of the table.",
+ "type": "boolean",
+ "readOnly": true
+ },
+ "name": {
+ "description": "Name of the column.",
+ "type": "string",
+ "readOnly": true
+ },
+ "quotedName": {
+ "description": "Quoted name of the column.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "SubscriptionIdParameter": {
+ "name": "subscriptionId",
+ "in": "path",
+ "description": "The subscription ID that identifies an Azure subscription.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "description": "The API version to use for the request.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "client"
+ },
+ "ResourceGroupParameter": {
+ "name": "resourceGroupName",
+ "in": "path",
+ "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "ServerNameParameter": {
+ "name": "serverName",
+ "in": "path",
+ "description": "The name of the server.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ },
+ "DatabaseNameParameter": {
+ "name": "databaseName",
+ "in": "path",
+ "description": "The name of the database.",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "securityDefinitions": {
+ "azure_auth": {
+ "type": "oauth2",
+ "description": "Azure Active Directory OAuth2 Flow",
+ "flow": "implicit",
+ "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
+ "scopes": {
+ "user_impersonation": "impersonate your user account"
+ }
+ }
+ }
+}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json
deleted file mode 100644
index 63699e0d02b9..000000000000
--- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json
+++ /dev/null
@@ -1,279 +0,0 @@
-{
- "swagger": "2.0",
- "info": {
- "title": "Azure SQL Database Backup Long Term Retention Policy",
- "description": "Provides read and update functionality for Azure SQL Database backup long term retention policy",
- "version": "2014-04-01"
- },
- "host": "management.azure.com",
- "schemes": [
- "https"
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "paths": {
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{backupLongTermRetentionPolicyName}": {
- "get": {
- "tags": [
- "BackupLongTermRetentionPolicies"
- ],
- "operationId": "BackupLongTermRetentionPolicies_Get",
- "description": "Returns a database backup long term retention policy",
- "x-ms-examples": {
- "Get backup long term retention policy": {
- "$ref": "./examples/BackupLongTermRetentionPolicyGet.json"
- }
- },
- "parameters": [
- {
- "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
- },
- {
- "$ref": "#/parameters/ServerNameParameter"
- },
- {
- "name": "databaseName",
- "in": "path",
- "required": true,
- "type": "string",
- "description": "The name of the database."
- },
- {
- "name": "backupLongTermRetentionPolicyName",
- "in": "path",
- "description": "The name of the backup long term retention policy",
- "required": true,
- "type": "string",
- "enum": [
- "Default"
- ],
- "x-ms-enum": {
- "name": "BackupLongTermRetentionPolicyName",
- "modelAsString": true
- }
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionPolicy"
- }
- }
- }
- },
- "put": {
- "tags": [
- "BackupLongTermRetentionPolicies"
- ],
- "operationId": "BackupLongTermRetentionPolicies_CreateOrUpdate",
- "description": "Creates or updates a database backup long term retention policy",
- "x-ms-examples": {
- "Update backup long term retention policy": {
- "$ref": "./examples/BackupLongTermRetentionPolicyUpdate.json"
- }
- },
- "parameters": [
- {
- "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
- },
- {
- "$ref": "#/parameters/ServerNameParameter"
- },
- {
- "name": "databaseName",
- "in": "path",
- "required": true,
- "type": "string",
- "description": "The name of the database"
- },
- {
- "name": "backupLongTermRetentionPolicyName",
- "in": "path",
- "description": "The name of the backup long term retention policy",
- "required": true,
- "type": "string",
- "enum": [
- "Default"
- ],
- "x-ms-enum": {
- "name": "BackupLongTermRetentionPolicyName",
- "modelAsString": true
- }
- },
- {
- "name": "parameters",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionPolicy"
- },
- "description": "The required parameters to update a backup long term retention policy"
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionPolicy"
- }
- },
- "201": {
- "description": "Created",
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionPolicy"
- }
- },
- "202": {
- "description": "Accepted"
- }
- },
- "x-ms-long-running-operation": true
- }
- },
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies": {
- "get": {
- "tags": [
- "BackupLongTermRetentionPolicies"
- ],
- "operationId": "BackupLongTermRetentionPolicies_ListByDatabase",
- "description": "Returns a database backup long term retention policy",
- "x-ms-examples": {
- "Get backup long term retention policy": {
- "$ref": "./examples/BackupLongTermRetentionPolicyList.json"
- }
- },
- "parameters": [
- {
- "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
- },
- {
- "$ref": "#/parameters/ServerNameParameter"
- },
- {
- "name": "databaseName",
- "in": "path",
- "required": true,
- "type": "string",
- "description": "The name of the database."
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionPolicyListResult"
- }
- }
- },
- "x-ms-pageable": {
- "nextLinkName": null
- }
- }
- }
- },
- "definitions": {
- "BackupLongTermRetentionPolicyProperties": {
- "properties": {
- "state": {
- "type": "string",
- "description": "The status of the backup long term retention policy",
- "enum": [
- "Disabled",
- "Enabled"
- ],
- "x-ms-enum": {
- "name": "BackupLongTermRetentionPolicyState"
- }
- },
- "recoveryServicesBackupPolicyResourceId": {
- "type": "string",
- "description": "The azure recovery services backup protection policy resource id"
- }
- },
- "required": [
- "state",
- "recoveryServicesBackupPolicyResourceId"
- ],
- "description": "The properties of a backup long term retention policy"
- },
- "BackupLongTermRetentionPolicy": {
- "properties": {
- "location": {
- "type": "string",
- "readOnly": true,
- "description": "The geo-location where the resource lives"
- },
- "properties": {
- "$ref": "#/definitions/BackupLongTermRetentionPolicyProperties",
- "description": "The properties of the backup long term retention policy",
- "x-ms-client-flatten": true
- }
- },
- "allOf": [
- {
- "$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
- }
- ],
- "description": "A backup long term retention policy"
- },
- "BackupLongTermRetentionPolicyListResult": {
- "properties": {
- "value": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/BackupLongTermRetentionPolicy"
- },
- "description": "The list of long-term retention policies in the database."
- }
- },
- "required": [
- "value"
- ],
- "description": "Represents the response to a list long-term retention policies request."
- }
- },
- "parameters": {
- "ServerNameParameter": {
- "name": "serverName",
- "in": "path",
- "required": true,
- "type": "string",
- "description": "The name of the server.",
- "x-ms-parameter-location": "method"
- }
- },
- "securityDefinitions": {
- "azure_auth": {
- "type": "oauth2",
- "description": "Azure Active Directory OAuth2 Flow",
- "flow": "implicit",
- "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
- "scopes": {
- "user_impersonation": "impersonate your user account"
- }
- }
- }
-}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json
deleted file mode 100644
index f99b9020d32c..000000000000
--- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json
+++ /dev/null
@@ -1,246 +0,0 @@
-{
- "swagger": "2.0",
- "info": {
- "title": "Azure SQL Server Backup Long Term Retention Vault",
- "description": "Provides read and update functionality for Azure SQL Server backup long term retention vault",
- "version": "2014-04-01"
- },
- "host": "management.azure.com",
- "schemes": [
- "https"
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "paths": {
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/backupLongTermRetentionVaults/{backupLongTermRetentionVaultName}": {
- "get": {
- "tags": [
- "BackupLongTermRetentionVaults"
- ],
- "operationId": "BackupLongTermRetentionVaults_Get",
- "description": "Gets a server backup long term retention vault",
- "x-ms-examples": {
- "Get backup long term retention vault": {
- "$ref": "./examples/BackupLongTermRetentionVaultGet.json"
- }
- },
- "parameters": [
- {
- "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
- },
- {
- "$ref": "#/parameters/ServerNameParameter"
- },
- {
- "name": "backupLongTermRetentionVaultName",
- "in": "path",
- "description": "The name of the Azure SQL Server backup LongTermRetention vault",
- "required": true,
- "type": "string",
- "enum": [
- "RegisteredVault"
- ],
- "x-ms-enum": {
- "name": "BackupLongTermRetentionVaultName",
- "modelAsString": true
- }
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionVault"
- }
- }
- }
- },
- "put": {
- "tags": [
- "BackupLongTermRetentionVaults"
- ],
- "operationId": "BackupLongTermRetentionVaults_CreateOrUpdate",
- "description": "Updates a server backup long term retention vault",
- "x-ms-examples": {
- "Update backup long term retention vault": {
- "$ref": "./examples/BackupLongTermRetentionVaultUpdate.json"
- }
- },
- "parameters": [
- {
- "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
- },
- {
- "$ref": "#/parameters/ServerNameParameter"
- },
- {
- "name": "backupLongTermRetentionVaultName",
- "in": "path",
- "description": "The name of the backup long term retention vault",
- "required": true,
- "type": "string",
- "enum": [
- "RegisteredVault"
- ],
- "x-ms-enum": {
- "name": "BackupLongTermRetentionVaultName",
- "modelAsString": true
- }
- },
- {
- "name": "parameters",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionVault"
- },
- "description": "The required parameters to update a backup long term retention vault"
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionVault"
- }
- },
- "201": {
- "description": "Created",
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionVault"
- }
- },
- "202": {
- "description": "Accepted"
- }
- },
- "x-ms-long-running-operation": true
- }
- },
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/backupLongTermRetentionVaults": {
- "get": {
- "tags": [
- "BackupLongTermRetentionVaults"
- ],
- "operationId": "BackupLongTermRetentionVaults_ListByServer",
- "description": "Gets server backup long term retention vaults in a server",
- "x-ms-examples": {
- "Get backup long term retention vault": {
- "$ref": "./examples/BackupLongTermRetentionVaultList.json"
- }
- },
- "parameters": [
- {
- "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
- },
- {
- "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
- },
- {
- "$ref": "#/parameters/ServerNameParameter"
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/BackupLongTermRetentionVaultListResult"
- }
- }
- },
- "x-ms-pageable": {
- "nextLinkName": null
- }
- }
- }
- },
- "definitions": {
- "BackupLongTermRetentionVaultProperties": {
- "properties": {
- "recoveryServicesVaultResourceId": {
- "type": "string",
- "description": "The azure recovery services vault resource id"
- }
- },
- "required": [
- "recoveryServicesVaultResourceId"
- ],
- "description": "The properties of a backup long term retention vault."
- },
- "BackupLongTermRetentionVault": {
- "properties": {
- "location": {
- "type": "string",
- "readOnly": true,
- "description": "The geo-location where the resource lives"
- },
- "properties": {
- "$ref": "#/definitions/BackupLongTermRetentionVaultProperties",
- "description": "The properties of the backup long term retention vault",
- "x-ms-client-flatten": true
- }
- },
- "allOf": [
- {
- "$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
- }
- ],
- "description": "A backup long term retention vault"
- },
- "BackupLongTermRetentionVaultListResult": {
- "properties": {
- "value": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/BackupLongTermRetentionVault"
- },
- "description": "The list of vaults in the server."
- }
- },
- "required": [
- "value"
- ],
- "description": "Represents the response to a list vaults request."
- }
- },
- "parameters": {
- "ServerNameParameter": {
- "name": "serverName",
- "in": "path",
- "required": true,
- "type": "string",
- "description": "The name of the server.",
- "x-ms-parameter-location": "method"
- }
- },
- "securityDefinitions": {
- "azure_auth": {
- "type": "oauth2",
- "description": "Azure Active Directory OAuth2 Flow",
- "flow": "implicit",
- "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
- "scopes": {
- "user_impersonation": "impersonate your user account"
- }
- }
- }
-}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyGet.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyGet.json
deleted file mode 100644
index 93363b068510..000000000000
--- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyGet.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "parameters": {
- "subscriptionId": "00000000-1111-2222-3333-444444444444",
- "resourceGroupName": "longtermretentiontest-1234",
- "serverName": "longtermretentiontest-5678",
- "databaseName": "longtermretentiontest-9012",
- "backupLongTermRetentionPolicyName": "Default",
- "api-version": "2014-04-01"
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentiontest-1234/providers/Microsoft.Sql/servers/longtermretentiontest-5678/databases/longtermretentiontest-9012/backupLongTermRetentionPolicies/Default",
- "name": "Default",
- "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
- "location": "Japan East",
- "properties": {
- "recoveryServicesBackupPolicyResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentionvaulttest-1234/providers/Microsoft.RecoveryServices/vaults/testVaultabc/backupPolicies/testPolicyxyz",
- "state": "Enabled"
- }
- }
- }
- }
-}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyList.json
deleted file mode 100644
index 28f8c70d6fd4..000000000000
--- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyList.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "parameters": {
- "subscriptionId": "00000000-1111-2222-3333-444444444444",
- "resourceGroupName": "longtermretentiontest-1234",
- "serverName": "longtermretentiontest-5678",
- "databaseName": "longtermretentiontest-9012",
- "backupLongTermRetentionPolicyName": "Default",
- "api-version": "2014-04-01"
- },
- "responses": {
- "200": {
- "body": {
- "value": [
- {
- "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentiontest-1234/providers/Microsoft.Sql/servers/longtermretentiontest-5678/databases/longtermretentiontest-9012/backupLongTermRetentionPolicies/Default",
- "name": "Default",
- "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
- "location": "Japan East",
- "properties": {
- "recoveryServicesBackupPolicyResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentionvaulttest-1234/providers/Microsoft.RecoveryServices/vaults/testVaultabc/backupPolicies/testPolicyxyz",
- "state": "Enabled"
- }
- }
- ]
- }
- }
- }
-}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyUpdate.json
deleted file mode 100644
index de1cf5233a3a..000000000000
--- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionPolicyUpdate.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "parameters": {
- "subscriptionId": "00000000-1111-2222-3333-444444444444",
- "resourceGroupName": "longtermretentiontest-1234",
- "serverName": "longtermretentiontest-5678",
- "databaseName": "longtermretentiontest-9012",
- "backupLongTermRetentionPolicyName": "Default",
- "api-version": "2014-04-01",
- "parameters": {
- "properties": {
- "recoveryServicesBackupPolicyResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentionvaulttest-1234/providers/Microsoft.RecoveryServices/vaults/testVaultabc/backupPolicies/testPolicyxyz",
- "state": "Enabled"
- },
- "location": "Japan East"
- }
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentiontest-1234/providers/Microsoft.Sql/servers/longtermretentiontest-5678/databases/longtermretentiontest-9012/backupLongTermRetentionPolicies/Default",
- "name": "Default",
- "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
- "location": "Japan East",
- "properties": {
- "recoveryServicesBackupPolicyResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentionvaulttest-1234/providers/Microsoft.RecoveryServices/vaults/testVaultabc/backupPolicies/testPolicyxyz",
- "state": "Enabled"
- }
- }
- },
- "201": {
- "body": {
- "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentiontest-1234/providers/Microsoft.Sql/servers/longtermretentiontest-5678/databases/longtermretentiontest-9012/backupLongTermRetentionPolicies/Default",
- "name": "Default",
- "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
- "location": "Japan East",
- "properties": {
- "recoveryServicesBackupPolicyResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentionvaulttest-1234/providers/Microsoft.RecoveryServices/vaults/testVaultabc/backupPolicies/testPolicyxyz",
- "state": "Enabled"
- }
- }
- },
- "202": {}
- }
-}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultGet.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultGet.json
deleted file mode 100644
index 71d522217d44..000000000000
--- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultGet.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "parameters": {
- "subscriptionId": "00000000-1111-2222-3333-444444444444",
- "resourceGroupName": "longtermretentiontest-1234",
- "serverName": "longtermretentiontest-5678",
- "backupLongTermRetentionVaultName": "RegisteredVault",
- "api-version": "2014-04-01"
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentiontest-1234/providers/Microsoft.Sql/servers/longtermretentiontest-5678/backupLongTermRetentionVaults/RegisteredVault",
- "name": "RegisteredVault",
- "type": "Microsoft.Sql/servers/backupLongTermRetentionVaults",
- "location": "Japan East",
- "properties": {
- "recoveryServicesVaultResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentionvaulttest-1234/providers/Microsoft.RecoveryServices/vaults/testVaultabc"
- }
- }
- }
- }
-}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultList.json
deleted file mode 100644
index 309ca317552c..000000000000
--- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultList.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "parameters": {
- "subscriptionId": "00000000-1111-2222-3333-444444444444",
- "resourceGroupName": "longtermretentiontest-1234",
- "serverName": "longtermretentiontest-5678",
- "api-version": "2014-04-01"
- },
- "responses": {
- "200": {
- "body": {
- "value": [
- {
- "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentiontest-1234/providers/Microsoft.Sql/servers/longtermretentiontest-5678/backupLongTermRetentionVaults/RegisteredVault",
- "name": "RegisteredVault",
- "type": "Microsoft.Sql/servers/backupLongTermRetentionVaults",
- "location": "Japan East",
- "properties": {
- "recoveryServicesVaultResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentionvaulttest-1234/providers/Microsoft.RecoveryServices/vaults/testVaultabc"
- }
- }
- ]
- }
- }
- }
-}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultUpdate.json
deleted file mode 100644
index f6c1aadd3e9b..000000000000
--- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/BackupLongTermRetentionVaultUpdate.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "parameters": {
- "subscriptionId": "00000000-1111-2222-3333-444444444444",
- "resourceGroupName": "longtermretentiontest-1234",
- "serverName": "longtermretentiontest-5678",
- "backupLongTermRetentionVaultName": "RegisteredVault",
- "api-version": "2014-04-01",
- "parameters": {
- "properties": {
- "recoveryServicesVaultResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentiontest-5678/providers/Microsoft.RecoveryServices/vaults/testVaultabc"
- },
- "location": "Japan East"
- }
- },
- "responses": {
- "200": {
- "body": {
- "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentiontest-1234/providers/Microsoft.Sql/servers/longtermretentiontest-5678/backupLongTermRetentionVaults/RegisteredVault",
- "name": "RegisteredVault",
- "type": "Microsoft.Sql/servers/backupLongTermRetentionVaults",
- "location": "Japan East",
- "properties": {
- "recoveryServicesVaultResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentionvaulttest-1234/providers/Microsoft.RecoveryServices/vaults/testVaultabc"
- }
- }
- },
- "201": {
- "body": {
- "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentiontest-1234/providers/Microsoft.Sql/servers/longtermretentiontest-5678/backupLongTermRetentionVaults/RegisteredVault",
- "name": "RegisteredVault",
- "type": "Microsoft.Sql/servers/backupLongTermRetentionVaults",
- "location": "Japan East",
- "properties": {
- "recoveryServicesVaultResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/longtermretentionvaulttest-1234/providers/Microsoft.RecoveryServices/vaults/testVaultabc"
- }
- }
- },
- "202": {}
- }
-}
diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/OperationList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/OperationList.json
index 5b54c709b1f8..e2eebc1c75e7 100644
--- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/OperationList.json
+++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/OperationList.json
@@ -1136,22 +1136,6 @@
"resource": "Data Warehouse Query Step",
"operation": "Get details about data warehouse query step"
}
- },
- {
- "name": "Microsoft.Sql/servers/backupLongTermRetentionVaults/read",
- "display": {
- "provider": "Microsoft SQL Database",
- "resource": "A backup long term retention vault",
- "operation": "Read a backup long term retention vault"
- }
- },
- {
- "name": "Microsoft.Sql/servers/backupLongTermRetentionVaults/write",
- "display": {
- "provider": "Microsoft SQL Database",
- "resource": "A backup long term retention vault",
- "operation": "This operation is used to register a backup long term retention vault to a server."
- }
}
]
}
diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md
index 6aaa7bfd7c89..b67d56d4dc40 100644
--- a/specification/sql/resource-manager/readme.md
+++ b/specification/sql/resource-manager/readme.md
@@ -85,8 +85,6 @@ input-file:
- Microsoft.Sql/preview/2015-05-01-preview/operations.json
- Microsoft.Sql/preview/2015-05-01-preview/serverKeys.json
- Microsoft.Sql/preview/2015-05-01-preview/syncAgents.json
-- Microsoft.Sql/preview/2015-05-01-preview/syncGroups.json
-- Microsoft.Sql/preview/2015-05-01-preview/syncMembers.json
- Microsoft.Sql/preview/2015-05-01-preview/usages.json
- Microsoft.Sql/preview/2015-05-01-preview/virtualclusters.json
- Microsoft.Sql/preview/2015-05-01-preview/virtualNetworkRules.json
@@ -140,6 +138,8 @@ input-file:
- Microsoft.Sql/preview/2019-06-01-preview/managedDatabases.json
- Microsoft.Sql/preview/2019-06-01-preview/ServerAzureADAdministrators.json
- Microsoft.Sql/preview/2019-06-01-preview/managedInstanceOperations.json
+- Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json
+- Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json
# Needed when there is more than one input file
override-info:
@@ -189,8 +189,6 @@ input-file:
- Microsoft.Sql/preview/2015-05-01-preview/operations.json
- Microsoft.Sql/preview/2015-05-01-preview/serverKeys.json
- Microsoft.Sql/preview/2015-05-01-preview/syncAgents.json
-- Microsoft.Sql/preview/2015-05-01-preview/syncGroups.json
-- Microsoft.Sql/preview/2015-05-01-preview/syncMembers.json
- Microsoft.Sql/preview/2015-05-01-preview/usages.json
- Microsoft.Sql/preview/2015-05-01-preview/virtualclusters.json
- Microsoft.Sql/preview/2015-05-01-preview/virtualNetworkRules.json
@@ -241,6 +239,8 @@ input-file:
- Microsoft.Sql/preview/2019-06-01-preview/WorkloadClassifiers.json
- Microsoft.Sql/preview/2019-06-01-preview/managedDatabases.json
- Microsoft.Sql/preview/2019-06-01-preview/ServerAzureADAdministrators.json
+- Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json
+- Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json
# Needed when there is more than one input file
override-info:
@@ -257,8 +257,6 @@ APIs must only be added to this section when the API is publicly available in at
``` yaml $(tag) == 'package-composite-v1'
input-file:
-- Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json
-- Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json
- Microsoft.Sql/stable/2014-04-01/backups.json
- Microsoft.Sql/stable/2014-04-01/capabilities.json
- Microsoft.Sql/stable/2014-04-01/connectionPolicies.json
@@ -282,8 +280,6 @@ input-file:
- Microsoft.Sql/preview/2015-05-01-preview/operations.json
- Microsoft.Sql/preview/2015-05-01-preview/serverKeys.json
- Microsoft.Sql/preview/2015-05-01-preview/syncAgents.json
-- Microsoft.Sql/preview/2015-05-01-preview/syncGroups.json
-- Microsoft.Sql/preview/2015-05-01-preview/syncMembers.json
- Microsoft.Sql/preview/2015-05-01-preview/usages.json
- Microsoft.Sql/preview/2015-05-01-preview/virtualclusters.json
- Microsoft.Sql/preview/2015-05-01-preview/virtualNetworkRules.json
@@ -333,6 +329,8 @@ input-file:
- Microsoft.Sql/preview/2019-06-01-preview/WorkloadClassifiers.json
- Microsoft.Sql/preview/2019-06-01-preview/managedDatabases.json
- Microsoft.Sql/preview/2019-06-01-preview/ServerAzureADAdministrators.json
+- Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json
+- Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json
# Needed when there is more than one input file
override-info:
@@ -349,8 +347,6 @@ APIs must only be added to this section when the API is publicly available in at
``` yaml $(tag) == 'package-2017-03-preview'
input-file:
-- Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json
-- Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json
- Microsoft.Sql/stable/2014-04-01/backups.json
- Microsoft.Sql/stable/2014-04-01/capabilities.json
- Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json
@@ -414,8 +410,6 @@ APIs must only be added to this section when the API is publicly available in at
``` yaml $(tag) == 'package-2015-05-preview'
input-file:
-- Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json
-- Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json
- Microsoft.Sql/stable/2014-04-01/backups.json
- Microsoft.Sql/stable/2014-04-01/restorePoints.json
- Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json
@@ -501,6 +495,8 @@ input-file:
- ./Microsoft.Sql/preview/2019-06-01-preview/WorkloadClassifiers.json
- ./Microsoft.Sql/preview/2019-06-01-preview/managedInstanceOperations.json
- ./Microsoft.Sql/preview/2019-06-01-preview/ServerAzureADAdministrators.json
+ - ./Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json
+ - ./Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json
# Needed when there is more than one input file
override-info:
@@ -660,8 +656,6 @@ These can be regenerated by running the following PowerShell script from this re
``` yaml $(tag) == 'package-pure-2014-04'
input-file:
- ./Microsoft.Sql/stable/2014-04-01/advisors.json
- - ./Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json
- - ./Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json
- ./Microsoft.Sql/stable/2014-04-01/backups.json
- ./Microsoft.Sql/stable/2014-04-01/capabilities.json
- ./Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json
@@ -821,8 +815,6 @@ input-file:
- $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/operations.json
- $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/serverKeys.json
- $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/syncAgents.json
- - $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/syncGroups.json
- - $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/syncMembers.json
- $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/usages.json
- $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/virtualclusters.json
- $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/virtualNetworkRules.json
@@ -876,17 +868,19 @@ input-file:
- $(this-folder)/Microsoft.Sql/preview/2019-06-01-preview/managedDatabases.json
- $(this-folder)/Microsoft.Sql/preview/2019-06-01-preview/ServerAzureADAdministrators.json
- $(this-folder)/Microsoft.Sql/preview/2019-06-01-preview/managedInstanceOperations.json
+ - $(this-folder)/Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json
+ - $(this-folder)/Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json
- $(this-folder)/Microsoft.Sql/stable/2014-04-01/capabilities.json
- $(this-folder)/Microsoft.Sql/stable/2014-04-01/databases.json
- $(this-folder)/Microsoft.Sql/stable/2014-04-01/elasticPools.json
- $(this-folder)/Microsoft.Sql/stable/2014-04-01/recommendedElasticPools.json
- $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/renameDatabase.json
- - $(this-folder)/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json
- - $(this-folder)/Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json
- $(this-folder)/Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json
- $(this-folder)/Microsoft.Sql/stable/2014-04-01/serverAzureADAdministrators.json
- $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/managedInstances.json
- $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/servers.json
+ - $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/syncGroups.json
+ - $(this-folder)/Microsoft.Sql/preview/2015-05-01-preview/syncMembers.json
- $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/cancelOperations.json
- $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/dataWarehouseUserActivities.json
- $(this-folder)/Microsoft.Sql/preview/2017-03-01-preview/managedDatabases.json
@@ -901,6 +895,8 @@ input-file:
- $(this-folder)/./Microsoft.Sql/preview/2019-06-01-preview/WorkloadClassifiers.json
- $(this-folder)/./Microsoft.Sql/preview/2019-06-01-preview/managedInstanceOperations.json
- $(this-folder)/./Microsoft.Sql/preview/2019-06-01-preview/ServerAzureADAdministrators.json
+ - $(this-folder)/./Microsoft.Sql/preview/2019-06-01-preview/syncGroups.json
+ - $(this-folder)/./Microsoft.Sql/preview/2019-06-01-preview/syncMembers.json
- $(this-folder)/./Microsoft.Sql/preview/2018-06-01-preview/DatabaseSecurityAlertPolicies.json
- $(this-folder)/./Microsoft.Sql/preview/2018-06-01-preview/managedDatabaseSensitivityLabels.json
- $(this-folder)/./Microsoft.Sql/preview/2018-06-01-preview/ManagedInstanceVulnerabilityAssessments.json
@@ -970,8 +966,6 @@ input-file:
- $(this-folder)/./Microsoft.Sql/preview/2015-05-01-preview/virtualclusters.json
- $(this-folder)/./Microsoft.Sql/preview/2015-05-01-preview/virtualNetworkRules.json
- $(this-folder)/./Microsoft.Sql/stable/2014-04-01/advisors.json
- - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json
- - $(this-folder)/./Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json
- $(this-folder)/./Microsoft.Sql/stable/2014-04-01/backups.json
- $(this-folder)/./Microsoft.Sql/stable/2014-04-01/capabilities.json
- $(this-folder)/./Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2016-12-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2016-12-01/storage.json
index 5675ac9790fd..8a63727a08be 100644
--- a/specification/storage/resource-manager/Microsoft.Storage/stable/2016-12-01/storage.json
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2016-12-01/storage.json
@@ -1191,6 +1191,10 @@
"f",
"s"
],
+ "x-ms-enum": {
+ "name": "signedResource",
+ "modelAsString": true
+ },
"x-ms-client-name": "Resource",
"description": "The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s)."
},
@@ -1206,6 +1210,10 @@
"u",
"p"
],
+ "x-ms-enum": {
+ "name": "Permissions",
+ "modelAsString": true
+ },
"x-ms-client-name": "Permissions",
"description": "The signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p)."
},
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json
index 824471ca5f73..57ebabb6a0b9 100644
--- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/blob.json
@@ -149,6 +149,9 @@
"x-ms-examples": {
"ListContainers": {
"$ref": "./examples/BlobContainersList.json"
+ },
+ "ListDeletedContainers": {
+ "$ref": "./examples/DeletedBlobContainersList.json"
}
},
"description": "Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.",
@@ -176,6 +179,20 @@
"in": "query",
"type": "string",
"description": "Optional. When specified, only container names starting with the filter will be listed."
+ },
+ {
+ "name": "$include",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "enum": [
+ "deleted"
+ ],
+ "x-ms-enum": {
+ "name": "ListContainersInclude",
+ "modelAsString": true
+ },
+ "description": "Optional, used to include the properties for soft deleted blob containers."
}
],
"responses": {
@@ -800,6 +817,27 @@
"definitions": {
"ContainerProperties": {
"properties": {
+ "version": {
+ "type": "string",
+ "readOnly": true,
+ "description": "The version of the deleted blob container."
+ },
+ "deleted": {
+ "type": "boolean",
+ "readOnly": true,
+ "description": "Indicates whether the blob container was deleted."
+ },
+ "deletedTime": {
+ "type": "string",
+ "format": "date-time",
+ "readOnly": true,
+ "description": "Blob container deletion time."
+ },
+ "remainingRetentionDays": {
+ "type": "integer",
+ "readOnly": true,
+ "description": "Remaining retention days for soft deleted blob container."
+ },
"defaultEncryptionScope": {
"type": "string",
"description": "Default the container to use specified encryption scope for all writes."
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/DeletedBlobContainersList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/DeletedBlobContainersList.json
new file mode 100644
index 000000000000..eefea4e85461
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/DeletedBlobContainersList.json
@@ -0,0 +1,50 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res9290",
+ "accountName": "sto1590",
+ "$include": "deleted",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/blobServices/default/containers/container1644",
+ "name": "container1644",
+ "type": "Microsoft.Storage/storageAccounts/blobServices/containers",
+ "etag": "\"0x8D589847D51C7DE\"",
+ "properties": {
+ "publicAccess": "Container",
+ "leaseStatus": "Unlocked",
+ "leaseState": "Available",
+ "lastModifiedTime": "2018-03-14T08:20:47Z",
+ "hasImmutabilityPolicy": false,
+ "hasLegalHold": false
+ }
+ },
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/blobServices/default/containers/container4052",
+ "name": "container4052",
+ "type": "Microsoft.Storage/storageAccounts/blobServices/containers",
+ "etag": "\"0x8D589847DAB5AF9\"",
+ "properties": {
+ "publicAccess": "None",
+ "leaseStatus": "Unlocked",
+ "leaseState": "Expired",
+ "lastModifiedTime": "2018-03-14T08:20:47Z",
+ "hasImmutabilityPolicy": false,
+ "hasLegalHold": false,
+ "version": "1234567890",
+ "deleted": true,
+ "deletedTime": "2019-12-14T08:20:47Z",
+ "remainingRetentionDays": 30
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationDelete.json
new file mode 100644
index 000000000000..355ec2716a4a
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res3376",
+ "accountName": "sto328",
+ "queueName": "queue6185",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationGet.json
new file mode 100644
index 000000000000..fad951eeeec4
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationGet.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res3376",
+ "accountName": "sto328",
+ "queueName": "queue6185",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185",
+ "name": "queue6185",
+ "type": "Microsoft.Storage/storageAccounts/queueServices/queues",
+ "properties": {
+ "metadata": {
+ "sample1": "meta1",
+ "sample2": "meta2"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationList.json
new file mode 100644
index 000000000000..9554cb861681
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationList.json
@@ -0,0 +1,40 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res9290",
+ "accountName": "sto328",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185",
+ "name": "queue6185",
+ "type": "Microsoft.Storage/storageAccounts/queueServices/queues",
+ "properties": {
+ "metadata": {
+ "sample1": "meta1",
+ "sample2": "meta2"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6186",
+ "name": "queue6186",
+ "type": "Microsoft.Storage/storageAccounts/queueServices/queues",
+ "properties": {
+ "metadata": {
+ "sample1": "meta1",
+ "sample2": "meta2"
+ }
+ }
+ }
+ ],
+ "nextLink": "https://sto1590endpoint/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues?api-version=2019-06-01&$maxpagesize=2&$skipToken=/sto328/queue6187"
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPatch.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPatch.json
new file mode 100644
index 000000000000..b2270a4ca9c6
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPatch.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res3376",
+ "accountName": "sto328",
+ "queueName": "queue6185",
+ "api-version": "2019-06-01",
+ "monitor": "true",
+ "queue": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185",
+ "name": "queue6185",
+ "type": "Microsoft.Storage/storageAccounts/queueServices/queues"
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPut.json
new file mode 100644
index 000000000000..b2270a4ca9c6
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPut.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res3376",
+ "accountName": "sto328",
+ "queueName": "queue6185",
+ "api-version": "2019-06-01",
+ "monitor": "true",
+ "queue": {}
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185",
+ "name": "queue6185",
+ "type": "Microsoft.Storage/storageAccounts/queueServices/queues"
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPutWithMetadata.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPutWithMetadata.json
new file mode 100644
index 000000000000..b1a1a4776e4d
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueOperationPutWithMetadata.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res3376",
+ "accountName": "sto328",
+ "queueName": "queue6185",
+ "api-version": "2019-06-01",
+ "monitor": "true",
+ "queue": {
+ "properties": {
+ "metadata": {
+ "sample1": "meta1",
+ "sample2": "meta2"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/queueServices/default/queues/queue6185",
+ "name": "queue6185",
+ "type": "Microsoft.Storage/storageAccounts/queueServices/queues",
+ "properties": {
+ "metadata": {
+ "sample1": "meta1",
+ "sample2": "meta2"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesGet.json
new file mode 100644
index 000000000000..59a9502132e4
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesGet.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res4410",
+ "accountName": "sto8607",
+ "queueServiceName": "default",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/queueServices/default",
+ "name": "default",
+ "type": "Microsoft.Storage/storageAccounts/queueServices",
+ "properties": {
+ "cors": {
+ "corsRules": [
+ {
+ "allowedOrigins": [
+ "http://www.contoso.com",
+ "http://www.fabrikam.com"
+ ],
+ "allowedMethods": [
+ "GET",
+ "HEAD",
+ "POST",
+ "OPTIONS",
+ "MERGE",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 100,
+ "exposedHeaders": [
+ "x-ms-meta-*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "*"
+ ],
+ "allowedMethods": [
+ "GET"
+ ],
+ "maxAgeInSeconds": 2,
+ "exposedHeaders": [
+ "*"
+ ],
+ "allowedHeaders": [
+ "*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "http://www.abc23.com",
+ "https://www.fabrikam.com/*"
+ ],
+ "allowedMethods": [
+ "GET",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 2000,
+ "exposedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-12345675754564*"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesList.json
new file mode 100644
index 000000000000..e797fa2e065f
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesList.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res9290",
+ "accountName": "sto1590",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/queueServices/default",
+ "name": "default",
+ "type": "Microsoft.Storage/storageAccounts/queueServices",
+ "properties": {
+ "cors": {
+ "corsRules": [
+ {
+ "allowedOrigins": [
+ "http://www.contoso.com",
+ "http://www.fabrikam.com"
+ ],
+ "allowedMethods": [
+ "GET",
+ "HEAD",
+ "POST",
+ "OPTIONS",
+ "MERGE",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 100,
+ "exposedHeaders": [
+ "x-ms-meta-*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "*"
+ ],
+ "allowedMethods": [
+ "GET"
+ ],
+ "maxAgeInSeconds": 2,
+ "exposedHeaders": [
+ "*"
+ ],
+ "allowedHeaders": [
+ "*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "http://www.abc23.com",
+ "https://www.fabrikam.com/*"
+ ],
+ "allowedMethods": [
+ "GET",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 2000,
+ "exposedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-12345675754564*"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesPut.json
new file mode 100644
index 000000000000..141c1417a860
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/QueueServicesPut.json
@@ -0,0 +1,147 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res4410",
+ "accountName": "sto8607",
+ "queueServiceName": "default",
+ "api-version": "2019-06-01",
+ "monitor": "true",
+ "parameters": {
+ "properties": {
+ "cors": {
+ "corsRules": [
+ {
+ "allowedOrigins": [
+ "http://www.contoso.com",
+ "http://www.fabrikam.com"
+ ],
+ "allowedMethods": [
+ "GET",
+ "HEAD",
+ "POST",
+ "OPTIONS",
+ "MERGE",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 100,
+ "exposedHeaders": [
+ "x-ms-meta-*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "*"
+ ],
+ "allowedMethods": [
+ "GET"
+ ],
+ "maxAgeInSeconds": 2,
+ "exposedHeaders": [
+ "*"
+ ],
+ "allowedHeaders": [
+ "*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "http://www.abc23.com",
+ "https://www.fabrikam.com/*"
+ ],
+ "allowedMethods": [
+ "GET",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 2000,
+ "exposedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-12345675754564*"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/queueServices/default",
+ "name": "default",
+ "type": "Microsoft.Storage/storageAccounts/queueServices",
+ "properties": {
+ "cors": {
+ "corsRules": [
+ {
+ "allowedOrigins": [
+ "http://www.contoso.com",
+ "http://www.fabrikam.com"
+ ],
+ "allowedMethods": [
+ "GET",
+ "HEAD",
+ "POST",
+ "OPTIONS",
+ "MERGE",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 100,
+ "exposedHeaders": [
+ "x-ms-meta-*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "*"
+ ],
+ "allowedMethods": [
+ "GET"
+ ],
+ "maxAgeInSeconds": 2,
+ "exposedHeaders": [
+ "*"
+ ],
+ "allowedHeaders": [
+ "*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "http://www.abc23.com",
+ "https://www.fabrikam.com/*"
+ ],
+ "allowedMethods": [
+ "GET",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 2000,
+ "exposedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-12345675754564*"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountCreate.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountCreate.json
index 6b81e637edb1..13f6c5388b0b 100644
--- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountCreate.json
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountCreate.json
@@ -28,6 +28,7 @@
"enabled": true
}
},
+ "requireInfrastructureEncryption": false,
"keySource": "Microsoft.Storage"
}
},
@@ -89,6 +90,7 @@
"lastEnabledTime": "2019-12-11T20:49:31.7036140Z"
}
},
+ "requireInfrastructureEncryption": false,
"keySource": "Microsoft.Storage"
},
"secondaryLocation": "centraluseuap",
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationDelete.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationDelete.json
new file mode 100644
index 000000000000..b50907bcf6ba
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationDelete.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res3376",
+ "accountName": "sto328",
+ "tableName": "table6185",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "204": {}
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationGet.json
new file mode 100644
index 000000000000..ad61ecff6513
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationGet.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res3376",
+ "accountName": "sto328",
+ "tableName": "table6185",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/tableServices/default/tables/table6185",
+ "name": "table6185",
+ "type": "Microsoft.Storage/storageAccounts/tableServices/tables",
+ "properties": {
+ "tableName": "table6185"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationList.json
new file mode 100644
index 000000000000..c239b4e52023
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationList.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res9290",
+ "accountName": "sto328",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/tableServices/default/tables/table6185",
+ "name": "table6185",
+ "type": "Microsoft.Storage/storageAccounts/tableServices/tables",
+ "properties": {
+ "tableName": "table6185"
+ }
+ },
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/tableServices/default/tables/table6186",
+ "name": "table6186",
+ "type": "Microsoft.Storage/storageAccounts/tableServices/tables",
+ "properties": {
+ "tableName": "table6186"
+ }
+ }
+ ],
+ "nextLink": "https://sto1590endpoint/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto328/tableServices/default/tables?api-version=2019-06-01&NextTableName=1!40!bXl0YWJsZXNoYzU0OAEwMWQ2MTI5ZTJmYjVmODFh"
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationPatch.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationPatch.json
new file mode 100644
index 000000000000..ad61ecff6513
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationPatch.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res3376",
+ "accountName": "sto328",
+ "tableName": "table6185",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/tableServices/default/tables/table6185",
+ "name": "table6185",
+ "type": "Microsoft.Storage/storageAccounts/tableServices/tables",
+ "properties": {
+ "tableName": "table6185"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationPut.json
new file mode 100644
index 000000000000..ad61ecff6513
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableOperationPut.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res3376",
+ "accountName": "sto328",
+ "tableName": "table6185",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res3376/providers/Microsoft.Storage/storageAccounts/sto328/tableServices/default/tables/table6185",
+ "name": "table6185",
+ "type": "Microsoft.Storage/storageAccounts/tableServices/tables",
+ "properties": {
+ "tableName": "table6185"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesGet.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesGet.json
new file mode 100644
index 000000000000..53b11ad310d2
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesGet.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res4410",
+ "accountName": "sto8607",
+ "tableServiceName": "default",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/tableServices/default",
+ "name": "default",
+ "type": "Microsoft.Storage/storageAccounts/tableServices",
+ "properties": {
+ "cors": {
+ "corsRules": [
+ {
+ "allowedOrigins": [
+ "http://www.contoso.com",
+ "http://www.fabrikam.com"
+ ],
+ "allowedMethods": [
+ "GET",
+ "HEAD",
+ "POST",
+ "OPTIONS",
+ "MERGE",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 100,
+ "exposedHeaders": [
+ "x-ms-meta-*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "*"
+ ],
+ "allowedMethods": [
+ "GET"
+ ],
+ "maxAgeInSeconds": 2,
+ "exposedHeaders": [
+ "*"
+ ],
+ "allowedHeaders": [
+ "*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "http://www.abc23.com",
+ "https://www.fabrikam.com/*"
+ ],
+ "allowedMethods": [
+ "GET",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 2000,
+ "exposedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-12345675754564*"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesList.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesList.json
new file mode 100644
index 000000000000..9fc35a182c54
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesList.json
@@ -0,0 +1,85 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res9290",
+ "accountName": "sto1590",
+ "api-version": "2019-06-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/tableServices/default",
+ "name": "default",
+ "type": "Microsoft.Storage/storageAccounts/tableServices",
+ "properties": {
+ "cors": {
+ "corsRules": [
+ {
+ "allowedOrigins": [
+ "http://www.contoso.com",
+ "http://www.fabrikam.com"
+ ],
+ "allowedMethods": [
+ "GET",
+ "HEAD",
+ "POST",
+ "OPTIONS",
+ "MERGE",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 100,
+ "exposedHeaders": [
+ "x-ms-meta-*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "*"
+ ],
+ "allowedMethods": [
+ "GET"
+ ],
+ "maxAgeInSeconds": 2,
+ "exposedHeaders": [
+ "*"
+ ],
+ "allowedHeaders": [
+ "*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "http://www.abc23.com",
+ "https://www.fabrikam.com/*"
+ ],
+ "allowedMethods": [
+ "GET",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 2000,
+ "exposedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-12345675754564*"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesPut.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesPut.json
new file mode 100644
index 000000000000..e66436e66d07
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/TableServicesPut.json
@@ -0,0 +1,147 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res4410",
+ "accountName": "sto8607",
+ "tableServiceName": "default",
+ "api-version": "2019-06-01",
+ "monitor": "true",
+ "parameters": {
+ "properties": {
+ "cors": {
+ "corsRules": [
+ {
+ "allowedOrigins": [
+ "http://www.contoso.com",
+ "http://www.fabrikam.com"
+ ],
+ "allowedMethods": [
+ "GET",
+ "HEAD",
+ "POST",
+ "OPTIONS",
+ "MERGE",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 100,
+ "exposedHeaders": [
+ "x-ms-meta-*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "*"
+ ],
+ "allowedMethods": [
+ "GET"
+ ],
+ "maxAgeInSeconds": 2,
+ "exposedHeaders": [
+ "*"
+ ],
+ "allowedHeaders": [
+ "*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "http://www.abc23.com",
+ "https://www.fabrikam.com/*"
+ ],
+ "allowedMethods": [
+ "GET",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 2000,
+ "exposedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-12345675754564*"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/tableServices/default",
+ "name": "default",
+ "type": "Microsoft.Storage/storageAccounts/tableServices",
+ "properties": {
+ "cors": {
+ "corsRules": [
+ {
+ "allowedOrigins": [
+ "http://www.contoso.com",
+ "http://www.fabrikam.com"
+ ],
+ "allowedMethods": [
+ "GET",
+ "HEAD",
+ "POST",
+ "OPTIONS",
+ "MERGE",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 100,
+ "exposedHeaders": [
+ "x-ms-meta-*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "*"
+ ],
+ "allowedMethods": [
+ "GET"
+ ],
+ "maxAgeInSeconds": 2,
+ "exposedHeaders": [
+ "*"
+ ],
+ "allowedHeaders": [
+ "*"
+ ]
+ },
+ {
+ "allowedOrigins": [
+ "http://www.abc23.com",
+ "https://www.fabrikam.com/*"
+ ],
+ "allowedMethods": [
+ "GET",
+ "PUT"
+ ],
+ "maxAgeInSeconds": 2000,
+ "exposedHeaders": [
+ "x-ms-meta-abc",
+ "x-ms-meta-data*",
+ "x-ms-meta-target*"
+ ],
+ "allowedHeaders": [
+ "x-ms-meta-12345675754564*"
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json
index bba100994b25..9e603d1881fa 100644
--- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/file.json
@@ -709,6 +709,7 @@
},
"shareUsageBytes": {
"type": "integer",
+ "format": "int64",
"readOnly": true,
"description": "The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files."
}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/queue.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/queue.json
new file mode 100644
index 000000000000..d7cf16d5a438
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/queue.json
@@ -0,0 +1,560 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2019-06-01",
+ "title": "StorageManagementClient",
+ "description": "The Azure Storage Management API."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices": {
+ "get": {
+ "tags": [
+ "QueueServiceProperties"
+ ],
+ "operationId": "QueueServices_List",
+ "x-ms-examples": {
+ "QueueServicesList": {
+ "$ref": "./examples/QueueServicesList.json"
+ }
+ },
+ "description": "List all queue services for the storage account",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- returned the properties of a storage account’s Queue service.",
+ "schema": {
+ "$ref": "#/definitions/ListQueueServices"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}": {
+ "put": {
+ "tags": [
+ "QueueServiceProperties"
+ ],
+ "operationId": "QueueServices_SetServiceProperties",
+ "x-ms-examples": {
+ "QueueServicesPut": {
+ "$ref": "./examples/QueueServicesPut.json"
+ }
+ },
+ "description": "Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. ",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/QueueServiceName"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/QueueServiceProperties"
+ },
+ "description": "The properties of a storage account’s Queue service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Sets The properties of a storage account’s Queue service successfully.",
+ "schema": {
+ "$ref": "#/definitions/QueueServiceProperties"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "QueueServiceProperties"
+ ],
+ "operationId": "QueueServices_GetServiceProperties",
+ "x-ms-examples": {
+ "QueueServicesGet": {
+ "$ref": "./examples/QueueServicesGet.json"
+ }
+ },
+ "description": "Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/QueueServiceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- returned the properties of a storage account’s Queue service.",
+ "schema": {
+ "$ref": "#/definitions/QueueServiceProperties"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}": {
+ "put": {
+ "tags": [
+ "QueueService"
+ ],
+ "operationId": "Queue_Create",
+ "x-ms-examples": {
+ "QueueOperationPut": {
+ "$ref": "./examples/QueueOperationPut.json"
+ },
+ "QueueOperationPutWithMetadata": {
+ "$ref": "./examples/QueueOperationPutWithMetadata.json"
+ }
+ },
+ "description": "Creates a new queue with the specified queue name, under the specified account.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/QueueName"
+ },
+ {
+ "name": "queue",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/StorageQueue"
+ },
+ "description": "Queue properties and metadata to be created with"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Creates a queue with the given queue name successfully.",
+ "schema": {
+ "$ref": "#/definitions/StorageQueue"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "QueueService"
+ ],
+ "operationId": "Queue_Update",
+ "x-ms-examples": {
+ "QueueOperationPatch": {
+ "$ref": "./examples/QueueOperationPatch.json"
+ }
+ },
+ "description": "Creates a new queue with the specified queue name, under the specified account.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/QueueName"
+ },
+ {
+ "name": "queue",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/StorageQueue"
+ },
+ "description": "Queue properties and metadata to be created with"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Creates a queue with the given queue name successfully.",
+ "schema": {
+ "$ref": "#/definitions/StorageQueue"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "QueueService"
+ ],
+ "operationId": "Queue_Get",
+ "x-ms-examples": {
+ "QueueOperationGet": {
+ "$ref": "./examples/QueueOperationGet.json"
+ }
+ },
+ "description": "Gets the queue with the specified queue name, under the specified account if it exists.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/QueueName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- returned table with the specified table name successfully.",
+ "schema": {
+ "$ref": "#/definitions/StorageQueue"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "QueueService"
+ ],
+ "operationId": "Queue_Delete",
+ "x-ms-examples": {
+ "QueueOperationDelete": {
+ "$ref": "./examples/QueueOperationDelete.json"
+ }
+ },
+ "description": "Deletes the queue with the specified queue name, under the specified account if it exists.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/QueueName"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content - Successfully deleted the queue with the specified queue name"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues": {
+ "get": {
+ "tags": [
+ "QueueService"
+ ],
+ "operationId": "Queue_List",
+ "x-ms-examples": {
+ "QueueOperationList": {
+ "$ref": "./examples/QueueOperationList.json"
+ }
+ },
+ "description": "Gets a list of all the queues under the specified storage account",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "$maxpagesize",
+ "in": "query",
+ "type": "string",
+ "description": "Optional, a maximum number of queues that should be included in a list queue response"
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "type": "string",
+ "description": "Optional, When specified, only the queues with a name starting with the given filter will be listed."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- returned a list of queues successfully.",
+ "schema": {
+ "$ref": "#/definitions/ListQueueResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ListQueueServices": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/QueueServiceProperties"
+ },
+ "description": "List of queue services returned.",
+ "readOnly": true
+ }
+ }
+ },
+ "QueueServiceProperties": {
+ "properties": {
+ "properties": {
+ "properties": {
+ "cors": {
+ "$ref": "./common.json#/definitions/CorsRules",
+ "description": "Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service."
+ }
+ },
+ "x-ms-client-flatten": true,
+ "x-ms-client-name": "QueueServiceProperties",
+ "description": "The properties of a storage account’s Queue service."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
+ }
+ ],
+ "description": "The properties of a storage account’s Queue service."
+ },
+ "StorageQueue": {
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/QueueProperties",
+ "x-ms-client-flatten": true,
+ "x-ms-client-name": "QueueProperties",
+ "description": "Queue resource properties."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
+ }
+ ]
+ },
+ "QueueProperties": {
+ "properties": {
+ "metadata": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "A name-value pair that represents queue metadata."
+ },
+ "approximateMessageCount": {
+ "type": "integer",
+ "readOnly": true,
+ "description": "Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher."
+ }
+ }
+ },
+ "ListQueue": {
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/ListQueueProperties",
+ "x-ms-client-flatten": true,
+ "x-ms-client-name": "QueueProperties",
+ "description": "List Queue resource properties."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
+ }
+ ]
+ },
+ "ListQueueProperties": {
+ "properties": {
+ "metadata": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "A name-value pair that represents queue metadata."
+ }
+ }
+ },
+ "ListQueueResource": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ListQueue"
+ },
+ "description": "List of queues returned.",
+ "readOnly": true
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "Request URL that can be used to list next page of queues",
+ "readOnly": true
+ }
+ },
+ "description": "Response schema. Contains list of queues returned"
+ }
+ },
+ "parameters": {
+ "QueueServiceName": {
+ "name": "queueServiceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Queue Service within the specified storage account. Queue Service Name must be 'default'",
+ "enum": [
+ "default"
+ ],
+ "x-ms-parameter-location": "method"
+ },
+ "QueueName": {
+ "name": "queueName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "A queue name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.",
+ "maxLength": 63,
+ "minLength": 3,
+ "pattern": "^[a-z0-9]([a-z0-9]|(-(?!-))){1,61}[a-z0-9]$",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "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"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json
index 44ff7c9b50eb..9416555d58d2 100644
--- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json
@@ -845,7 +845,7 @@
"200": {
"description": "OK -- Successfully retrieved private endpoint connections.",
"schema": {
- "$ref": "#/definitions/PrivateEndpointConnectionListResult"
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnectionListResult"
}
}
},
@@ -880,14 +880,14 @@
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
- "$ref": "#/parameters/PrivateEndpointConnectionName"
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName"
}
],
"responses": {
"200": {
"description": "OK -- Get the private endpoint connection properties successfully.",
"schema": {
- "$ref": "#/definitions/PrivateEndpointConnection"
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection"
}
},
"default": {
@@ -923,14 +923,14 @@
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
- "$ref": "#/parameters/PrivateEndpointConnectionName"
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName"
},
{
"name": "properties",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/PrivateEndpointConnection"
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection"
},
"description": "The private endpoint connection properties."
}
@@ -939,7 +939,7 @@
"200": {
"description": "OK -- Update the private endpoint connection properties successfully.",
"schema": {
- "$ref": "#/definitions/PrivateEndpointConnection"
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection"
}
},
"default": {
@@ -975,7 +975,7 @@
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
- "$ref": "#/parameters/PrivateEndpointConnectionName"
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName"
}
],
"responses": {
@@ -1024,7 +1024,7 @@
"200": {
"description": "Successfully retrieved private link resources.",
"schema": {
- "$ref": "#/definitions/PrivateLinkResourceListResult"
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateLinkResourceListResult"
}
}
}
@@ -1878,6 +1878,11 @@
},
"default": "Microsoft.Storage"
},
+ "requireInfrastructureEncryption": {
+ "type": "boolean",
+ "x-ms-client-name": "RequireInfrastructureEncryption",
+ "description": "A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest."
+ },
"keyvaultproperties": {
"$ref": "#/definitions/KeyVaultProperties",
"x-ms-client-name": "KeyVaultProperties",
@@ -2547,7 +2552,7 @@
"readOnly": true,
"type": "array",
"items": {
- "$ref": "#/definitions/PrivateEndpointConnection"
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection"
},
"description": "List of private endpoint connection associated with the specified storage account"
},
@@ -3339,160 +3344,6 @@
],
"description": "Object to define the number of days after creation."
},
- "PrivateEndpointConnection": {
- "properties": {
- "properties": {
- "$ref": "#/definitions/PrivateEndpointConnectionProperties",
- "x-ms-client-flatten": true,
- "description": "Resource properties."
- }
- },
- "allOf": [
- {
- "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
- }
- ],
- "description": "The Private Endpoint Connection resource."
- },
- "PrivateEndpointConnectionProperties": {
- "properties": {
- "privateEndpoint": {
- "$ref": "#/definitions/PrivateEndpoint",
- "description": "The resource of private end point."
- },
- "privateLinkServiceConnectionState": {
- "$ref": "#/definitions/PrivateLinkServiceConnectionState",
- "description": "A collection of information about the state of the connection between service consumer and provider."
- },
- "provisioningState": {
- "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState",
- "description": "The provisioning state of the private endpoint connection resource."
- }
- },
- "required": [
- "privateLinkServiceConnectionState"
- ],
- "description": "Properties of the PrivateEndpointConnectProperties."
- },
- "PrivateEndpoint": {
- "properties": {
- "id": {
- "readOnly": true,
- "type": "string",
- "description": "The ARM identifier for Private Endpoint"
- }
- },
- "description": "The Private Endpoint resource."
- },
- "PrivateLinkServiceConnectionState": {
- "properties": {
- "status": {
- "$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
- "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
- },
- "description": {
- "type": "string",
- "description": "The reason for approval/rejection of the connection."
- },
- "actionRequired": {
- "type": "string",
- "description": "A message indicating if changes on the service provider require any updates on the consumer."
- }
- },
- "description": "A collection of information about the state of the connection between service consumer and provider."
- },
- "PrivateEndpointServiceConnectionStatus": {
- "type": "string",
- "description": "The private endpoint connection status.",
- "enum": [
- "Pending",
- "Approved",
- "Rejected"
- ],
- "x-ms-enum": {
- "name": "PrivateEndpointServiceConnectionStatus",
- "modelAsString": true
- }
- },
- "PrivateEndpointConnectionProvisioningState": {
- "type": "string",
- "readOnly": true,
- "description": "The current provisioning state.",
- "enum": [
- "Succeeded",
- "Creating",
- "Deleting",
- "Failed"
- ],
- "x-ms-enum": {
- "name": "PrivateEndpointConnectionProvisioningState",
- "modelAsString": true
- }
- },
- "PrivateEndpointConnectionListResult": {
- "properties": {
- "value": {
- "type": "array",
- "description": "Array of private endpoint connections",
- "items": {
- "$ref": "#/definitions/PrivateEndpointConnection"
- }
- }
- },
- "description": "List of private endpoint connection associated with the specified storage account"
- },
- "PrivateLinkResourceListResult": {
- "properties": {
- "value": {
- "type": "array",
- "description": "Array of private link resources",
- "items": {
- "$ref": "#/definitions/PrivateLinkResource"
- }
- }
- },
- "description": "A list of private link resources"
- },
- "PrivateLinkResource": {
- "properties": {
- "properties": {
- "$ref": "#/definitions/PrivateLinkResourceProperties",
- "description": "Resource properties.",
- "x-ms-client-flatten": true
- }
- },
- "allOf": [
- {
- "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
- }
- ],
- "description": "A private link resource"
- },
- "PrivateLinkResourceProperties": {
- "properties": {
- "groupId": {
- "description": "The private link resource group id.",
- "type": "string",
- "readOnly": true
- },
- "requiredMembers": {
- "description": "The private link resource required member names.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "readOnly": true
- },
- "requiredZoneNames": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "The private link resource Private link DNS zone name."
- }
- },
- "description": "Properties of a private link resource."
- },
"EncryptionScope": {
"properties": {
"properties": {
@@ -3735,14 +3586,6 @@
},
"x-ms-parameter-location": "method"
},
- "PrivateEndpointConnectionName": {
- "name": "privateEndpointConnectionName",
- "in": "path",
- "required": true,
- "type": "string",
- "description": "The name of the private endpoint connection associated with the Storage Account",
- "x-ms-parameter-location": "method"
- },
"EncryptionScopeName": {
"name": "encryptionScopeName",
"in": "path",
diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/table.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/table.json
new file mode 100644
index 000000000000..3d99550ab402
--- /dev/null
+++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/table.json
@@ -0,0 +1,495 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2019-06-01",
+ "title": "StorageManagementClient",
+ "description": "The Azure Storage Management API."
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices": {
+ "get": {
+ "tags": [
+ "TableServiceProperties"
+ ],
+ "operationId": "TableServices_List",
+ "x-ms-examples": {
+ "TableServicesList": {
+ "$ref": "./examples/TableServicesList.json"
+ }
+ },
+ "description": "List all table services for the storage account.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- returned the properties of a storage account’s Table service.",
+ "schema": {
+ "$ref": "#/definitions/ListTableServices"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}": {
+ "put": {
+ "tags": [
+ "TableServiceProperties"
+ ],
+ "operationId": "TableServices_SetServiceProperties",
+ "x-ms-examples": {
+ "TableServicesPut": {
+ "$ref": "./examples/TableServicesPut.json"
+ }
+ },
+ "description": "Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. ",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/TableServiceName"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TableServiceProperties"
+ },
+ "description": "The properties of a storage account’s Table service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Sets The properties of a storage account’s Table service successfully.",
+ "schema": {
+ "$ref": "#/definitions/TableServiceProperties"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "TableServiceProperties"
+ ],
+ "operationId": "TableServices_GetServiceProperties",
+ "x-ms-examples": {
+ "TableServicesGet": {
+ "$ref": "./examples/TableServicesGet.json"
+ }
+ },
+ "description": "Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/TableServiceName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- returned the properties of a storage account’s Table service.",
+ "schema": {
+ "$ref": "#/definitions/TableServiceProperties"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}": {
+ "put": {
+ "tags": [
+ "TableService"
+ ],
+ "operationId": "Table_Create",
+ "x-ms-examples": {
+ "TableOperationPut": {
+ "$ref": "./examples/TableOperationPut.json"
+ }
+ },
+ "description": "Creates a new table with the specified table name, under the specified account.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/TableName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Creates a table with the given table name successfully.",
+ "schema": {
+ "$ref": "#/definitions/Table"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": [
+ "TableService"
+ ],
+ "operationId": "Table_Update",
+ "x-ms-examples": {
+ "TableOperationPatch": {
+ "$ref": "./examples/TableOperationPatch.json"
+ }
+ },
+ "description": "Creates a new table with the specified table name, under the specified account.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/TableName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Creates a table with the given table name successfully.",
+ "schema": {
+ "$ref": "#/definitions/Table"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "TableService"
+ ],
+ "operationId": "Table_Get",
+ "x-ms-examples": {
+ "TableOperationGet": {
+ "$ref": "./examples/TableOperationGet.json"
+ }
+ },
+ "description": "Gets the table with the specified table name, under the specified account if it exists.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/TableName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- returned table with the specified table name successfully.",
+ "schema": {
+ "$ref": "#/definitions/Table"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "TableService"
+ ],
+ "operationId": "Table_Delete",
+ "x-ms-examples": {
+ "TableOperationDelete": {
+ "$ref": "./examples/TableOperationDelete.json"
+ }
+ },
+ "description": "Deletes the table with the specified table name, under the specified account if it exists.",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/TableName"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content - Successfully deleted the table with the specified table name"
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables": {
+ "get": {
+ "tags": [
+ "TableService"
+ ],
+ "operationId": "Table_List",
+ "x-ms-examples": {
+ "TableOperationList": {
+ "$ref": "./examples/TableOperationList.json"
+ }
+ },
+ "description": "Gets a list of all the tables under the specified storage account",
+ "parameters": [
+ {
+ "$ref": "./storage.json#/parameters/ResourceGroupName"
+ },
+ {
+ "$ref": "./storage.json#/parameters/StorageAccountName"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- returned a list of tables successfully.",
+ "schema": {
+ "$ref": "#/definitions/ListTableResource"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "./file.json#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ListTableServices": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TableServiceProperties"
+ },
+ "description": "List of table services returned.",
+ "readOnly": true
+ }
+ }
+ },
+ "TableServiceProperties": {
+ "properties": {
+ "properties": {
+ "properties": {
+ "cors": {
+ "$ref": "./common.json#/definitions/CorsRules",
+ "description": "Specifies CORS rules for the Table service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Table service."
+ }
+ },
+ "x-ms-client-flatten": true,
+ "x-ms-client-name": "TableServiceProperties",
+ "description": "The properties of a storage account’s Table service."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
+ }
+ ],
+ "description": "The properties of a storage account’s Table service."
+ },
+ "Table": {
+ "properties": {
+ "properties": {
+ "$ref": "#/definitions/TableProperties",
+ "x-ms-client-flatten": true,
+ "x-ms-client-name": "TableProperties",
+ "description": "Table resource properties."
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource"
+ }
+ ],
+ "description": "Properties of the table, including Id, resource name, resource type."
+ },
+ "TableProperties": {
+ "properties": {
+ "tableName": {
+ "type": "string",
+ "readOnly": true,
+ "description": "Table name under the specified account"
+ }
+ }
+ },
+ "ListTableResource": {
+ "properties": {
+ "value": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Table"
+ },
+ "description": "List of tables returned.",
+ "readOnly": true
+ },
+ "nextLink": {
+ "type": "string",
+ "description": "Request URL that can be used to query next page of tables",
+ "readOnly": true
+ }
+ },
+ "description": "Response schema. Contains list of tables returned"
+ }
+ },
+ "parameters": {
+ "TableServiceName": {
+ "name": "tableServiceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the Table Service within the specified storage account. Table Service Name must be 'default'",
+ "enum": [
+ "default"
+ ],
+ "x-ms-parameter-location": "method"
+ },
+ "TableName": {
+ "name": "tableName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "A table name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric character.",
+ "maxLength": 63,
+ "minLength": 3,
+ "pattern": "^[A-Za-z][A-Za-z0-9]{2,62}$",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "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"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/storage/resource-manager/readme.md b/specification/storage/resource-manager/readme.md
index a13e1dafd348..2e22b135e433 100644
--- a/specification/storage/resource-manager/readme.md
+++ b/specification/storage/resource-manager/readme.md
@@ -38,6 +38,8 @@ input-file:
- Microsoft.Storage/stable/2019-06-01/storage.json
- Microsoft.Storage/stable/2019-06-01/blob.json
- Microsoft.Storage/stable/2019-06-01/file.json
+- Microsoft.Storage/stable/2019-06-01/queue.json
+- Microsoft.Storage/stable/2019-06-01/table.json
directive:
- suppress: R3018
@@ -269,6 +271,7 @@ swagger-to-sdk:
after_scripts:
- python ./scripts/multiapi_init_gen.py azure-mgmt-storage
- python ./scripts/trim_aio.py ./sdk/storage/azure-mgmt-storage
+ - repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
@@ -297,6 +300,8 @@ input-file:
- $(this-folder)/Microsoft.Storage/stable/2019-06-01/storage.json
- $(this-folder)/Microsoft.Storage/stable/2019-06-01/blob.json
- $(this-folder)/Microsoft.Storage/stable/2019-06-01/file.json
+ - $(this-folder)/Microsoft.Storage/stable/2019-06-01/queue.json
+ - $(this-folder)/Microsoft.Storage/stable/2019-06-01/table.json
- $(this-folder)/Microsoft.Storage/stable/2019-04-01/storage.json
- $(this-folder)/Microsoft.Storage/stable/2019-04-01/blob.json
- $(this-folder)/Microsoft.Storage/stable/2019-04-01/file.json
diff --git a/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-03-01/examples/AscOperations_Get.json b/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-03-01/examples/AscOperations_Get.json
new file mode 100644
index 000000000000..783476d2d00e
--- /dev/null
+++ b/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-03-01/examples/AscOperations_Get.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60",
+ "location": "West US",
+ "operationId": "testoperationid",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "id": "/subscriptions/id/locations/westus/ascOperations/testoperationid",
+ "name": "testoperationid",
+ "startTime": "2020-03-01T13:13:13.933Z",
+ "endTime": "2020-03-01T16:13:13.933Z",
+ "status": "Succeeded"
+ }
+ }
+ }
+}
diff --git a/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-03-01/storagecache.json b/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-03-01/storagecache.json
index 3549bc83126f..2e1cdcb3872d 100644
--- a/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-03-01/storagecache.json
+++ b/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2020-03-01/storagecache.json
@@ -158,6 +158,59 @@
"operationId": "UsageModels_List"
}
},
+ "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/locations/{location}/ascOperations/{operationId}": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "location",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The region name which the operation will lookup into."
+ },
+ {
+ "name": "operationId",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The operation id which uniquely identifies the asynchronous operation."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Gets the status of an asynchronous operation for the Azure HPC cache",
+ "schema": {
+ "$ref": "#/definitions/AscOperation"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/CloudError"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "AscOperations_Get": {
+ "$ref": "./examples/AscOperations_Get.json"
+ }
+ },
+ "tags": [
+ "AscOperations"
+ ],
+ "description": "Gets the status of an asynchronous operation for the Azure HPC cache",
+ "operationId": "AscOperations_Get"
+ }
+ },
"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches": {
"get": {
"produces": [
@@ -1097,6 +1150,51 @@
},
"type": "object"
},
+ "AscOperation": {
+ "description": "The status of operation.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "The operation Id."
+ },
+ "name": {
+ "type": "string",
+ "description": "The operation name."
+ },
+ "startTime": {
+ "type": "string",
+ "description": "The start time of the operation."
+ },
+ "endTime": {
+ "type": "string",
+ "description": "The end time of the operation."
+ },
+ "status": {
+ "type": "string",
+ "description": "The status of the operation."
+ },
+ "error": {
+ "type": "object",
+ "description": "The error detail of the operation if any.",
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "ErrorResponse": {
+ "description": "Describes the format of Error response.",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "Error code",
+ "type": "string"
+ },
+ "message": {
+ "description": "Error message indicating why the operation failed.",
+ "type": "string"
+ }
+ }
+ },
"Cache": {
"description": "A Cache instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md",
"properties": {
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-10-01/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-10-01/storagesync.json
index 79e43cd1bd1f..fc8ffc68f0ae 100644
--- a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-10-01/storagesync.json
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2019-10-01/storagesync.json
@@ -3864,22 +3864,22 @@
"readOnly": true
},
"uploadStatus": {
- "$ref": "#/definitions/ServerEndpointSyncSessionStatus",
+ "$ref": "#/definitions/SyncSessionStatus",
"description": "Upload Status",
"readOnly": true
},
"downloadStatus": {
- "$ref": "#/definitions/ServerEndpointSyncSessionStatus",
+ "$ref": "#/definitions/SyncSessionStatus",
"description": "Download Status",
"readOnly": true
},
"uploadActivity": {
- "$ref": "#/definitions/ServerEndpointSyncActivityStatus",
+ "$ref": "#/definitions/SyncActivityStatus",
"description": "Upload sync activity",
"readOnly": true
},
"downloadActivity": {
- "$ref": "#/definitions/ServerEndpointSyncActivityStatus",
+ "$ref": "#/definitions/SyncActivityStatus",
"description": "Download sync activity",
"readOnly": true
},
@@ -3890,7 +3890,7 @@
}
}
},
- "ServerEndpointSyncSessionStatus": {
+ "SyncSessionStatus": {
"type": "object",
"description": "Sync Session status object.",
"properties": {
@@ -3943,7 +3943,7 @@
}
}
},
- "ServerEndpointSyncActivityStatus": {
+ "SyncActivityStatus": {
"type": "object",
"description": "Sync Session status object.",
"properties": {
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Create.json
new file mode 100644
index 000000000000..8a5307bf3614
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Create.json
@@ -0,0 +1,51 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "properties": {
+ "storageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/tminienv59svc/providers/Microsoft.Storage/storageAccounts/tminienv59storage",
+ "azureFileShareName": "cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4",
+ "storageAccountTenantId": "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"",
+ "friendlyName": "ankushbsubscriptionmgmtmab"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "SampleCloudEndpoint_1",
+ "properties": {
+ "backupEnabled": "false",
+ "provisioningState": "Succeeded",
+ "storageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/tminienv59svc/providers/Microsoft.Storage/storageAccounts/tminienv59storage",
+ "azureFileShareName": "cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4",
+ "storageAccountTenantId": "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"",
+ "friendlyName": "ankushbsubscriptionmgmtmab",
+ "lastWorkflowId": "storageSyncServices/GATest/workflows/24ba0c4a-348e-419b-8f7a-091d0d9f07a4",
+ "partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8RjhDODcwQTItMkFGNi00NDUyLTgzMDgtRjJCQTZEQjI3RkEwfEdFTkVSSUN8NTJCOERBMkYtNjFFMC00QTFGLThEREUtMzM2OTExRjM2N0ZC",
+ "lastOperationName": "ICreateCloudEndpointWorkflow"
+ },
+ "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/cloudEndpoints/SampleCloudEndpoint_1",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncservice_1/workflows/c1d54be7-4738-4898-8212-cc36774314f8/operations/7ce689b2-0eca-48f5-86f0-0b8d6ceef14a?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncservice_1/workflows/c1d54be7-4738-4898-8212-cc36774314f8/operationresults/7ce689b2-0eca-48f5-86f0-0b8d6ceef14a?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Delete.json
new file mode 100644
index 000000000000..284eb395736b
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Delete.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/78a71465-77ef-4509-a026-2c0cd8b30208/operations/2d7f573a-7acd-4a3c-9425-fed7d029c69d?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/78a71465-77ef-4509-a026-2c0cd8b30208/operationresults/2d7f573a-7acd-4a3c-9425-fed7d029c69d?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Get.json
new file mode 100644
index 000000000000..a3845ccab224
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_Get.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "SampleCloudEndpoint_1",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "storageAccountResourceId": "",
+ "azureFileShareName": "",
+ "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"",
+ "lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/a377fdd5-949a-40ab-9629-06cd0e9852f9",
+ "friendlyName": "SampleAzureFileShareName_1",
+ "partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8MTkxNjYwQ0QtNkExQS00RjhDLTk3ODctQTZCRUQyMDZBMUREfEdFTkVSSUN8M0EwNDgyODMtMzM4Ri00MDAyLUE5REQtQTUwRkRBRENCMzky",
+ "lastOperationName": "ICreateCloudEndpointWorkflow"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/cloudEndpoints/CEP_Restore_08-08_Test112",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_ListBySyncGroup.json
new file mode 100644
index 000000000000..6249461d7b7f
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_ListBySyncGroup.json
@@ -0,0 +1,36 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "value": [
+ {
+ "name": "CEP_Restore_08-08_Test112",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "storageAccountResourceId": "",
+ "azureFileShareName": "",
+ "storageAccountTenantId": "\"a4d1b191-c1af-4cef-a14b-f670e0beea52\"",
+ "lastWorkflowId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/a377fdd5-949a-40ab-9629-06cd0e9852f9",
+ "friendlyName": "SampleAzureFileShareName_1",
+ "partnershipId": "1|U0VSVkVSQVNTWU5DQ0xJRU5Udfsdfdsfs8MTkxNjYwQ0QtNkExQS00RjhDLTk3ODctQTZCRUQyMDZBMUREfEdFTkVSSUN8M0EwNDgyODMtMzM4Ri00MDAyLUE5REQtQTUwRkRBRENCMzky",
+ "lastOperationName": "ICreateCloudEndpointWorkflow"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SyncGroup_Restore_08-08_Test112/cloudEndpoints/CEP_Restore_08-08_Test112",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PostBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PostBackup.json
new file mode 100644
index 000000000000..50e7f9ab6c05
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PostBackup.json
@@ -0,0 +1,34 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "parameters": {
+ "azureFileShare": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare"
+ },
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "backupMetadata": {
+ "cloudEndpointName": "subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/cloudEndpoints/SampleCloudEndpoint_1"
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "x-ms-location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/HfsMabFS1/syncGroups/HfsMabDS1/cloudEndpoints/HfsMabCE1/operationresults/baa40401-b043-4d1b-a80b-cb4e79fa1398?api-version=2020-03-01&resourcetype=PostBackupResourceType&ifxctx3=1847a938-7638-4d1b-943c-96ff2f8a2ec8",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PostRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PostRestore.json
new file mode 100644
index 000000000000..f866d3fbef48
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PostRestore.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "parameters": {
+ "azureFileShareUri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare",
+ "sourceAzureFileShareUri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare",
+ "status": "Succeeded",
+ "restoreFileSpec": [
+ {
+ "path": "text1.txt",
+ "isdir": false
+ },
+ {
+ "path": "MyDir",
+ "isdir": true
+ },
+ {
+ "path": "MyDir/SubDir",
+ "isdir": false
+ },
+ {
+ "path": "MyDir/SubDir/File1.pdf",
+ "isdir": false
+ }
+ ]
+ },
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "202": {
+ "headers": {
+ "x-ms-location": "https: //management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/HfsMabFS1/syncGroups/HfsMabDS1/cloudEndpoints/HfsMabCE1/operationresults/d67cfb91-1b13-4710-8226-83467bb5b66d?api-version=2020-03-01&resourcetype=preBackupResourceType&ifxctx3=005909ad-d156-4514-a26e-dd1cc566db64",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PreBackup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PreBackup.json
new file mode 100644
index 000000000000..7fdc51dec579
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PreBackup.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "azureFileShare": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare"
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "202": {
+ "headers": {
+ "x-ms-location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/HfsMabFS1/syncGroups/HfsMabDS1/cloudEndpoints/HfsMabCE1/operationresults/d67cfb91-1b13-4710-8226-83467bb5b66d?api-version=2020-03-01&resourcetype=preBackupResourceType&ifxctx3=005909ad-d156-4514-a26e-dd1cc566db64",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PreRestore.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PreRestore.json
new file mode 100644
index 000000000000..0e04987629e6
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_PreRestore.json
@@ -0,0 +1,47 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "azureFileShareUri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare",
+ "restoreFileSpec": [
+ {
+ "path": "text1.txt",
+ "isdir": false
+ },
+ {
+ "path": "MyDir",
+ "isdir": true
+ },
+ {
+ "path": "MyDir/SubDir",
+ "isdir": false
+ },
+ {
+ "path": "MyDir/SubDir/File1.pdf",
+ "isdir": false
+ }
+ ]
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "202": {
+ "headers": {
+ "x-ms-location": "https: //management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/HfsMabFS1/syncGroups/HfsMabDS1/cloudEndpoints/HfsMabCE1/operationresults/d67cfb91-1b13-4710-8226-83467bb5b66d?api-version=2020-03-01&resourcetype=preBackupResourceType&ifxctx3=005909ad-d156-4514-a26e-dd1cc566db64",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_RestoreHeatbeat.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_RestoreHeatbeat.json
new file mode 100644
index 000000000000..6a8fb0f24e4e
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_RestoreHeatbeat.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_TriggerChangeDetection.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_TriggerChangeDetection.json
new file mode 100644
index 000000000000..e7d195f47680
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/CloudEndpoints_TriggerChangeDetection.json
@@ -0,0 +1,30 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "parameters": {
+ "directoryPath": "NewDirectory",
+ "changeDetectionMode": "Recursive"
+ },
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "202": {
+ "headers": {
+ "x-ms-location": "https: //management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/HfsMabFS1/syncGroups/HfsMabDS1/cloudEndpoints/HfsMabCE1/operationresults/d67cfb91-1b13-4710-8226-83467bb5b66d?api-version=2020-03-01&resourcetype=preBackupResourceType&ifxctx3=005909ad-d156-4514-a26e-dd1cc566db64",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/OperationStatus_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/OperationStatus_Get.json
new file mode 100644
index 000000000000..4627ffadabeb
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/OperationStatus_Get.json
@@ -0,0 +1,25 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "locationName": "westus",
+ "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75",
+ "operationId": "14b50e24-f68d-4b29-a882-38be9dfb8bd1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "14b50e24-f68d-4b29-a882-38be9dfb8bd1",
+ "status": "Succeeded",
+ "startTime": "2019-05-09T23:53:21.7328715Z",
+ "endTime": "2019-05-09T23:53:23.3735483Z",
+ "error": null
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Operations_List.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Operations_List.json
new file mode 100644
index 000000000000..d32697790cb7
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Operations_List.json
@@ -0,0 +1,214 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/read",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Storage Sync Services",
+ "operation": "Read Storage Sync Services",
+ "description": "Read any Storage Sync Services"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/write",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Storage Sync Services",
+ "operation": "Create or Update Storage Sync Services",
+ "description": "Create or Update any Storage Sync Services"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/delete",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Storage Sync Services",
+ "operation": "Delete Storage Sync Services",
+ "description": "Delete any Storage Sync Services"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/read",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Sync Groups",
+ "operation": "Read Sync Groups",
+ "description": "Read any Sync Groups"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/write",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Sync Groups",
+ "operation": "Create or Update Sync Groups",
+ "description": "Create or Update any Sync Groups"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/delete",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Sync Groups",
+ "operation": "Delete Sync Groups",
+ "description": "Delete any Sync Groups"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints/read",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Cloud Endpoints",
+ "operation": "Read Cloud Endpoints",
+ "description": "Read any Cloud Endpoints"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints/write",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Cloud Endpoints",
+ "operation": "Create or Update Cloud Endpoints",
+ "description": "Create or Update any Cloud Endpoints"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints/delete",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Cloud Endpoints",
+ "operation": "Delete Cloud Endpoints",
+ "description": "Delete any Cloud Endpoints"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints/prebackup/action",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Cloud Endpoints",
+ "operation": "prebackup",
+ "description": "Call this action before backup"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints/postbackup/action",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Cloud Endpoints",
+ "operation": "postbackup",
+ "description": "Call this action after backup"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints/prerestore/action",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Cloud Endpoints",
+ "operation": "prerestore",
+ "description": "Call this action before restore"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints/postrestore/action",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Cloud Endpoints",
+ "operation": "postrestore",
+ "description": "Call this action after restore"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints/read",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Server Endpoints",
+ "operation": "Read Server Endpoints",
+ "description": "Read any Server Endpoints"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints/write",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Server Endpoints",
+ "operation": "Create or Update Server Endpoints",
+ "description": "Create or Update any Server Endpoints"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints/delete",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Server Endpoints",
+ "operation": "Delete Server Endpoints",
+ "description": "Delete any Server Endpoints"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints/recallAction/action",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Server Endpoints",
+ "operation": "recallAction",
+ "description": "Call this action to recall files to a server"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/registeredServers/read",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Registered Server",
+ "operation": "Read Registered Server",
+ "description": "Read any Registered Server"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/registeredServers/write",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Registered Server",
+ "operation": "Create or Update Registered Server",
+ "description": "Create or Update any Registered Server"
+ },
+ "origin": "User"
+ },
+ {
+ "name": "Microsoft.StorageSync/storageSyncServices/registeredServers/delete",
+ "display": {
+ "provider": "Microsoft.StorageSync",
+ "resource": "Registered Server",
+ "operation": "Delete Registered Server",
+ "description": "Delete any Registered Server"
+ },
+ "origin": "User"
+ }
+ ],
+ "nextLink": null
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Create.json
new file mode 100644
index 000000000000..b9a1522924a0
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Create.json
@@ -0,0 +1,46 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res7687",
+ "storageSyncServiceName": "sss2527",
+ "privateEndpointConnectionName": "{privateEndpointConnectionName}",
+ "api-version": "2020-03-01",
+ "monitor": "true",
+ "properties": {
+ "properties": {
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Auto-Approved"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.StorageSync/storageSyncServices/sss2527/privateEndpointConnections/{privateEndpointConnectionName}",
+ "name": "{privateEndpointConnectionName}",
+ "type": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Auto-Approved"
+ }
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/78a71465-77ef-4509-a026-2c0cd8b30208/operations/2d7f573a-7acd-4a3c-9425-fed7d029c69d?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/78a71465-77ef-4509-a026-2c0cd8b30208/operationresults/2d7f573a-7acd-4a3c-9425-fed7d029c69d?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Delete.json
new file mode 100644
index 000000000000..4fee43b02deb
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Delete.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res6977",
+ "storageSyncServiceName": "sss2527",
+ "privateEndpointConnectionName": "{privateEndpointConnectionName}",
+ "api-version": "2020-03-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {},
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/78a71465-77ef-4509-a026-2c0cd8b30208/operations/2d7f573a-7acd-4a3c-9425-fed7d029c69d?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/78a71465-77ef-4509-a026-2c0cd8b30208/operationresults/2d7f573a-7acd-4a3c-9425-fed7d029c69d?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Get.json
new file mode 100644
index 000000000000..f60d6c249f5a
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_Get.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res6977",
+ "storageSyncServiceName": "sss2527",
+ "privateEndpointConnectionName": "{privateEndpointConnectionName}",
+ "api-version": "2020-03-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.StorageSync/storageSyncServices/sss2527/privateEndpointConnections/{privateEndpointConnectionName}",
+ "name": "{privateEndpointConnectionName}",
+ "type": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Auto-Approved"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_ListByStorageSyncService.json
new file mode 100644
index 000000000000..cbd766242f59
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateEndpointConnections_ListByStorageSyncService.json
@@ -0,0 +1,48 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res6977",
+ "storageSyncServiceName": "sss2527",
+ "privateEndpointConnectionName": "{privateEndpointConnectionName}",
+ "api-version": "2020-03-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.StorageSync/storageSyncServices/sss2527/privateEndpointConnections/{privateEndpointConnectionName}",
+ "name": "{privateEndpointConnectionName}",
+ "type": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Auto-Approved"
+ }
+ }
+ },
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.StorageSync/storageSyncServices/sss2527/privateEndpointConnections/{privateEndpointConnectionName}",
+ "name": "{privateEndpointConnectionName}",
+ "type": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections",
+ "properties": {
+ "provisioningState": "Succeeded",
+ "privateEndpoint": {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest02"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Approved",
+ "description": "Auto-Approved"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateLinkResources_List.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateLinkResources_List.json
new file mode 100644
index 000000000000..76ea546bb838
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/PrivateLinkResources_List.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "subscriptionId": "{subscription-id}",
+ "resourceGroupName": "res6977",
+ "storageSyncServiceName": "sss2527",
+ "api-version": "2020-03-01",
+ "monitor": "true"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/{subscription-id}/resourceGroups/res6977/providers/Microsoft.StorageSync/storageSyncServices/sss2527/privateLinkResources/afs",
+ "name": "afs",
+ "type": "Microsoft.StorageSync/storageSyncServices/privateLinkResources",
+ "properties": {
+ "groupId": "afs",
+ "requiredMembers": [
+ "management",
+ "sync.primary",
+ "sync.secondary"
+ ],
+ "requiredZoneNames": [
+ "privatelink.afs.azure.net"
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Create.json
new file mode 100644
index 000000000000..a6154160c2b7
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Create.json
@@ -0,0 +1,60 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "serverId": "\"080d4133-bdb5-40a0-96a0-71a6057bfe9a\"",
+ "parameters": {
+ "properties": {
+ "serverRole": "Standalone",
+ "serverCertificate": "\"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=\"",
+ "lastHeartBeat": "\"2017-08-08T18:29:06.470652Z\"",
+ "serverOSVersion": "10.0.14393.0",
+ "agentVersion": "1.0.277.0"
+ }
+ },
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/530a0384-50ac-456d-8240-9d6621404151",
+ "type": "Microsoft.StorageSync/storageSyncServices/registeredServers",
+ "name": "ankushb-prod3.redmond.corp.microsoft.com",
+ "properties": {
+ "agentVersion": "3.1.5.0",
+ "serverOSVersion": "10.0.14393.0",
+ "serverManagementErrorCode": 0,
+ "lastHeartBeat": "\"2018-06-11T21:50:40.5840543Z\"",
+ "provisioningState": "Succeeded",
+ "serverRole": "Standalone",
+ "clusterId": "\"00000000-0000-0000-0000-000000000000\"",
+ "clusterName": "",
+ "serverId": "\"3635ca8b-5cc8-4a5c-bd43-c2de5ad8dc64\"",
+ "storageSyncServiceUid": "\"4aa14534-1c61-483b-b6a6-9630a76f109a\"",
+ "lastWorkflowId": "storageSyncServices/CV_FileStore_F1D485AA/workflows/4eecfbcf-9537-4b61-8fee-aaa3ace11c44",
+ "lastOperationName": "ICreateRegisteredServerWorkflow",
+ "friendlyName": "afscv-2304-139",
+ "managementEndpointUri": "\"https://kailanitest99.one.microsoft.com:443/\"",
+ "monitoringEndpointUri": "\"https://kailanitest99.one.microsoft.com:443/\"",
+ "discoveryEndpointUri": "\"https://kailanitest99.one.microsoft.com:443\"",
+ "resourceLocation": "westus",
+ "serviceLocation": "westus"
+ }
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/63e554fd-4d27-4b91-8249-2fc697de7c69/operations/d4b00aa1-7ae0-47f0-9fa7-7ed3ea527bc9?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/63e554fd-4d27-4b91-8249-2fc697de7c69/operationresults/d4b00aa1-7ae0-47f0-9fa7-7ed3ea527bc9?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Delete.json
new file mode 100644
index 000000000000..046eec927723
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Delete.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "serverId": "41166691-ab03-43e9-ab3e-0330eda162ac",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/cdb963fd-ea36-457e-9222-f85754ff398c/operations/20675646-8111-4158-954b-6b637e922cbf?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/cdb963fd-ea36-457e-9222-f85754ff398c/operationresults/20675646-8111-4158-954b-6b637e922cbf?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Get.json
new file mode 100644
index 000000000000..61bf5549f754
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_Get.json
@@ -0,0 +1,42 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "serverId": "080d4133-bdb5-40a0-96a0-71a6057bfe9a",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "SampleRegisteredServer_1.redmond.corp.microsoft.com",
+ "properties": {
+ "agentVersion": "3.1.5.0",
+ "serverOSVersion": "10.0.14393.0",
+ "serverManagementErrorCode": 0,
+ "lastHeartBeat": "\"2018-06-11T21:50:40.5840543Z\"",
+ "provisioningState": "Succeeded",
+ "serverRole": "Standalone",
+ "clusterId": "\"00000000-0000-0000-0000-000000000000\"",
+ "clusterName": "",
+ "serverId": "\"3635ca8b-5cc8-4a5c-bd43-c2de5ad8dc64\"",
+ "storageSyncServiceUid": "\"4aa14534-1c61-483b-b6a6-9630a76f109a\"",
+ "lastWorkflowId": "storageSyncServices/CV_FileStore_F1D485AA/workflows/4eecfbcf-9537-4b61-8fee-aaa3ace11c44",
+ "lastOperationName": "ICreateRegisteredServerWorkflow",
+ "friendlyName": "afscv-2304-139",
+ "managementEndpointUri": "\"https://kailanitest99.one.microsoft.com:443/\"",
+ "monitoringEndpointUri": "\"https://kailanitest99.one.microsoft.com:443/\"",
+ "discoveryEndpointUri": "\"https://kailanitest99.one.microsoft.com:443\"",
+ "resourceLocation": "westus",
+ "serviceLocation": "westus"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a",
+ "type": "Microsoft.StorageSync/storageSyncServices/registeredServers"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_ListByStorageSyncService.json
new file mode 100644
index 000000000000..2167b27133a6
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_ListByStorageSyncService.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "value": [
+ {
+ "name": "SampleRegisteredServer_1.redmond.corp.microsoft.com",
+ "properties": {
+ "agentVersion": "3.1.5.0",
+ "serverOSVersion": "10.0.14393.0",
+ "serverManagementErrorCode": 0,
+ "lastHeartBeat": "\"2018-06-11T21:50:40.5840543Z\"",
+ "provisioningState": "Succeeded",
+ "serverRole": "Standalone",
+ "clusterId": "\"00000000-0000-0000-0000-000000000000\"",
+ "clusterName": "",
+ "serverId": "\"3635ca8b-5cc8-4a5c-bd43-c2de5ad8dc64\"",
+ "storageSyncServiceUid": "\"4aa14534-1c61-483b-b6a6-9630a76f109a\"",
+ "lastWorkflowId": "storageSyncServices/CV_FileStore_F1D485AA/workflows/4eecfbcf-9537-4b61-8fee-aaa3ace11c44",
+ "lastOperationName": "ICreateRegisteredServerWorkflow",
+ "friendlyName": "afscv-2304-139",
+ "managementEndpointUri": "\"https://kailanitest99.one.microsoft.com:443/\"",
+ "monitoringEndpointUri": "\"https://kailanitest99.one.microsoft.com:443/\"",
+ "discoveryEndpointUri": "\"https://kailanitest99.one.microsoft.com:443\"",
+ "resourceLocation": "westus",
+ "serviceLocation": "westus"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a",
+ "type": "Microsoft.StorageSync/storageSyncServices/registeredServers"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_TriggerRollover.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_TriggerRollover.json
new file mode 100644
index 000000000000..9a9d23a1ca57
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/RegisteredServers_TriggerRollover.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "serverId": "d166ca76-dad2-49df-b409-12345642d730",
+ "parameters": {
+ "serverCertificate": "\"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=\""
+ },
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47222",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d222"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operations/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operationresults/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Create.json
new file mode 100644
index 000000000000..e74edbf1d9cd
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Create.json
@@ -0,0 +1,65 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "serverEndpointName": "SampleServerEndpoint_1",
+ "parameters": {
+ "properties": {
+ "serverLocalPath": "D:\\SampleServerEndpoint_1",
+ "serverResourceId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a",
+ "cloudTiering": "off",
+ "volumeFreeSpacePercent": 100,
+ "tierFilesOlderThanDays": 0,
+ "offlineDataTransfer": "on",
+ "offlineDataTransferShareName": "myfileshare",
+ "initialDownloadPolicy": "NamespaceThenModifiedFiles",
+ "localCacheMode": "UpdateLocallyCachedFiles"
+ }
+ },
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "SampleServerEndpoint_1",
+ "properties": {
+ "serverLocalPath": "D:\\SampleServerEndpoint_1",
+ "cloudTiering": "off",
+ "volumeFreeSpacePercent": 100,
+ "friendlyName": "somemachine.redmond.corp.microsoft.com",
+ "serverResourceId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a",
+ "provisioningState": "Succeeded",
+ "lastWorkflowId": "storageSyncServices/healthDemo1/workflows/569afb5c-7172-4cf8-a8ea-d987f727f11a",
+ "lastOperationName": "ICreateServerEndpointWorkflow",
+ "tierFilesOlderThanDays": 0,
+ "syncStatus": null,
+ "offlineDataTransfer": "on",
+ "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa",
+ "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
+ "offlineDataTransferShareName": "myfileshare",
+ "cloudTieringStatus": null,
+ "recallStatus": null,
+ "initialDownloadPolicy": "NamespaceThenModifiedFiles",
+ "localCacheMode": "UpdateLocallyCachedFiles"
+ },
+ "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operations/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operationresults/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Delete.json
new file mode 100644
index 000000000000..886b32de214e
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Delete.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "serverEndpointName": "SampleServerEndpoint_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/9122d971-147b-4dba-bada-1ceb7c9311e5/operations/6dce076b-1df5-4449-829b-69b24f38b5a1?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/9122d971-147b-4dba-bada-1ceb7c9311e5/operationresults/6dce076b-1df5-4449-829b-69b24f38b5a1?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Get.json
new file mode 100644
index 000000000000..827e8be2c572
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Get.json
@@ -0,0 +1,149 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "serverEndpointName": "SampleServerEndpoint_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "SampleServerEndpoint_1",
+ "properties": {
+ "serverLocalPath": "D:\\SampleServerEndpoint_1",
+ "cloudTiering": "on",
+ "volumeFreeSpacePercent": 100,
+ "friendlyName": "somemachine.redmond.corp.microsoft.com",
+ "serverResourceId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a",
+ "provisioningState": "Succeeded",
+ "lastWorkflowId": "storageSyncServices/healthDemo1/workflows/569afb5c-7172-4cf8-a8ea-d987f727f11a",
+ "lastOperationName": "ICreateServerEndpointWorkflow",
+ "tierFilesOlderThanDays": 0,
+ "syncStatus": {
+ "downloadHealth": "Healthy",
+ "uploadHealth": "Error",
+ "combinedHealth": "Error",
+ "syncActivity": "UploadAndDownload",
+ "totalPersistentFilesNotSyncingCount": null,
+ "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "uploadStatus": {
+ "lastSyncResult": -2134351810,
+ "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "lastSyncSuccessTimestamp": null,
+ "lastSyncPerItemErrorCount": 1000,
+ "persistentFilesNotSyncingCount": null,
+ "transientFilesNotSyncingCount": null,
+ "filesNotSyncingErrors": null
+ },
+ "downloadStatus": {
+ "lastSyncResult": 0,
+ "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z",
+ "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z",
+ "lastSyncPerItemErrorCount": 0,
+ "persistentFilesNotSyncingCount": null,
+ "transientFilesNotSyncingCount": null,
+ "filesNotSyncingErrors": null
+ },
+ "uploadActivity": {
+ "timestamp": "2018-06-11T23:32:51.1057915Z",
+ "perItemErrorCount": 300,
+ "appliedItemCount": 1000,
+ "totalItemCount": 2300,
+ "appliedBytes": 57348983,
+ "totalBytes": 1958367412
+ },
+ "downloadActivity": {
+ "timestamp": "2018-06-11T23:32:51.1057915Z",
+ "perItemErrorCount": 0,
+ "appliedItemCount": 100,
+ "totalItemCount": 300,
+ "appliedBytes": 94805587,
+ "totalBytes": 19583674
+ },
+ "offlineDataTransferStatus": "InProgress"
+ },
+ "offlineDataTransfer": "on",
+ "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa",
+ "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
+ "offlineDataTransferShareName": "myfileshare",
+ "initialDownloadPolicy": "NamespaceThenModifiedFiles",
+ "localCacheMode": "UpdateLocallyCachedFiles",
+ "cloudTieringStatus": {
+ "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "health": "Error",
+ "healthLastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "lastCloudTieringResult": -2134347771,
+ "lastSuccessTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "spaceSavings": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "volumeSizeBytes": 922337203685477580,
+ "totalSizeCloudBytes": 100000000,
+ "cachedSizeBytes": 50000000,
+ "spaceSavingsPercent": 50,
+ "spaceSavingsBytes": 50000000
+ },
+ "cachePerformance": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "cacheHitBytes": 922337203685477580,
+ "cacheMissBytes": 922337203685477580,
+ "cacheHitBytesPercent": 50
+ },
+ "filesNotTiering": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "totalFileCount": 60,
+ "errors": [
+ {
+ "errorCode": -2134347771,
+ "fileCount": 10
+ },
+ {
+ "errorCode": -2134347770,
+ "fileCount": 20
+ },
+ {
+ "errorCode": -2134347769,
+ "fileCount": 30
+ }
+ ]
+ },
+ "volumeFreeSpacePolicyStatus": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "effectiveVolumeFreeSpacePolicy": 30,
+ "currentVolumeFreeSpacePercent": 5
+ },
+ "datePolicyStatus": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "tieredFilesMostRecentAccessTimestamp": "2019-04-17T19:04:59.1959227Z"
+ }
+ },
+ "recallStatus": {
+ "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "totalRecallErrorsCount": 30,
+ "recallErrors": [
+ {
+ "errorCode": -2134347775,
+ "count": 5
+ },
+ {
+ "errorCode": -2134347774,
+ "count": 10
+ },
+ {
+ "errorCode": -2134347773,
+ "count": 15
+ }
+ ]
+ }
+ },
+ "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_ListBySyncGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_ListBySyncGroup.json
new file mode 100644
index 000000000000..dbc632f1ac8e
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_ListBySyncGroup.json
@@ -0,0 +1,193 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "value": [
+ {
+ "name": "SampleServerEndpoint_1",
+ "properties": {
+ "serverLocalPath": "D:\\SampleServerEndpoint_1",
+ "cloudTiering": "off",
+ "volumeFreeSpacePercent": 100,
+ "friendlyName": "somemachine.redmond.corp.microsoft.com",
+ "serverResourceId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a",
+ "provisioningState": "Succeeded",
+ "lastWorkflowId": "storageSyncServices/healthDemo1/workflows/569afb5c-7172-4cf8-a8ea-d987f727f11a",
+ "lastOperationName": "ICreateServerEndpointWorkflow",
+ "tierFilesOlderThanDays": 0,
+ "syncStatus": {
+ "downloadHealth": "Healthy",
+ "uploadHealth": "Error",
+ "combinedHealth": "Error",
+ "syncActivity": null,
+ "totalPersistentFilesNotSyncingCount": null,
+ "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "uploadStatus": {
+ "lastSyncResult": 0,
+ "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "lastSyncSuccessTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "lastSyncPerItemErrorCount": 0,
+ "persistentFilesNotSyncingCount": null,
+ "transientFilesNotSyncingCount": null,
+ "filesNotSyncingErrors": null
+ },
+ "downloadStatus": {
+ "lastSyncResult": 0,
+ "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z",
+ "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z",
+ "lastSyncPerItemErrorCount": 1000,
+ "persistentFilesNotSyncingCount": null,
+ "transientFilesNotSyncingCount": null,
+ "filesNotSyncingErrors": null
+ },
+ "uploadActivity": null,
+ "downloadActivity": null,
+ "offlineDataTransferStatus": "Complete"
+ },
+ "offlineDataTransfer": "on",
+ "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa",
+ "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
+ "offlineDataTransferShareName": "myfileshare",
+ "initialDownloadPolicy": "NamespaceThenModifiedFiles",
+ "localCacheMode": "UpdateLocallyCachedFiles"
+ },
+ "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints"
+ },
+ {
+ "name": "SampleServerEndpoint_2",
+ "properties": {
+ "serverLocalPath": "D:\\SampleServerEndpoint_2",
+ "cloudTiering": "on",
+ "volumeFreeSpacePercent": 80,
+ "friendlyName": "somemachine2.redmond.corp.microsoft.com",
+ "serverResourceId": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/f94e2944-b48d-4e5b-bdc7-c48ab3712659",
+ "provisioningState": "Succeeded",
+ "lastWorkflowId": "storageSyncServices/healthDemo1/workflows/40b1dc00-d7d9-4721-a1e9-ab60139b830a",
+ "lastOperationName": "ICreateServerEndpointWorkflow",
+ "tierFilesOlderThanDays": 5,
+ "initialDownloadPolicy": "NamespaceThenModifiedFiles",
+ "localCacheMode": "UpdateLocallyCachedFiles",
+ "syncStatus": {
+ "downloadHealth": "Healthy",
+ "uploadHealth": "Healthy",
+ "combinedHealth": "Healthy",
+ "syncActivity": "Upload",
+ "totalPersistentFilesNotSyncingCount": null,
+ "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "uploadStatus": {
+ "lastSyncResult": 0,
+ "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z",
+ "lastSyncPerItemErrorCount": 0,
+ "persistentFilesNotSyncingCount": null,
+ "transientFilesNotSyncingCount": null,
+ "filesNotSyncingErrors": null
+ },
+ "downloadStatus": {
+ "lastSyncResult": 0,
+ "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z",
+ "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z",
+ "lastSyncPerItemErrorCount": 0,
+ "persistentFilesNotSyncingCount": null,
+ "transientFilesNotSyncingCount": null,
+ "filesNotSyncingErrors": null
+ },
+ "uploadActivity": {
+ "timestamp": "2018-06-11T23:32:51.1057915Z",
+ "perItemErrorCount": 300,
+ "appliedItemCount": 1000,
+ "totalItemCount": 2300,
+ "appliedBytes": 57348983,
+ "totalBytes": 1958367412
+ },
+ "downloadActivity": null,
+ "offlineDataTransferStatus": "NotRunning"
+ },
+ "offlineDataTransfer": "off",
+ "cloudTieringStatus": {
+ "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "health": "Error",
+ "healthLastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "lastCloudTieringResult": -2134347771,
+ "lastSuccessTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "spaceSavings": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "volumeSizeBytes": 922337203685477580,
+ "totalSizeCloudBytes": 100000000,
+ "cachedSizeBytes": 50000000,
+ "spaceSavingsPercent": 50,
+ "spaceSavingsBytes": 50000000
+ },
+ "cachePerformance": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "cacheHitBytes": 922337203685477580,
+ "cacheMissBytes": 922337203685477580,
+ "cacheHitBytesPercent": 50
+ },
+ "filesNotTiering": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "totalFileCount": 60,
+ "errors": [
+ {
+ "errorCode": -2134347771,
+ "fileCount": 10
+ },
+ {
+ "errorCode": -2134347770,
+ "fileCount": 20
+ },
+ {
+ "errorCode": -2134347769,
+ "fileCount": 30
+ }
+ ]
+ },
+ "volumeFreeSpacePolicyStatus": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "effectiveVolumeFreeSpacePolicy": 30,
+ "currentVolumeFreeSpacePercent": 5
+ },
+ "datePolicyStatus": {
+ "lastUpdatedTimestamp": "2019-04-17T19:04:59.1959227Z",
+ "tieredFilesMostRecentAccessTimestamp": "2019-04-17T19:04:59.1959227Z"
+ }
+ },
+ "recallStatus": {
+ "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "totalRecallErrorsCount": 30,
+ "recallErrors": [
+ {
+ "errorCode": -2134347775,
+ "count": 5
+ },
+ {
+ "errorCode": -2134347774,
+ "count": 10
+ },
+ {
+ "errorCode": -2134347773,
+ "count": 15
+ }
+ ]
+ }
+ },
+ "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_2",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Recall.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Recall.json
new file mode 100644
index 000000000000..466850f60302
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Recall.json
@@ -0,0 +1,31 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "serverEndpointName": "SampleServerEndpoint_1",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "pattern": "",
+ "recallPath": ""
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operations/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operationresults/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Update.json
new file mode 100644
index 000000000000..aa4801c8dcff
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/ServerEndpoints_Update.json
@@ -0,0 +1,88 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "cloudEndpointName": "SampleCloudEndpoint_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "serverEndpointName": "SampleServerEndpoint_1",
+ "parameters": {
+ "properties": {
+ "cloudTiering": "off",
+ "volumeFreeSpacePercent": 100,
+ "tierFilesOlderThanDays": 0,
+ "offlineDataTransfer": "off",
+ "localCacheMode": "UpdateLocallyCachedFiles"
+ }
+ },
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "SampleServerEndpoint_1",
+ "properties": {
+ "serverLocalPath": "C:\\data_quota2",
+ "cloudTiering": "off",
+ "volumeFreeSpacePercent": 20,
+ "tierFilesOlderThanDays": 0,
+ "friendlyName": "somemachine2.redmond.corp.microsoft.com",
+ "serverResourceId": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/anpintDemoRG/providers/kailanitest07.one.microsoft.com/storageSyncServices/healthdemo1/registeredServers/f94e2944-b48d-4e5b-bdc7-c48ab3712659",
+ "provisioningState": "Succeeded",
+ "lastWorkflowId": "storageSyncServices/healthDemo1/workflows/569afb5c-7172-4cf8-a8ea-d987f727f11b",
+ "lastOperationName": "ICreateServerEndpointWorkflow",
+ "syncStatus": {
+ "downloadHealth": "Healthy",
+ "uploadHealth": "Error",
+ "combinedHealth": "Error",
+ "syncActivity": null,
+ "totalPersistentFilesNotSyncingCount": null,
+ "lastUpdatedTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "uploadStatus": {
+ "lastSyncResult": -2134351810,
+ "lastSyncTimestamp": "2018-06-11T23:32:51.1057915Z",
+ "lastSyncSuccessTimestamp": null,
+ "lastSyncPerItemErrorCount": 0,
+ "persistentFilesNotSyncingCount": null,
+ "transientFilesNotSyncingCount": null,
+ "filesNotSyncingErrors": null
+ },
+ "downloadStatus": {
+ "lastSyncResult": 0,
+ "lastSyncTimestamp": "2018-06-11T23:28:33.9217334Z",
+ "lastSyncSuccessTimestamp": "2018-06-11T23:28:33.9217334Z",
+ "lastSyncPerItemErrorCount": 0,
+ "persistentFilesNotSyncingCount": null,
+ "transientFilesNotSyncingCount": null,
+ "filesNotSyncingErrors": null
+ },
+ "uploadActivity": null,
+ "downloadActivity": null,
+ "offlineDataTransferStatus": "Stopping"
+ },
+ "offlineDataTransfer": "off",
+ "offlineDataTransferStorageAccountResourceId": "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/myRG/providers/Microsoft.Storage/storageAccounts/mysa",
+ "offlineDataTransferStorageAccountTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
+ "offlineDataTransferShareName": "myfileshare",
+ "initialDownloadPolicy": "NamespaceThenModifiedFiles",
+ "localCacheMode": "UpdateLocallyCachedFiles"
+ },
+ "id": "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups/serverEndpoints"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SSS_Swagger_08-09_Test212/workflows/3af798a9-26fd-44e7-a121-a4ad65f451bd/operations/ef2a30f4-9bb8-40e7-b403-5d6d3dc67a3c?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SSS_Swagger_08-09_Test212/workflows/3af798a9-26fd-44e7-a121-a4ad65f451bd/operationresults/ef2a30f4-9bb8-40e7-b403-5d6d3dc67a3c?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json
new file mode 100644
index 000000000000..41d15e171736
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json
@@ -0,0 +1,20 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c",
+ "locationName": "westus",
+ "parameters": {
+ "name": "newstoragesyncservicename",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": false,
+ "reason": "AlreadyExists",
+ "message": "An account named 'newstoragesyncservicename' is already in use."
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServiceCheckNameAvailability_Available.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServiceCheckNameAvailability_Available.json
new file mode 100644
index 000000000000..59c213db9340
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServiceCheckNameAvailability_Available.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "api-version": "2020-03-01",
+ "subscriptionId": "5c6bc8e1-1eaf-4192-94d8-58ce463ac86c",
+ "locationName": "westus",
+ "parameters": {
+ "name": "newstoragesyncservicename",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nameAvailable": true
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Create.json
new file mode 100644
index 000000000000..db27bee3da50
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Create.json
@@ -0,0 +1,38 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "parameters": {
+ "properties": {
+ "incomingTrafficPolicy": "AllowAllTraffic"
+ },
+ "location": "WestUS",
+ "tags": {}
+ },
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "SampleStorageSyncService_1",
+ "location": "WestUS",
+ "properties": {
+ "incomingTrafficPolicy": "AllowAllTraffic"
+ },
+ "tags": {},
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operations/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operationresults/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Delete.json
new file mode 100644
index 000000000000..157f3446933d
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Delete.json
@@ -0,0 +1,21 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {},
+ "204": {},
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operations/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operationresults/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Get.json
new file mode 100644
index 000000000000..1173d25d8ea1
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Get.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "SampleStorageSyncService_1",
+ "location": "WestUS",
+ "tags": {},
+ "properties": {
+ "storageSyncServiceStatus": 0,
+ "incomingTrafficPolicy": "AllowAllTraffic",
+ "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\"",
+ "privateEndpointConnections": [
+ {
+ "id": "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/{resource}/{resourceName}/privateEndpointConnections/SampleStorageSyncService_1.cd99f12ba6f3483f9292229e4f822258",
+ "properties": {
+ "privateEndpoint": {
+ "id": "subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_2/providers/Microsoft.Network/privateEndpoints/testpe01"
+ },
+ "privateLinkServiceConnectionState": {
+ "status": "Pending",
+ "description": "Please approve my request, thanks."
+ }
+ }
+ }
+ ]
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_ListByResourceGroup.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_ListByResourceGroup.json
new file mode 100644
index 000000000000..4128dc7a996a
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_ListByResourceGroup.json
@@ -0,0 +1,55 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "value": [
+ {
+ "name": "SampleStorageSyncService_1",
+ "location": "WestUS",
+ "tags": {},
+ "properties": {
+ "storageSyncServiceStatus": 0,
+ "incomingTrafficPolicy": "AllowAllTraffic",
+ "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\""
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ },
+ {
+ "name": "SampleStorageSyncService_2",
+ "location": "WestUS",
+ "tags": {},
+ "properties": {
+ "storageSyncServiceStatus": 0,
+ "incomingTrafficPolicy": "AllowAllTraffic",
+ "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\""
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_2",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ },
+ {
+ "name": "SampleStorageSyncService_3",
+ "location": "WestUS",
+ "tags": {},
+ "properties": {
+ "storageSyncServiceStatus": 0,
+ "incomingTrafficPolicy": "AllowAllTraffic",
+ "storageSyncServiceUid": "\"b2c58ee5-933e-462c-8a9e-b30f2bdd8fa3\""
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_3",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_ListBySubscription.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_ListBySubscription.json
new file mode 100644
index 000000000000..3b6f7dc65348
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_ListBySubscription.json
@@ -0,0 +1,54 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "value": [
+ {
+ "name": "SampleStorageSyncService_1",
+ "location": "WestUS",
+ "tags": {},
+ "properties": {
+ "storageSyncServiceStatus": 0,
+ "incomingTrafficPolicy": "AllowAllTraffic",
+ "storageSyncServiceUid": "\"3d1bf292-0f2a-4cc1-a3e1-60f35800e40c\""
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ },
+ {
+ "name": "SampleStorageSyncService_2",
+ "location": "WestUS",
+ "tags": {},
+ "properties": {
+ "storageSyncServiceStatus": 0,
+ "incomingTrafficPolicy": "AllowAllTraffic",
+ "storageSyncServiceUid": "\"2de01144-72da-4d7f-9d0c-e858855114a8\""
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_2",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ },
+ {
+ "name": "SampleStorageSyncService_3",
+ "location": "WestUS",
+ "tags": {},
+ "properties": {
+ "storageSyncServiceStatus": 0,
+ "incomingTrafficPolicy": "AllowAllTraffic",
+ "storageSyncServiceUid": "\"b2c58ee5-933e-462c-8a9e-b30f2bdd8fa3\""
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_3",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Update.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Update.json
new file mode 100644
index 000000000000..b12820afdbf2
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/StorageSyncServices_Update.json
@@ -0,0 +1,43 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "parameters": {
+ "properties": {
+ "incomingTrafficPolicy": "AllowAllTraffic"
+ },
+ "tags": {
+ "Environment": "Test",
+ "Dept": "IT"
+ }
+ },
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "SampleStorageSyncService_1",
+ "location": "WestUS",
+ "properties": {
+ "incomingTrafficPolicy": "AllowAllTraffic"
+ },
+ "tags": {
+ "Environment": "Test",
+ "Dept": "IT"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1",
+ "type": "Microsoft.StorageSync/storageSyncServices"
+ }
+ },
+ "202": {
+ "headers": {
+ "Azure-AsyncOperation": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operations/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Location": "https://management.azure.com/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75/operationresults/fe680c98-5725-49c8-b0dc-5e29745f752b?api-version=2020-03-01",
+ "Retry-After": "10",
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Create.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Create.json
new file mode 100644
index 000000000000..d47d2920ebbb
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Create.json
@@ -0,0 +1,24 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "api-version": "2020-03-01",
+ "parameters": {
+ "properties": {}
+ }
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "name": "SampleSyncGroup_1",
+ "properties": {
+ "uniqueId": "7868e4ee-8ddd-4a2d-941b-0041f6052a8a"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Delete.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Delete.json
new file mode 100644
index 000000000000..4f0bb8ee1a87
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Delete.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ },
+ "204": {}
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Get.json
new file mode 100644
index 000000000000..22da7a115d22
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_Get.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "syncGroupName": "SampleSyncGroup_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "SampleSyncGroup_1",
+ "properties": {
+ "uniqueId": "191660cd-6a1a-4f8c-9787-a6bed206a1dd",
+ "syncGroupStatus": "0"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SSS_Restore_08-08_Test112/syncGroups/SampleSyncGroup_1",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_ListByStorageSyncService.json
new file mode 100644
index 000000000000..010c48180298
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/SyncGroups_ListByStorageSyncService.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "value": [
+ {
+ "name": "SampleSyncGroup_1",
+ "properties": {
+ "uniqueId": "191660cd-6a1a-4f8c-9787-a6bed206a1dd",
+ "syncGroupStatus": "0"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SSS_Restore_08-08_Test112/syncGroups/SampleSyncGroup_1",
+ "type": "Microsoft.StorageSync/storageSyncServices/syncGroups"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_Abort.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_Abort.json
new file mode 100644
index 000000000000..605597fa6e1a
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_Abort.json
@@ -0,0 +1,17 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "workflowId": "7ffd50b3-5574-478d-9ff2-9371bc42ce68",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_Get.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_Get.json
new file mode 100644
index 000000000000..16fa6186c2d7
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_Get.json
@@ -0,0 +1,29 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "workflowId": "828219ea-083e-48b5-89ea-8fd9991b2e75",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "name": "828219ea-083e-48b5-89ea-8fd9991b2e75",
+ "properties": {
+ "status": "succeeded",
+ "lastOperationId": "\"fe680c98-5725-49c8-b0dc-5e29745f752b\"",
+ "operation": "do",
+ "lastStepName": "runServerJob",
+ "steps": "[{\"name\":\"validateInput\",\"friendlyName\":\"validateInput\",\"status\":\"Succeeded\",\"error\":null},{\"name\":\"newServerEndpoint\",\"friendlyName\":\"newServerEndpoint\",\"status\":\"Succeeded\",\"error\":null},{\"name\":\"updateReplicaGroupCertificates\",\"friendlyName\":\"updateReplicaGroupCertificates\",\"status\":\"Succeeded\",\"error\":null},{\"name\":\"runServerJob\",\"friendlyName\":\"runServerJob\",\"status\":\"Succeeded\",\"error\":null}]"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75",
+ "type": "Microsoft.StorageSync/storageSyncServices/workflows"
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_ListByStorageSyncService.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_ListByStorageSyncService.json
new file mode 100644
index 000000000000..56206a6e1350
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/examples/Workflows_ListByStorageSyncService.json
@@ -0,0 +1,32 @@
+{
+ "parameters": {
+ "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb",
+ "resourceGroupName": "SampleResourceGroup_1",
+ "storageSyncServiceName": "SampleStorageSyncService_1",
+ "api-version": "2020-03-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {
+ "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403",
+ "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730"
+ },
+ "body": {
+ "value": [
+ {
+ "name": "828219ea-083e-48b5-89ea-8fd9991b2e75",
+ "properties": {
+ "status": "succeeded",
+ "lastOperationId": "\"fe680c98-5725-49c8-b0dc-5e29745f752b\"",
+ "operation": "do",
+ "lastStepName": "runServerJob",
+ "steps": "[{\"name\":\"validateInput\",\"friendlyName\":\"validateInput\",\"status\":\"Succeeded\",\"error\":null},{\"name\":\"newServerEndpoint\",\"friendlyName\":\"newServerEndpoint\",\"status\":\"Succeeded\",\"error\":null},{\"name\":\"updateReplicaGroupCertificates\",\"friendlyName\":\"updateReplicaGroupCertificates\",\"status\":\"Succeeded\",\"error\":null},{\"name\":\"runServerJob\",\"friendlyName\":\"runServerJob\",\"status\":\"Succeeded\",\"error\":null}]"
+ },
+ "id": "/subscriptions/3a048283-338f-4002-a9dd-a50fdadcb392/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/workflows/828219ea-083e-48b5-89ea-8fd9991b2e75",
+ "type": "Microsoft.StorageSync/storageSyncServices/workflows"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/storagesync.json b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/storagesync.json
new file mode 100644
index 000000000000..15d0e9160781
--- /dev/null
+++ b/specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-03-01/storagesync.json
@@ -0,0 +1,4954 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Microsoft Storage Sync",
+ "description": "Microsoft Storage Sync Service API",
+ "version": "2020-03-01",
+ "x-ms-code-generation-settings": {
+ "name": "StorageSyncManagementClient"
+ }
+ },
+ "host": "management.azure.com",
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "paths": {
+ "/providers/Microsoft.StorageSync/operations": {
+ "get": {
+ "tags": [
+ "ResourceProvider",
+ "Operations"
+ ],
+ "operationId": "Operations_List",
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "description": "Lists all of the available Storage Sync Rest API operations.",
+ "x-ms-examples": {
+ "Operations_List": {
+ "$ref": "./examples/Operations_List.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Array of operations resources in the Resource Provider",
+ "schema": {
+ "$ref": "#/definitions/OperationEntityListResult"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "deprecated": false,
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/checkNameAvailability": {
+ "post": {
+ "tags": [
+ "StorageSyncService"
+ ],
+ "operationId": "StorageSyncServices_CheckNameAvailability",
+ "x-ms-examples": {
+ "StorageSyncServiceCheckNameAvailability_Available": {
+ "$ref": "./examples/StorageSyncServiceCheckNameAvailability_Available.json"
+ },
+ "StorageSyncServiceCheckNameAvailability_AlreadyExists": {
+ "$ref": "./examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json"
+ }
+ },
+ "description": "Check the give namespace name availability.",
+ "parameters": [
+ {
+ "name": "locationName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The desired region for the name check."
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityParameters"
+ },
+ "description": "Parameters to check availability of the given namespace name"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "check availability returned successfully.",
+ "schema": {
+ "$ref": "#/definitions/CheckNameAvailabilityResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}": {
+ "put": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Storage Sync Service resource name.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/StorageSyncServiceCreateParameters"
+ }
+ }
+ ],
+ "tags": [
+ "StorageSyncServices Resource"
+ ],
+ "operationId": "StorageSyncServices_Create",
+ "description": "Create a new StorageSyncService.",
+ "x-ms-examples": {
+ "StorageSyncServices_Create": {
+ "$ref": "./examples/StorageSyncServices_Create.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Storage Sync Service object created/updated",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncService"
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Retry After",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "Request id",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "tags": [
+ "StorageSyncServices Resource"
+ ],
+ "operationId": "StorageSyncServices_Get",
+ "description": "Get a given StorageSyncService.",
+ "x-ms-examples": {
+ "StorageSyncServices_Get": {
+ "$ref": "./examples/StorageSyncServices_Get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Storage Sync Service object",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncService"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ },
+ "patch": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Storage Sync Service resource.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncServiceUpdateParameters"
+ }
+ }
+ ],
+ "tags": [
+ "StorageSyncServices Resource"
+ ],
+ "operationId": "StorageSyncServices_Update",
+ "description": "Patch a given StorageSyncService.",
+ "x-ms-examples": {
+ "StorageSyncServices_Update": {
+ "$ref": "./examples/StorageSyncServices_Update.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Storage Sync Service object created/updated",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncService"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Retry After",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "Request id",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "StorageSyncServices Resource"
+ ],
+ "operationId": "StorageSyncServices_Delete",
+ "description": "Delete a given StorageSyncService.",
+ "x-ms-examples": {
+ "StorageSyncServices_Delete": {
+ "$ref": "./examples/StorageSyncServices_Delete.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Storage Sync Service object was deleted.",
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Retry After",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "Request id",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id",
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "Storage Sync Service Resource doesn't exist"
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "tags": [
+ "StorageSyncServices Resource"
+ ],
+ "operationId": "StorageSyncServices_ListByResourceGroup",
+ "description": "Get a StorageSyncService list by Resource group name.",
+ "x-ms-examples": {
+ "StorageSyncServices_ListByResourceGroup": {
+ "$ref": "./examples/StorageSyncServices_ListByResourceGroup.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Array of registered Storage Sync Service resources in the Resource Group",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncServiceArray"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ }
+ ],
+ "tags": [
+ "StorageSyncServices Resource"
+ ],
+ "operationId": "StorageSyncServices_ListBySubscription",
+ "description": "Get a StorageSyncService list by subscription.",
+ "x-ms-examples": {
+ "StorageSyncServices_ListBySubscription": {
+ "$ref": "./examples/StorageSyncServices_ListBySubscription.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Array of registered Storage Sync Service resources in the subscription.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncServiceArray"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateLinkResources": {
+ "get": {
+ "tags": [
+ "PrivateLinkResources"
+ ],
+ "operationId": "PrivateLinkResources_ListByStorageSyncService",
+ "description": "Gets the private link resources that need to be created for a storage sync service.",
+ "x-ms-examples": {
+ "PrivateLinkResources_List": {
+ "$ref": "./examples/PrivateLinkResources_List.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/StorageSyncServiceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved private link resources.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateLinkResourceListResult"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": {
+ "get": {
+ "tags": [
+ "PrivateEndpointConnections"
+ ],
+ "operationId": "PrivateEndpointConnections_Get",
+ "description": "Gets the specified private endpoint connection associated with the storage sync service.",
+ "x-ms-examples": {
+ "PrivateEndpointConnections_Get": {
+ "$ref": "./examples/PrivateEndpointConnections_Get.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/StorageSyncServiceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Get the private endpoint connection properties successfully.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "PrivateEndpointConnections"
+ ],
+ "operationId": "PrivateEndpointConnections_Create",
+ "description": "Update the state of specified private endpoint connection associated with the storage sync service.",
+ "x-ms-examples": {
+ "PrivateEndpointConnections_Create": {
+ "$ref": "./examples/PrivateEndpointConnections_Create.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/StorageSyncServiceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName"
+ },
+ {
+ "name": "properties",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection"
+ },
+ "description": "The private endpoint connection properties."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Update the private endpoint connection properties successfully.",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection"
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Retry After",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "Request id",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "tags": [
+ "PrivateEndpointConnections"
+ ],
+ "operationId": "PrivateEndpointConnections_Delete",
+ "description": "Deletes the specified private endpoint connection associated with the storage sync service.",
+ "x-ms-examples": {
+ "PrivateEndpointConnections_Delete": {
+ "$ref": "./examples/PrivateEndpointConnections_Delete.json"
+ }
+ },
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "#/parameters/StorageSyncServiceNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK -- Delete the private endpoint connection successfully."
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Retry After",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "Request id",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id",
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "No Content -- The private endpoint connection does not exist."
+ },
+ "default": {
+ "description": "Error response describing why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "PrivateEndpointConnection Resource"
+ ],
+ "operationId": "PrivateEndpointConnections_ListByStorageSyncService",
+ "description": "Get a PrivateEndpointConnection List.",
+ "x-ms-examples": {
+ "PrivateEndpointConnections_ListByStorageSyncService": {
+ "$ref": "./examples/PrivateEndpointConnections_ListByStorageSyncService.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Array of Sync Group resources in Storage Sync Service",
+ "schema": {
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnectionListResult"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "SyncGroup Resource"
+ ],
+ "operationId": "SyncGroups_ListByStorageSyncService",
+ "description": "Get a SyncGroup List.",
+ "x-ms-examples": {
+ "SyncGroups_ListByStorageSyncService": {
+ "$ref": "./examples/SyncGroups_ListByStorageSyncService.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Array of Sync Group resources in Storage Sync Service",
+ "schema": {
+ "$ref": "#/definitions/SyncGroupArray"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}": {
+ "put": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Sync Group Body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/SyncGroupCreateParameters"
+ }
+ }
+ ],
+ "tags": [
+ "SyncGroup Resource"
+ ],
+ "operationId": "SyncGroups_Create",
+ "description": "Create a new SyncGroup.",
+ "x-ms-examples": {
+ "SyncGroups_Create": {
+ "$ref": "./examples/SyncGroups_Create.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Sync Group object",
+ "schema": {
+ "$ref": "#/definitions/SyncGroup"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ },
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "SyncGroup Resource"
+ ],
+ "operationId": "SyncGroups_Get",
+ "description": "Get a given SyncGroup.",
+ "x-ms-examples": {
+ "SyncGroups_Get": {
+ "$ref": "./examples/SyncGroups_Get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Sync Group object",
+ "schema": {
+ "$ref": "#/definitions/SyncGroup"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "SyncGroup Resource"
+ ],
+ "operationId": "SyncGroups_Delete",
+ "description": "Delete a given SyncGroup.",
+ "x-ms-examples": {
+ "SyncGroups_Delete": {
+ "$ref": "./examples/SyncGroups_Delete.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Sync Group object was deleted",
+ "headers": {
+ "x-ms-request-id": {
+ "description": "Request id",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id",
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "Resource doesn't exist"
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}": {
+ "put": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "cloudEndpointName",
+ "in": "path",
+ "description": "Name of Cloud Endpoint object.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Body of Cloud Endpoint resource.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CloudEndpointCreateParameters"
+ }
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource"
+ ],
+ "operationId": "CloudEndpoints_Create",
+ "description": "Create a new CloudEndpoint.",
+ "x-ms-examples": {
+ "CloudEndpoints_Create": {
+ "$ref": "./examples/CloudEndpoints_Create.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Cloud Endpoint object",
+ "schema": {
+ "$ref": "#/definitions/CloudEndpoint"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Retry After",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "Request id",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "cloudEndpointName",
+ "in": "path",
+ "description": "Name of Cloud Endpoint object.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource"
+ ],
+ "operationId": "CloudEndpoints_Get",
+ "description": "Get a given CloudEndpoint.",
+ "x-ms-examples": {
+ "CloudEndpoints_Get": {
+ "$ref": "./examples/CloudEndpoints_Get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Cloud Endpoint object",
+ "schema": {
+ "$ref": "#/definitions/CloudEndpoint"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "cloudEndpointName",
+ "in": "path",
+ "description": "Name of Cloud Endpoint object.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource"
+ ],
+ "operationId": "CloudEndpoints_Delete",
+ "description": "Delete a given CloudEndpoint.",
+ "x-ms-examples": {
+ "CloudEndpoints_Delete": {
+ "$ref": "./examples/CloudEndpoints_Delete.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Retry-After": {
+ "description": "Retry After",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "Request id",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id",
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "Resource doesn't exist"
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource"
+ ],
+ "operationId": "CloudEndpoints_ListBySyncGroup",
+ "description": "Get a CloudEndpoint List.",
+ "x-ms-examples": {
+ "CloudEndpoints_ListBySyncGroup": {
+ "$ref": "./examples/CloudEndpoints_ListBySyncGroup.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Array of Cloud Endpoint resources in Sync Group",
+ "schema": {
+ "$ref": "#/definitions/CloudEndpointArray"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prebackup": {
+ "post": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "cloudEndpointName",
+ "in": "path",
+ "description": "Name of Cloud Endpoint object.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Body of Backup request.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/BackupRequest"
+ }
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource",
+ "Actions",
+ "Backup Restore"
+ ],
+ "operationId": "CloudEndpoints_PreBackup",
+ "description": "Pre Backup a given CloudEndpoint.",
+ "x-ms-examples": {
+ "CloudEndpoints_PreBackup": {
+ "$ref": "./examples/CloudEndpoints_PreBackup.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postbackup": {
+ "post": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "cloudEndpointName",
+ "in": "path",
+ "description": "Name of Cloud Endpoint object.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Body of Backup request.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/BackupRequest"
+ }
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource",
+ "Actions",
+ "Backup Restore"
+ ],
+ "operationId": "CloudEndpoints_PostBackup",
+ "description": "Post Backup a given CloudEndpoint.",
+ "x-ms-examples": {
+ "CloudEndpoints_PostBackup": {
+ "$ref": "./examples/CloudEndpoints_PostBackup.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "schema": {
+ "$ref": "#/definitions/PostBackupResponse"
+ },
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prerestore": {
+ "post": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "cloudEndpointName",
+ "in": "path",
+ "description": "Name of Cloud Endpoint object.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Body of Cloud Endpoint object.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PreRestoreRequest"
+ }
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource",
+ "Actions",
+ "Backup Restore"
+ ],
+ "operationId": "CloudEndpoints_PreRestore",
+ "description": "Pre Restore a given CloudEndpoint.",
+ "x-ms-examples": {
+ "CloudEndpoints_PreRestore": {
+ "$ref": "./examples/CloudEndpoints_PreRestore.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Ok"
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/restoreheartbeat": {
+ "post": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "cloudEndpointName",
+ "in": "path",
+ "description": "Name of Cloud Endpoint object.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource",
+ "Actions",
+ "Backup Restore"
+ ],
+ "operationId": "CloudEndpoints_restoreheartbeat",
+ "description": "Restore Heartbeat a given CloudEndpoint.",
+ "x-ms-examples": {
+ "CloudEndpoints_restoreheartbeat": {
+ "$ref": "./examples/CloudEndpoints_RestoreHeatbeat.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Restore Heartbeat Operation has ran successfully.",
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postrestore": {
+ "post": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "cloudEndpointName",
+ "in": "path",
+ "description": "Name of Cloud Endpoint object.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Body of Cloud Endpoint object.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/PostRestoreRequest"
+ }
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource",
+ "Actions",
+ "Backup Restore"
+ ],
+ "operationId": "CloudEndpoints_PostRestore",
+ "description": "Post Restore a given CloudEndpoint.",
+ "x-ms-examples": {
+ "CloudEndpoints_PostRestore": {
+ "$ref": "./examples/CloudEndpoints_PostRestore.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Ok"
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/triggerChangeDetection": {
+ "post": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "cloudEndpointName",
+ "in": "path",
+ "description": "Name of Cloud Endpoint object.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Trigger Change Detection Action parameters.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TriggerChangeDetectionParameters"
+ }
+ }
+ ],
+ "tags": [
+ "CloudEndpoint Resource",
+ "Actions",
+ "Change Detection"
+ ],
+ "operationId": "CloudEndpoints_TriggerChangeDetection",
+ "description": "Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud Endpoint.",
+ "x-ms-examples": {
+ "CloudEndpoints_TriggerChangeDetection": {
+ "$ref": "./examples/CloudEndpoints_TriggerChangeDetection.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Ok"
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}": {
+ "put": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "serverEndpointName",
+ "in": "path",
+ "description": "Name of Server Endpoint object.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Body of Server Endpoint object.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ServerEndpointCreateParameters"
+ }
+ }
+ ],
+ "tags": [
+ "ServerEndpoint Resource"
+ ],
+ "operationId": "ServerEndpoints_Create",
+ "description": "Create a new ServerEndpoint.",
+ "x-ms-examples": {
+ "ServerEndpoints_Create": {
+ "$ref": "./examples/ServerEndpoints_Create.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Server Endpoint object",
+ "schema": {
+ "$ref": "#/definitions/ServerEndpoint"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "patch": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "serverEndpointName",
+ "in": "path",
+ "description": "Name of Server Endpoint object.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Any of the properties applicable in PUT request.",
+ "schema": {
+ "$ref": "#/definitions/ServerEndpointUpdateParameters"
+ }
+ }
+ ],
+ "tags": [
+ "ServerEndpoint Resource"
+ ],
+ "operationId": "ServerEndpoints_Update",
+ "description": "Patch a given ServerEndpoint.",
+ "x-ms-examples": {
+ "ServerEndpoints_Update": {
+ "$ref": "./examples/ServerEndpoints_Update.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Server Endpoint object",
+ "schema": {
+ "$ref": "#/definitions/ServerEndpoint"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "serverEndpointName",
+ "in": "path",
+ "description": "Name of Server Endpoint object.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "ServerEndpoint Resource"
+ ],
+ "operationId": "ServerEndpoints_Get",
+ "description": "Get a ServerEndpoint.",
+ "x-ms-examples": {
+ "ServerEndpoints_Get": {
+ "$ref": "./examples/ServerEndpoints_Get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Server Endpoint object",
+ "schema": {
+ "$ref": "#/definitions/ServerEndpoint"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "serverEndpointName",
+ "in": "path",
+ "description": "Name of Server Endpoint object.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "ServerEndpoint Resource"
+ ],
+ "operationId": "ServerEndpoints_Delete",
+ "description": "Delete a given ServerEndpoint.",
+ "x-ms-examples": {
+ "ServerEndpoints_Delete": {
+ "$ref": "./examples/ServerEndpoints_Delete.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "ServerEndpoint Resource"
+ ],
+ "operationId": "ServerEndpoints_ListBySyncGroup",
+ "description": "Get a ServerEndpoint list.",
+ "x-ms-examples": {
+ "ServerEndpoints_ListBySyncGroup": {
+ "$ref": "./examples/ServerEndpoints_ListBySyncGroup.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Array of Server Endpoint resources in Sync Group",
+ "schema": {
+ "$ref": "#/definitions/ServerEndpointArray"
+ },
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}/recallAction": {
+ "post": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "syncGroupName",
+ "in": "path",
+ "description": "Name of Sync Group resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "serverEndpointName",
+ "in": "path",
+ "description": "Name of Server Endpoint object.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Body of Recall Action object.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/RecallActionParameters"
+ }
+ }
+ ],
+ "tags": [
+ "ServerEndpoint Resource",
+ "Actions"
+ ],
+ "operationId": "ServerEndpoints_recallAction",
+ "description": "Recall a server endpoint.",
+ "x-ms-examples": {
+ "ServerEndpoints_recallAction": {
+ "$ref": "./examples/ServerEndpoints_Recall.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Server Endpoint object",
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "RegisteredServer Resource"
+ ],
+ "operationId": "RegisteredServers_ListByStorageSyncService",
+ "description": "Get a given registered server list.",
+ "x-ms-examples": {
+ "RegisteredServers_ListByStorageSyncService": {
+ "$ref": "./examples/RegisteredServers_ListByStorageSyncService.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Array of Registered Server resources in Storage Sync Service",
+ "schema": {
+ "$ref": "#/definitions/RegisteredServerArray"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "serverId",
+ "in": "path",
+ "description": "GUID identifying the on-premises server.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "RegisteredServer Resource"
+ ],
+ "operationId": "RegisteredServers_Get",
+ "description": "Get a given registered server.",
+ "x-ms-examples": {
+ "RegisteredServers_Get": {
+ "$ref": "./examples/RegisteredServers_Get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Registered Server resources in Sync Group",
+ "schema": {
+ "$ref": "#/definitions/RegisteredServer"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ },
+ "put": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "serverId",
+ "in": "path",
+ "description": "GUID identifying the on-premises server.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Body of Registered Server object.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/RegisteredServerCreateParameters"
+ }
+ }
+ ],
+ "tags": [
+ "RegisteredServer Resource"
+ ],
+ "operationId": "RegisteredServers_Create",
+ "description": "Add a new registered server.",
+ "x-ms-examples": {
+ "RegisteredServers_Create": {
+ "$ref": "./examples/RegisteredServers_Create.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Registered Server resources in Sync Group",
+ "schema": {
+ "$ref": "#/definitions/RegisteredServer"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Azure-AsyncOperation": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ },
+ "delete": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "serverId",
+ "in": "path",
+ "description": "GUID identifying the on-premises server.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "RegisteredServer Resource"
+ ],
+ "operationId": "RegisteredServers_Delete",
+ "description": "Delete the given registered server.",
+ "x-ms-examples": {
+ "RegisteredServers_Delete": {
+ "$ref": "./examples/RegisteredServers_Delete.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "204": {
+ "description": "Resource doesn't exist"
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}/triggerRollover": {
+ "post": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "serverId",
+ "in": "path",
+ "description": "Server Id",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "parameters",
+ "in": "body",
+ "description": "Body of Trigger Rollover request.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/TriggerRolloverRequest"
+ }
+ }
+ ],
+ "tags": [
+ "RegisteredServer Resource",
+ "Actions"
+ ],
+ "operationId": "RegisteredServers_triggerRollover",
+ "description": "Triggers Server certificate rollover.",
+ "x-ms-examples": {
+ "RegisteredServers_triggerRollover": {
+ "$ref": "./examples/RegisteredServers_TriggerRollover.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Trigger Rollover success status",
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "202": {
+ "description": "Asynchronous Operation Status Location",
+ "headers": {
+ "Location": {
+ "description": "Operation Status Location URI",
+ "type": "string"
+ },
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "Workflow Resource"
+ ],
+ "operationId": "Workflows_ListByStorageSyncService",
+ "description": "Get a Workflow List",
+ "x-ms-examples": {
+ "Workflows_ListByStorageSyncService": {
+ "$ref": "./examples/Workflows_ListByStorageSyncService.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Array of Workflow resources in Storage Sync Service",
+ "schema": {
+ "$ref": "#/definitions/WorkflowArray"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": null
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "workflowId",
+ "in": "path",
+ "description": "workflow Id",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "Workflow Resource"
+ ],
+ "operationId": "Workflows_Get",
+ "description": "Get Workflows resource",
+ "x-ms-examples": {
+ "Workflows_Get": {
+ "$ref": "./examples/Workflows_Get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Workflow object",
+ "schema": {
+ "$ref": "#/definitions/Workflow"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}/abort": {
+ "post": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "description": "Name of Storage Sync Service resource.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "workflowId",
+ "in": "path",
+ "description": "workflow Id",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "Workflow Resource",
+ "Actions"
+ ],
+ "operationId": "Workflows_Abort",
+ "description": "Abort the given workflow.",
+ "x-ms-examples": {
+ "Workflows_Abort": {
+ "$ref": "./examples/Workflows_Abort.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "success",
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/locations/{locationName}/workflows/{workflowId}/operations/{operationId}": {
+ "get": {
+ "parameters": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
+ },
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "name": "locationName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The desired region to obtain information from."
+ },
+ {
+ "name": "workflowId",
+ "in": "path",
+ "description": "workflow Id",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "operationId",
+ "in": "path",
+ "description": "operation Id",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "tags": [
+ "Operation Status"
+ ],
+ "operationId": "OperationStatus_Get",
+ "description": "Get Operation status",
+ "x-ms-examples": {
+ "Workflows_Get": {
+ "$ref": "./examples/OperationStatus_Get.json"
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Operation Status",
+ "schema": {
+ "$ref": "#/definitions/OperationStatus"
+ },
+ "headers": {
+ "x-ms-request-id": {
+ "description": "request id.",
+ "type": "string"
+ },
+ "x-ms-correlation-request-id": {
+ "description": "correlation request id.",
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error message indicating why the operation failed.",
+ "schema": {
+ "$ref": "#/definitions/StorageSyncError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "StorageSyncError": {
+ "type": "object",
+ "description": "Error type",
+ "properties": {
+ "error": {
+ "$ref": "#/definitions/StorageSyncApiError",
+ "description": "Error details of the given entry."
+ },
+ "innererror": {
+ "$ref": "#/definitions/StorageSyncApiError",
+ "description": "Error details of the given entry."
+ }
+ }
+ },
+ "StorageSyncApiError": {
+ "type": "object",
+ "description": "Error type",
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "Error code of the given entry."
+ },
+ "message": {
+ "type": "string",
+ "description": "Error message of the given entry."
+ },
+ "target": {
+ "type": "string",
+ "description": "Target of the given error entry."
+ },
+ "details": {
+ "$ref": "#/definitions/StorageSyncErrorDetails",
+ "description": "Error details of the given entry."
+ }
+ }
+ },
+ "StorageSyncErrorDetails": {
+ "type": "object",
+ "description": "Error Details object.",
+ "properties": {
+ "code": {
+ "type": "string",
+ "description": "Error code of the given entry."
+ },
+ "message": {
+ "type": "string",
+ "description": "Error message of the given entry."
+ },
+ "target": {
+ "type": "string",
+ "description": "Target of the given entry."
+ }
+ }
+ },
+ "SubscriptionState": {
+ "type": "object",
+ "description": "Subscription State object.",
+ "properties": {
+ "state": {
+ "type": "string",
+ "description": "State of Azure Subscription",
+ "enum": [
+ "Registered",
+ "Unregistered",
+ "Warned",
+ "Suspended",
+ "Deleted"
+ ],
+ "x-ms-enum": {
+ "name": "Reason",
+ "modelAsString": true
+ }
+ },
+ "istransitioning": {
+ "type": "boolean",
+ "description": "Is Transitioning",
+ "readOnly": true
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/SubscriptionStateProperties",
+ "description": "Subscription state properties."
+ }
+ }
+ },
+ "StorageSyncService": {
+ "type": "object",
+ "description": "Storage Sync Service object.",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/StorageSyncServiceProperties",
+ "description": "Storage Sync Service properties."
+ }
+ }
+ },
+ "SyncGroup": {
+ "type": "object",
+ "description": "Sync Group object.",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/SyncGroupProperties",
+ "description": "SyncGroup properties."
+ }
+ }
+ },
+ "CloudEndpoint": {
+ "type": "object",
+ "description": "Cloud Endpoint object.",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/CloudEndpointProperties",
+ "description": "Cloud Endpoint properties."
+ }
+ }
+ },
+ "TriggerChangeDetectionParameters": {
+ "properties": {
+ "directoryPath": {
+ "type": "string",
+ "description": "Relative path to a directory Azure File share for which change detection is to be performed."
+ },
+ "changeDetectionMode": {
+ "type": "string",
+ "description": "Change Detection Mode. Applies to a directory specified in directoryPath parameter.",
+ "enum": [
+ "Default",
+ "Recursive"
+ ],
+ "x-ms-enum": {
+ "name": "changeDetectionMode",
+ "modelAsString": true
+ }
+ },
+ "paths": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of relative paths on the Azure File share to be included in the change detection. Can be files and directories."
+ }
+ },
+ "description": "The parameters used when calling trigger change detection action on cloud endpoint."
+ },
+ "RecallActionParameters": {
+ "properties": {
+ "pattern": {
+ "type": "string",
+ "description": "Pattern of the files."
+ },
+ "recallPath": {
+ "type": "string",
+ "description": "Recall path."
+ }
+ },
+ "description": "The parameters used when calling recall action on server endpoint."
+ },
+ "StorageSyncServiceCreateParameters": {
+ "properties": {
+ "location": {
+ "type": "string",
+ "description": "Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed."
+ },
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/StorageSyncServiceCreateParametersProperties",
+ "description": "The parameters used to create the storage sync service."
+ }
+ },
+ "required": [
+ "location"
+ ],
+ "description": "The parameters used when creating a storage sync service."
+ },
+ "SyncGroupCreateParameters": {
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/SyncGroupCreateParametersProperties",
+ "description": "The parameters used to create the sync group"
+ }
+ },
+ "description": "The parameters used when creating a sync group."
+ },
+ "SyncGroupCreateParametersProperties": {
+ "type": "object",
+ "description": "Sync Group Create Properties object.",
+ "properties": {}
+ },
+ "CloudEndpointCreateParameters": {
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/CloudEndpointCreateParametersProperties",
+ "description": "The parameters used to create the cloud endpoint."
+ }
+ },
+ "description": "The parameters used when creating a cloud endpoint."
+ },
+ "StorageSyncServiceCreateParametersProperties": {
+ "description": "StorageSyncService Properties object.",
+ "properties": {
+ "incomingTrafficPolicy": {
+ "$ref": "#/definitions/IncomingTrafficPolicy",
+ "description": "Incoming Traffic Policy"
+ }
+ }
+ },
+ "CloudEndpointCreateParametersProperties": {
+ "description": "CloudEndpoint Properties object.",
+ "properties": {
+ "storageAccountResourceId": {
+ "type": "string",
+ "description": "Storage Account Resource Id"
+ },
+ "azureFileShareName": {
+ "type": "string",
+ "description": "Azure file share name"
+ },
+ "storageAccountTenantId": {
+ "type": "string",
+ "description": "Storage Account Tenant Id"
+ },
+ "friendlyName": {
+ "type": "string",
+ "description": "Friendly Name"
+ }
+ }
+ },
+ "ServerEndpointCreateParameters": {
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ServerEndpointCreateParametersProperties",
+ "description": "The parameters used to create the server endpoint."
+ }
+ },
+ "description": "The parameters used when creating a server endpoint."
+ },
+ "ServerEndpointCreateParametersProperties": {
+ "description": "ServerEndpoint Properties object.",
+ "properties": {
+ "serverLocalPath": {
+ "$ref": "#/definitions/PhysicalPath",
+ "description": "Server Local path."
+ },
+ "cloudTiering": {
+ "$ref": "#/definitions/FeatureStatus",
+ "description": "Cloud Tiering."
+ },
+ "volumeFreeSpacePercent": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 100,
+ "description": "Level of free space to be maintained by Cloud Tiering if it is enabled."
+ },
+ "tierFilesOlderThanDays": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 2147483647,
+ "description": "Tier files older than days."
+ },
+ "friendlyName": {
+ "type": "string",
+ "description": "Friendly Name"
+ },
+ "serverResourceId": {
+ "$ref": "#/definitions/ResourceId",
+ "description": "Server Resource Id."
+ },
+ "offlineDataTransfer": {
+ "$ref": "#/definitions/FeatureStatus",
+ "description": "Offline data transfer"
+ },
+ "offlineDataTransferShareName": {
+ "type": "string",
+ "description": "Offline data transfer share name"
+ },
+ "initialDownloadPolicy": {
+ "$ref": "#/definitions/InitialDownloadPolicy",
+ "description": "Policy for how namespace and files are recalled during FastDr."
+ },
+ "localCacheMode": {
+ "$ref": "#/definitions/LocalCacheMode",
+ "description": "Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access."
+ }
+ }
+ },
+ "TriggerRolloverRequest": {
+ "type": "object",
+ "description": "Trigger Rollover Request.",
+ "properties": {
+ "serverCertificate": {
+ "type": "string",
+ "description": "Certificate Data"
+ }
+ }
+ },
+ "RegisteredServerCreateParameters": {
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/RegisteredServerCreateParametersProperties",
+ "description": "The parameters used to create the registered server."
+ }
+ },
+ "description": "The parameters used when creating a registered server."
+ },
+ "RegisteredServerCreateParametersProperties": {
+ "description": "RegisteredServer Create Properties object.",
+ "properties": {
+ "serverCertificate": {
+ "type": "string",
+ "description": "Registered Server Certificate"
+ },
+ "agentVersion": {
+ "type": "string",
+ "description": "Registered Server Agent Version"
+ },
+ "serverOSVersion": {
+ "type": "string",
+ "description": "Registered Server OS Version"
+ },
+ "lastHeartBeat": {
+ "type": "string",
+ "description": "Registered Server last heart beat"
+ },
+ "serverRole": {
+ "type": "string",
+ "description": "Registered Server serverRole"
+ },
+ "clusterId": {
+ "type": "string",
+ "description": "Registered Server clusterId"
+ },
+ "clusterName": {
+ "type": "string",
+ "description": "Registered Server clusterName"
+ },
+ "serverId": {
+ "type": "string",
+ "description": "Registered Server serverId"
+ },
+ "friendlyName": {
+ "type": "string",
+ "description": "Friendly Name"
+ }
+ }
+ },
+ "ServerEndpointUpdateParameters": {
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ServerEndpointUpdateProperties",
+ "description": "The properties of the server endpoint."
+ }
+ },
+ "description": "Parameters for updating an Server Endpoint."
+ },
+ "ServerEndpoint": {
+ "type": "object",
+ "description": "Server Endpoint object.",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/ServerEndpointProperties",
+ "description": "Server Endpoint properties."
+ }
+ }
+ },
+ "RegisteredServer": {
+ "type": "object",
+ "description": "Registered Server resource.",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/RegisteredServerProperties",
+ "description": "RegisteredServer properties."
+ }
+ }
+ },
+ "ResourcesMoveInfo": {
+ "type": "object",
+ "description": "Resource Move Info.",
+ "properties": {
+ "targetResourceGroup": {
+ "type": "string",
+ "description": "Target resource group."
+ },
+ "resources": {
+ "type": "array",
+ "description": "Collection of Resources.",
+ "items": {
+ "$ref": "#/definitions/ResourceId"
+ }
+ }
+ }
+ },
+ "Workflow": {
+ "type": "object",
+ "description": "Workflow resource.",
+ "allOf": [
+ {
+ "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/WorkflowProperties",
+ "description": "Workflow properties."
+ }
+ }
+ },
+ "OperationEntityListResult": {
+ "description": "The list of storage sync operations.",
+ "type": "object",
+ "properties": {
+ "nextLink": {
+ "description": "The link used to get the next page of operations.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The list of operations.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/OperationEntity"
+ }
+ }
+ }
+ },
+ "OperationEntity": {
+ "description": "The operation supported by storage sync.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "Operation name: {provider}/{resource}/{operation}.",
+ "type": "string"
+ },
+ "display": {
+ "$ref": "#/definitions/OperationDisplayInfo",
+ "description": "The operation supported by storage sync."
+ },
+ "origin": {
+ "type": "string",
+ "description": "The origin."
+ }
+ }
+ },
+ "OperationDisplayInfo": {
+ "description": "The operation supported by storage sync.",
+ "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: Microsoft StorageSync.",
+ "type": "string"
+ },
+ "resource": {
+ "description": "Resource on which the operation is performed.",
+ "type": "string"
+ }
+ }
+ },
+ "OperationDisplayResource": {
+ "type": "object",
+ "description": "Operation Display Resource object.",
+ "properties": {
+ "provider": {
+ "type": "string",
+ "description": "Operation Display Resource Provider."
+ },
+ "resource": {
+ "type": "string",
+ "description": "Operation Display Resource."
+ },
+ "operation": {
+ "type": "string",
+ "description": "Operation Display Resource Operation."
+ },
+ "description": {
+ "type": "string",
+ "description": "Operation Display Resource Description."
+ }
+ }
+ },
+ "CheckNameAvailabilityParameters": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "The name to check for availability"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "Microsoft.StorageSync/storageSyncServices"
+ ],
+ "x-ms-enum": {
+ "name": "Type",
+ "modelAsString": false
+ },
+ "description": "The resource type. Must be set to Microsoft.StorageSync/storageSyncServices"
+ }
+ },
+ "required": [
+ "name",
+ "type"
+ ],
+ "description": "Parameters for a check name availability request."
+ },
+ "CheckNameAvailabilityResult": {
+ "properties": {
+ "nameAvailable": {
+ "readOnly": true,
+ "type": "boolean",
+ "description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used."
+ },
+ "reason": {
+ "readOnly": true,
+ "type": "string",
+ "enum": [
+ "Invalid",
+ "AlreadyExists"
+ ],
+ "x-ms-enum": {
+ "name": "NameAvailabilityReason",
+ "modelAsString": false
+ },
+ "description": "Gets the reason that a Storage Sync Service name could not be used. The Reason element is only returned if NameAvailable is false."
+ },
+ "message": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Gets an error message explaining the Reason value in more detail."
+ }
+ },
+ "description": "The CheckNameAvailability operation response."
+ },
+ "PostRestoreRequest": {
+ "type": "object",
+ "description": "Post Restore Request",
+ "properties": {
+ "partition": {
+ "type": "string",
+ "description": "Post Restore partition."
+ },
+ "replicaGroup": {
+ "type": "string",
+ "description": "Post Restore replica group."
+ },
+ "requestId": {
+ "type": "string",
+ "description": "Post Restore request id."
+ },
+ "azureFileShareUri": {
+ "type": "string",
+ "description": "Post Restore Azure file share uri."
+ },
+ "status": {
+ "type": "string",
+ "description": "Post Restore Azure status."
+ },
+ "sourceAzureFileShareUri": {
+ "type": "string",
+ "description": "Post Restore Azure source azure file share uri."
+ },
+ "failedFileList": {
+ "type": "string",
+ "description": "Post Restore Azure failed file list."
+ },
+ "restoreFileSpec": {
+ "type": "array",
+ "description": "Post Restore restore file spec array.",
+ "items": {
+ "$ref": "#/definitions/RestoreFileSpec",
+ "description": "Post Restore restore file spec items array."
+ }
+ }
+ }
+ },
+ "PreRestoreRequest": {
+ "type": "object",
+ "description": "Pre Restore request object.",
+ "properties": {
+ "partition": {
+ "type": "string",
+ "description": "Pre Restore partition."
+ },
+ "replicaGroup": {
+ "type": "string",
+ "description": "Pre Restore replica group."
+ },
+ "requestId": {
+ "type": "string",
+ "description": "Pre Restore request id."
+ },
+ "azureFileShareUri": {
+ "type": "string",
+ "description": "Pre Restore Azure file share uri."
+ },
+ "status": {
+ "type": "string",
+ "description": "Pre Restore Azure status."
+ },
+ "sourceAzureFileShareUri": {
+ "type": "string",
+ "description": "Pre Restore Azure source azure file share uri."
+ },
+ "backupMetadataPropertyBag": {
+ "type": "string",
+ "description": "Pre Restore backup metadata property bag."
+ },
+ "restoreFileSpec": {
+ "type": "array",
+ "description": "Pre Restore restore file spec array.",
+ "items": {
+ "$ref": "#/definitions/RestoreFileSpec",
+ "description": "Pre Restore restore file spec items array."
+ }
+ },
+ "pauseWaitForSyncDrainTimePeriodInSeconds": {
+ "type": "integer",
+ "description": "Pre Restore pause wait for sync drain time period in seconds."
+ }
+ }
+ },
+ "BackupRequest": {
+ "type": "object",
+ "description": "Backup request",
+ "properties": {
+ "azureFileShare": {
+ "type": "string",
+ "description": "Azure File Share."
+ }
+ }
+ },
+ "PostBackupResponse": {
+ "type": "object",
+ "description": "Post Backup Response",
+ "properties": {
+ "backupMetadata": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/PostBackupResponseProperties",
+ "description": "Post Backup Response Properties"
+ }
+ }
+ },
+ "RestoreFileSpec": {
+ "type": "object",
+ "description": "Restore file spec.",
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "Restore file spec path"
+ },
+ "isdir": {
+ "type": "boolean",
+ "description": "Restore file spec isdir"
+ }
+ }
+ },
+ "StorageSyncServiceArray": {
+ "type": "object",
+ "description": "Array of StorageSyncServices",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Collection of StorageSyncServices.",
+ "items": {
+ "$ref": "#/definitions/StorageSyncService"
+ }
+ }
+ }
+ },
+ "SyncGroupArray": {
+ "type": "object",
+ "description": "Array of SyncGroup",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Collection of SyncGroup.",
+ "items": {
+ "$ref": "#/definitions/SyncGroup"
+ }
+ }
+ }
+ },
+ "CloudEndpointArray": {
+ "type": "object",
+ "description": "Array of CloudEndpoint",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Collection of CloudEndpoint.",
+ "items": {
+ "$ref": "#/definitions/CloudEndpoint"
+ }
+ }
+ }
+ },
+ "ServerEndpointArray": {
+ "description": "Array of ServerEndpoint",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Collection of ServerEndpoint.",
+ "items": {
+ "$ref": "#/definitions/ServerEndpoint"
+ }
+ }
+ }
+ },
+ "RegisteredServerArray": {
+ "description": "Array of RegisteredServer",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Collection of Registered Server.",
+ "items": {
+ "$ref": "#/definitions/RegisteredServer"
+ }
+ }
+ }
+ },
+ "WorkflowArray": {
+ "description": "Array of Workflow",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "Collection of workflow items.",
+ "items": {
+ "$ref": "#/definitions/Workflow"
+ }
+ }
+ }
+ },
+ "SubscriptionStateProperties": {
+ "type": "object",
+ "description": "Subscription State properties."
+ },
+ "PostBackupResponseProperties": {
+ "type": "object",
+ "description": "Post Backup Response Properties object.",
+ "properties": {
+ "cloudEndpointName": {
+ "type": "string",
+ "description": "cloud endpoint Name.",
+ "readOnly": true
+ }
+ }
+ },
+ "StorageSyncServiceUpdateParameters": {
+ "properties": {
+ "tags": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The user-specified tags associated with the storage sync service."
+ },
+ "properties": {
+ "x-ms-client-flatten": true,
+ "$ref": "#/definitions/StorageSyncServiceUpdateProperties",
+ "description": "The properties of the server endpoint."
+ }
+ },
+ "description": "Parameters for updating an Storage sync service."
+ },
+ "StorageSyncServiceUpdateProperties": {
+ "type": "object",
+ "description": "StorageSyncService Properties object.",
+ "properties": {
+ "incomingTrafficPolicy": {
+ "$ref": "#/definitions/IncomingTrafficPolicy",
+ "description": "Incoming Traffic Policy"
+ }
+ }
+ },
+ "StorageSyncServiceProperties": {
+ "type": "object",
+ "description": "Storage Sync Service Properties object.",
+ "properties": {
+ "incomingTrafficPolicy": {
+ "$ref": "#/definitions/IncomingTrafficPolicy",
+ "description": "Incoming Traffic Policy"
+ },
+ "storageSyncServiceStatus": {
+ "type": "integer",
+ "description": "Storage Sync service status.",
+ "readOnly": true
+ },
+ "storageSyncServiceUid": {
+ "type": "string",
+ "description": "Storage Sync service Uid",
+ "readOnly": true
+ },
+ "provisioningState": {
+ "readOnly": true,
+ "type": "string",
+ "description": "StorageSyncService Provisioning State"
+ },
+ "lastWorkflowId": {
+ "readOnly": true,
+ "type": "string",
+ "description": "StorageSyncService lastWorkflowId"
+ },
+ "lastOperationName": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Resource Last Operation Name"
+ },
+ "privateEndpointConnections": {
+ "readOnly": true,
+ "type": "array",
+ "items": {
+ "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection"
+ },
+ "description": "List of private endpoint connection associated with the specified storage sync service"
+ }
+ }
+ },
+ "WorkflowProperties": {
+ "type": "object",
+ "description": "Workflow Properties object.",
+ "properties": {
+ "lastStepName": {
+ "type": "string",
+ "description": "last step name"
+ },
+ "status": {
+ "$ref": "#/definitions/WorkflowStatus",
+ "description": "workflow status."
+ },
+ "operation": {
+ "$ref": "#/definitions/OperationDirection",
+ "description": "operation direction."
+ },
+ "steps": {
+ "type": "string",
+ "description": "workflow steps"
+ },
+ "lastOperationId": {
+ "type": "string",
+ "description": "workflow last operation identifier."
+ }
+ }
+ },
+ "SyncGroupProperties": {
+ "type": "object",
+ "description": "SyncGroup Properties object.",
+ "properties": {
+ "uniqueId": {
+ "type": "string",
+ "description": "Unique Id",
+ "readOnly": true
+ },
+ "syncGroupStatus": {
+ "type": "string",
+ "description": "Sync group status",
+ "readOnly": true
+ }
+ }
+ },
+ "RegisteredServerProperties": {
+ "type": "object",
+ "description": "RegisteredServer Properties object.",
+ "properties": {
+ "serverCertificate": {
+ "type": "string",
+ "description": "Registered Server Certificate"
+ },
+ "agentVersion": {
+ "type": "string",
+ "description": "Registered Server Agent Version"
+ },
+ "serverOSVersion": {
+ "type": "string",
+ "description": "Registered Server OS Version"
+ },
+ "serverManagementErrorCode": {
+ "type": "integer",
+ "description": "Registered Server Management Error Code"
+ },
+ "lastHeartBeat": {
+ "type": "string",
+ "description": "Registered Server last heart beat"
+ },
+ "provisioningState": {
+ "type": "string",
+ "description": "Registered Server Provisioning State"
+ },
+ "serverRole": {
+ "type": "string",
+ "description": "Registered Server serverRole"
+ },
+ "clusterId": {
+ "type": "string",
+ "description": "Registered Server clusterId"
+ },
+ "clusterName": {
+ "type": "string",
+ "description": "Registered Server clusterName"
+ },
+ "serverId": {
+ "type": "string",
+ "description": "Registered Server serverId"
+ },
+ "storageSyncServiceUid": {
+ "type": "string",
+ "description": "Registered Server storageSyncServiceUid"
+ },
+ "lastWorkflowId": {
+ "type": "string",
+ "description": "Registered Server lastWorkflowId"
+ },
+ "lastOperationName": {
+ "type": "string",
+ "description": "Resource Last Operation Name"
+ },
+ "discoveryEndpointUri": {
+ "type": "string",
+ "description": "Resource discoveryEndpointUri"
+ },
+ "resourceLocation": {
+ "type": "string",
+ "description": "Resource Location"
+ },
+ "serviceLocation": {
+ "type": "string",
+ "description": "Service Location"
+ },
+ "friendlyName": {
+ "type": "string",
+ "description": "Friendly Name"
+ },
+ "managementEndpointUri": {
+ "type": "string",
+ "description": "Management Endpoint Uri"
+ },
+ "monitoringEndpointUri": {
+ "type": "string",
+ "description": "Telemetry Endpoint Uri"
+ },
+ "monitoringConfiguration": {
+ "type": "string",
+ "description": "Monitoring Configuration"
+ }
+ }
+ },
+ "CloudEndpointProperties": {
+ "type": "object",
+ "description": "CloudEndpoint Properties object.",
+ "properties": {
+ "storageAccountResourceId": {
+ "type": "string",
+ "description": "Storage Account Resource Id"
+ },
+ "azureFileShareName": {
+ "type": "string",
+ "description": "Azure file share name"
+ },
+ "storageAccountTenantId": {
+ "type": "string",
+ "description": "Storage Account Tenant Id"
+ },
+ "partnershipId": {
+ "type": "string",
+ "description": "Partnership Id"
+ },
+ "friendlyName": {
+ "type": "string",
+ "description": "Friendly Name"
+ },
+ "backupEnabled": {
+ "type": "string",
+ "description": "Backup Enabled",
+ "readOnly": true
+ },
+ "provisioningState": {
+ "type": "string",
+ "description": "CloudEndpoint Provisioning State"
+ },
+ "lastWorkflowId": {
+ "type": "string",
+ "description": "CloudEndpoint lastWorkflowId"
+ },
+ "lastOperationName": {
+ "type": "string",
+ "description": "Resource Last Operation Name"
+ }
+ }
+ },
+ "ServerEndpointUpdateProperties": {
+ "type": "object",
+ "description": "ServerEndpoint Update Properties object.",
+ "properties": {
+ "cloudTiering": {
+ "$ref": "#/definitions/FeatureStatus",
+ "description": "Cloud Tiering."
+ },
+ "volumeFreeSpacePercent": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 100,
+ "description": "Level of free space to be maintained by Cloud Tiering if it is enabled."
+ },
+ "tierFilesOlderThanDays": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 2147483647,
+ "description": "Tier files older than days."
+ },
+ "offlineDataTransfer": {
+ "$ref": "#/definitions/FeatureStatus",
+ "description": "Offline data transfer"
+ },
+ "offlineDataTransferShareName": {
+ "type": "string",
+ "description": "Offline data transfer share name"
+ },
+ "localCacheMode": {
+ "$ref": "#/definitions/LocalCacheMode",
+ "description": "Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access."
+ }
+ }
+ },
+ "ServerEndpointProperties": {
+ "type": "object",
+ "description": "ServerEndpoint Properties object.",
+ "properties": {
+ "serverLocalPath": {
+ "$ref": "#/definitions/PhysicalPath",
+ "description": "Server Local path."
+ },
+ "cloudTiering": {
+ "$ref": "#/definitions/FeatureStatus",
+ "description": "Cloud Tiering."
+ },
+ "volumeFreeSpacePercent": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 100,
+ "description": "Level of free space to be maintained by Cloud Tiering if it is enabled."
+ },
+ "tierFilesOlderThanDays": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 2147483647,
+ "description": "Tier files older than days."
+ },
+ "friendlyName": {
+ "type": "string",
+ "description": "Friendly Name"
+ },
+ "serverResourceId": {
+ "$ref": "#/definitions/ResourceId",
+ "description": "Server Resource Id."
+ },
+ "provisioningState": {
+ "type": "string",
+ "description": "ServerEndpoint Provisioning State",
+ "readOnly": true
+ },
+ "lastWorkflowId": {
+ "type": "string",
+ "description": "ServerEndpoint lastWorkflowId",
+ "readOnly": true
+ },
+ "lastOperationName": {
+ "type": "string",
+ "description": "Resource Last Operation Name",
+ "readOnly": true
+ },
+ "syncStatus": {
+ "type": "object",
+ "$ref": "#/definitions/ServerEndpointSyncStatus",
+ "description": "Server Endpoint sync status",
+ "readOnly": true
+ },
+ "offlineDataTransfer": {
+ "$ref": "#/definitions/FeatureStatus",
+ "description": "Offline data transfer"
+ },
+ "offlineDataTransferStorageAccountResourceId": {
+ "type": "string",
+ "description": "Offline data transfer storage account resource ID",
+ "readOnly": true
+ },
+ "offlineDataTransferStorageAccountTenantId": {
+ "type": "string",
+ "description": "Offline data transfer storage account tenant ID",
+ "readOnly": true
+ },
+ "offlineDataTransferShareName": {
+ "type": "string",
+ "description": "Offline data transfer share name"
+ },
+ "cloudTieringStatus": {
+ "type": "object",
+ "$ref": "#/definitions/ServerEndpointCloudTieringStatus",
+ "description": "Cloud tiering status. Only populated if cloud tiering is enabled.",
+ "readOnly": true
+ },
+ "recallStatus": {
+ "type": "object",
+ "$ref": "#/definitions/ServerEndpointRecallStatus",
+ "description": "Recall status. Only populated if cloud tiering is enabled.",
+ "readOnly": true
+ },
+ "initialDownloadPolicy": {
+ "$ref": "#/definitions/InitialDownloadPolicy",
+ "description": "Policy for how namespace and files are recalled during FastDr."
+ },
+ "localCacheMode": {
+ "$ref": "#/definitions/LocalCacheMode",
+ "description": "Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access."
+ }
+ }
+ },
+ "ServerEndpointSyncStatus": {
+ "type": "object",
+ "description": "Server Endpoint sync status",
+ "properties": {
+ "downloadHealth": {
+ "$ref": "#/definitions/ServerEndpointSyncHealthState",
+ "description": "Download Health Status.",
+ "readOnly": true
+ },
+ "uploadHealth": {
+ "$ref": "#/definitions/ServerEndpointSyncHealthState",
+ "description": "Upload Health Status.",
+ "readOnly": true
+ },
+ "combinedHealth": {
+ "$ref": "#/definitions/ServerEndpointSyncHealthState",
+ "description": "Combined Health Status.",
+ "readOnly": true
+ },
+ "syncActivity": {
+ "$ref": "#/definitions/ServerEndpointSyncActivityState",
+ "description": "Sync activity",
+ "readOnly": true
+ },
+ "totalPersistentFilesNotSyncingCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Total count of persistent files not syncing (combined upload + download).",
+ "readOnly": true
+ },
+ "lastUpdatedTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last Updated Timestamp",
+ "readOnly": true
+ },
+ "uploadStatus": {
+ "$ref": "#/definitions/ServerEndpointSyncSessionStatus",
+ "description": "Upload Status",
+ "readOnly": true
+ },
+ "downloadStatus": {
+ "$ref": "#/definitions/ServerEndpointSyncSessionStatus",
+ "description": "Download Status",
+ "readOnly": true
+ },
+ "uploadActivity": {
+ "$ref": "#/definitions/ServerEndpointSyncActivityStatus",
+ "description": "Upload sync activity",
+ "readOnly": true
+ },
+ "downloadActivity": {
+ "$ref": "#/definitions/ServerEndpointSyncActivityStatus",
+ "description": "Download sync activity",
+ "readOnly": true
+ },
+ "offlineDataTransferStatus": {
+ "$ref": "#/definitions/ServerEndpointOfflineDataTransferState",
+ "description": "Offline Data Transfer State",
+ "readOnly": true
+ }
+ }
+ },
+ "ServerEndpointSyncSessionStatus": {
+ "type": "object",
+ "description": "Sync Session status object.",
+ "properties": {
+ "lastSyncResult": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Last sync result (HResult)",
+ "readOnly": true
+ },
+ "lastSyncTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last sync timestamp",
+ "readOnly": true
+ },
+ "lastSyncSuccessTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last sync success timestamp",
+ "readOnly": true
+ },
+ "lastSyncPerItemErrorCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Last sync per item error count.",
+ "readOnly": true
+ },
+ "persistentFilesNotSyncingCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Count of persistent files not syncing.",
+ "readOnly": true
+ },
+ "transientFilesNotSyncingCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Count of transient files not syncing.",
+ "readOnly": true
+ },
+ "filesNotSyncingErrors": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ServerEndpointFilesNotSyncingError"
+ },
+ "description": "Array of per-item errors coming from the last sync session.",
+ "readOnly": true
+ }
+ }
+ },
+ "ServerEndpointSyncActivityStatus": {
+ "type": "object",
+ "description": "Sync Session status object.",
+ "properties": {
+ "timestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Timestamp when properties were updated",
+ "readOnly": true
+ },
+ "perItemErrorCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Per item error count",
+ "readOnly": true
+ },
+ "appliedItemCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Applied item count.",
+ "readOnly": true
+ },
+ "totalItemCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Total item count (if available)",
+ "readOnly": true
+ },
+ "appliedBytes": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Applied bytes",
+ "readOnly": true
+ },
+ "totalBytes": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Total bytes (if available)",
+ "readOnly": true
+ }
+ }
+ },
+ "ServerEndpointFilesNotSyncingError": {
+ "type": "object",
+ "description": "Files not syncing error object",
+ "properties": {
+ "errorCode": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Error code (HResult)",
+ "readOnly": true
+ },
+ "persistentCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Count of persistent files not syncing with the specified error code",
+ "readOnly": true
+ },
+ "transientCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Count of transient files not syncing with the specified error code",
+ "readOnly": true
+ }
+ }
+ },
+ "PhysicalPath": {
+ "type": "string",
+ "description": "Server folder used for data synchronization"
+ },
+ "ResourceId": {
+ "type": "string",
+ "description": "Arm resource identifier."
+ },
+ "TagsObject": {
+ "type": "object",
+ "description": "Tags object."
+ },
+ "FeatureStatus": {
+ "type": "string",
+ "description": "Type of the Feature Status",
+ "enum": [
+ "on",
+ "off"
+ ],
+ "x-ms-enum": {
+ "name": "FeatureStatus",
+ "modelAsString": true
+ }
+ },
+ "IncomingTrafficPolicy": {
+ "type": "string",
+ "description": "Type of the Incoming Traffic Policy",
+ "enum": [
+ "AllowAllTraffic",
+ "AllowVirtualNetworksOnly"
+ ],
+ "x-ms-enum": {
+ "name": "IncomingTrafficPolicy",
+ "modelAsString": true
+ }
+ },
+ "LocalCacheMode": {
+ "type": "string",
+ "description": "Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access.",
+ "enum": [
+ "DownloadNewAndModifiedFiles",
+ "UpdateLocallyCachedFiles"
+ ],
+ "x-ms-enum": {
+ "name": "LocalCacheMode",
+ "modelAsString": false
+ }
+ },
+ "InitialDownloadPolicy": {
+ "type": "string",
+ "description": "Policy for how namespace and files are recalled during FastDr",
+ "enum": [
+ "NamespaceOnly",
+ "NamespaceThenModifiedFiles",
+ "AvoidTieredFiles"
+ ],
+ "x-ms-enum": {
+ "name": "InitialDownloadPolicy",
+ "modelAsString": false
+ }
+ },
+ "ServerEndpointSyncHealthState": {
+ "type": "string",
+ "description": "Type of the sync health state",
+ "enum": [
+ "Healthy",
+ "Error",
+ "SyncBlockedForRestore",
+ "SyncBlockedForChangeDetectionPostRestore",
+ "NoActivity"
+ ],
+ "x-ms-enum": {
+ "name": "ServerEndpointSyncHealthState",
+ "modelAsString": true
+ }
+ },
+ "ServerEndpointSyncActivityState": {
+ "type": "string",
+ "description": "Type of the sync activity state",
+ "enum": [
+ "Upload",
+ "Download",
+ "UploadAndDownload"
+ ],
+ "x-ms-enum": {
+ "name": "ServerEndpointSyncActivityState",
+ "modelAsString": true
+ }
+ },
+ "ServerEndpointOfflineDataTransferState": {
+ "type": "string",
+ "description": "Type of the Health state",
+ "enum": [
+ "InProgress",
+ "Stopping",
+ "NotRunning",
+ "Complete"
+ ],
+ "x-ms-enum": {
+ "name": "ServerEndpointOfflineDataTransferState",
+ "modelAsString": true
+ }
+ },
+ "WorkflowStatus": {
+ "type": "string",
+ "description": "Type of the Workflow Status",
+ "enum": [
+ "active",
+ "expired",
+ "succeeded",
+ "aborted",
+ "failed"
+ ],
+ "x-ms-enum": {
+ "name": "WorkflowStatus",
+ "modelAsString": true
+ }
+ },
+ "OperationDirection": {
+ "type": "string",
+ "description": "Type of the Operation Direction",
+ "enum": [
+ "do",
+ "undo",
+ "cancel"
+ ],
+ "x-ms-enum": {
+ "name": "OperationDirection",
+ "modelAsString": true
+ }
+ },
+ "ProgressType": {
+ "type": "string",
+ "description": "Type of the ProgressType",
+ "enum": [
+ "none",
+ "initialize",
+ "download",
+ "upload",
+ "recall"
+ ],
+ "x-ms-enum": {
+ "name": "ProgressType",
+ "modelAsString": true
+ }
+ },
+ "OperationStatus": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Operation Id"
+ },
+ "status": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Operation status"
+ },
+ "startTime": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "Start time of the operation"
+ },
+ "endTime": {
+ "readOnly": true,
+ "type": "string",
+ "format": "date-time",
+ "description": "End time of the operation"
+ },
+ "error": {
+ "readOnly": true,
+ "$ref": "#/definitions/StorageSyncApiError",
+ "description": "Error details."
+ }
+ },
+ "description": "Operation status object"
+ },
+ "ServerEndpointCloudTieringStatus": {
+ "type": "object",
+ "description": "Server endpoint cloud tiering status object.",
+ "properties": {
+ "lastUpdatedTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last updated timestamp",
+ "readOnly": true
+ },
+ "health": {
+ "$ref": "#/definitions/ServerEndpointCloudTieringHealthState",
+ "description": "Cloud tiering health state.",
+ "readOnly": true
+ },
+ "healthLastUpdatedTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The last updated timestamp of health state",
+ "readOnly": true
+ },
+ "lastCloudTieringResult": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Last cloud tiering result (HResult)",
+ "readOnly": true
+ },
+ "lastSuccessTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last cloud tiering success timestamp",
+ "readOnly": true
+ },
+ "spaceSavings": {
+ "$ref": "#/definitions/CloudTieringSpaceSavings",
+ "description": "Information regarding how much local space cloud tiering is saving.",
+ "readOnly": true
+ },
+ "cachePerformance": {
+ "$ref": "#/definitions/CloudTieringCachePerformance",
+ "description": "Information regarding how well the local cache on the server is performing.",
+ "readOnly": true
+ },
+ "filesNotTiering": {
+ "$ref": "#/definitions/CloudTieringFilesNotTiering",
+ "description": "Information regarding files that failed to be tiered",
+ "readOnly": true
+ },
+ "volumeFreeSpacePolicyStatus": {
+ "$ref": "#/definitions/CloudTieringVolumeFreeSpacePolicyStatus",
+ "description": "Status of the volume free space policy",
+ "readOnly": true
+ },
+ "datePolicyStatus": {
+ "$ref": "#/definitions/CloudTieringDatePolicyStatus",
+ "description": "Status of the date policy",
+ "readOnly": true
+ }
+ }
+ },
+ "ServerEndpointCloudTieringHealthState": {
+ "type": "string",
+ "description": "Type of the cloud tiering health state",
+ "enum": [
+ "Healthy",
+ "Error"
+ ],
+ "x-ms-enum": {
+ "name": "ServerEndpointCloudTieringHealthState",
+ "modelAsString": true
+ }
+ },
+ "CloudTieringSpaceSavings": {
+ "type": "object",
+ "description": "Server endpoint cloud tiering status object.",
+ "properties": {
+ "lastUpdatedTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last updated timestamp",
+ "readOnly": true
+ },
+ "volumeSizeBytes": {
+ "type": "integer",
+ "format": "int64",
+ "description": "Volume size",
+ "readOnly": true,
+ "minimum": 0
+ },
+ "totalSizeCloudBytes": {
+ "type": "integer",
+ "format": "int64",
+ "description": "Total size of content in the azure file share",
+ "readOnly": true,
+ "minimum": 0
+ },
+ "cachedSizeBytes": {
+ "type": "integer",
+ "format": "int64",
+ "description": "Cached content size on the server",
+ "readOnly": true,
+ "minimum": 0
+ },
+ "spaceSavingsPercent": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Percentage of cached size over total size",
+ "readOnly": true,
+ "minimum": 0,
+ "maximum": 100
+ },
+ "spaceSavingsBytes": {
+ "type": "integer",
+ "format": "int64",
+ "description": "Count of bytes saved on the server",
+ "readOnly": true,
+ "minimum": 0
+ }
+ }
+ },
+ "CloudTieringCachePerformance": {
+ "type": "object",
+ "description": "Server endpoint cloud tiering status object.",
+ "properties": {
+ "lastUpdatedTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last updated timestamp",
+ "readOnly": true
+ },
+ "cacheHitBytes": {
+ "type": "integer",
+ "format": "int64",
+ "description": "Count of bytes that were served from the local server",
+ "readOnly": true,
+ "minimum": 0
+ },
+ "cacheMissBytes": {
+ "type": "integer",
+ "format": "int64",
+ "description": "Count of bytes that were served from the cloud",
+ "readOnly": true,
+ "minimum": 0
+ },
+ "cacheHitBytesPercent": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Percentage of total bytes (hit + miss) that were served from the local server",
+ "readOnly": true,
+ "minimum": 0,
+ "maximum": 100
+ }
+ }
+ },
+ "CloudTieringFilesNotTiering": {
+ "type": "object",
+ "description": "Server endpoint cloud tiering status object.",
+ "properties": {
+ "lastUpdatedTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last updated timestamp",
+ "readOnly": true
+ },
+ "totalFileCount": {
+ "type": "integer",
+ "format": "int64",
+ "description": "Last cloud tiering result (HResult)",
+ "readOnly": true,
+ "minimum": 0
+ },
+ "errors": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/FilesNotTieringError"
+ },
+ "description": "Array of tiering errors",
+ "readOnly": true
+ }
+ }
+ },
+ "FilesNotTieringError": {
+ "type": "object",
+ "description": "Files not tiering error object",
+ "properties": {
+ "errorCode": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Error code (HResult)",
+ "readOnly": true
+ },
+ "fileCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Count of files with this error",
+ "readOnly": true
+ }
+ }
+ },
+ "CloudTieringVolumeFreeSpacePolicyStatus": {
+ "type": "object",
+ "description": "Status of the volume free space policy",
+ "properties": {
+ "lastUpdatedTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last updated timestamp",
+ "readOnly": true
+ },
+ "effectiveVolumeFreeSpacePolicy": {
+ "type": "integer",
+ "format": "int32",
+ "description": "In the case where multiple server endpoints are present in a volume, an effective free space policy is applied.",
+ "readOnly": true,
+ "minimum": 0,
+ "maximum": 100
+ },
+ "currentVolumeFreeSpacePercent": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Current volume free space percentage.",
+ "readOnly": true,
+ "minimum": 0,
+ "maximum": 100
+ }
+ }
+ },
+ "CloudTieringDatePolicyStatus": {
+ "type": "object",
+ "description": "Status of the date policy",
+ "properties": {
+ "lastUpdatedTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last updated timestamp",
+ "readOnly": true
+ },
+ "tieredFilesMostRecentAccessTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Most recent access time of tiered files",
+ "readOnly": true
+ }
+ }
+ },
+ "ServerEndpointRecallStatus": {
+ "type": "object",
+ "description": "Server endpoint recall status object.",
+ "properties": {
+ "lastUpdatedTimestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Last updated timestamp",
+ "readOnly": true
+ },
+ "totalRecallErrorsCount": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Total count of recall errors.",
+ "readOnly": true
+ },
+ "recallErrors": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ServerEndpointRecallError"
+ },
+ "description": "Array of recall errors",
+ "readOnly": true
+ }
+ }
+ },
+ "ServerEndpointRecallError": {
+ "type": "object",
+ "description": "Server endpoint recall error object",
+ "properties": {
+ "errorCode": {
+ "type": "integer",
+ "format": "int32",
+ "description": "Error code (HResult)",
+ "readOnly": true
+ },
+ "count": {
+ "type": "integer",
+ "format": "int64",
+ "minimum": 0,
+ "description": "Count of occurences of the error",
+ "readOnly": true
+ }
+ }
+ }
+ },
+ "parameters": {
+ "StorageSyncServiceNameParameter": {
+ "name": "storageSyncServiceName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the storage sync service name within the specified resource group.",
+ "x-ms-parameter-location": "method"
+ }
+ },
+ "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"
+ }
+ }
+ },
+ "security": [
+ {
+ "azure_auth": [
+ "user_impersonation"
+ ]
+ }
+ ]
+}
diff --git a/specification/storagesync/resource-manager/readme.md b/specification/storagesync/resource-manager/readme.md
index 852b278f6e0b..425ca4443e60 100644
--- a/specification/storagesync/resource-manager/readme.md
+++ b/specification/storagesync/resource-manager/readme.md
@@ -26,18 +26,27 @@ These are the global settings for the Storage Sync API.
``` yaml
openapi-type: arm
-tag: package-2019-10-01
+tag: package-2020-03-01
```
+### Tag: package-2020-03-01
+
+These settings apply only when `--tag=package-2020-03-01` is specified on the command line.
+
+```yaml $(tag) == 'package-2020-03-01'
+input-file:
+ - Microsoft.StorageSync/stable/2020-03-01/storagesync.json
+```
### Tag: package-2019-10-01
These settings apply only when `--tag=package-2019-10-01` is specified on the command line.
-```yaml $(tag) == 'package-2019-10-01'
+``` yaml $(tag) == 'package-2019-10-01'
input-file:
- Microsoft.StorageSync/stable/2019-10-01/storagesync.json
```
+
### Tag: package-2019-06-01
These settings apply only when `--tag=package-2019-06-01` is specified on the command line.
@@ -186,6 +195,7 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.StorageSync/stable/2020-03-01/storagesync.json
- $(this-folder)/Microsoft.StorageSync/stable/2019-10-01/storagesync.json
- $(this-folder)/Microsoft.StorageSync/stable/2019-06-01/storagesync.json
- $(this-folder)/Microsoft.StorageSync/stable/2019-03-01/storagesync.json
diff --git a/specification/storagesync/resource-manager/readme.ruby.md b/specification/storagesync/resource-manager/readme.ruby.md
index 1742006e1f1c..fc40a959dbd7 100644
--- a/specification/storagesync/resource-manager/readme.ruby.md
+++ b/specification/storagesync/resource-manager/readme.ruby.md
@@ -12,12 +12,23 @@ azure-arm: true
``` yaml $(ruby) && $(multiapi)
batch:
+ - tag: package-2020-03-01
- tag: package-2019-02-01
- tag: package-2018-10-01
- tag: package-2018-07-01
- tag: package-2018-04-02
```
+### Tag: package-2020-03-01 and ruby
+
+These settings apply only when `--tag=package-2020-03-01 --ruby` is specified on the command line.
+Please also specify `--ruby-sdks-folder=`.
+
+``` yaml $(tag) == 'package-2020-03-01' && $(ruby)
+namespace: "Azure::StorageSync::Mgmt::V2020_03_01"
+output-folder: $(ruby-sdks-folder)/management/azure_mgmt_storagesync_management/lib
+```
+
### Tag: package-2019-02-01 and ruby
These settings apply only when `--tag=package-2019-02-01 --ruby` is specified on the command line.
diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/getSubscription.json b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/getSubscription.json
new file mode 100644
index 000000000000..bbc99e2a75fd
--- /dev/null
+++ b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/getSubscription.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
+ "api-version": "2016-06-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "id": "/subscriptions/83aa47df-e3e9-49ff-877b-94304bf3d3ad",
+ "authorizationSource": "Legacy",
+ "subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
+ "displayName": "Subscription2",
+ "state": "Enabled",
+ "subscriptionPolicies": {
+ "locationPlacementId": "Internal_2014-09-01",
+ "quotaId": "Internal_2014-09-01",
+ "spendingLimit": "Off"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listLocations.json b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listLocations.json
new file mode 100644
index 000000000000..7c44bf0f50b9
--- /dev/null
+++ b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listLocations.json
@@ -0,0 +1,28 @@
+{
+ "parameters": {
+ "subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
+ "api-version": "2016-06-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "id": "/subscriptions/83aa47df-e3e9-49ff-877b-94304bf3d3ad/locations/eastasia",
+ "name": "eastasia",
+ "displayName": "East Asia",
+ "longitude": "114.188",
+ "latitude": "22.267"
+ },
+ {
+ "id": "/subscriptions/83aa47df-e3e9-49ff-877b-94304bf3d3ad/locations/southeastasia",
+ "name": "southeastasia",
+ "displayName": "Southeast Asia",
+ "longitude": "103.833",
+ "latitude": "1.283"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listSubscriptions.json b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listSubscriptions.json
new file mode 100644
index 000000000000..5a6caa076237
--- /dev/null
+++ b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listSubscriptions.json
@@ -0,0 +1,26 @@
+{
+ "parameters": {
+ "api-version": "2016-06-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nextLink": "string",
+ "value": [
+ {
+ "id": "/subscriptions/83aa47df-e3e9-49ff-877b-94304bf3d3ad",
+ "authorizationSource": "Legacy",
+ "subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
+ "displayName": "SubscriptionName",
+ "state": "Enabled",
+ "subscriptionPolicies": {
+ "locationPlacementId": "Internal_2014-09-01",
+ "quotaId": "Internal_2014-09-01",
+ "spendingLimit": "Off"
+ }
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listTenants.json b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listTenants.json
new file mode 100644
index 000000000000..0b5ecbff5055
--- /dev/null
+++ b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listTenants.json
@@ -0,0 +1,22 @@
+{
+ "parameters": {
+ "api-version": "2016-06-01"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "nextLink": "string",
+ "value": [
+ {
+ "id": "/tenants/72f988bf-86f1-41af-91ab-2d7cd011db47",
+ "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
+ },
+ {
+ "id": "/tenants/33e01921-4d64-4f8c-a055-5bdaffd5e33d",
+ "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d"
+ }
+ ]
+ }
+ }
+ }
+}
diff --git a/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/subscriptions.json b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/subscriptions.json
index 020fda6e55cb..60771a02d266 100644
--- a/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/subscriptions.json
+++ b/specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/subscriptions.json
@@ -42,6 +42,11 @@
"operationId": "Subscriptions_ListLocations",
"summary": "Gets all available geo-locations.",
"description": "This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.",
+ "x-ms-examples": {
+ "listLocations": {
+ "$ref": "./examples/listLocations.json"
+ }
+ },
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
@@ -70,6 +75,11 @@
],
"operationId": "Subscriptions_Get",
"description": "Gets details about a specified subscription.",
+ "x-ms-examples": {
+ "getSubscription": {
+ "$ref": "./examples/getSubscription.json"
+ }
+ },
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
@@ -95,6 +105,11 @@
],
"operationId": "Subscriptions_List",
"description": "Gets all subscriptions for a tenant.",
+ "x-ms-examples": {
+ "listSubscriptions": {
+ "$ref": "./examples/listSubscriptions.json"
+ }
+ },
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -120,6 +135,11 @@
],
"operationId": "Tenants_List",
"description": "Gets the tenants for your account.",
+ "x-ms-examples": {
+ "listTenants": {
+ "$ref": "./examples/listTenants.json"
+ }
+ },
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
diff --git a/specification/subscription/resource-manager/readme.go.md b/specification/subscription/resource-manager/readme.go.md
index df396b0b4fb0..b52d772b3e18 100644
--- a/specification/subscription/resource-manager/readme.go.md
+++ b/specification/subscription/resource-manager/readme.go.md
@@ -13,10 +13,20 @@ go:
``` yaml $(go) && $(multiapi)
batch:
+ - tag: package-2019-10-preview
- tag: package-2018-03-preview
- tag: package-2017-11-preview
```
+### Tag: package-2019-10-preview and go
+
+These settings apply only when `--tag=package-2019-10-preview --go` is specified on the command line.
+Please also specify `--go-sdk-folder=`.
+
+``` yaml $(tag)=='package-2019-10-preview' && $(go)
+output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-10-01-preview/$(namespace)
+```
+
### Tag: package-2018-03-preview and go
These settings apply only when `--tag=package-2018-03-preview --go` is specified on the command line.
diff --git a/specification/subscription/resource-manager/readme.md b/specification/subscription/resource-manager/readme.md
index 8aeaf4c34934..214a5e7d5dec 100644
--- a/specification/subscription/resource-manager/readme.md
+++ b/specification/subscription/resource-manager/readme.md
@@ -51,6 +51,7 @@ These settings apply only when `--tag=package-2019-10-preview` is specified on t
``` yaml $(tag) == 'package-2019-10-preview'
input-file:
+- Microsoft.Subscription/stable/2016-06-01/subscriptions.json
- Microsoft.Subscription/preview/2019-10-01-preview/subscriptions.json
title: SubscriptionClient
description: The subscription client
@@ -146,9 +147,23 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-subscription
``` yaml $(java) && $(multiapi)
batch:
+ - tag: package-2019-10-preview
- tag: package-2017-11-preview
```
+### Tag: package-2019-10-preview and java
+
+These settings apply only when `--tag=package-2019-10-preview --java` is specified on the command line.
+Please also specify `--azure-libraries-for-java=`.
+
+``` yaml $(tag) == 'package-2019-10-preview' && $(java) && $(multiapi)
+java:
+ namespace: com.microsoft.azure.management.subscription.v2019_10_01_preview
+ output-folder: $(azure-libraries-for-java-folder)/sdk/subscription/mgmt-v2019_10_01_preview
+regenerate-manager: true
+generate-interface: true
+```
+
### Tag: package-2017-11-preview and java
These settings apply only when `--tag=package-2017-11-preview --java` is specified on the command line.
@@ -187,12 +202,12 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.Subscription/stable/2020-01-01/subscriptions.json
+ - $(this-folder)/Microsoft.Subscription/stable/2016-06-01/subscriptions.json
- $(this-folder)/Microsoft.Subscription/preview/2019-10-01-preview/subscriptions.json
- $(this-folder)/Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json
- $(this-folder)/Microsoft.Subscription/preview/2018-11-01-preview/subscriptions.json
- $(this-folder)/Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json
- $(this-folder)/Microsoft.Subscription/preview/2018-03-01-preview/operations.json
- - $(this-folder)/Microsoft.Subscription/stable/2016-06-01/subscriptions.json
- $(this-folder)/Microsoft.Subscription/preview/2017-11-01-preview/subscriptionDefinitions.json
```
diff --git a/specification/support/resource-manager/readme.cli.md b/specification/support/resource-manager/readme.cli.md
new file mode 100644
index 000000000000..220310005660
--- /dev/null
+++ b/specification/support/resource-manager/readme.cli.md
@@ -0,0 +1,64 @@
+## CLI
+
+These settings apply only when `--cli` is specified on the command line.
+
+``` yaml $(cli)
+cli:
+ test-scenario:
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for Low-priority cores for a Batch account
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for Servers for Azure Synapse Analytics
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for DTUs for Azure Synapse Analytics
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for Servers for SQL Database
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for DTUs for SQL Database
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for specific VM family cores for Machine Learning service
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for Active Jobs and Job Schedules for a Batch account
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for Pools for a Batch account
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for specific VM family cores for a Batch account
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket for Billing related issues
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket for Subscription Management related issues
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for Low-priority cores for Machine Learning service
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket for Technical issue related to a specific resource
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for services that do not require additional details in the quotaTi
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for Compute VM Cores
+ disabled: true
+ - name: /SupportTickets/put/Create a ticket to request Quota increase for Batch accounts for a subscription
+ disabled: true
+ - name: /Communications/put/AddCommunicationToSubscriptionTicket
+ disabled: true
+ - name: /Communications/get/Get communication details for a subscription support ticket
+ disabled: true
+ - name: /Communications/get/List web communications for a subscription support ticket
+ disabled: true
+ - name: /Communications/get/List communications for a subscription support ticket
+ disabled: true
+ - name: /Communications/get/List web communication created on or after a specific date for a subscription support ticket
+ disabled: true
+ - name: /ProblemClassifications/get/Gets details of problemClassification for Azure service
+ - name: /SupportTickets/get/Get details of a subscription ticket
+ disabled: true
+ - name: /SupportTickets/get/List support tickets in open state for a subscription
+ - name: /ProblemClassifications/get/Gets list of problemClassifications for a service for which a support ticket can be created
+ - name: /SupportTickets/get/List support tickets created on or after a certain date and in open state for a subscription
+ - name: /Services/get/Gets list of services for which a support ticket can be created
+ - name: /Communications/post/Checks whether name is available for Communication resource
+ - name: /SupportTickets/patch/Update contact details of a support ticket
+ disabled: true
+ - name: /SupportTickets/patch/Update severity of a support ticket
+ disabled: true
+ - name: /SupportTickets/patch/Update status of a support ticket
+ disabled: true
+ - name: /SupportTickets/post/Checks whether name is available for SupportTicket resource
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/datafactory.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/artifacts.json
similarity index 95%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/datafactory.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/artifacts.json
index ecb09e0842b3..f78900be895d 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/datafactory.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/artifacts.json
@@ -1,25 +1,18 @@
{
"swagger": "2.0",
"info": {
- "version": "2019-11-01-preview",
- "title": "SynapseClient",
+ "version": "2019-06-01-preview",
+ "title": "ArtifactsClient",
"x-ms-code-generation-settings": {
"useDateTimeOffset": true
}
},
"x-ms-parameterized-host": {
- "hostTemplate": "{workspaceName}.{SynapseDnsSuffix}",
+ "hostTemplate": "{endpoint}",
+ "useSchemePrefix": false,
"parameters": [
{
- "name": "workspaceName",
- "description": "The name of the workspace to execute operations on.",
- "required": true,
- "type": "string",
- "in": "path",
- "x-ms-skip-url-encoding": true
- },
- {
- "$ref": "#/parameters/SynapseDnsSuffixInPath"
+ "$ref": "#/parameters/Endpoint"
}
]
},
@@ -38,7 +31,7 @@
"tags": [
"linkedServices"
],
- "operationId": "LinkedServices_ListByWorkspace",
+ "operationId": "LinkedService_GetLinkedServicesByWorkspace",
"x-ms-examples": {
"LinkedServices_ListByWorkspace": {
"$ref": "./examples/LinkedServices_ListByWorkspace.json"
@@ -74,7 +67,7 @@
"tags": [
"linkedServices"
],
- "operationId": "LinkedServices_CreateOrUpdate",
+ "operationId": "LinkedService_CreateOrUpdateLinkedService",
"x-ms-examples": {
"LinkedServices_Create": {
"$ref": "./examples/LinkedServices_Create.json"
@@ -127,7 +120,7 @@
"tags": [
"linkedServices"
],
- "operationId": "LinkedServices_Get",
+ "operationId": "LinkedService_GetLinkedService",
"x-ms-examples": {
"LinkedServices_Get": {
"$ref": "./examples/LinkedServices_Get.json"
@@ -171,7 +164,7 @@
"tags": [
"linkedServices"
],
- "operationId": "LinkedServices_Delete",
+ "operationId": "LinkedService_DeleteLinkedService",
"x-ms-examples": {
"LinkedServices_Delete": {
"$ref": "./examples/LinkedServices_Delete.json"
@@ -207,7 +200,7 @@
"tags": [
"datasets"
],
- "operationId": "Datasets_ListByWorkspace",
+ "operationId": "Dataset_GetDatasetsByWorkspace",
"x-ms-examples": {
"Datasets_ListByWorkspace": {
"$ref": "./examples/Datasets_ListByWorkspace.json"
@@ -243,7 +236,7 @@
"tags": [
"datasets"
],
- "operationId": "Datasets_CreateOrUpdate",
+ "operationId": "Dataset_CreateOrUpdateDataset",
"x-ms-examples": {
"Datasets_Create": {
"$ref": "./examples/Datasets_Create.json"
@@ -296,7 +289,7 @@
"tags": [
"datasets"
],
- "operationId": "Datasets_Get",
+ "operationId": "Dataset_GetDataset",
"x-ms-examples": {
"Datasets_Get": {
"$ref": "./examples/Datasets_Get.json"
@@ -340,7 +333,7 @@
"tags": [
"datasets"
],
- "operationId": "Datasets_Delete",
+ "operationId": "Dataset_DeleteDataset",
"x-ms-examples": {
"Datasets_Delete": {
"$ref": "./examples/Datasets_Delete.json"
@@ -376,7 +369,7 @@
"tags": [
"pipelines"
],
- "operationId": "Pipelines_ListByWorkspace",
+ "operationId": "Pipeline_GetPipelinesByWorkspace",
"x-ms-examples": {
"Pipelines_ListByWorkspace": {
"$ref": "./examples/Pipelines_ListByWorkspace.json"
@@ -412,7 +405,7 @@
"tags": [
"pipelines"
],
- "operationId": "Pipelines_CreateOrUpdate",
+ "operationId": "Pipeline_CreateOrUpdatePipeline",
"x-ms-examples": {
"Pipelines_Create": {
"$ref": "./examples/Pipelines_Create.json"
@@ -465,7 +458,7 @@
"tags": [
"pipelines"
],
- "operationId": "Pipelines_Get",
+ "operationId": "Pipeline_GetPipeline",
"x-ms-examples": {
"Pipelines_Get": {
"$ref": "./examples/Pipelines_Get.json"
@@ -509,7 +502,7 @@
"tags": [
"pipelines"
],
- "operationId": "Pipelines_Delete",
+ "operationId": "Pipeline_DeletePipeline",
"x-ms-examples": {
"Pipelines_Delete": {
"$ref": "./examples/Pipelines_Delete.json"
@@ -545,7 +538,7 @@
"tags": [
"pipelines"
],
- "operationId": "Pipelines_CreateRun",
+ "operationId": "Pipeline_CreatePipelineRun",
"x-ms-examples": {
"Pipelines_CreateRun": {
"$ref": "./examples/Pipelines_CreateRun.json"
@@ -611,7 +604,7 @@
},
"/queryPipelineRuns": {
"post": {
- "operationId": "PipelineRuns_QueryByWorkspace",
+ "operationId": "PipelineRun_QueryPipelineRunsByWorkspace",
"x-ms-examples": {
"PipelineRuns_QueryByWorkspace": {
"$ref": "./examples/PipelineRuns_QueryByWorkspace.json"
@@ -653,7 +646,7 @@
},
"/pipelineruns/{runId}": {
"get": {
- "operationId": "PipelineRuns_Get",
+ "operationId": "PipelineRun_GetPipelineRun",
"x-ms-examples": {
"PipelineRuns_Get": {
"$ref": "./examples/PipelineRuns_Get.json"
@@ -689,7 +682,7 @@
},
"/pipelines/{pipelineName}/pipelineruns/{runId}/queryActivityruns": {
"post": {
- "operationId": "ActivityRuns_QueryByPipelineRun",
+ "operationId": "PipelineRun_QueryActivityRuns",
"x-ms-examples": {
"ActivityRuns_QueryByPipelineRun": {
"$ref": "./examples/ActivityRuns_QueryByPipelineRun.json"
@@ -737,7 +730,7 @@
},
"/pipelineruns/{runId}/cancel": {
"post": {
- "operationId": "PipelineRuns_Cancel",
+ "operationId": "PipelineRun_CancelPipelineRun",
"x-ms-examples": {
"PipelineRuns_Cancel": {
"$ref": "./examples/PipelineRuns_Cancel.json"
@@ -780,7 +773,7 @@
"tags": [
"triggers"
],
- "operationId": "Triggers_ListByWorkspace",
+ "operationId": "Trigger_GetTriggersByWorkspace",
"x-ms-examples": {
"Triggers_ListByWorkspace": {
"$ref": "./examples/Triggers_ListByWorkspace.json"
@@ -816,7 +809,7 @@
"tags": [
"triggers"
],
- "operationId": "Triggers_CreateOrUpdate",
+ "operationId": "Trigger_CreateOrUpdateTrigger",
"x-ms-examples": {
"Triggers_Create": {
"$ref": "./examples/Triggers_Create.json"
@@ -869,7 +862,7 @@
"tags": [
"trigger"
],
- "operationId": "Triggers_Get",
+ "operationId": "Trigger_GetTrigger",
"x-ms-examples": {
"Triggers_Get": {
"$ref": "./examples/Triggers_Get.json"
@@ -913,7 +906,7 @@
"tags": [
"triggers"
],
- "operationId": "Triggers_Delete",
+ "operationId": "Trigger_DeleteTrigger",
"x-ms-examples": {
"Triggers_Delete": {
"$ref": "./examples/Triggers_Delete.json"
@@ -949,7 +942,7 @@
"tags": [
"triggers"
],
- "operationId": "Triggers_SubscribeToEvents",
+ "operationId": "Trigger_SubscribeTriggerToEvents",
"x-ms-examples": {
"Triggers_SubscribeToEvents": {
"$ref": "./examples/Triggers_SubscribeToEvents.json"
@@ -989,7 +982,7 @@
"tags": [
"triggers"
],
- "operationId": "Triggers_GetEventSubscriptionStatus",
+ "operationId": "Trigger_GetEventSubscriptionStatus",
"x-ms-examples": {
"Triggers_GetEventSubscriptionStatus": {
"$ref": "./examples/Triggers_GetEventSubscriptionStatus.json"
@@ -1025,7 +1018,7 @@
"tags": [
"triggers"
],
- "operationId": "Triggers_UnsubscribeFromEvents",
+ "operationId": "Trigger_UnsubscribeTriggerFromEvents",
"x-ms-examples": {
"Triggers_UnsubscribeFromEvents": {
"$ref": "./examples/Triggers_UnsubscribeFromEvents.json"
@@ -1065,7 +1058,7 @@
"tags": [
"triggers"
],
- "operationId": "Triggers_Start",
+ "operationId": "Trigger_StartTrigger",
"x-ms-examples": {
"Triggers_Start": {
"$ref": "./examples/Triggers_Start.json"
@@ -1099,7 +1092,7 @@
"tags": [
"triggers"
],
- "operationId": "Triggers_Stop",
+ "operationId": "Trigger_StopTrigger",
"x-ms-examples": {
"Triggers_Stop": {
"$ref": "./examples/Triggers_Stop.json"
@@ -1133,7 +1126,7 @@
"tags": [
"triggerruns"
],
- "operationId": "TriggerRuns_Rerun",
+ "operationId": "TriggerRun_RerunTriggerInstance",
"x-ms-examples": {
"Triggers_Rerun": {
"$ref": "./examples/TriggerRuns_Rerun.json"
@@ -1169,7 +1162,7 @@
"tags": [
"triggerruns"
],
- "operationId": "TriggerRuns_QueryByWorkspace",
+ "operationId": "TriggerRun_QueryTriggerRunsByWorkspace",
"x-ms-examples": {
"TriggerRuns_QueryByWorkspace": {
"$ref": "./examples/TriggerRuns_QueryByWorkspace.json"
@@ -1211,7 +1204,7 @@
"tags": [
"dataFlows"
],
- "operationId": "DataFlows_CreateOrUpdate",
+ "operationId": "DataFlow_CreateOrUpdateDataFlow",
"x-ms-examples": {
"DataFlows_Create": {
"$ref": "./examples/DataFlows_Create.json"
@@ -1264,7 +1257,7 @@
"tags": [
"dataFlows"
],
- "operationId": "DataFlows_Get",
+ "operationId": "DataFlow_GetDataFlow",
"x-ms-examples": {
"DataFlows_Get": {
"$ref": "./examples/DataFlows_Get.json"
@@ -1305,7 +1298,7 @@
"tags": [
"dataFlows"
],
- "operationId": "DataFlows_Delete",
+ "operationId": "DataFlow_DeleteDataFlow",
"x-ms-examples": {
"DataFlows_Delete": {
"$ref": "./examples/DataFlows_Delete.json"
@@ -1341,7 +1334,7 @@
"tags": [
"dataFlows"
],
- "operationId": "DataFlows_ListByWorkspace",
+ "operationId": "DataFlow_GetDataFlowsByWorkspace",
"x-ms-examples": {
"DataFlows_ListByWorkspace": {
"$ref": "./examples/DataFlows_ListByWorkspace.json"
@@ -1377,7 +1370,7 @@
"tags": [
"dataFlowDebugSession"
],
- "operationId": "DataFlowDebugSession_Create",
+ "operationId": "DataFlowDebugSession_CreateDataFlowDebugSession",
"x-ms-examples": {
"DataFlowDebugSession_Create": {
"$ref": "./examples/DataFlowDebugSession_Create.json"
@@ -1429,7 +1422,7 @@
"tags": [
"dataFlowDebugSession"
],
- "operationId": "DataFlowDebugSession_QueryByWorkspace",
+ "operationId": "DataFlowDebugSession_QueryDataFlowDebugSessionsByWorkspace",
"x-ms-examples": {
"DataFlowDebugSession_QueryByWorkspace": {
"$ref": "./examples/DataFlowDebugSession_QueryByWorkspace.json"
@@ -1507,7 +1500,7 @@
"tags": [
"dataFlowDebugSession"
],
- "operationId": "DataFlowDebugSession_Delete",
+ "operationId": "DataFlowDebugSession_DeleteDataFlowDebugSession",
"x-ms-examples": {
"DataFlowDebugSession_Delete": {
"$ref": "./examples/DataFlowDebugSession_Delete.json"
@@ -1598,7 +1591,7 @@
"tags": [
"sqlScripts"
],
- "operationId": "SqlScripts_ListByWorkspace",
+ "operationId": "SqlScript_GetSqlScriptsByWorkspace",
"x-ms-examples": {
"SqlScripts_ListByWorkspace": {
"$ref": "./examples/SqlScripts_ListByWorkspace.json"
@@ -1634,7 +1627,7 @@
"tags": [
"sqlScripts"
],
- "operationId": "SqlScripts_CreateOrUpdate",
+ "operationId": "SqlScript_CreateOrUpdateSqlScript",
"x-ms-examples": {
"SqlScripts_Create": {
"$ref": "./examples/SqlScripts_Create.json"
@@ -1687,7 +1680,7 @@
"tags": [
"sqlScripts"
],
- "operationId": "SqlScripts_Get",
+ "operationId": "SqlScript_GetSqlScript",
"x-ms-examples": {
"SqlScripts_Get": {
"$ref": "./examples/SqlScripts_Get.json"
@@ -1731,7 +1724,7 @@
"tags": [
"sqlScripts"
],
- "operationId": "SqlScripts_Delete",
+ "operationId": "SqlScript_DeleteSqlScript",
"x-ms-examples": {
"SqlScripts_Delete": {
"$ref": "./examples/SqlScripts_Delete.json"
@@ -1767,7 +1760,7 @@
"tags": [
"sparkJobDefinitions"
],
- "operationId": "SparkJobDefinitions_ListByWorkspace",
+ "operationId": "SparkJobDefinition_GetSparkJobDefinitionsByWorkspace",
"x-ms-examples": {
"SparkJobDefinitions_ListByWorkspace": {
"$ref": "./examples/SparkJobDefinitions_ListByWorkspace.json"
@@ -1803,7 +1796,7 @@
"tags": [
"sparkJobDefinitions"
],
- "operationId": "SparkJobDefinitions_CreateOrUpdate",
+ "operationId": "SparkJobDefinition_CreateOrUpdateSparkJobDefinition",
"x-ms-examples": {
"SparkJobDefinitions_Create": {
"$ref": "./examples/SparkJobDefinitions_Create.json"
@@ -1856,7 +1849,7 @@
"tags": [
"sparkJobDefinitions"
],
- "operationId": "SparkJobDefinitions_Get",
+ "operationId": "SparkJobDefinition_GetSparkJobDefinition",
"x-ms-examples": {
"SparkJobDefinitions_Get": {
"$ref": "./examples/SparkJobDefinitions_Get.json"
@@ -1900,7 +1893,7 @@
"tags": [
"sparkJobDefinitions"
],
- "operationId": "SparkJobDefinitions_Delete",
+ "operationId": "SparkJobDefinition_DeleteSparkJobDefinition",
"x-ms-examples": {
"SparkJobDefinitions_Delete": {
"$ref": "./examples/SparkJobDefinitions_Delete.json"
@@ -1936,7 +1929,7 @@
"tags": [
"sparkJobDefinitions"
],
- "operationId": "SparkJobDefinitions_Execute",
+ "operationId": "SparkJobDefinition_ExecuteSparkJobDefinition",
"x-ms-examples": {
"SparkJobDefinitions_Execute": {
"$ref": "./examples/SparkJobDefinitions_Execute.json"
@@ -1959,13 +1952,13 @@
"202": {
"description": "Accepted.",
"schema": {
- "$ref": "../sparkFrontend.json#/definitions/ExtendedLivyBatchResponse"
+ "$ref": "../2019-11-01-preview/sparkJob.json#/definitions/SparkBatchJob"
}
},
"200": {
"description": "OK.",
"schema": {
- "$ref": "../sparkFrontend.json#/definitions/ExtendedLivyBatchResponse"
+ "$ref": "../2019-11-01-preview/sparkJob.json#/definitions/SparkBatchJob"
}
},
"default": {
@@ -1982,7 +1975,7 @@
"tags": [
"sparkJobDefinitions"
],
- "operationId": "SparkJobDefinitions_Debug",
+ "operationId": "SparkJobDefinition_DebugSparkJobDefinition",
"x-ms-examples": {
"SparkJobDefinitions_Debug": {
"$ref": "./examples/SparkJobDefinitions_Debug.json"
@@ -2011,13 +2004,13 @@
"202": {
"description": "Accepted.",
"schema": {
- "$ref": "../sparkFrontend.json#/definitions/ExtendedLivyBatchResponse"
+ "$ref": "../2019-11-01-preview/sparkJob.json#/definitions/SparkBatchJob"
}
},
"200": {
"description": "OK.",
"schema": {
- "$ref": "../sparkFrontend.json#/definitions/ExtendedLivyBatchResponse"
+ "$ref": "../2019-11-01-preview/sparkJob.json#/definitions/SparkBatchJob"
}
},
"default": {
@@ -2032,15 +2025,15 @@
"/notebooks": {
"get": {
"tags": [
- "noteBooks"
+ "notebooks"
],
- "operationId": "NoteBooks_ListByWorkspace",
+ "operationId": "Notebook_GetNotebooksByWorkspace",
"x-ms-examples": {
- "NoteBooks_ListByWorkspace": {
- "$ref": "./examples/NoteBooks_ListByWorkspace.json"
+ "Notebooks_ListByWorkspace": {
+ "$ref": "./examples/Notebooks_ListByWorkspace.json"
}
},
- "description": "Lists notebooks.",
+ "description": "Lists Notebooks.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -2050,7 +2043,7 @@
"200": {
"description": "OK.",
"schema": {
- "$ref": "#/definitions/NoteBookListResponse"
+ "$ref": "#/definitions/NotebookListResponse"
}
},
"default": {
@@ -2068,15 +2061,15 @@
"/notebooks/summary": {
"get": {
"tags": [
- "noteBooks"
+ "notebooks"
],
- "operationId": "NoteBooks_ListSummaryByWorkSpace",
+ "operationId": "Notebook_GetNotebookSummaryByWorkSpace",
"x-ms-examples": {
- "NoteBooks_ListSummaryByWorkSpace": {
- "$ref": "./examples/NoteBooks_ListSummaryByWorkSpace.json"
+ "Notebooks_ListSummaryByWorkSpace": {
+ "$ref": "./examples/Notebooks_ListSummaryByWorkSpace.json"
}
},
- "description": "Lists a summary of notebooks.",
+ "description": "Lists a summary of Notebooks.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -2086,7 +2079,7 @@
"200": {
"description": "OK.",
"schema": {
- "$ref": "#/definitions/NoteBookListResponse"
+ "$ref": "#/definitions/NotebookListResponse"
}
},
"default": {
@@ -2101,24 +2094,24 @@
}
}
},
- "/notebooks/{noteBookName}": {
+ "/notebooks/{notebookName}": {
"put": {
"tags": [
- "noteBooks"
+ "notebooks"
],
- "operationId": "NoteBooks_CreateOrUpdate",
+ "operationId": "Notebook_CreateOrUpdateNotebook",
"x-ms-examples": {
- "NoteBooks_Create": {
- "$ref": "./examples/NoteBooks_Create.json"
+ "Notebooks_Create": {
+ "$ref": "./examples/Notebooks_Create.json"
},
- "NoteBooks_Update": {
- "$ref": "./examples/NoteBooks_Update.json"
+ "Notebooks_Update": {
+ "$ref": "./examples/Notebooks_Update.json"
}
},
"description": "Creates or updates a Note Book.",
"parameters": [
{
- "$ref": "#/parameters/noteBookName"
+ "$ref": "#/parameters/NotebookName"
},
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -2131,12 +2124,12 @@
"description": "ETag of the Note book entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update."
},
{
- "name": "noteBook",
+ "name": "Notebook",
"description": "Note book resource definition.",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/NoteBookResource"
+ "$ref": "#/definitions/NotebookResource"
}
}
],
@@ -2144,7 +2137,7 @@
"200": {
"description": "OK.",
"schema": {
- "$ref": "#/definitions/NoteBookResource"
+ "$ref": "#/definitions/NotebookResource"
}
},
"default": {
@@ -2157,18 +2150,18 @@
},
"get": {
"tags": [
- "noteBooks"
+ "notebooks"
],
- "operationId": "NoteBooks_Get",
+ "operationId": "Notebook_GetNotebook",
"x-ms-examples": {
- "NoteBooks_Get": {
- "$ref": "./examples/NoteBooks_Get.json"
+ "Notebooks_Get": {
+ "$ref": "./examples/Notebooks_Get.json"
}
},
"description": "Gets a Note Book.",
"parameters": [
{
- "$ref": "#/parameters/noteBookName"
+ "$ref": "#/parameters/NotebookName"
},
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -2178,14 +2171,14 @@
"in": "header",
"required": false,
"type": "string",
- "description": "ETag of the notebook entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned."
+ "description": "ETag of the Notebook entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned."
}
],
"responses": {
"200": {
"description": "OK.",
"schema": {
- "$ref": "#/definitions/NoteBookResource"
+ "$ref": "#/definitions/NotebookResource"
}
},
"304": {
@@ -2201,18 +2194,18 @@
},
"delete": {
"tags": [
- "noteBooks"
+ "notebooks"
],
- "operationId": "NoteBooks_Delete",
+ "operationId": "Notebook_DeleteNotebook",
"x-ms-examples": {
- "NoteBooks_Delete": {
- "$ref": "./examples/NoteBooks_Delete.json"
+ "Notebooks_Delete": {
+ "$ref": "./examples/Notebooks_Delete.json"
}
},
"description": "Deletes a Note book.",
"parameters": [
{
- "$ref": "#/parameters/noteBookName"
+ "$ref": "#/parameters/NotebookName"
},
{
"$ref": "#/parameters/ApiVersionParameter"
@@ -3177,7 +3170,7 @@
"DatasetReference"
],
"x-ms-enum": {
- "name": "Type",
+ "name": "DatasetReferenceType",
"modelAsString": true
}
},
@@ -3365,8 +3358,8 @@
"properties"
]
},
- "NoteBookListResponse": {
- "description": "A list of notebook resources.",
+ "NotebookListResponse": {
+ "description": "A list of Notebook resources.",
"type": "object",
"required": [
"value"
@@ -3374,9 +3367,9 @@
"properties": {
"value": {
"type": "array",
- "description": "List of notebooks.",
+ "description": "List of Notebooks.",
"items": {
- "$ref": "#/definitions/NoteBookResource"
+ "$ref": "#/definitions/NotebookResource"
}
},
"nextLink": {
@@ -3385,8 +3378,8 @@
}
}
},
- "NoteBookResource": {
- "description": "NoteBook resource type.",
+ "NotebookResource": {
+ "description": "Notebook resource type.",
"allOf": [
{
"$ref": "#/definitions/SubResource"
@@ -3394,8 +3387,8 @@
],
"properties": {
"properties": {
- "$ref": "./entityTypes/NoteBook.json#/definitions/NoteBook",
- "description": "Properties of NoteBook."
+ "$ref": "./entityTypes/Notebook.json#/definitions/Notebook",
+ "description": "Properties of Notebook."
}
},
"required": [
@@ -4136,24 +4129,6 @@
}
},
"parameters": {
- "subscriptionId": {
- "name": "subscriptionId",
- "description": "The subscription identifier.",
- "in": "path",
- "required": true,
- "type": "string"
- },
- "resourceGroupName": {
- "name": "resourceGroupName",
- "description": "The resource group name.",
- "in": "path",
- "required": true,
- "type": "string",
- "pattern": "^[-\\w\\._\\(\\)]+$",
- "minLength": 1,
- "maxLength": 90,
- "x-ms-parameter-location": "method"
- },
"workspaceName": {
"name": "workspaceName",
"description": "The workspace name.",
@@ -4162,22 +4137,6 @@
"type": "string",
"x-ms-parameter-location": "method"
},
- "sqlComputeName": {
- "name": "sqlComputeName",
- "description": "The sql compute name.",
- "in": "path",
- "required": true,
- "type": "string",
- "x-ms-parameter-location": "method"
- },
- "sparkComputeName": {
- "name": "sparkComputeName",
- "description": "The spark compute name.",
- "in": "path",
- "required": true,
- "type": "string",
- "x-ms-parameter-location": "method"
- },
"sqlScriptName": {
"name": "sqlScriptName",
"description": "The sql script name.",
@@ -4194,9 +4153,9 @@
"type": "string",
"x-ms-parameter-location": "method"
},
- "noteBookName": {
- "name": "noteBookName",
- "description": "The note book name.",
+ "NotebookName": {
+ "name": "notebookName",
+ "description": "The notebook name.",
"in": "path",
"required": true,
"type": "string",
@@ -4318,14 +4277,13 @@
"type": "string",
"description": "The Synapse client API Version."
},
- "SynapseDnsSuffixInPath": {
- "name": "SynapseDnsSuffix",
- "in": "path",
+ "Endpoint": {
+ "name": "endpoint",
+ "description": "The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.",
"required": true,
"type": "string",
- "default": "dev.azuresynapse.net",
+ "in": "path",
"x-ms-skip-url-encoding": true,
- "description": "Gets the DNS suffix used as the base for all Synapse service requests.",
"x-ms-parameter-location": "client"
}
}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/DataFlow.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/DataFlow.json
similarity index 94%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/DataFlow.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/DataFlow.json
index d1317f5bd0e2..cc6adc44e2fd 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/DataFlow.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/DataFlow.json
@@ -1,8 +1,8 @@
{
"swagger": "2.0",
"info": {
- "title": "SynapseClient",
- "version": "2019-11-01-preview"
+ "title": "ArtifactsClient",
+ "version": "2019-06-01-preview"
},
"paths": {},
"definitions": {
@@ -115,7 +115,7 @@
"properties": {
"dataset": {
"description": "Dataset reference.",
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
}
}
},
@@ -129,7 +129,7 @@
"properties": {
"dataset": {
"description": "Dataset reference.",
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
}
}
}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/Dataset.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Dataset.json
similarity index 99%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/Dataset.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Dataset.json
index 29f8b205d98f..1aa9e4d000f2 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/Dataset.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Dataset.json
@@ -1,8 +1,8 @@
{
"swagger": "2.0",
"info": {
- "title": "SynapseClient",
- "version": "2019-11-01-preview"
+ "title": "ArtifactsClient",
+ "version": "2019-06-01-preview"
},
"paths": {},
"definitions": {
@@ -29,10 +29,10 @@
},
"linkedServiceName": {
"description": "Linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"parameters": {
- "$ref": "../datafactory.json#/definitions/ParameterDefinitionSpecification",
+ "$ref": "../artifacts.json#/definitions/ParameterDefinitionSpecification",
"description": "Parameters for dataset."
},
"annotations": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/LinkedService.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/LinkedService.json
similarity index 96%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/LinkedService.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/LinkedService.json
index bbee397ae546..8f54c7fb088c 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/LinkedService.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/LinkedService.json
@@ -1,8 +1,8 @@
{
"swagger": "2.0",
"info": {
- "title": "SynapseClient",
- "version": "2019-11-01-preview"
+ "title": "ArtifactsClient",
+ "version": "2019-06-01-preview"
},
"paths": {},
"definitions": {
@@ -17,14 +17,14 @@
},
"connectVia": {
"description": "The integration runtime reference.",
- "$ref": "../datafactory.json#/definitions/IntegrationRuntimeReference"
+ "$ref": "../artifacts.json#/definitions/IntegrationRuntimeReference"
},
"description": {
"description": "Linked service description.",
"type": "string"
},
"parameters": {
- "$ref": "../datafactory.json#/definitions/ParameterDefinitionSpecification",
+ "$ref": "../artifacts.json#/definitions/ParameterDefinitionSpecification",
"description": "Parameters for linked service."
},
"annotations": {
@@ -110,7 +110,7 @@
"type": "object"
},
"accountKey": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of accountKey in connection string."
},
"sasUri": {
@@ -118,7 +118,7 @@
"type": "object"
},
"sasToken": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of sasToken in sas uri."
},
"encryptedCredential": {
@@ -135,7 +135,7 @@
"description": "The connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference."
},
"accountKey": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of accountKey in connection string."
},
"sasUri": {
@@ -143,7 +143,7 @@
"type": "object"
},
"sasToken": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of sasToken in sas uri."
},
"serviceEndpoint": {
@@ -155,7 +155,7 @@
"description": "The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string)."
},
"servicePrincipalKey": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The key of the service principal used to authenticate against Azure SQL Data Warehouse."
},
"tenant": {
@@ -196,7 +196,7 @@
"type": "object"
},
"password": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"servicePrincipalId": {
@@ -204,7 +204,7 @@
"description": "The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string)."
},
"servicePrincipalKey": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The key of the service principal used to authenticate against Azure SQL Data Warehouse."
},
"tenant": {
@@ -253,7 +253,7 @@
},
"password": {
"description": "The on-premises Windows authentication password.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -292,7 +292,7 @@
"type": "object"
},
"password": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"servicePrincipalId": {
@@ -300,7 +300,7 @@
"description": "The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType string)."
},
"servicePrincipalKey": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The key of the service principal used to authenticate against Azure SQL Database."
},
"tenant": {
@@ -344,7 +344,7 @@
"type": "object"
},
"password": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"servicePrincipalId": {
@@ -352,7 +352,7 @@
"description": "The ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: string (or Expression with resultType string)."
},
"servicePrincipalKey": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The key of the service principal used to authenticate against Azure SQL Managed Instance."
},
"tenant": {
@@ -397,7 +397,7 @@
},
"accessKey": {
"description": "The Azure Batch account access key.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"batchUri": {
"type": "object",
@@ -409,7 +409,7 @@
},
"linkedServiceName": {
"description": "The Azure Storage linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"encryptedCredential": {
"type": "object",
@@ -491,7 +491,7 @@
"type": "object"
},
"accountKey": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference."
},
"encryptedCredential": {
@@ -570,7 +570,7 @@
},
"password": {
"description": "Password to access the Dynamics instance.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"servicePrincipalId": {
"type": "object",
@@ -589,7 +589,7 @@
"description": "The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string)."
},
"servicePrincipalCredential": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference."
},
"encryptedCredential": {
@@ -672,7 +672,7 @@
},
"password": {
"description": "Password to access the Dynamics CRM instance.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"servicePrincipalId": {
"type": "object",
@@ -691,7 +691,7 @@
"description": "The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string)."
},
"servicePrincipalCredential": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference."
},
"encryptedCredential": {
@@ -774,7 +774,7 @@
},
"password": {
"description": "Password to access the Common Data Service for Apps instance.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"servicePrincipalId": {
"type": "object",
@@ -793,7 +793,7 @@
"description": "The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string)."
},
"servicePrincipalCredential": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference."
},
"encryptedCredential": {
@@ -839,15 +839,15 @@
},
"password": {
"description": "HDInsight cluster password.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"linkedServiceName": {
"description": "The Azure Storage linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"hcatalogLinkedServiceName": {
"description": "A reference to the Azure SQL linked service that points to the HCatalog database.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"encryptedCredential": {
"type": "object",
@@ -899,7 +899,7 @@
},
"password": {
"description": "Password to logon the server.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -943,7 +943,7 @@
},
"password": {
"description": "Password to logon the server.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -983,7 +983,7 @@
},
"secretAccessKey": {
"description": "The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"serviceUrl": {
"type": "object",
@@ -1023,7 +1023,7 @@
"type": "object"
},
"password": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -1063,7 +1063,7 @@
"type": "object"
},
"password": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -1103,7 +1103,7 @@
"type": "object"
},
"password": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -1143,7 +1143,7 @@
"type": "object"
},
"password": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -1208,7 +1208,7 @@
},
"password": {
"description": "Password for authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -1268,7 +1268,7 @@
},
"password": {
"description": "Password for authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"packageCollection": {
"type": "object",
@@ -1337,7 +1337,7 @@
},
"password": {
"description": "Password for authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -1374,7 +1374,7 @@
},
"apiKey": {
"description": "The API key for accessing the Azure ML model endpoint.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"updateResourceEndpoint": {
"type": "object",
@@ -1385,7 +1385,7 @@
"description": "The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string)."
},
"servicePrincipalKey": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service."
},
"tenant": {
@@ -1442,7 +1442,7 @@
"description": "The ID of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. Type: string (or Expression with resultType string)."
},
"servicePrincipalKey": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline."
},
"tenant": {
@@ -1493,7 +1493,7 @@
},
"credential": {
"description": "The access credential portion of the connection string specified in driver-specific property-value format.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"userName": {
"type": "object",
@@ -1501,7 +1501,7 @@
},
"password": {
"description": "Password for Basic authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -1545,7 +1545,7 @@
},
"credential": {
"description": "The access credential portion of the connection string specified in driver-specific property-value format.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"userName": {
"type": "object",
@@ -1553,7 +1553,7 @@
},
"password": {
"description": "Password for Basic authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -1597,7 +1597,7 @@
},
"credential": {
"description": "The access credential portion of the connection string specified in driver-specific property-value format.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"userName": {
"type": "object",
@@ -1605,7 +1605,7 @@
},
"password": {
"description": "Password for Basic authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -1657,7 +1657,7 @@
},
"password": {
"description": "Password for Windows authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
}
},
"required": [
@@ -1712,7 +1712,7 @@
},
"password": {
"description": "Password of the OData service.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"tenant": {
"type": "object",
@@ -1740,15 +1740,15 @@
},
"servicePrincipalKey": {
"description": "Specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string).",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"servicePrincipalEmbeddedCert": {
"description": "Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string).",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"servicePrincipalEmbeddedCertPassword": {
"description": "Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string).",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -1830,7 +1830,7 @@
},
"password": {
"description": "The password for Basic authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
}
},
"required": [
@@ -1849,11 +1849,11 @@
"properties": {
"pfx": {
"description": "Base64-encoded contents of a PFX file.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"password": {
"description": "Password for the PFX file.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
}
},
"required": [
@@ -1902,7 +1902,7 @@
},
"password": {
"description": "Password for authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -1962,7 +1962,7 @@
},
"password": {
"description": "Password for authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"authSource": {
"type": "object",
@@ -2097,7 +2097,7 @@
},
"servicePrincipalKey": {
"description": "The Key of the application used to authenticate against the Azure Data Lake Store account.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"tenant": {
"type": "object",
@@ -2161,7 +2161,7 @@
},
"servicePrincipalKey": {
"description": "The Key of the application used to authenticate against the Azure Data Lake Storage Gen2 account.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"tenant": {
"type": "object",
@@ -2213,7 +2213,7 @@
},
"servicePrincipalKey": {
"description": "Specify the application's key.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -2260,11 +2260,11 @@
},
"password": {
"description": "The password for Basic authentication of the Salesforce instance.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"securityToken": {
"description": "The security token is required to remotely access Salesforce instance.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -2305,11 +2305,11 @@
},
"password": {
"description": "The password for Basic authentication of the Salesforce instance.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"securityToken": {
"description": "The security token is required to remotely access Salesforce instance.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"extendedProperties": {
"type": "object",
@@ -2354,7 +2354,7 @@
},
"password": {
"description": "The password for Basic authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -2398,7 +2398,7 @@
},
"password": {
"description": "The password for Basic authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "string",
@@ -2454,7 +2454,7 @@
},
"password": {
"description": "Password to access the SAP BW server where the open hub destination is located.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -2518,7 +2518,7 @@
},
"password": {
"description": "The password used in Basic authentication type.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"servicePrincipalId": {
"description": "The application's client ID used in AadServicePrincipal authentication type.",
@@ -2526,7 +2526,7 @@
},
"servicePrincipalKey": {
"description": "The application's key used in AadServicePrincipal authentication type.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"tenant": {
"description": "The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides.",
@@ -2575,7 +2575,7 @@
},
"secretAccessKey": {
"description": "The secret access key of the Amazon S3 Identity and Access Management (IAM) user.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"serviceUrl": {
"type": "object",
@@ -2620,7 +2620,7 @@
},
"password": {
"description": "The password of the Amazon Redshift source.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"database": {
"type": "object",
@@ -2689,7 +2689,7 @@
},
"key": {
"description": "Admin Key for Azure Search service",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -2748,7 +2748,7 @@
},
"password": {
"description": "Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"embeddedCertData": {
"type": "object",
@@ -2820,7 +2820,7 @@
},
"password": {
"description": "Password to logon the FTP server.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -2888,7 +2888,7 @@
},
"password": {
"description": "Password to logon the SFTP server for Basic authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -2900,11 +2900,11 @@
},
"privateKeyContent": {
"description": "Base64 encoded SSH private key content for SshPublicKey authentication. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH format.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"passPhrase": {
"description": "The password to decrypt the SSH private key if the SSH private key is encrypted.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"skipHostKeyValidation": {
"type": "object",
@@ -2960,7 +2960,7 @@
},
"password": {
"description": "Password to access the SAP BW server.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -3022,7 +3022,7 @@
},
"password": {
"description": "Password to access the SAP HANA server.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"type": "object",
@@ -3070,7 +3070,7 @@
},
"mwsAuthToken": {
"description": "The Amazon MWS authentication token.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"accessKeyId": {
"description": "The access key id used to access data.",
@@ -3078,7 +3078,7 @@
},
"secretKey": {
"description": "The secret key used to access data.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -3132,7 +3132,7 @@
"type": "object"
},
"password": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -3174,7 +3174,7 @@
},
"password": {
"description": "The password corresponding to the user name that you provided in the username field.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -3226,7 +3226,7 @@
"type": "object"
},
"credString": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of credString in connection string."
},
"encryptedCredential": {
@@ -3263,7 +3263,7 @@
"type": "object"
},
"pwd": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -3305,7 +3305,7 @@
},
"password": {
"description": "The password corresponding to the user name.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -3378,7 +3378,7 @@
},
"refreshToken": {
"description": "The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"clientId": {
"description": "The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType string).",
@@ -3386,7 +3386,7 @@
},
"clientSecret": {
"description": "The client secret of the google application used to acquire the refresh token.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"email": {
"description": "The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR.",
@@ -3442,7 +3442,7 @@
"type": "object"
},
"pwd": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -3504,7 +3504,7 @@
},
"password": {
"description": "The password corresponding to the user name.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"enableSsl": {
"description": "Specifies whether the connections to the server are encrypted using SSL. The default value is false.",
@@ -3621,7 +3621,7 @@
},
"password": {
"description": "The password corresponding to the user name that you provided in the Username field",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"httpPath": {
"description": "The partial URL corresponding to the Hive server.",
@@ -3686,15 +3686,15 @@
},
"clientSecret": {
"description": "The client secret associated with your Hubspot application.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"accessToken": {
"description": "The access token obtained when initially authenticating your OAuth integration.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"refreshToken": {
"description": "The refresh token obtained when initially authenticating your OAuth integration.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -3767,7 +3767,7 @@
},
"password": {
"description": "The password corresponding to the user name when using UsernameAndPassword.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"enableSsl": {
"description": "Specifies whether the connections to the server are encrypted using SSL. The default value is false.",
@@ -3836,7 +3836,7 @@
},
"password": {
"description": "The password corresponding to the user name that you provided in the username field.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -3889,7 +3889,7 @@
},
"accessToken": {
"description": "The access token from Magento.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -3940,7 +3940,7 @@
"type": "object"
},
"pwd": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -3977,7 +3977,7 @@
"type": "object"
},
"pwd": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -4019,7 +4019,7 @@
},
"clientSecret": {
"description": "The client secret of your Marketo service.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -4076,7 +4076,7 @@
},
"clientSecret": {
"description": "The client secret associated with your PayPal application.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -4154,7 +4154,7 @@
},
"password": {
"description": "The password corresponding to the user name.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"enableSsl": {
"description": "Specifies whether the connections to the server are encrypted using SSL. The default value is false.",
@@ -4243,7 +4243,7 @@
},
"password": {
"description": "The password corresponding to the user name.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"enableSsl": {
"description": "Specifies whether the connections to the server are encrypted using SSL. The default value is false.",
@@ -4318,15 +4318,15 @@
},
"consumerSecret": {
"description": "The consumer secret for OAuth 1.0 authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"accessToken": {
"description": "The access token for OAuth 1.0 authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"accessTokenSecret": {
"description": "The access token secret for OAuth 1.0 authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -4391,7 +4391,7 @@
},
"password": {
"description": "The password corresponding to the user name for Basic and OAuth2 authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"clientId": {
"description": "The client id for OAuth2 authentication.",
@@ -4399,7 +4399,7 @@
},
"clientSecret": {
"description": "The client secret for OAuth2 authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -4452,7 +4452,7 @@
},
"accessToken": {
"description": "The API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -4552,7 +4552,7 @@
},
"password": {
"description": "The password corresponding to the user name that you provided in the Username field",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"httpPath": {
"description": "The partial URL corresponding to the Spark server.",
@@ -4622,7 +4622,7 @@
},
"clientSecret": {
"description": "The client secret associated with your Square application.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"redirectUri": {
"description": "The redirect URL assigned in the Square application dashboard. (i.e. http://localhost:2500)",
@@ -4680,11 +4680,11 @@
},
"consumerKey": {
"description": "The consumer key associated with the Xero application.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"privateKey": {
"description": "The private key from the .pem file that was generated for your Xero private application. You must include all the text from the .pem file, including the Unix line endings(\n).",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -4736,7 +4736,7 @@
},
"accessToken": {
"description": "The access token for Zoho authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.",
@@ -4787,7 +4787,7 @@
"type": "object"
},
"pwd": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -4824,7 +4824,7 @@
"type": "object"
},
"pwd": {
- "$ref": "../datafactory.json#/definitions/AzureKeyVaultSecretReference",
+ "$ref": "../artifacts.json#/definitions/AzureKeyVaultSecretReference",
"description": "The Azure key vault secret reference of password in connection string."
},
"encryptedCredential": {
@@ -4862,7 +4862,7 @@
},
"clientSecret": {
"description": "The client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string).",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean).",
@@ -4922,7 +4922,7 @@
},
"linkedServiceName": {
"description": "Azure Storage linked service to be used by the on-demand cluster for storing and processing data.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"hostSubscriptionId": {
"type": "object",
@@ -4934,7 +4934,7 @@
},
"servicePrincipalKey": {
"description": "The key for the service principal id.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"tenant": {
"type": "object",
@@ -4954,7 +4954,7 @@
},
"clusterPassword": {
"description": "The password to access the cluster.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"clusterSshUserName": {
"type": "object",
@@ -4962,18 +4962,18 @@
},
"clusterSshPassword": {
"description": "The password to SSH remotely connect cluster’s node (for Linux).",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"additionalLinkedServiceNames": {
"description": "Specifies additional storage accounts for the HDInsight linked service so that the Data Factory service can register them on your behalf.",
"type": "array",
"items": {
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
}
},
"hcatalogLinkedServiceName": {
"description": "The name of Azure SQL linked service that point to the HCatalog database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"clusterType": {
"type": "object",
@@ -5126,7 +5126,7 @@
},
"servicePrincipalKey": {
"description": "The Key of the application used to authenticate against the Azure Data Lake Analytics account.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"tenant": {
"type": "object",
@@ -5183,7 +5183,7 @@
},
"accessToken": {
"description": "Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType string).",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"existingClusterId": {
"type": "object",
@@ -5284,7 +5284,7 @@
},
"clientSecret": {
"description": "The client secret associated with the Responsys application. Type: string (or Expression with resultType string).",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean).",
@@ -5341,7 +5341,7 @@
},
"servicePrincipalKey": {
"description": "Specify the application's key. Mark this field as a SecureString to store it securely in Data Factory, or reference a secret stored in Azure Key Vault. Type: string (or Expression with resultType string).",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"tenant": {
"description": "Specify the tenant information (domain name or tenant ID) under which your application resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or Expression with resultType string).",
@@ -5397,7 +5397,7 @@
},
"password": {
"description": "The password corresponding to the user name that you provided in the username key.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"useEncryptedEndpoints": {
"description": "Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean).",
@@ -5451,7 +5451,7 @@
},
"developerToken": {
"description": "The developer token associated with the manager account that you use to grant access to the AdWords API.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"authenticationType": {
"description": "The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR.",
@@ -5467,7 +5467,7 @@
},
"refreshToken": {
"description": "The refresh token obtained from Google for authorizing access to AdWords for UserAuthentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"clientId": {
"description": "The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType string).",
@@ -5475,7 +5475,7 @@
},
"clientSecret": {
"description": "The client secret of the google application used to acquire the refresh token.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"email": {
"description": "The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR.",
@@ -5553,7 +5553,7 @@
},
"password": {
"description": "Password to access the SAP server where the table is located.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"messageServer": {
"type": "object",
@@ -5625,7 +5625,7 @@
"description": "The ID of the service principal used to authenticate against Azure Data Explorer. Type: string (or Expression with resultType string)."
},
"servicePrincipalKey": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "The key of the service principal used to authenticate against Kusto."
},
"database": {
@@ -5674,7 +5674,7 @@
},
"functionKey": {
"description": "Function or Host key for Azure Function App.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"encryptedCredential": {
"description": "The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).",
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/NoteBook.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Notebook.json
similarity index 98%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/NoteBook.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Notebook.json
index 1958284c390e..9035e958e8b9 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/NoteBook.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Notebook.json
@@ -1,12 +1,12 @@
{
"swagger": "2.0",
"info": {
- "title": "SynapseClient",
- "version": "2019-11-01-preview"
+ "title": "ArtifactsClient",
+ "version": "2019-06-01-preview"
},
"paths": {},
"definitions": {
- "NoteBook": {
+ "Notebook": {
"description": "Notebook.",
"type": "object",
"properties": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/Pipeline.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Pipeline.json
similarity index 98%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/Pipeline.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Pipeline.json
index a2f4d1c618bb..2f1930156943 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/Pipeline.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Pipeline.json
@@ -1,8 +1,8 @@
{
"swagger": "2.0",
"info": {
- "title": "SynapseClient",
- "version": "2019-11-01-preview"
+ "title": "ArtifactsClient",
+ "version": "2019-06-01-preview"
},
"paths": {},
"definitions": {
@@ -22,11 +22,11 @@
}
},
"parameters": {
- "$ref": "../datafactory.json#/definitions/ParameterDefinitionSpecification",
+ "$ref": "../artifacts.json#/definitions/ParameterDefinitionSpecification",
"description": "List of parameters for pipeline."
},
"variables": {
- "$ref": "../datafactory.json#/definitions/VariableDefinitionSpecification",
+ "$ref": "../artifacts.json#/definitions/VariableDefinitionSpecification",
"description": "List of variables for pipeline."
},
"concurrency": {
@@ -174,7 +174,7 @@
"properties": {
"linkedServiceName": {
"description": "Linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"policy": {
"$ref": "#/definitions/ActivityPolicy",
@@ -966,14 +966,14 @@
"type": "array",
"description": "List of inputs for the activity.",
"items": {
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
}
},
"outputs": {
"type": "array",
"description": "List of outputs for the activity.",
"items": {
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
}
}
},
@@ -2820,7 +2820,7 @@
"properties": {
"s3LinkedServiceName": {
"description": "The name of the Amazon S3 linked service which will be used for the unload operation when copying from the Amazon Redshift source.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"bucketName": {
"type": "object",
@@ -3362,7 +3362,7 @@
"properties": {
"linkedServiceName": {
"description": "Log storage linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"path": {
"type": "object",
@@ -3382,7 +3382,7 @@
"properties": {
"linkedServiceName": {
"description": "Staging linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"path": {
"type": "object",
@@ -3810,7 +3810,7 @@
"description": "Storage linked service references.",
"type": "array",
"items": {
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
}
},
"arguments": {
@@ -3831,7 +3831,7 @@
},
"scriptLinkedService": {
"description": "Script linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"defines": {
"description": "Allows user to specify defines for Hive job request.",
@@ -3894,7 +3894,7 @@
"description": "Storage linked service references.",
"type": "array",
"items": {
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
}
},
"arguments": {
@@ -3911,7 +3911,7 @@
},
"scriptLinkedService": {
"description": "Script linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"defines": {
"description": "Allows user to specify defines for Pig job request.",
@@ -3949,7 +3949,7 @@
"description": "Storage linked service references.",
"type": "array",
"items": {
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
}
},
"arguments": {
@@ -3974,7 +3974,7 @@
},
"jarLinkedService": {
"description": "Jar linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"jarLibs": {
"description": "Jar libs.",
@@ -4024,7 +4024,7 @@
"description": "Storage linked service references.",
"type": "array",
"items": {
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
}
},
"arguments": {
@@ -4065,7 +4065,7 @@
},
"fileLinkedService": {
"description": "Linked service reference where the files are located.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"combiner": {
"type": "object",
@@ -4140,7 +4140,7 @@
},
"sparkJobLinkedService": {
"description": "The storage linked service for uploading the entry file and dependencies, and for receiving logs.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"className": {
"description": "The application's Java/Spark main class.",
@@ -4208,7 +4208,7 @@
},
"connectVia": {
"description": "The integration runtime reference.",
- "$ref": "../datafactory.json#/definitions/IntegrationRuntimeReference"
+ "$ref": "../artifacts.json#/definitions/IntegrationRuntimeReference"
},
"projectParameters": {
"description": "The project level parameters to execute the SSIS package.",
@@ -4288,7 +4288,7 @@
"type": "object",
"properties": {
"packagePassword": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "Password of the package."
},
"accessCredential": {
@@ -4370,7 +4370,7 @@
"description": "UseName for windows authentication."
},
"password": {
- "$ref": "../datafactory.json#/definitions/SecureString",
+ "$ref": "../artifacts.json#/definitions/SecureString",
"description": "Password for windows authentication."
}
},
@@ -4393,7 +4393,7 @@
"description": "UseName for windows authentication."
},
"password": {
- "$ref": "../datafactory.json#/definitions/SecretBase",
+ "$ref": "../artifacts.json#/definitions/SecretBase",
"description": "Password for windows authentication."
}
},
@@ -4502,7 +4502,7 @@
},
"resourceLinkedService": {
"description": "Resource linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"folderPath": {
"type": "object",
@@ -4536,14 +4536,14 @@
"description": "Linked service references.",
"type": "array",
"items": {
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
}
},
"datasets": {
"description": "Dataset references.",
"type": "array",
"items": {
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
}
}
}
@@ -4611,11 +4611,11 @@
"properties": {
"pipeline": {
"description": "Pipeline reference.",
- "$ref": "../datafactory.json#/definitions/PipelineReference"
+ "$ref": "../artifacts.json#/definitions/PipelineReference"
},
"parameters": {
"description": "Pipeline parameters.",
- "$ref": "../datafactory.json#/definitions/ParameterValueSpecification"
+ "$ref": "../artifacts.json#/definitions/ParameterValueSpecification"
},
"waitOnCompletion": {
"description": "Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false.",
@@ -4667,7 +4667,7 @@
},
"dataset": {
"description": "Delete activity dataset reference.",
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
}
},
"required": [
@@ -4737,7 +4737,7 @@
},
"dataset": {
"description": "Lookup activity dataset reference.",
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
},
"firstRowOnly": {
"type": "object",
@@ -4791,7 +4791,7 @@
},
"pfx": {
"description": "Base64-encoded contents of a PFX file.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"username": {
"description": "Web activity authentication user name for basic authentication.",
@@ -4799,7 +4799,7 @@
},
"password": {
"description": "Password for the PFX file or basic authentication.",
- "$ref": "../datafactory.json#/definitions/SecretBase"
+ "$ref": "../artifacts.json#/definitions/SecretBase"
},
"resource": {
"description": "Resource for which Azure Auth token will be requested when using MSI Authentication.",
@@ -4837,19 +4837,19 @@
"type": "array",
"description": "List of datasets passed to web endpoint.",
"items": {
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
}
},
"linkedServices": {
"type": "array",
"description": "List of linked services passed to web endpoint.",
"items": {
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
}
},
"connectVia": {
"description": "The integration runtime reference.",
- "$ref": "../datafactory.json#/definitions/IntegrationRuntimeReference"
+ "$ref": "../artifacts.json#/definitions/IntegrationRuntimeReference"
}
},
"required": [
@@ -4881,7 +4881,7 @@
"properties": {
"dataset": {
"description": "GetMetadata activity dataset reference.",
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
},
"fieldList": {
"description": "Fields of metadata to get from dataset.",
@@ -4920,7 +4920,7 @@
"properties": {
"expression": {
"description": "An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed.",
- "$ref": "../datafactory.json#/definitions/Expression"
+ "$ref": "../artifacts.json#/definitions/Expression"
},
"ifTrueActivities": {
"type": "array",
@@ -4965,7 +4965,7 @@
"properties": {
"on": {
"description": "An expression that would evaluate to a string or integer. This is used to determine the block of activities in cases that will be executed.",
- "$ref": "../datafactory.json#/definitions/Expression"
+ "$ref": "../artifacts.json#/definitions/Expression"
},
"cases": {
"type": "array",
@@ -5036,7 +5036,7 @@
},
"items": {
"description": "Collection to iterate.",
- "$ref": "../datafactory.json#/definitions/Expression"
+ "$ref": "../artifacts.json#/definitions/Expression"
},
"activities": {
"type": "array",
@@ -5107,7 +5107,7 @@
},
"linkedServiceName": {
"description": "Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
}
},
"required": [
@@ -5143,7 +5143,7 @@
},
"trainedModelLinkedServiceName": {
"description": "Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"trainedModelFilePath": {
"type": "object",
@@ -5239,7 +5239,7 @@
},
"scriptLinkedService": {
"description": "Script linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
},
"degreeOfParallelism": {
"type": "object",
@@ -5326,7 +5326,7 @@
"properties": {
"expression": {
"description": "An expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true",
- "$ref": "../datafactory.json#/definitions/Expression"
+ "$ref": "../artifacts.json#/definitions/Expression"
},
"timeout": {
"type": "object",
@@ -5385,7 +5385,7 @@
},
"dataset": {
"description": "Validation activity dataset reference.",
- "$ref": "../datafactory.json#/definitions/DatasetReference"
+ "$ref": "../artifacts.json#/definitions/DatasetReference"
}
},
"required": [
@@ -5416,11 +5416,11 @@
"properties": {
"items": {
"description": "Input array on which filter should be applied.",
- "$ref": "../datafactory.json#/definitions/Expression"
+ "$ref": "../artifacts.json#/definitions/Expression"
},
"condition": {
"description": "Condition to be used for filtering the input.",
- "$ref": "../datafactory.json#/definitions/Expression"
+ "$ref": "../artifacts.json#/definitions/Expression"
}
},
"required": [
@@ -5448,7 +5448,7 @@
]
},
"DatabricksNotebookActivityTypeProperties": {
- "description": "Databricks Notebook activity properties.",
+ "description": "Databricks notebook activity properties.",
"properties": {
"notebookPath": {
"type": "object",
@@ -5794,15 +5794,15 @@
"properties": {
"dataFlow": {
"description": "Data flow reference.",
- "$ref": "../datafactory.json#/definitions/DataFlowReference"
+ "$ref": "../artifacts.json#/definitions/DataFlowReference"
},
"staging": {
"description": "Staging info for execute data flow activity.",
- "$ref": "../datafactory.json#/definitions/DataFlowStagingInfo"
+ "$ref": "../artifacts.json#/definitions/DataFlowStagingInfo"
},
"integrationRuntime": {
"description": "The integration runtime reference.",
- "$ref": "../datafactory.json#/definitions/IntegrationRuntimeReference"
+ "$ref": "../artifacts.json#/definitions/IntegrationRuntimeReference"
},
"compute": {
"description": "Compute properties for data flow activity.",
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/SparkJobDefinition.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/SparkJobDefinition.json
similarity index 96%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/SparkJobDefinition.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/SparkJobDefinition.json
index 87caabcdaced..32c5484c99cd 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/SparkJobDefinition.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/SparkJobDefinition.json
@@ -1,8 +1,8 @@
{
"swagger": "2.0",
"info": {
- "title": "SynapseClient",
- "version": "2019-11-01-preview"
+ "title": "ArtifactsClient",
+ "version": "2019-06-01-preview"
},
"paths": {},
"definitions": {
@@ -16,7 +16,7 @@
},
"targetBigDataPool": {
"description": "Big data pool reference.",
- "$ref": "./NoteBook.json#/definitions/BigDataPoolReference"
+ "$ref": "./Notebook.json#/definitions/BigDataPoolReference"
},
"requiredSparkVersion": {
"description": "The required Spark version of the application.",
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/SqlScript.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/SqlScript.json
similarity index 97%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/SqlScript.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/SqlScript.json
index ba7c44589f83..ab23bc7f45ff 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/SqlScript.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/SqlScript.json
@@ -1,8 +1,8 @@
{
"swagger": "2.0",
"info": {
- "title": "SynapseClient",
- "version": "2019-11-01-preview"
+ "title": "ArtifactsClient",
+ "version": "2019-06-01-preview"
},
"paths": {},
"definitions": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/Trigger.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Trigger.json
similarity index 97%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/Trigger.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Trigger.json
index f8f4ac9763e2..37376429432c 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/Trigger.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/entityTypes/Trigger.json
@@ -1,8 +1,8 @@
{
"swagger": "2.0",
"info": {
- "title": "SynapseClient",
- "version": "2019-11-01-preview"
+ "title": "ArtifactsClient",
+ "version": "2019-06-01-preview"
},
"paths": {},
"definitions": {
@@ -64,7 +64,7 @@
"pipelines": {
"type": "array",
"items": {
- "$ref": "../datafactory.json#/definitions/TriggerPipelineReference"
+ "$ref": "../artifacts.json#/definitions/TriggerPipelineReference"
},
"description": "Pipelines that need to be started."
}
@@ -268,7 +268,7 @@
},
"linkedService": {
"description": "The Azure Storage linked service reference.",
- "$ref": "../datafactory.json#/definitions/LinkedServiceReference"
+ "$ref": "../artifacts.json#/definitions/LinkedServiceReference"
}
},
"required": [
@@ -351,7 +351,7 @@
],
"properties": {
"pipeline": {
- "$ref": "../datafactory.json#/definitions/TriggerPipelineReference",
+ "$ref": "../artifacts.json#/definitions/TriggerPipelineReference",
"description": "Pipeline for which runs are created when an event is fired for trigger window that is ready."
},
"typeProperties": {
@@ -604,7 +604,7 @@
],
"properties": {
"pipeline": {
- "$ref": "../datafactory.json#/definitions/TriggerPipelineReference",
+ "$ref": "../artifacts.json#/definitions/TriggerPipelineReference",
"description": "Pipeline for which runs are created when all upstream pipelines complete successfully."
},
"typeProperties": {
@@ -614,7 +614,7 @@
"dependsOn": {
"type": "array",
"items": {
- "$ref": "../datafactory.json#/definitions/PipelineReference"
+ "$ref": "../artifacts.json#/definitions/PipelineReference"
},
"description": "Upstream Pipelines."
},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/ActivityRuns_QueryByPipelineRun.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/ActivityRuns_QueryByPipelineRun.json
similarity index 96%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/ActivityRuns_QueryByPipelineRun.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/ActivityRuns_QueryByPipelineRun.json
index 1d0e4bb38f62..f5662d347497 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/ActivityRuns_QueryByPipelineRun.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/ActivityRuns_QueryByPipelineRun.json
@@ -1,14 +1,13 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"pipelineName": "examplePipeline",
"runId": "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b",
"filterParameters": {
"lastUpdatedAfter": "2018-06-16T00:36:44.3345758Z",
"lastUpdatedBefore": "2018-06-16T00:49:48.3686473Z"
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/CreateManagedPrivateEndpoint.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/CreateManagedPrivateEndpoint.json
new file mode 100644
index 000000000000..546fa6e7fe84
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/CreateManagedPrivateEndpoint.json
@@ -0,0 +1,33 @@
+{
+ "parameters": {
+ "workspaceName": "myWorkspace",
+ "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview",
+ "managedVirtualNetworkName": "default",
+ "managedPrivateEndpointName": "myPrivateEndpoint",
+ "parameters": {
+ "properties": {
+ "privateLinkResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/myStorageAccount",
+ "groupId": "blob"
+ }
+ }
+ },
+ "responses": {
+ "202": {
+ "body": {
+ "type": "Microsoft.Synapse/workspaces/managedVirtualNetworks/managedPrivateEndpoints",
+ "name": "myPrivateEndpoint",
+ "properties": {
+ "privateLinkResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/myStorageAccount",
+ "groupId": "blob",
+ "provisioningState": "Provisioning",
+ "connectionState": {
+ "status": "Pending",
+ "description": "",
+ "actionsRequired": ""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_AddDataFlow.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_AddDataFlow.json
similarity index 95%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_AddDataFlow.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_AddDataFlow.json
index 3fe211fe4d36..adf054457fcc 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_AddDataFlow.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_AddDataFlow.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"request": {
"dataFlow": {
"name": "dataflow1",
@@ -90,7 +89,7 @@
},
"sessionId": "f06ed247-9d07-49b2-b05e-2cb4a2fc871e"
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_Create.json
similarity index 87%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_Create.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_Create.json
index 2b8e9fb98143..b1644c6737c5 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_Create.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"request": {
"dataFlowName": "dataflow",
"existingClusterId": "1221221",
@@ -21,7 +20,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"202": {
@@ -31,7 +30,7 @@
"x-ms-ratelimit-remaining-subscription-reads": "14989",
"x-ms-request-id": "2f955e10-c6df-45a7-97d4-81acdb8540cd",
"x-ms-correlation-request-id": "2f955e10-c6df-45a7-97d4-81acdb8540cd",
- "location": "https://exampleWorkspaceName.dev.azuresynapse.net/operationStatuses/dfCreateSession$$229c688c-944c-44ac-b31a-82d50f347154?api-version=2019-11-01-preview"
+ "location": "https://exampleWorkspaceName.dev.azuresynapse.net/operationStatuses/dfCreateSession$$229c688c-944c-44ac-b31a-82d50f347154?api-version=2019-06-01-preview"
}
},
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_Delete.json
similarity index 78%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_Delete.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_Delete.json
index be1da7df23ce..7eecf68ab320 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_Delete.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_Delete.json
@@ -1,11 +1,10 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"request": {
"sessionId": "91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_ExecuteCommand.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_ExecuteCommand.json
similarity index 83%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_ExecuteCommand.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_ExecuteCommand.json
index 45e86f142046..9c88adb10bde 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_ExecuteCommand.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_ExecuteCommand.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"request": {
"dataFlowName": "dataFlowName",
"commandPayload": {
@@ -11,7 +10,7 @@
"commandName": "executePreviewQuery",
"sessionId": "f06ed247-9d07-49b2-b05e-2cb4a2fc871e"
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"202": {
@@ -21,7 +20,7 @@
"x-ms-ratelimit-remaining-subscription-reads": "14989",
"x-ms-request-id": "2f955e10-c6df-45a7-97d4-81acdb8540cd",
"x-ms-correlation-request-id": "2f955e10-c6df-45a7-97d4-81acdb8540cd",
- "location": "https://exampleWorkspaceName.dev.azuresynapse.net/operationResults/dfCommandOutput$$f06ed247-9d07-49b2-b05e-2cb4a2fc871e$$e5328ee7-c524-4207-8ba4-b709010db33d$$ace5eaf0-3e93-45ba-ada3-bf77da321a7b?api-version=2019-11-01-preview"
+ "location": "https://exampleWorkspaceName.dev.azuresynapse.net/operationResults/dfCommandOutput$$f06ed247-9d07-49b2-b05e-2cb4a2fc871e$$e5328ee7-c524-4207-8ba4-b709010db33d$$ace5eaf0-3e93-45ba-ada3-bf77da321a7b?api-version=2019-06-01-preview"
}
},
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_QueryByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_QueryByWorkspace.json
similarity index 87%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_QueryByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_QueryByWorkspace.json
index 8489bf43ada4..fee006e7bfa3 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlowDebugSession_QueryByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlowDebugSession_QueryByWorkspace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Create.json
similarity index 97%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Create.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Create.json
index b7ed67fcc853..d684ba316241 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Create.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"dataFlowName": "exampleDataFlow",
"ifMatch": null,
"dataFlow": {
@@ -45,7 +44,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Delete.json
new file mode 100644
index 000000000000..6adacca27788
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Delete.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "dataFlowName": "exampleDataFlow",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Get.json
similarity index 95%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Get.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Get.json
index 62b69ff0b194..5320762f2207 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Get.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"dataFlowName": "exampleDataFlow",
"ifNoneMatch": "15004c4f-0000-0200-0000-5cbe090e0000",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_ListByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_ListByWorkspace.json
similarity index 95%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_ListByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_ListByWorkspace.json
index 822e92e95dcc..24af45cebd60 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_ListByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_ListByWorkspace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Update.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Update.json
similarity index 97%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Update.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Update.json
index 7dd8812dadde..f3c5fc5a031e 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Update.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DataFlows_Update.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"dataFlowName": "exampleDataFlow",
"ifMatch": null,
"dataFlow": {
@@ -45,7 +44,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Create.json
similarity index 95%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Create.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Create.json
index ac06a1b294d9..20f9a9b778ff 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Create.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"datasetName": "exampleDataset",
"ifMatch": null,
"dataset": {
@@ -34,7 +33,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Delete.json
new file mode 100644
index 000000000000..ecbb3fd65993
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Delete.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "datasetName": "exampleDataset",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Get.json
similarity index 92%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Get.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Get.json
index e144948c6a4a..9ff129e80acb 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Get.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"datasetName": "exampleDataset",
"ifNoneMatch": "15004c4f-0000-0200-0000-5cbe090e0000",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"304": {},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_ListByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_ListByWorkspace.json
similarity index 93%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_ListByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_ListByWorkspace.json
index f447e965203b..9600e887321c 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_ListByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_ListByWorkspace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Update.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Update.json
similarity index 94%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Update.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Update.json
index bbb243a3e705..c17bc775bed6 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Update.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Datasets_Update.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"datasetName": "exampleDataset",
"ifMatch": null,
"dataset": {
@@ -35,7 +34,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DeleteManagedPrivateEndpoint.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DeleteManagedPrivateEndpoint.json
new file mode 100644
index 000000000000..a82531a7ca46
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/DeleteManagedPrivateEndpoint.json
@@ -0,0 +1,13 @@
+{
+ "parameters": {
+ "workspaceName": "myWorkspace",
+ "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview",
+ "managedVirtualNetworkName": "default",
+ "managedPrivateEndpointName": "myPrivateEndpoint"
+ },
+ "responses": {
+ "202": {},
+ "204": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/GetManagedPrivateEndpoint.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/GetManagedPrivateEndpoint.json
new file mode 100644
index 000000000000..cb3551457722
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/GetManagedPrivateEndpoint.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "workspaceName": "myWorkspace",
+ "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview",
+ "managedVirtualNetworkName": "default",
+ "managedPrivateEndpointName": "myPrivateEndpoint"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "type": "Microsoft.Synapse/workspaces/managedVirtualNetworks/managedPrivateEndpoints",
+ "name": "myPrivateEndpoint",
+ "properties": {
+ "privateLinkResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/myStorageAccount",
+ "groupId": "blob",
+ "provisioningState": "Succeeded",
+ "connectionState": {
+ "status": "Approved",
+ "description": "",
+ "actionsRequired": ""
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Create.json
similarity index 92%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Create.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Create.json
index a390ebc6a97a..83813ca2dbd3 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Create.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"linkedServiceName": "exampleLinkedService",
"ifMatch": null,
"linkedService": {
@@ -15,7 +14,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Delete.json
new file mode 100644
index 000000000000..d18fa82e8963
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Delete.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "linkedServiceName": "exampleLinkedService",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Get.json
similarity index 91%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Get.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Get.json
index 0febc6bb3664..a1f58bc731fd 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Get.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"linkedServiceName": "exampleLinkedService",
"ifNoneMatch": "1500474f-0000-0200-0000-5cbe090d0000",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"304": {},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_ListByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_ListByWorkspace.json
similarity index 91%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_ListByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_ListByWorkspace.json
index 2624517adc08..73b500bfb22e 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_ListByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_ListByWorkspace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Update.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Update.json
similarity index 93%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Update.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Update.json
index a5b3f337bcf1..217788a059e1 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Update.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/LinkedServices_Update.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"linkedServiceName": "exampleLinkedService",
"ifMatch": null,
"linkedService": {
@@ -16,7 +15,7 @@
"description": "Example description"
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/ListManagedPrivateEndpoints.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/ListManagedPrivateEndpoints.json
new file mode 100644
index 000000000000..2dfbbc8c6aef
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/ListManagedPrivateEndpoints.json
@@ -0,0 +1,45 @@
+{
+ "parameters": {
+ "workspaceName": "myWorkspace",
+ "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview",
+ "managedVirtualNetworkName": "default"
+ },
+ "responses": {
+ "200": {
+ "body": {
+ "value": [
+ {
+ "type": "Microsoft.Synapse/workspaces/managedVirtualNetworks/managedPrivateEndpoints",
+ "name": "myPrivateEndpoint1",
+ "properties": {
+ "privateLinkResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/myStorageAccount1",
+ "groupId": "blob",
+ "provisioningState": "Succeeded",
+ "connectionState": {
+ "status": "Approved",
+ "description": "",
+ "actionsRequired": ""
+ }
+ }
+ },
+ {
+ "type": "Microsoft.Synapse/workspaces/managedVirtualNetworks/managedPrivateEndpoints",
+ "name": "myPrivateEndpoint2",
+ "properties": {
+ "privateLinkResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/accounts/myStorageAccount2",
+ "groupId": "blob",
+ "provisioningState": "Succeeded",
+ "connectionState": {
+ "status": "Pending",
+ "description": "",
+ "actionsRequired": ""
+ }
+ }
+ }
+ ],
+ "nextLink": ""
+ }
+ }
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Create.json
similarity index 88%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Create.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Create.json
index 6e096bebb3de..6dfcafc232ee 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Create.json
@@ -1,12 +1,11 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "noteBookName": "exampleNoteBook",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "notebookName": "exampleNotebook",
"ifMatch": null,
- "noteBook": {
+ "Notebook": {
"properties": {
- "description": "A sample notebook",
+ "description": "A sample Notebook",
"nbformat": 4,
"nbformat_minor": 2,
"bigDataPool": {
@@ -54,7 +53,7 @@
]
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
@@ -66,11 +65,11 @@
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264"
},
"body": {
- "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/notebooks/exampleNoteBook",
- "name": "exampleNoteBook",
- "type": "Microsoft.Synapse/workspaces/notebooks",
+ "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/Notebooks/exampleNotebook",
+ "name": "exampleNotebook",
+ "type": "Microsoft.Synapse/workspaces/Notebooks",
"properties": {
- "description": "A sample notebook",
+ "description": "A sample Notebook",
"nbformat": 4,
"nbformat_minor": 2,
"bigDataPool": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Delete.json
new file mode 100644
index 000000000000..58395fa417a1
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Delete.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "notebookName": "exampleNotebook",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Get.json
similarity index 84%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Get.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Get.json
index 1231f1525ebb..c60e7f3695a6 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Get.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "noteBookName": "exampleNoteBook",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "notebookName": "exampleNotebook",
"ifNoneMatch": "1500504f-0000-0200-0000-5cbe090f0000",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
@@ -16,11 +15,11 @@
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264"
},
"body": {
- "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/notebooks/exampleNoteBook",
- "name": "exampleNoteBook",
- "type": "Microsoft.Synapse/workspaces/notebooks",
+ "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/notebooks/exampleNotebook",
+ "name": "exampleNotebook",
+ "type": "Microsoft.Synapse/workspaces/Notebooks",
"properties": {
- "description": "A sample notebook",
+ "description": "A sample Notebook",
"nbformat": 4,
"nbformat_minor": 2,
"bigDataPool": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_ListSummaryByWorkSpace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_ListByWorkspace.json
similarity index 86%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_ListSummaryByWorkSpace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_ListByWorkspace.json
index b45c79479777..e339a9103d65 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_ListSummaryByWorkSpace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_ListByWorkspace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
@@ -16,11 +15,11 @@
"body": {
"value": [
{
- "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/notebooks/exampleNoteBook",
- "name": "exampleNoteBook",
- "type": "Microsoft.Synapse/workspaces/notebooks",
+ "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/notebooks/exampleNotebook",
+ "name": "exampleNotebook",
+ "type": "Microsoft.Synapse/workspaces/Notebooks",
"properties": {
- "description": "A sample notebook",
+ "description": "A sample Notebook",
"nbformat": 4,
"nbformat_minor": 2,
"bigDataPool": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_ListByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_ListSummaryByWorkSpace.json
similarity index 86%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_ListByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_ListSummaryByWorkSpace.json
index b45c79479777..e339a9103d65 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_ListByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_ListSummaryByWorkSpace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
@@ -16,11 +15,11 @@
"body": {
"value": [
{
- "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/notebooks/exampleNoteBook",
- "name": "exampleNoteBook",
- "type": "Microsoft.Synapse/workspaces/notebooks",
+ "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/notebooks/exampleNotebook",
+ "name": "exampleNotebook",
+ "type": "Microsoft.Synapse/workspaces/Notebooks",
"properties": {
- "description": "A sample notebook",
+ "description": "A sample Notebook",
"nbformat": 4,
"nbformat_minor": 2,
"bigDataPool": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Update.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Update.json
similarity index 90%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Update.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Update.json
index 3add275201f5..c84e1a5f1741 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Update.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Notebooks_Update.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "noteBookName": "exampleNoteBook",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "notebookName": "exampleNotebook",
"ifMatch": null,
- "noteBook": {
+ "Notebook": {
"properties": {
"description": "Modified description",
"nbformat": 4,
@@ -54,7 +53,7 @@
]
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
@@ -66,9 +65,9 @@
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264"
},
"body": {
- "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/notebooks/exampleNoteBook",
- "name": "exampleNoteBook",
- "type": "Microsoft.Synapse/workspaces/notebooks",
+ "id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/notebooks/exampleNotebook",
+ "name": "exampleNotebook",
+ "type": "Microsoft.Synapse/workspaces/Notebooks",
"properties": {
"description": "Modified description",
"nbformat": 4,
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_Cancel.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_Cancel.json
new file mode 100644
index 000000000000..223ee4eea674
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_Cancel.json
@@ -0,0 +1,10 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "runId": "16ac5348-ff82-4f95-a80d-638c1d47b721",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_Get.json
similarity index 89%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_Get.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_Get.json
index c70c28bcd545..23b48073aed1 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_Get.json
@@ -1,9 +1,8 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"runId": "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_QueryByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_QueryByWorkspace.json
similarity index 94%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_QueryByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_QueryByWorkspace.json
index 729a2293c584..c93f18b8301c 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_QueryByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/PipelineRuns_QueryByWorkspace.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"filterParameters": {
"lastUpdatedAfter": "2018-06-16T00:36:44.3345758Z",
"lastUpdatedBefore": "2018-06-16T00:49:48.3686473Z",
@@ -15,7 +14,7 @@
}
]
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Create.json
similarity index 97%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Create.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Create.json
index aa5d08c13e96..399eb460bf34 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Create.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"pipelineName": "examplePipeline",
"ifMatch": null,
"pipeline": {
@@ -78,7 +77,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_CreateRun.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_CreateRun.json
similarity index 83%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_CreateRun.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_CreateRun.json
index 9ccab2c1f7a4..7c4ec522a5a3 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_CreateRun.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_CreateRun.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"pipelineName": "examplePipeline",
"referencePipelineRunId": null,
"parameters": {
@@ -9,7 +8,7 @@
"exampleoutput.csv"
]
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Delete.json
new file mode 100644
index 000000000000..4a7573f09103
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Delete.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "pipelineName": "examplePipeline",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Get.json
similarity index 95%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Get.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Get.json
index 5336cd82dc2b..48e8f695574e 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Get.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"pipelineName": "examplePipeline",
"ifNoneMatch": "1500504f-0000-0200-0000-5cbe090f0000",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"304": {},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_ListByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_ListByWorkspace.json
similarity index 95%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_ListByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_ListByWorkspace.json
index d5ecfa79951a..e9b5dfc8816d 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_ListByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_ListByWorkspace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Update.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Update.json
similarity index 97%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Update.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Update.json
index 831858484fd3..b5718b15aa75 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Update.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Pipelines_Update.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"pipelineName": "examplePipeline",
"ifMatch": null,
"pipeline": {
@@ -65,7 +64,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Create.json
similarity index 95%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Create.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Create.json
index 6572cbb38414..d969cd11b3e3 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Create.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"sparkJobDefinitionName": "exampleSparkJobDefinition",
"ifMatch": null,
"sparkJobDefinition": {
@@ -32,7 +31,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Debug.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Debug.json
similarity index 97%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Debug.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Debug.json
index e274b30ea43a..d470f6b59a75 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Debug.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Debug.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"sparkJobDefinitionAzureResource": {
"properties": {
"description": "A sample spark job definition",
@@ -23,7 +22,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"202": {
@@ -33,7 +32,7 @@
"x-ms-ratelimit-remaining-subscription-writes": "1192",
"x-ms-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
- "location": "https://exampleWorkspaceName.dev.azuresynapse.net/operationResults/arcadiaSpark$$exampleBigDataPool$$batch$$1?api-version=2019-11-01-preview"
+ "location": "https://exampleWorkspaceName.dev.azuresynapse.net/operationResults/arcadiaSpark$$exampleBigDataPool$$batch$$1?api-version=2019-06-01-preview"
},
"body": {
"livyInfo": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Delete.json
similarity index 51%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Delete.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Delete.json
index 5ebb9f424a2a..37e6bcc064e8 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Delete.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Delete.json
@@ -1,9 +1,8 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"sparkJobDefinitionName": "exampleSparkJobDefinition",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Execute.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Execute.json
similarity index 97%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Execute.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Execute.json
index 0c8aabb09867..8ba9acd78875 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Execute.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Execute.json
@@ -1,9 +1,8 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"sparkJobDefinitionName": "exampleSparkJobDefinition",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"202": {
@@ -13,7 +12,7 @@
"x-ms-ratelimit-remaining-subscription-writes": "1192",
"x-ms-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
- "location": "https://exampleWorkspaceName.dev.azuresynapse.net/operationResults/arcadiaSpark$$exampleBigDataPool$$batch$$1?api-version=2019-11-01-preview"
+ "location": "https://exampleWorkspaceName.dev.azuresynapse.net/operationResults/arcadiaSpark$$exampleBigDataPool$$batch$$1?api-version=2019-06-01-preview"
},
"body": {
"livyInfo": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Get.json
similarity index 93%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Get.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Get.json
index d36ba238c79a..fb4857b4d515 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Get.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"sparkJobDefinitionName": "exampleSparkJobDefinition",
"ifNoneMatch": "1500504f-0000-0200-0000-5cbe090f0000",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_ListByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_ListByWorkspace.json
similarity index 93%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_ListByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_ListByWorkspace.json
index f05b845f65ba..1e021182a881 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_ListByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_ListByWorkspace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Update.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Update.json
similarity index 95%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Update.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Update.json
index 005764c7dc47..61f620544311 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SparkJobDefinitions_Update.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SparkJobDefinitions_Update.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"sparkJobDefinitionName": "exampleSparkJobDefinition",
"ifMatch": null,
"sparkJobDefinition": {
@@ -32,7 +31,7 @@
}
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Create.json
similarity index 93%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Create.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Create.json
index 5dc6861614b9..aa96d82b50df 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Create.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"sqlScriptName": "exampleSqlScript",
"ifMatch": null,
"sqlScript": {
@@ -20,7 +19,7 @@
"type": "SqlQuery"
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Delete.json
new file mode 100644
index 000000000000..b01abf40c85b
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Delete.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "sqlScriptName": "exampleSqlScript",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Get.json
similarity index 91%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Get.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Get.json
index 829447fd448f..58b0d64cc81b 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Get.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"sqlScriptName": "exampleSqlScript",
"ifNoneMatch": "1500504f-0000-0200-0000-5cbe090f0000",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"304": {},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_ListByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_ListByWorkspace.json
similarity index 91%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_ListByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_ListByWorkspace.json
index c999df7b1828..7625964f4a73 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_ListByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_ListByWorkspace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Update.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Update.json
similarity index 92%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Update.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Update.json
index 0c377a063cbd..cd482ba8c7e9 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Update.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/SqlScripts_Update.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"sqlScriptName": "exampleSqlScript",
"ifMatch": null,
"sqlScript": {
@@ -20,7 +19,7 @@
"type": "SqlQuery"
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/TriggerRuns_QueryByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/TriggerRuns_QueryByWorkspace.json
similarity index 91%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/TriggerRuns_QueryByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/TriggerRuns_QueryByWorkspace.json
index 48c13c4038c3..e90f9a56ffbf 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/TriggerRuns_QueryByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/TriggerRuns_QueryByWorkspace.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"filterParameters": {
"lastUpdatedAfter": "2018-06-16T00:36:44.3345758Z",
"lastUpdatedBefore": "2018-06-16T00:49:48.3686473Z",
@@ -15,7 +14,7 @@
}
]
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/TriggerRuns_Rerun.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/TriggerRuns_Rerun.json
similarity index 79%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/TriggerRuns_Rerun.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/TriggerRuns_Rerun.json
index edd3551ad448..169d70a4e4b5 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/TriggerRuns_Rerun.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/TriggerRuns_Rerun.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"triggerName": "exampleTrigger",
"runId": "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Create.json
similarity index 94%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Create.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Create.json
index d7210bda0148..c93a8820594c 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Create.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"triggerName": "exampleTrigger",
"ifMatch": null,
"trigger": {
@@ -31,7 +30,7 @@
]
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Delete.json
new file mode 100644
index 000000000000..b3a88c1cd75e
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Delete.json
@@ -0,0 +1,11 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "triggerName": "exampleTrigger",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {},
+ "204": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Get.json
similarity index 92%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Get.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Get.json
index bc4d1d09b735..d0a33e28322e 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Get.json
@@ -1,10 +1,9 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"triggerName": "exampleTrigger",
"ifNoneMatch": "1500544f-0000-0200-0000-5cbe09100000",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"304": {},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_GetEventSubscriptionStatus.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_GetEventSubscriptionStatus.json
similarity index 60%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_GetEventSubscriptionStatus.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_GetEventSubscriptionStatus.json
index 89e4b4c407c0..b53d893ae8dc 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_GetEventSubscriptionStatus.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_GetEventSubscriptionStatus.json
@@ -1,9 +1,8 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"triggerName": "exampleTrigger",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_ListByWorkspace.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_ListByWorkspace.json
similarity index 93%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_ListByWorkspace.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_ListByWorkspace.json
index ec31d1d1ad90..cd9b246ab465 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_ListByWorkspace.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_ListByWorkspace.json
@@ -1,8 +1,7 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "api-version": "2019-11-01-preview"
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Start.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Start.json
new file mode 100644
index 000000000000..b4062d3fb605
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Start.json
@@ -0,0 +1,10 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "triggerName": "exampleTrigger",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Stop.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Stop.json
new file mode 100644
index 000000000000..b4062d3fb605
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Stop.json
@@ -0,0 +1,10 @@
+{
+ "parameters": {
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
+ "triggerName": "exampleTrigger",
+ "api-version": "2019-06-01-preview"
+ },
+ "responses": {
+ "200": {}
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_SubscribeToEvents.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_SubscribeToEvents.json
similarity index 76%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_SubscribeToEvents.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_SubscribeToEvents.json
index 012cdd41ae33..6fc40f69c0fb 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_SubscribeToEvents.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_SubscribeToEvents.json
@@ -1,14 +1,13 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"triggerName": "exampleTrigger",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"202": {
"headers": {
- "Location": "https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/triggers/exampleTrigger/getEventSubscriptionStatus?api-version=2019-11-01-preview"
+ "Location": "https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/triggers/exampleTrigger/getEventSubscriptionStatus?api-version=2019-06-01-preview"
}
},
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_UnsubscribeFromEvents.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_UnsubscribeFromEvents.json
similarity index 76%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_UnsubscribeFromEvents.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_UnsubscribeFromEvents.json
index c3df05a1a218..d2d6e6b8e538 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_UnsubscribeFromEvents.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_UnsubscribeFromEvents.json
@@ -1,14 +1,13 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"triggerName": "exampleTrigger",
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"202": {
"headers": {
- "Location": "https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/triggers/exampleTrigger/getEventSubscriptionStatus?api-version=2019-11-01-preview"
+ "Location": "https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/triggers/exampleTrigger/getEventSubscriptionStatus?api-version=2019-06-01-preview"
}
},
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Update.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Update.json
similarity index 94%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Update.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Update.json
index ae377e99c8c9..a86583945183 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Update.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/examples/Triggers_Update.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"triggerName": "exampleTrigger",
"ifMatch": null,
"trigger": {
@@ -32,7 +31,7 @@
"description": "Example description"
}
},
- "api-version": "2019-11-01-preview"
+ "api-version": "2019-06-01-preview"
},
"responses": {
"200": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/managedPrivateEndpoints.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/managedPrivateEndpoints.json
new file mode 100644
index 000000000000..8322fd96043d
--- /dev/null
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/managedPrivateEndpoints.json
@@ -0,0 +1,299 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "2019-06-01-preview",
+ "title": "VnetClient"
+ },
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{workspaceName}.{SynapseDnsSuffix}",
+ "parameters": [
+ {
+ "name": "workspaceName",
+ "description": "The name of the workspace to execute operations on.",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true
+ },
+ {
+ "$ref": "#/parameters/SynapseDnsSuffixInPath"
+ }
+ ]
+ },
+ "schemes": [
+ "https"
+ ],
+ "paths": {
+ "/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}": {
+ "get": {
+ "tags": [
+ "ManagedPrivateEndpoints"
+ ],
+ "operationId": "ManagedPrivateEndpoints_Get",
+ "description": "Get Managed Private Endpoints",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ManagedVirtualNetworkNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ManagedPrivateEndpointNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "schema": {
+ "$ref": "#/definitions/ManagedPrivateEndpoint"
+ },
+ "description": ""
+ }
+ },
+ "x-ms-examples": {
+ "Get a managed private endpoint": {
+ "$ref": "./examples/GetManagedPrivateEndpoint.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "ManagedPrivateEndpoints"
+ ],
+ "operationId": "ManagedPrivateEndpoints_Create",
+ "description": "Create Managed Private Endpoints",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ManagedVirtualNetworkNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ManagedPrivateEndpointNameParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "schema": {
+ "$ref": "#/definitions/ManagedPrivateEndpoint"
+ },
+ "description": ""
+ }
+ },
+ "x-ms-examples": {
+ "Create a managed private endpoint": {
+ "$ref": "./examples/CreateManagedPrivateEndpoint.json"
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "ManagedPrivateEndpoints"
+ ],
+ "operationId": "ManagedPrivateEndpoints_Delete",
+ "description": "Delete Managed Private Endpoints",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ManagedVirtualNetworkNameParameter"
+ },
+ {
+ "$ref": "#/parameters/ManagedPrivateEndpointNameParameter"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Accepted"
+ },
+ "204": {
+ "description": "Already deleted"
+ }
+ },
+ "x-ms-examples": {
+ "Delete a managed private endpoint": {
+ "$ref": "./examples/DeleteManagedPrivateEndpoint.json"
+ }
+ }
+ }
+ },
+ "/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints": {
+ "get": {
+ "tags": [
+ "ManagedPrivateEndpoints"
+ ],
+ "operationId": "ManagedPrivateEndpoints_List",
+ "description": "List Managed Private Endpoints",
+ "consumes": [],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ManagedVirtualNetworkNameParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "schema": {
+ "$ref": "#/definitions/ManagedPrivateEndpointListResponse"
+ },
+ "description": ""
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "nextLink"
+ },
+ "x-ms-examples": {
+ "List managed private endpoints": {
+ "$ref": "./examples/ListManagedPrivateEndpoints.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ManagedPrivateEndpointListResponse": {
+ "description": "A list of managed private endpoints",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "array",
+ "description": "List of managed private endpoints",
+ "items": {
+ "$ref": "#/definitions/ManagedPrivateEndpoint"
+ }
+ },
+ "nextLink": {
+ "description": "The link to the next page of results, if any remaining results exist.",
+ "type": "string",
+ "readOnly": true
+ }
+ }
+ },
+ "ManagedPrivateEndpoint": {
+ "description": "Managed private endpoint",
+ "type": "object",
+ "properties": {
+ "id": {
+ "readOnly": true,
+ "type": "string",
+ "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
+ },
+ "name": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The name of the resource"
+ },
+ "type": {
+ "readOnly": true,
+ "type": "string",
+ "description": "The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts."
+ },
+ "properties": {
+ "$ref": "#/definitions/ManagedPrivateEndpointProperties",
+ "description": "Managed private endpoint properties"
+ }
+ }
+ },
+ "ManagedPrivateEndpointProperties": {
+ "description": "Properties of a managed private endpoint",
+ "type": "object",
+ "properties": {
+ "privateLinkResourceId": {
+ "description": "The ARM resource ID of the resource to which the managed private endpoint is created",
+ "type": "string"
+ },
+ "groupId": {
+ "description": "The groupId to which the managed private endpoint is created",
+ "type": "string"
+ },
+ "provisioningState": {
+ "description": "The managed private endpoint provisioning state",
+ "type": "string",
+ "readOnly": true
+ },
+ "connectionState": {
+ "description": "The managed private endpoint connection state",
+ "$ref": "#/definitions/ManagedPrivateEndpointConnectionState"
+ },
+ "isReserved": {
+ "description": "Denotes whether the managed private endpoint is reserved",
+ "type": "boolean",
+ "readOnly": true
+ }
+ }
+ },
+ "ManagedPrivateEndpointConnectionState": {
+ "description": "The connection state of a managed private endpoint",
+ "type": "object",
+ "properties": {
+ "status": {
+ "description": "The approval status",
+ "type": "string",
+ "readOnly": true
+ },
+ "description": {
+ "description": "The managed private endpoint description",
+ "type": "string"
+ },
+ "actionsRequired": {
+ "description": "The actions required on the managed private endpoint",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The Synapse client API Version."
+ },
+ "SynapseDnsSuffixInPath": {
+ "name": "SynapseDnsSuffix",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "default": "dev.azuresynapse.net",
+ "x-ms-skip-url-encoding": true,
+ "description": "Gets the DNS suffix used as the base for all Synapse service requests.",
+ "x-ms-parameter-location": "client"
+ },
+ "ManagedVirtualNetworkNameParameter": {
+ "name": "managedVirtualNetworkName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Managed virtual network name",
+ "x-ms-parameter-location": "method"
+ },
+ "ManagedPrivateEndpointNameParameter": {
+ "name": "managedPrivateEndpointName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "Managed private endpoint name",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Delete.json
deleted file mode 100644
index c17410917a90..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/DataFlows_Delete.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "dataFlowName": "exampleDataFlow",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {},
- "204": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Delete.json
deleted file mode 100644
index e82de485176e..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Datasets_Delete.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "datasetName": "exampleDataset",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {},
- "204": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Delete.json
deleted file mode 100644
index e4cc97bbd8e9..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/LinkedServices_Delete.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "linkedServiceName": "exampleLinkedService",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {},
- "204": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Delete.json
deleted file mode 100644
index 5b9d485f645f..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/NoteBooks_Delete.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "noteBookName": "exampleNoteBook",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {},
- "204": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_Cancel.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_Cancel.json
deleted file mode 100644
index 240fccae8866..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/PipelineRuns_Cancel.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "runId": "16ac5348-ff82-4f95-a80d-638c1d47b721",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Delete.json
deleted file mode 100644
index cb459371f543..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Pipelines_Delete.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "pipelineName": "examplePipeline",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {},
- "204": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Delete.json
deleted file mode 100644
index e67581c0ef4d..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/SqlScripts_Delete.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "sqlScriptName": "exampleSqlScript",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {},
- "204": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Delete.json
deleted file mode 100644
index 430e2cfba554..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Delete.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "triggerName": "exampleTrigger",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {},
- "204": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Start.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Start.json
deleted file mode 100644
index 8d61a0a08228..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Start.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "triggerName": "exampleTrigger",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Stop.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Stop.json
deleted file mode 100644
index 8d61a0a08228..000000000000
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/adf/examples/Triggers_Stop.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
- "triggerName": "exampleTrigger",
- "api-version": "2019-11-01-preview"
- },
- "responses": {
- "200": {}
- }
-}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Create.json
index c00010474fcd..55db4134cc83 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Create.json
@@ -1,11 +1,10 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"detailed": true,
- "livyRequest": {
+ "sparkBatchJobOptions": {
"tags": null,
"artifactId": "fill in here",
"name": "jobname",
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Delete.json
index 2d724570df6f..4065e60cf5ca 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Delete.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Delete.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"batchId": 123,
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Get.json
index bf6362b33a76..2efdc6815217 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_Get.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"batchId": 123,
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_List.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_List.json
index a112d816c54d..008b004dfb27 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_List.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkBatch_List.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"from": 0,
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Create.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Create.json
index 40aa196c6d1c..392544470614 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Create.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Create.json
@@ -1,11 +1,10 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"detailed": true,
- "livyRequest": {
+ "SparkSessionOptions": {
"tags": null,
"artifactId": "fill in here",
"name": "jobname",
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_CreateStatement.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_CreateStatement.json
index a5fd2a5fc372..1c9c2cef0441 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_CreateStatement.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_CreateStatement.json
@@ -1,11 +1,10 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"sessionId": 123,
- "livyRequest": {
+ "SparkStatementOptions": {
"code": "fill in here",
"kind": "fill in here"
}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Delete.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Delete.json
index d74f7b31bdc8..50dcbafe48eb 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Delete.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Delete.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"sessionId": 123,
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_DeleteStatement.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_DeleteStatement.json
index 09f511d90fbd..0f4624035909 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_DeleteStatement.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_DeleteStatement.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"sessionId": 123,
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Get.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Get.json
index c7a828d05e7f..56fb7dd2ae81 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Get.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_Get.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"sessionId": 123,
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_GetStatement.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_GetStatement.json
index d45676affe42..86d5cb20c081 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_GetStatement.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_GetStatement.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"sessionId": 123,
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_List.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_List.json
index a112d816c54d..008b004dfb27 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_List.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_List.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"from": 0,
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_ListStatements.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_ListStatements.json
index e59988a5549f..4603d8c5feef 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_ListStatements.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_ListStatements.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"sessionId": 123
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_ResetTimeout.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_ResetTimeout.json
index b9406468d90b..f6cdbf056b23 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_ResetTimeout.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/SparkFrontend_SparkSession_ResetTimeout.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "myWorkspace",
- "SynapseDnsSuffix": "dev.azuresynapse.net",
+ "endpoint": "myWorkspace.dev.azuresynapse.net",
"livyApiVersion": "2019-11-01-preview",
"sparkPoolName": "mySparkPool",
"sessionId": 123
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/sparkFrontend.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/sparkJob.json
similarity index 75%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/sparkFrontend.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/sparkJob.json
index 537b1b03a4df..7f1d16f415b7 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/sparkFrontend.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/sparkJob.json
@@ -2,24 +2,23 @@
"swagger": "2.0",
"info": {
"version": "2019-11-01-preview",
- "title": "SynapseClient",
+ "title": "SparkClient",
"x-ms-code-generation-settings": {
"useDateTimeOffset": true
}
},
"x-ms-parameterized-host": {
- "hostTemplate": "{workspaceName}.{SynapseDnsSuffix}",
+ "hostTemplate": "{endpoint}/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}",
+ "useSchemePrefix": false,
"parameters": [
{
- "name": "workspaceName",
- "description": "The name of the workspace to execute operations on.",
- "required": true,
- "type": "string",
- "in": "path",
- "x-ms-skip-url-encoding": true
+ "$ref": "#/parameters/Endpoint"
},
{
- "$ref": "#/parameters/SynapseDnsSuffixInPath"
+ "$ref": "#/parameters/LivyApiVersion"
+ },
+ {
+ "$ref": "#/parameters/SparkPoolName"
}
]
},
@@ -33,13 +32,13 @@
"application/json"
],
"paths": {
- "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches": {
+ "/batches": {
"get": {
"tags": [
"SparkBatch"
],
"description": "List all spark batch jobs which are running under a particular spark pool.",
- "operationId": "SparkBatch_List",
+ "operationId": "SparkBatch_GetSparkBatchJobs",
"x-ms-examples": {
"List all spark batch jobs": {
"$ref": "./examples/SparkFrontend_SparkBatch_List.json"
@@ -52,16 +51,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "from",
"in": "query",
@@ -90,7 +79,7 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/ExtendedLivyListBatchResponse"
+ "$ref": "#/definitions/SparkBatchJobCollection"
}
}
}
@@ -100,7 +89,7 @@
"SparkBatch"
],
"description": "Create new spark batch job.",
- "operationId": "SparkBatch_Create",
+ "operationId": "SparkBatch_CreateSparkBatchJob",
"x-ms-examples": {
"Create new spark batch job.": {
"$ref": "./examples/SparkFrontend_SparkBatch_Create.json"
@@ -113,16 +102,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "detailed",
"in": "query",
@@ -131,12 +110,12 @@
"type": "boolean"
},
{
- "name": "livyRequest",
+ "name": "sparkBatchJobOptions",
"in": "body",
"description": "Livy compatible batch job request payload.",
"required": true,
"schema": {
- "$ref": "#/definitions/ExtendedLivyBatchRequest"
+ "$ref": "#/definitions/sparkBatchJobOptions"
}
}
],
@@ -144,19 +123,19 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/ExtendedLivyBatchResponse"
+ "$ref": "#/definitions/SparkBatchJob"
}
}
}
}
},
- "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/batches/{batchId}": {
+ "/batches/{batchId}": {
"get": {
"tags": [
"SparkBatch"
],
"description": "Gets a single spark batch job.",
- "operationId": "SparkBatch_Get",
+ "operationId": "SparkBatch_GetSparkBatchJob",
"x-ms-examples": {
"Gets a single spark batch job.": {
"$ref": "./examples/SparkFrontend_SparkBatch_Get.json"
@@ -169,16 +148,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "batchId",
"in": "path",
@@ -199,7 +168,7 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/ExtendedLivyBatchResponse"
+ "$ref": "#/definitions/SparkBatchJob"
}
}
}
@@ -209,7 +178,7 @@
"SparkBatch"
],
"description": "Cancels a running spark batch job.",
- "operationId": "SparkBatch_Delete",
+ "operationId": "SparkBatch_CancelSparkBatchJob",
"x-ms-examples": {
"Cancels a running spark batch job.": {
"$ref": "./examples/SparkFrontend_SparkBatch_Delete.json"
@@ -222,16 +191,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "batchId",
"in": "path",
@@ -248,13 +207,13 @@
}
}
},
- "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions": {
+ "/sessions": {
"get": {
"tags": [
"SparkSession"
],
"description": "List all spark sessions which are running under a particular spark pool.",
- "operationId": "SparkSession_List",
+ "operationId": "SparkSession_GetSparkSessions",
"x-ms-examples": {
"List all spark session jobs": {
"$ref": "./examples/SparkFrontend_SparkSession_List.json"
@@ -267,16 +226,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "from",
"in": "query",
@@ -305,7 +254,7 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/ExtendedLivyListSessionResponse"
+ "$ref": "#/definitions/SparkSessionCollection"
}
}
}
@@ -315,7 +264,7 @@
"SparkSession"
],
"description": "Create new spark session.",
- "operationId": "SparkSession_Create",
+ "operationId": "SparkSession_CreateSparkSession",
"x-ms-examples": {
"Create new spark session.": {
"$ref": "./examples/SparkFrontend_SparkSession_Create.json"
@@ -328,16 +277,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "detailed",
"in": "query",
@@ -346,12 +285,12 @@
"type": "boolean"
},
{
- "name": "livyRequest",
+ "name": "SparkSessionOptions",
"in": "body",
"description": "Livy compatible batch job request payload.",
"required": true,
"schema": {
- "$ref": "#/definitions/ExtendedLivySessionRequest"
+ "$ref": "#/definitions/SparkSessionOptions"
}
}
],
@@ -359,19 +298,19 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/ExtendedLivySessionResponse"
+ "$ref": "#/definitions/SparkSession"
}
}
}
}
},
- "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}": {
+ "/sessions/{sessionId}": {
"get": {
"tags": [
"SparkSession"
],
"description": "Gets a single spark session.",
- "operationId": "SparkSession_Get",
+ "operationId": "SparkSession_GetSparkSession",
"x-ms-examples": {
"Gets a single spark session.": {
"$ref": "./examples/SparkFrontend_SparkSession_Get.json"
@@ -384,16 +323,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "sessionId",
"in": "path",
@@ -414,7 +343,7 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/ExtendedLivySessionResponse"
+ "$ref": "#/definitions/SparkSession"
}
}
}
@@ -424,7 +353,7 @@
"SparkSession"
],
"description": "Cancels a running spark session.",
- "operationId": "SparkSession_Delete",
+ "operationId": "SparkSession_CancelSparkSession",
"x-ms-examples": {
"Cancels a running spark session.": {
"$ref": "./examples/SparkFrontend_SparkSession_Delete.json"
@@ -437,16 +366,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\"\r\n targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "sessionId",
"in": "path",
@@ -463,13 +382,13 @@
}
}
},
- "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/reset-timeout": {
+ "/sessions/{sessionId}/reset-timeout": {
"put": {
"tags": [
"SparkSession"
],
"description": "Sends a keep alive call to the current session to reset the session timeout.",
- "operationId": "SparkSession_ResetTimeout",
+ "operationId": "SparkSession_ResetSparkSessionTimeout",
"x-ms-examples": {
"Reset the session timeout.": {
"$ref": "./examples/SparkFrontend_SparkSession_ResetTimeout.json"
@@ -482,16 +401,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\"\r\n targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "sessionId",
"in": "path",
@@ -508,13 +417,13 @@
}
}
},
- "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements": {
+ "/sessions/{sessionId}/statements": {
"get": {
"tags": [
"SparkSession"
],
"description": "Gets a list of statements within a spark session.",
- "operationId": "SparkSession_ListStatements",
+ "operationId": "SparkSession_GetSparkStatements",
"x-ms-examples": {
"Gets a list of statements within a spark session.": {
"$ref": "./examples/SparkFrontend_SparkSession_ListStatements.json"
@@ -527,16 +436,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "sessionId",
"in": "path",
@@ -550,7 +449,7 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/LivyStatementsResponseBody"
+ "$ref": "#/definitions/SparkStatementCollection"
}
}
}
@@ -560,7 +459,7 @@
"SparkSession"
],
"description": "Create statement within a spark session.",
- "operationId": "SparkSession_CreateStatement",
+ "operationId": "SparkSession_CreateSparkStatement",
"x-ms-examples": {
"Create statement within a spark session.": {
"$ref": "./examples/SparkFrontend_SparkSession_CreateStatement.json"
@@ -573,16 +472,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "sessionId",
"in": "path",
@@ -592,12 +481,12 @@
"format": "int32"
},
{
- "name": "livyRequest",
+ "name": "SparkStatementOptions",
"in": "body",
"description": "Livy compatible batch job request payload.",
"required": true,
"schema": {
- "$ref": "#/definitions/LivyStatementRequestBody"
+ "$ref": "#/definitions/SparkStatementOptions"
}
}
],
@@ -605,19 +494,19 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/LivyStatementResponseBody"
+ "$ref": "#/definitions/SparkStatement"
}
}
}
}
},
- "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements/{statementId}": {
+ "/sessions/{sessionId}/statements/{statementId}": {
"get": {
"tags": [
"SparkSession"
],
"description": "Gets a single statement within a spark session.",
- "operationId": "SparkSession_GetStatement",
+ "operationId": "SparkSession_GetSparkStatement",
"x-ms-examples": {
"Gets a single statement within a spark session.": {
"$ref": "./examples/SparkFrontend_SparkSession_GetStatement.json"
@@ -630,16 +519,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "sessionId",
"in": "path",
@@ -661,19 +540,19 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/LivyStatementResponseBody"
+ "$ref": "#/definitions/SparkStatement"
}
}
}
}
},
- "/livyApi/versions/{livyApiVersion}/sparkPools/{sparkPoolName}/sessions/{sessionId}/statements/{statementId}/cancel": {
+ "/sessions/{sessionId}/statements/{statementId}/cancel": {
"post": {
"tags": [
"SparkSession"
],
"description": "Kill a statement within a session.",
- "operationId": "SparkSession_DeleteStatement",
+ "operationId": "SparkSession_CancelSparkStatement",
"x-ms-examples": {
"Kill a statement within a session.": {
"$ref": "./examples/SparkFrontend_SparkSession_DeleteStatement.json"
@@ -686,16 +565,6 @@
"application/json"
],
"parameters": [
- {
- "$ref": "#/parameters/LivyApiVersionInPath"
- },
- {
- "name": "sparkPoolName",
- "in": "path",
- "description": "Name of the spark pool. \"ondemand\" targets the ondemand pool.",
- "required": true,
- "type": "string"
- },
{
"name": "sessionId",
"in": "path",
@@ -717,7 +586,7 @@
"200": {
"description": "Success",
"schema": {
- "$ref": "#/definitions/LivyStatementCancellationResponse"
+ "$ref": "#/definitions/SparkStatementCancellationResult"
}
}
}
@@ -725,49 +594,63 @@
}
},
"definitions": {
- "ExtendedLivyListBatchResponse": {
+ "SparkBatchJobCollection": {
"type": "object",
"properties": {
"from": {
"format": "int32",
- "type": "integer"
+ "type": "integer",
+ "description": "The start index of fetched sessions."
},
"total": {
"format": "int32",
- "type": "integer"
+ "type": "integer",
+ "description": "Number of sessions fetched."
},
"sessions": {
"uniqueItems": false,
"type": "array",
+ "description": "Batch list",
"items": {
- "$ref": "#/definitions/ExtendedLivyBatchResponse"
+ "$ref": "#/definitions/SparkBatchJob"
}
}
- }
+ },
+ "required": [
+ "from",
+ "total"
+ ],
+ "description": "Response for batch list operation."
},
- "ExtendedLivyBatchResponse": {
+ "SparkBatchJob": {
"type": "object",
"properties": {
"livyInfo": {
- "$ref": "#/definitions/LivyBatchStateInformation"
+ "$ref": "#/definitions/SparkBatchJobState"
},
"name": {
- "type": "string"
+ "type": "string",
+ "description": "The batch name."
},
"workspaceName": {
- "type": "string"
+ "type": "string",
+ "description": "The workspace name."
},
"sparkPoolName": {
- "type": "string"
+ "type": "string",
+ "description": "The Spark pool name."
},
"submitterName": {
- "type": "string"
+ "type": "string",
+ "description": "The submitter name."
},
"submitterId": {
- "type": "string"
+ "type": "string",
+ "description": "The submitter identifier."
},
"artifactId": {
- "type": "string"
+ "type": "string",
+ "description": "The artifact identifier."
},
"jobType": {
"enum": [
@@ -775,10 +658,11 @@
"SparkSession"
],
"x-ms-enum": {
- "name": "JobType",
+ "name": "SparkJobType",
"modelAsString": true
},
- "type": "string"
+ "type": "string",
+ "description": "The job type."
},
"result": {
"enum": [
@@ -788,95 +672,121 @@
"Cancelled"
],
"x-ms-enum": {
- "name": "JobResult",
+ "name": "SparkBatchJobResultType",
"modelAsString": true
},
- "type": "string"
+ "type": "string",
+ "description": "The Spark batch job result."
},
"schedulerInfo": {
- "$ref": "#/definitions/SchedulerInformation"
+ "x-ms-client-name": "scheduler",
+ "$ref": "#/definitions/SparkScheduler",
+ "description": "The scheduler information."
},
"pluginInfo": {
- "$ref": "#/definitions/SparkServicePluginInformation"
+ "x-ms-client-name": "plugin",
+ "$ref": "#/definitions/SparkServicePlugin",
+ "description": "The plugin information."
},
"errorInfo": {
+ "x-ms-client-name": "errors",
"uniqueItems": false,
"type": "array",
"items": {
- "$ref": "#/definitions/ErrorInformation"
- }
+ "$ref": "#/definitions/SparkServiceError"
+ },
+ "description": "The error information."
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
- }
+ },
+ "description": "The tags."
},
"id": {
"format": "int32",
- "type": "integer"
+ "type": "integer",
+ "description": "The session Id."
},
"appId": {
- "type": "string"
+ "type": "string",
+ "description": "The application id of this session"
},
"appInfo": {
"type": "object",
"additionalProperties": {
"type": "string"
- }
+ },
+ "description": "The detailed application info."
},
"state": {
- "type": "string"
+ "type": "string",
+ "description": "The batch state"
},
"log": {
+ "x-ms-client-name": "logLines",
"uniqueItems": false,
"type": "array",
"items": {
"type": "string"
- }
+ },
+ "description": "The log lines."
}
- }
+ },
+ "required": [
+ "id"
+ ]
},
- "LivyBatchStateInformation": {
+ "SparkBatchJobState": {
"type": "object",
"properties": {
"notStartedAt": {
"format": "date-time",
- "type": "string"
+ "type": "string",
+ "description": "the time that at which \"not_started\" livy state was first seen."
},
"startingAt": {
"format": "date-time",
- "type": "string"
+ "type": "string",
+ "description": "the time that at which \"starting\" livy state was first seen."
},
"runningAt": {
"format": "date-time",
- "type": "string"
+ "type": "string",
+ "description": "the time that at which \"running\" livy state was first seen."
},
"deadAt": {
"format": "date-time",
- "type": "string"
+ "type": "string",
+ "description": "time that at which \"dead\" livy state was first seen."
},
"successAt": {
"format": "date-time",
- "type": "string"
+ "type": "string",
+ "description": "the time that at which \"success\" livy state was first seen."
},
"killedAt": {
+ "x-ms-client-name": "terminatedAt",
"format": "date-time",
- "type": "string"
+ "type": "string",
+ "description": "the time that at which \"killed\" livy state was first seen."
},
"recoveringAt": {
"format": "date-time",
- "type": "string"
+ "type": "string",
+ "description": "the time that at which \"recovering\" livy state was first seen."
},
"currentState": {
- "type": "string"
+ "type": "string",
+ "description": "the Spark job state."
},
"jobCreationRequest": {
- "$ref": "#/definitions/LivyRequestBase"
+ "$ref": "#/definitions/SparkRequest"
}
}
},
- "SchedulerInformation": {
+ "SparkScheduler": {
"type": "object",
"properties": {
"submittedAt": {
@@ -909,7 +819,7 @@
}
}
},
- "SparkServicePluginInformation": {
+ "SparkServicePlugin": {
"type": "object",
"properties": {
"preparationStartedAt": {
@@ -950,7 +860,7 @@
}
}
},
- "ErrorInformation": {
+ "SparkServiceError": {
"type": "object",
"properties": {
"message": {
@@ -967,14 +877,14 @@
"Dependency"
],
"x-ms-enum": {
- "name": "ErrorSource",
+ "name": "SparkErrorSource",
"modelAsString": true
},
"type": "string"
}
}
},
- "LivyRequestBase": {
+ "SparkRequest": {
"type": "object",
"properties": {
"name": {
@@ -987,6 +897,7 @@
"type": "string"
},
"args": {
+ "x-ms-client-name": "arguments",
"uniqueItems": false,
"type": "array",
"items": {
@@ -1000,6 +911,14 @@
"type": "string"
}
},
+ "pyFiles": {
+ "x-ms-client-name": "pythonFiles",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
"files": {
"uniqueItems": false,
"type": "array",
@@ -1015,6 +934,7 @@
}
},
"conf": {
+ "x-ms-client-name": "configuration",
"type": "object",
"additionalProperties": {
"type": "string"
@@ -1035,12 +955,13 @@
"type": "integer"
},
"numExecutors": {
+ "x-ms-client-name": "executorCount",
"format": "int32",
"type": "integer"
}
}
},
- "ExtendedLivyBatchRequest": {
+ "sparkBatchJobOptions": {
"type": "object",
"properties": {
"tags": {
@@ -1062,6 +983,7 @@
"type": "string"
},
"args": {
+ "x-ms-client-name": "arguments",
"uniqueItems": false,
"type": "array",
"items": {
@@ -1075,6 +997,14 @@
"type": "string"
}
},
+ "pyFiles": {
+ "x-ms-client-name": "pythonFiles",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
"files": {
"uniqueItems": false,
"type": "array",
@@ -1090,6 +1020,7 @@
}
},
"conf": {
+ "x-ms-client-name": "configuration",
"type": "object",
"additionalProperties": {
"type": "string"
@@ -1110,12 +1041,17 @@
"type": "integer"
},
"numExecutors": {
+ "x-ms-client-name": "executorCount",
"format": "int32",
"type": "integer"
}
- }
+ },
+ "required": [
+ "name",
+ "file"
+ ]
},
- "ExtendedLivyListSessionResponse": {
+ "SparkSessionCollection": {
"type": "object",
"properties": {
"from": {
@@ -1130,16 +1066,20 @@
"uniqueItems": false,
"type": "array",
"items": {
- "$ref": "#/definitions/ExtendedLivySessionResponse"
+ "$ref": "#/definitions/SparkSession"
}
}
- }
+ },
+ "required": [
+ "from",
+ "total"
+ ]
},
- "ExtendedLivySessionResponse": {
+ "SparkSession": {
"type": "object",
"properties": {
"livyInfo": {
- "$ref": "#/definitions/LivySessionStateInformation"
+ "$ref": "#/definitions/SparkSessionState"
},
"name": {
"type": "string"
@@ -1165,7 +1105,7 @@
"SparkSession"
],
"x-ms-enum": {
- "name": "JobType",
+ "name": "SparkJobType",
"modelAsString": true
},
"type": "string"
@@ -1178,22 +1118,25 @@
"Cancelled"
],
"x-ms-enum": {
- "name": "JobResult",
+ "name": "SparkSessionResultType",
"modelAsString": true
},
"type": "string"
},
"schedulerInfo": {
- "$ref": "#/definitions/SchedulerInformation"
+ "x-ms-client-name": "scheduler",
+ "$ref": "#/definitions/SparkScheduler"
},
"pluginInfo": {
- "$ref": "#/definitions/SparkServicePluginInformation"
+ "x-ms-client-name": "plugin",
+ "$ref": "#/definitions/SparkServicePlugin"
},
"errorInfo": {
+ "x-ms-client-name": "errors",
"uniqueItems": false,
"type": "array",
"items": {
- "$ref": "#/definitions/ErrorInformation"
+ "$ref": "#/definitions/SparkServiceError"
}
},
"tags": {
@@ -1219,15 +1162,19 @@
"type": "string"
},
"log": {
+ "x-ms-client-name": "logLines",
"uniqueItems": false,
"type": "array",
"items": {
"type": "string"
}
}
- }
+ },
+ "required": [
+ "id"
+ ]
},
- "LivySessionStateInformation": {
+ "SparkSessionState": {
"type": "object",
"properties": {
"notStartedAt": {
@@ -1251,6 +1198,7 @@
"type": "string"
},
"killedAt": {
+ "x-ms-client-name": "terminatedAt",
"format": "date-time",
"type": "string"
},
@@ -1270,11 +1218,11 @@
"type": "string"
},
"jobCreationRequest": {
- "$ref": "#/definitions/LivyRequestBase"
+ "$ref": "#/definitions/SparkRequest"
}
}
},
- "ExtendedLivySessionRequest": {
+ "SparkSessionOptions": {
"type": "object",
"properties": {
"tags": {
@@ -1296,6 +1244,7 @@
"type": "string"
},
"args": {
+ "x-ms-client-name": "arguments",
"uniqueItems": false,
"type": "array",
"items": {
@@ -1309,6 +1258,14 @@
"type": "string"
}
},
+ "pyFiles": {
+ "x-ms-client-name": "pythonFiles",
+ "uniqueItems": false,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
"files": {
"uniqueItems": false,
"type": "array",
@@ -1324,6 +1281,7 @@
}
},
"conf": {
+ "x-ms-client-name": "configuration",
"type": "object",
"additionalProperties": {
"type": "string"
@@ -1344,15 +1302,20 @@
"type": "integer"
},
"numExecutors": {
+ "x-ms-client-name": "executorCount",
"format": "int32",
"type": "integer"
}
- }
+ },
+ "required": [
+ "name"
+ ]
},
- "LivyStatementsResponseBody": {
+ "SparkStatementCollection": {
"type": "object",
"properties": {
"total_statements": {
+ "x-ms-client-name": "total",
"format": "int32",
"type": "integer"
},
@@ -1360,12 +1323,15 @@
"uniqueItems": false,
"type": "array",
"items": {
- "$ref": "#/definitions/LivyStatementResponseBody"
+ "$ref": "#/definitions/SparkStatement"
}
}
- }
+ },
+ "required": [
+ "total_statements"
+ ]
},
- "LivyStatementResponseBody": {
+ "SparkStatement": {
"type": "object",
"properties": {
"id": {
@@ -1379,11 +1345,14 @@
"type": "string"
},
"output": {
- "$ref": "#/definitions/LivyStatementOutput"
+ "$ref": "#/definitions/SparkStatementOutput"
}
- }
+ },
+ "required": [
+ "id"
+ ]
},
- "LivyStatementOutput": {
+ "SparkStatementOutput": {
"type": "object",
"properties": {
"status": {
@@ -1397,9 +1366,11 @@
"type": "object"
},
"ename": {
+ "x-ms-client-name": "errorName",
"type": "string"
},
"evalue": {
+ "x-ms-client-name": "errorValue",
"type": "string"
},
"traceback": {
@@ -1409,20 +1380,33 @@
"type": "string"
}
}
- }
+ },
+ "required": [
+ "execution_count"
+ ]
},
- "LivyStatementRequestBody": {
+ "SparkStatementOptions": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"kind": {
+ "enum": [
+ "spark",
+ "pyspark",
+ "dotnetspark",
+ "sql"
+ ],
+ "x-ms-enum": {
+ "name": "SparkStatementLanguageType",
+ "modelAsString": true
+ },
"type": "string"
}
}
},
- "LivyStatementCancellationResponse": {
+ "SparkStatementCancellationResult": {
"type": "object",
"properties": {
"msg": {
@@ -1432,7 +1416,16 @@
}
},
"parameters": {
- "LivyApiVersionInPath": {
+ "Endpoint": {
+ "name": "endpoint",
+ "description": "The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true,
+ "x-ms-parameter-location": "client"
+ },
+ "LivyApiVersion": {
"name": "livyApiVersion",
"in": "path",
"description": "Valid api-version for the request.",
@@ -1442,14 +1435,13 @@
"x-ms-skip-url-encoding": true,
"x-ms-parameter-location": "client"
},
- "SynapseDnsSuffixInPath": {
- "name": "SynapseDnsSuffix",
+ "SparkPoolName": {
+ "name": "sparkPoolName",
"in": "path",
+ "description": "Name of the spark pool.",
"required": true,
"type": "string",
- "default": "dev.azuresynapse.net",
"x-ms-skip-url-encoding": true,
- "description": "Gets the DNS suffix used as the base for all Synapse service requests.",
"x-ms-parameter-location": "client"
}
}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_CreateRoleAssignment.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_CreateRoleAssignment.json
similarity index 85%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_CreateRoleAssignment.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_CreateRoleAssignment.json
index 97212e8071ce..bca528607878 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_CreateRoleAssignment.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_CreateRoleAssignment.json
@@ -1,9 +1,8 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"api-version": "2020-02-01-preview",
- "request": {
+ "createRoleAssignmentOptions": {
"roleId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000"
}
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_DeleteRoleAssignmentById.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_DeleteRoleAssignmentById.json
similarity index 81%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_DeleteRoleAssignmentById.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_DeleteRoleAssignmentById.json
index ba09f1f27aa0..0171f555a8cf 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_DeleteRoleAssignmentById.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_DeleteRoleAssignmentById.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"roleAssignmentId": "00000000-0000-0000-0000-000000000000-00000000-0000-0000-0000-000000000000",
"api-version": "2020-02-01-preview"
},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_GetRoleAssignmentById.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_GetRoleAssignmentById.json
similarity index 87%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_GetRoleAssignmentById.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_GetRoleAssignmentById.json
index 4374be7f52ec..2e0e8d8896bf 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_GetRoleAssignmentById.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_GetRoleAssignmentById.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"roleAssignmentId": "00000000-0000-0000-0000-000000000000-00000000-0000-0000-0000-000000000000",
"api-version": "2020-02-01-preview"
},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_ListCallerRoleAssignments.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_ListCallerRoleAssignments.json
similarity index 81%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_ListCallerRoleAssignments.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_ListCallerRoleAssignments.json
index 2dca414a3784..becbc1cd5b26 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_ListCallerRoleAssignments.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_ListCallerRoleAssignments.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"api-version": "2020-02-01-preview"
},
"responses": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_ListRoleAssignments.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_ListRoleAssignments.json
similarity index 91%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_ListRoleAssignments.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_ListRoleAssignments.json
index f1af57ba8b4b..c9a190167d43 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/RoleAssignments_ListRoleAssignments.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/RoleAssignments_ListRoleAssignments.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"api-version": "2020-02-01-preview",
"roleId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000"
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/Roles_GetRoleById.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/Roles_GetRoleById.json
similarity index 84%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/Roles_GetRoleById.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/Roles_GetRoleById.json
index 5c6f07d2e9f0..7b709acbdfff 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/Roles_GetRoleById.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/Roles_GetRoleById.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"roleId": "00000000-0000-0000-0000-000000000000",
"api-version": "2020-02-01-preview"
},
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/Roles_ListRoles.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/Roles_ListRoles.json
similarity index 87%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/Roles_ListRoles.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/Roles_ListRoles.json
index 74838831ed04..305559688c49 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/examples/Roles_ListRoles.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/examples/Roles_ListRoles.json
@@ -1,7 +1,6 @@
{
"parameters": {
- "workspaceName": "exampleWorkspace",
- "SynapseDnsSuffix": "azuresynapse.net",
+ "endpoint": "exampleWorkspace.dev.azuresynapse.net",
"api-version": "2020-02-01-preview"
},
"responses": {
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/roleAssignments.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/roleAssignments.json
similarity index 88%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/roleAssignments.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/roleAssignments.json
index 922d6074a432..634133c68370 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/roleAssignments.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/roleAssignments.json
@@ -1,22 +1,15 @@
{
"swagger": "2.0",
"info": {
- "version": "2019-11-01-preview",
- "title": "SynapseClient"
+ "version": "2020-02-01-preview",
+ "title": "AccessControlClient"
},
"x-ms-parameterized-host": {
- "hostTemplate": "{workspaceName}.{SynapseDnsSuffix}",
+ "hostTemplate": "{endpoint}",
+ "useSchemePrefix": false,
"parameters": [
{
- "name": "workspaceName",
- "description": "The name of the workspace to execute operations on.",
- "required": true,
- "type": "string",
- "in": "path",
- "x-ms-skip-url-encoding": true
- },
- {
- "$ref": "#/parameters/SynapseDnsSuffixInPath"
+ "$ref": "#/parameters/Endpoint"
}
]
},
@@ -29,7 +22,7 @@
"tags": [
"RoleAssignments"
],
- "operationId": "RoleAssignments_CreateRoleAssignment",
+ "operationId": "AccessControl_CreateRoleAssignment",
"description": "Create role assignment.",
"x-ms-examples": {
"Create role assignment": {
@@ -44,12 +37,12 @@
],
"parameters": [
{
- "name": "request",
+ "name": "createRoleAssignmentOptions",
"in": "body",
"required": true,
"description": "Details of role id and object id.",
"schema": {
- "$ref": "#/definitions/RoleAssignmentRequest"
+ "$ref": "#/definitions/RoleAssignmentOptions"
}
},
{
@@ -75,7 +68,7 @@
"tags": [
"RoleAssignments"
],
- "operationId": "RoleAssignments_ListRoleAssignments",
+ "operationId": "AccessControl_GetRoleAssignments",
"description": "List role assignments.",
"x-ms-examples": {
"Get role assignment information": {
@@ -127,7 +120,7 @@
"tags": [
"RoleAssignments"
],
- "operationId": "RoleAssignments_GetRoleAssignmentById",
+ "operationId": "AccessControl_GetRoleAssignmentById",
"description": "Get role assignment by role assignment Id.",
"x-ms-examples": {
"Get role assignment information": {
@@ -141,6 +134,9 @@
"parameters": [
{
"$ref": "#/parameters/RoleAssignmentIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
@@ -162,7 +158,7 @@
"tags": [
"RoleAssignments"
],
- "operationId": "RoleAssignments_DeleteRoleAssignmentById",
+ "operationId": "AccessControl_DeleteRoleAssignmentById",
"description": "Delete role assignment by role assignment Id.",
"x-ms-examples": {
"Delete role assignment": {
@@ -176,6 +172,9 @@
"parameters": [
{
"$ref": "#/parameters/RoleAssignmentIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
@@ -199,7 +198,7 @@
"tags": [
"RoleAssignments"
],
- "operationId": "RoleAssignments_ListCallerRoleAssignments",
+ "operationId": "AccessControl_GetCallerRoleAssignments",
"description": "List role assignments of the caller.",
"x-ms-examples": {
"Get caller role assignments": {
@@ -222,7 +221,6 @@
"type": "array",
"items": {
"description": "Role ID of the Synapse Built-In Role",
- "format": "uuid",
"type": "string"
}
}
@@ -298,18 +296,16 @@
"$ref": "#/definitions/RoleAssignmentDetails"
}
},
- "RoleAssignmentRequest": {
+ "RoleAssignmentOptions": {
"description": "Role Assignment request details",
"type": "object",
"properties": {
"roleId": {
"description": "Role ID of the Synapse Built-In Role",
- "format": "uuid",
"type": "string"
},
"principalId": {
"description": "Object ID of the AAD principal or security-group",
- "format": "uuid",
"type": "string"
}
},
@@ -328,18 +324,25 @@
},
"roleId": {
"description": "Role ID of the Synapse Built-In Role",
- "format": "uuid",
"type": "string"
},
"principalId": {
"description": "Object ID of the AAD principal or security-group",
- "format": "uuid",
"type": "string"
}
}
}
},
"parameters": {
+ "Endpoint": {
+ "name": "endpoint",
+ "description": "The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true,
+ "x-ms-parameter-location": "client"
+ },
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
@@ -347,16 +350,6 @@
"type": "string",
"description": "The Synapse client API Version."
},
- "SynapseDnsSuffixInPath": {
- "name": "SynapseDnsSuffix",
- "in": "path",
- "required": true,
- "type": "string",
- "default": "dev.azuresynapse.net",
- "x-ms-skip-url-encoding": true,
- "description": "Gets the DNS suffix used as the base for all Synapse service requests.",
- "x-ms-parameter-location": "client"
- },
"RoleIdParameterInQuery": {
"name": "roleId",
"in": "query",
@@ -384,6 +377,7 @@
},
"XMsContinuationToken": {
"name": "x-ms-continuation",
+ "x-ms-client-name": "continuationToken",
"in": "header",
"required": false,
"type": "string",
diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/roles.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/roles.json
similarity index 83%
rename from specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/roles.json
rename to specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/roles.json
index f566e171de1f..f17f83f41ade 100644
--- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2019-11-01-preview/roles.json
+++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-02-01-preview/roles.json
@@ -1,22 +1,15 @@
{
"swagger": "2.0",
"info": {
- "version": "2019-11-01-preview",
- "title": "SynapseClient"
+ "version": "2020-02-01-preview",
+ "title": "AccessControlClient"
},
"x-ms-parameterized-host": {
- "hostTemplate": "{workspaceName}.{SynapseDnsSuffix}",
+ "hostTemplate": "{endpoint}",
+ "useSchemePrefix": false,
"parameters": [
{
- "name": "workspaceName",
- "description": "The name of the workspace to execute operations on.",
- "required": true,
- "type": "string",
- "in": "path",
- "x-ms-skip-url-encoding": true
- },
- {
- "$ref": "#/parameters/SynapseDnsSuffixInPath"
+ "$ref": "#/parameters/Endpoint"
}
]
},
@@ -29,7 +22,7 @@
"tags": [
"SynapseRoles"
],
- "operationId": "Roles_ListRoles",
+ "operationId": "AccessControl_GetRoleDefinitions",
"description": "List roles.",
"x-ms-examples": {
"Get access control information": {
@@ -69,7 +62,7 @@
"tags": [
"SynapseRoles"
],
- "operationId": "Roles_GetRoleById",
+ "operationId": "AccessControl_GetRoleDefinitionById",
"description": "Get role by role Id.",
"x-ms-examples": {
"Get access control information": {
@@ -83,6 +76,9 @@
"parameters": [
{
"$ref": "#/parameters/RoleIdParameter"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
@@ -129,7 +125,6 @@
"properties": {
"id": {
"description": "Role ID",
- "format": "uuid",
"type": "string"
},
"name": {
@@ -140,10 +135,22 @@
"description": "Is a built-in role or not",
"type": "boolean"
}
- }
+ },
+ "required": [
+ "isBuiltIn"
+ ]
}
},
"parameters": {
+ "Endpoint": {
+ "name": "endpoint",
+ "description": "The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true,
+ "x-ms-parameter-location": "client"
+ },
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
@@ -151,16 +158,6 @@
"type": "string",
"description": "The Synapse client API Version."
},
- "SynapseDnsSuffixInPath": {
- "name": "SynapseDnsSuffix",
- "in": "path",
- "required": true,
- "type": "string",
- "default": "dev.azuresynapse.net",
- "x-ms-skip-url-encoding": true,
- "description": "Gets the DNS suffix used as the base for all Synapse service requests.",
- "x-ms-parameter-location": "client"
- },
"RoleIdParameter": {
"name": "roleId",
"in": "path",
diff --git a/specification/synapse/data-plane/readme.md b/specification/synapse/data-plane/readme.md
index f2f3be08766f..27db372758be 100644
--- a/specification/synapse/data-plane/readme.md
+++ b/specification/synapse/data-plane/readme.md
@@ -20,14 +20,64 @@ To see additional help and options, run:
## Configuration
-
-
### Basic Information
These are the global settings for the Azure Synapse Analytics API.
``` yaml
openapi-type: data-plane
-tag: package-2019-11-01-preview
+```
+
+``` yaml $(package-spark)
+tag: package-spark-2019-11-01-preview
+```
+
+``` yaml $(package-artifacts)
+tag: package-artifacts-2019-06-01-preview
+```
+
+``` yaml $(package-access-control)
+tag: package-access-control-2020-02-01-preview
+```
+
+``` yaml $(package-vnet)
+tag: package-vnet-2019-06-01-preview
+```
+
+### Tag: package-spark-2019-11-01-preview
+
+These settings apply only when `--tag=package-spark-2019-11-01-preview` is specified on the command line.
+
+``` yaml $(tag) == 'package-spark-2019-11-01-preview'
+input-file:
+- Microsoft.Synapse/preview/2019-11-01-preview/sparkJob.json
+```
+
+### Tag: package-artifacts-2019-06-01-preview
+
+These settings apply only when `--tag=package-artifacts-2019-06-01-preview` is specified on the command line.
+
+``` yaml $(tag) == 'package-artifacts-2019-06-01-preview'
+input-file:
+- Microsoft.Synapse/preview/2019-06-01-preview/artifacts.json
+```
+
+### Tag: package-access-control-2020-02-01-preview
+
+These settings apply only when `--tag=package-access-control-2020-02-01-preview` is specified on the command line.
+
+``` yaml $(tag) == 'package-access-control-2020-02-01-preview'
+input-file:
+- Microsoft.Synapse/preview/2020-02-01-preview/roles.json
+- Microsoft.Synapse/preview/2020-02-01-preview/roleAssignments.json
+```
+
+### Tag: package-vnet-2019-06-01-preview
+
+These settings apply only when `--tag=package-vnet-2019-06-01-preview` is specified on the command line
+
+``` yaml $(tag) == 'package-vnet-2019-06-01-preview'
+input-file:
+- Microsoft.Synapse/preview/2019-06-01-preview/managedPrivateEndpoints.json
```
## Suppression
@@ -35,14 +85,14 @@ tag: package-2019-11-01-preview
directive:
- suppress: DefinitionsPropertiesNamesCamelCase
reason: This would require a breaking change, and need to be consistent with the response from RP side.
- from: Microsoft.Synapse/preview/2019-11-01-preview/sparkFrontend.json
+ from: sparkJob.json
where:
- - $.definitions.LivyStatementsResponseBody.properties.total_statements
- - $.definitions.LivyStatementOutput.properties.execution_count
+ - $.definitions.SparkStatementCollection.properties.total_statements
+ - $.definitions.SparkStatementOutput.properties.execution_count
- suppress: DefinitionsPropertiesNamesCamelCase
- reason: These properties need to keep the same with jupyter notebook. Rp can't change these proeprties.
- from: Microsoft.Synapse/preview/2019-11-01-preview/adf/entityTypes/NoteBook.json
+ reason: These properties need to keep the same with jupyter Notebook. Rp can't change these proeprties.
+ from: Notebook.json
where:
- $.definitions.NotebookCellOutputItem.properties.execution_count
- $.definitions.NotebookCellOutputItem.properties.output_type
@@ -50,26 +100,12 @@ directive:
- $.definitions.NotebookLanguageInfo.properties.codemirror_mode
- $.definitions.NotebookKernelSpec.properties.display_name
- $.definitions.NotebookMetadata.properties.language_info
- - $.definitions.NoteBook.properties.nbformat_minor
-```
-
-### Tag: package-2019-11-01-preview
-
-These settings apply only when `--tag=package-2019-11-01-preview` is specified on the command line
-
-``` yaml $(tag) == 'package-2019-11-01-preview'
-input-file:
-- Microsoft.Synapse/preview/2019-11-01-preview/monitoring.json
-- Microsoft.Synapse/preview/2019-11-01-preview/sparkFrontend.json
-- Microsoft.Synapse/preview/2019-11-01-preview/roles.json
-- Microsoft.Synapse/preview/2019-11-01-preview/roleAssignments.json
-- Microsoft.Synapse/preview/2019-11-01-preview/adf/datafactory.json
+ - $.definitions.Notebook.properties.nbformat_minor
```
---
# Code Generation
-
## Swagger to SDK
Swagger to SDK has been intentionally disabled for this spec.
@@ -86,6 +122,10 @@ csharp:
namespace: Microsoft.Azure.Synapse
output-folder: $(csharp-sdks-folder)/synapse/Microsoft.Azure.Synapse/src/Generated
clear-output-folder: true
+batch:
+ - package-spark: true
+ - package-artifacts: true
+ - package-access-control: true
```
## TypeScript
@@ -103,12 +143,11 @@ require: $(this-folder)/../../../profiles/readme.md
# all the input files across all versions
input-file:
+ - $(this-folder)/Microsoft.Synapse/preview/2019-06-01-preview/artifacts.json
+ - $(this-folder)/Microsoft.Synapse/preview/2019-11-01-preview/sparkJob.json
- $(this-folder)/Microsoft.Synapse/preview/2019-11-01-preview/monitoring.json
- - $(this-folder)/Microsoft.Synapse/preview/2019-11-01-preview/sparkFrontend.json
- - $(this-folder)/Microsoft.Synapse/preview/2019-11-01-preview/roles.json
- - $(this-folder)/Microsoft.Synapse/preview/2019-11-01-preview/roleAssignments.json
- - $(this-folder)/Microsoft.Synapse/preview/2019-11-01-preview/adf/datafactory.json
-
+ - $(this-folder)/Microsoft.Synapse/preview/2020-02-01-preview/roles.json
+ - $(this-folder)/Microsoft.Synapse/preview/2020-02-01-preview/roleAssignments.json
```
If there are files that should not be in the `all-api-versions` set,
diff --git a/specification/synapse/data-plane/readme.python.md b/specification/synapse/data-plane/readme.python.md
index cf2ba5dbe061..30169a5bf708 100644
--- a/specification/synapse/data-plane/readme.python.md
+++ b/specification/synapse/data-plane/readme.python.md
@@ -5,21 +5,30 @@ Please also specify `--python-sdks-folder=`.
+
+```yaml $(csharp)
+csharp:
+ package-version: 0.3.0
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ clear-output-folder: true
+ namespace: Microsoft.Azure.Management.VMware
+ output-folder: $(csharp-sdks-folder)/VMware/Management.VMware/Generated
+```
\ No newline at end of file
diff --git a/specification/vmware/resource-manager/readme.md b/specification/vmware/resource-manager/readme.md
new file mode 100644
index 000000000000..a2a404bfe4b6
--- /dev/null
+++ b/specification/vmware/resource-manager/readme.md
@@ -0,0 +1,96 @@
+# VMware Solution
+
+> see https://aka.ms/autorest
+
+This is the AutoRest configuration file for VMware Solution.
+
+## Getting Started
+To build the SDK for VMware Solution, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
+
+> `autorest`
+
+To see additional help and options, run:
+
+> `autorest --help`
+---
+
+## Configuration
+
+### Basic Information
+These are the global settings for the VMware Solution API.
+
+``` yaml
+openapi-type: arm
+tag: package-2019-08-09-preview
+```
+
+### Tag: package-2019-08-09-preview
+
+These settings apply only when `--tag=package-2019-08-09-preview` is specified on the command line.
+
+``` yaml $(tag) == 'package-2019-08-09-preview'
+input-file:
+- Microsoft.AVS/preview/2019-08-09-preview/vmware.json
+directive:
+ - suppress: R3020
+ from: vmware.json
+ reason: Microsoft.AVS was chosen over Microsoft.AzureVMwareSolution
+ - suppress: R3010
+ from: vmware.json
+ reason: list by immediate parent operations are defined
+ - suppress: R2001
+ from: vmware.json
+ reason: x-ms-client-flatten will be used in next API version
+```
+
+---
+# Code Generation
+
+## Swagger to SDK
+
+This section describes what SDK should be generated by the automatic system.
+This is not used by Autorest itself.
+
+``` yaml $(swagger-to-sdk)
+swagger-to-sdk:
+ - repo: azure-sdk-for-js
+ - repo: azure-sdk-for-python
+ - repo: azure-sdk-for-net
+```
+
+## TypeScript
+
+See configuration in [readme.typescript.md](./readme.typescript.md)
+
+## Python
+
+See configuration in [readme.python.md](./readme.python.md)
+
+## C#
+
+See configuration in [readme.csharp.md](./readme.csharp.md)
+
+## Multi-API/Profile support for AutoRest v3 generators
+
+AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
+
+This block is updated by an automatic script. Edits may be lost!
+
+``` yaml $(tag) == 'all-api-versions' /* autogenerated */
+# include the azure profile definitions from the standard location
+require: $(this-folder)/../../../profiles/readme.md
+
+# all the input files across all versions
+input-file:
+ - $(this-folder)/Microsoft.AVS/preview/2019-08-09-preview/vmware.json
+
+```
+
+If there are files that should not be in the `all-api-versions` set,
+uncomment the `exclude-file` section below and add the file paths.
+
+``` yaml $(tag) == 'all-api-versions'
+#exclude-file:
+# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
+```
+
diff --git a/specification/vmware/resource-manager/readme.python.md b/specification/vmware/resource-manager/readme.python.md
new file mode 100644
index 000000000000..ab4c07555c3b
--- /dev/null
+++ b/specification/vmware/resource-manager/readme.python.md
@@ -0,0 +1,27 @@
+## Python
+
+These settings apply only when `--python` is specified on the command line.
+Please also specify `--python-sdks-folder=`.
+Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
+
+```yaml $(python)
+python-mode: create
+python:
+ package-version: 0.3.0
+ azure-arm: true
+ license-header: MICROSOFT_MIT_NO_VERSION
+ payload-flattening-threshold: 2
+ namespace: azure.mgmt.vmware
+ package-name: azure-mgmt-vmware
+ clear-output-folder: true
+```
+``` yaml $(python) && $(python-mode) == 'update'
+python:
+ no-namespace-folders: true
+ output-folder: $(python-sdks-folder)/compute/azure-mgmt-vmware/azure/mgmt/vmware
+```
+``` yaml $(python) && $(python-mode) == 'create'
+python:
+ basic-setup-py: true
+ output-folder: $(python-sdks-folder)/compute/azure-mgmt-vmware
+```
\ No newline at end of file
diff --git a/specification/vmware/resource-manager/readme.typescript.md b/specification/vmware/resource-manager/readme.typescript.md
new file mode 100644
index 000000000000..97824659f448
--- /dev/null
+++ b/specification/vmware/resource-manager/readme.typescript.md
@@ -0,0 +1,14 @@
+## TypeScript
+
+These settings apply only when `--typescript` is specified on the command line.
+Please also specify `--typescript-sdks-folder=`.
+
+```yaml $(typescript)
+typescript:
+ package-version: 0.3.0
+ azure-arm: true
+ package-name: "@azure/arm-vmware"
+ output-folder: "$(typescript-sdks-folder)/sdk/vmware/arm-vmware"
+ payload-flattening-threshold: 1
+ generate-metadata: true
+```
\ No newline at end of file
diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/AppServicePlans.json b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/AppServicePlans.json
index 487977095b1c..c5b99cff768f 100644
--- a/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/AppServicePlans.json
+++ b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/AppServicePlans.json
@@ -1540,7 +1540,7 @@
"readOnly": true
},
"reserved": {
- "description": "If Linux app service plan true
, false
otherwise.",
+ "description": "This needs to set to true
when creating a Linux App Service Plan, along with kind
set to Linux
. It should be false
otherwise.",
"default": false,
"type": "boolean",
"x-ms-mutability": [
diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/CommonDefinitions.json b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/CommonDefinitions.json
index fe02ddd901a7..cf72d9b7c660 100644
--- a/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/CommonDefinitions.json
+++ b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/CommonDefinitions.json
@@ -1232,9 +1232,10 @@
"type": {
"description": "Type of managed service identity.",
"enum": [
- "None",
"SystemAssigned",
- "UserAssigned"
+ "UserAssigned",
+ "SystemAssigned, UserAssigned",
+ "None"
],
"type": "string",
"x-ms-enum": {
diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/WebApps.json
index 1efc1c1d5478..281daf0188c8 100644
--- a/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/WebApps.json
+++ b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/WebApps.json
@@ -710,6 +710,253 @@
"x-ms-long-running-operation": true
}
},
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies": {
+ "get": {
+ "tags": [
+ "WebApps"
+ ],
+ "summary": "Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site.",
+ "description": "Description for Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site.",
+ "operationId": "WebApps_GetBasicPublishingCredentialsPolicies",
+ "parameters": [
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "name": "name",
+ "in": "path",
+ "description": "Name of the app.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CsmPublishingCredentialsPoliciesCollection"
+ }
+ },
+ "default": {
+ "description": "App Service error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "List Publishing Credentials Policies": {
+ "$ref": "./examples/ListPublishingCredentialsPolicies.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/ftp": {
+ "get": {
+ "tags": [
+ "WebApps"
+ ],
+ "summary": "Returns whether FTP is allowed on the site or not.",
+ "description": "Description for Returns whether FTP is allowed on the site or not.",
+ "operationId": "WebApps_GetFtpAllowed",
+ "parameters": [
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "name": "name",
+ "in": "path",
+ "description": "Name of the app.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CsmPublishingCredentialsPoliciesEntity"
+ }
+ },
+ "default": {
+ "description": "App Service error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get FTP Allowed": {
+ "$ref": "./examples/GetPublishingCredentialsPolicy.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "WebApps"
+ ],
+ "summary": "Updates whether FTP is allowed on the site or not.",
+ "description": "Description for Updates whether FTP is allowed on the site or not.",
+ "operationId": "WebApps_UpdateFtpAllowed",
+ "parameters": [
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "name": "name",
+ "in": "path",
+ "description": "Name of the app.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "csmPublishingAccessPoliciesEntity",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CsmPublishingCredentialsPoliciesEntity"
+ }
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CsmPublishingCredentialsPoliciesEntity"
+ }
+ },
+ "default": {
+ "description": "App Service error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update FTP Allowed": {
+ "$ref": "./examples/UpdatePublishingCredentialsPolicy.json"
+ }
+ }
+ }
+ },
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/scm": {
+ "get": {
+ "tags": [
+ "WebApps"
+ ],
+ "summary": "Returns whether Scm basic auth is allowed on the site or not.",
+ "description": "Description for Returns whether Scm basic auth is allowed on the site or not.",
+ "operationId": "WebApps_GetScmAllowed",
+ "parameters": [
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "name": "name",
+ "in": "path",
+ "description": "Name of the app.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CsmPublishingCredentialsPoliciesEntity"
+ }
+ },
+ "default": {
+ "description": "App Service error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Get SCM Allowed": {
+ "$ref": "./examples/GetPublishingCredentialsPolicy.json"
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "WebApps"
+ ],
+ "summary": "Updates whether user publishing credentials are allowed on the site or not.",
+ "description": "Description for Updates whether user publishing credentials are allowed on the site or not.",
+ "operationId": "WebApps_UpdateScmAllowed",
+ "parameters": [
+ {
+ "$ref": "#/parameters/resourceGroupNameParameter"
+ },
+ {
+ "name": "name",
+ "in": "path",
+ "description": "Name of the app.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "csmPublishingAccessPoliciesEntity",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/CsmPublishingCredentialsPoliciesEntity"
+ }
+ },
+ {
+ "$ref": "#/parameters/subscriptionIdParameter"
+ },
+ {
+ "$ref": "#/parameters/apiVersionParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/CsmPublishingCredentialsPoliciesEntity"
+ }
+ },
+ "default": {
+ "description": "App Service error response.",
+ "schema": {
+ "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Update SCM Allowed": {
+ "$ref": "./examples/UpdatePublishingCredentialsPolicy.json"
+ }
+ }
+ }
+ },
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config": {
"get": {
"tags": [
@@ -19827,9 +20074,10 @@
},
"identityType": {
"enum": [
- "None",
"SystemAssigned",
- "UserAssigned"
+ "UserAssigned",
+ "SystemAssigned, UserAssigned",
+ "None"
],
"type": "string",
"x-ms-enum": {
@@ -20581,6 +20829,59 @@
}
}
},
+ "CsmPublishingCredentialsPoliciesCollection": {
+ "description": "Publishing Credentials Policies collection.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "CsmPublishingCredentialsPoliciesCollection resource specific properties",
+ "required": [
+ "ftp",
+ "scm"
+ ],
+ "properties": {
+ "ftp": {
+ "$ref": "#/definitions/CsmPublishingCredentialsPoliciesEntity",
+ "description": "Whether FTP is allowed."
+ },
+ "scm": {
+ "$ref": "#/definitions/CsmPublishingCredentialsPoliciesEntity",
+ "description": "Whether Scm Basic Auth is allowed."
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
+ "CsmPublishingCredentialsPoliciesEntity": {
+ "description": "Publishing Credentials Policies parameters.",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource"
+ }
+ ],
+ "properties": {
+ "properties": {
+ "description": "CsmPublishingCredentialsPoliciesEntity resource specific properties",
+ "required": [
+ "allow"
+ ],
+ "properties": {
+ "allow": {
+ "description": "true
to allow access to a publishing method; otherwise, false
.",
+ "type": "boolean"
+ }
+ },
+ "x-ms-client-flatten": true
+ }
+ }
+ },
"CsmPublishingProfileOptions": {
"description": "Publishing options for requested profile.",
"type": "object",
@@ -21289,9 +21590,10 @@
},
"identityType": {
"enum": [
- "None",
"SystemAssigned",
- "UserAssigned"
+ "UserAssigned",
+ "SystemAssigned, UserAssigned",
+ "None"
],
"type": "string",
"x-ms-enum": {
diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/GetPublishingCredentialsPolicy.json b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/GetPublishingCredentialsPolicy.json
new file mode 100644
index 000000000000..1a2b02bb2b8d
--- /dev/null
+++ b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/GetPublishingCredentialsPolicy.json
@@ -0,0 +1,18 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "name": "testSite",
+ "api-version": "2019-08-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "properties": {
+ "allow": false
+ }
+ }
+ }
+ }
+}
diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/ListPublishingCredentialsPolicies.json b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/ListPublishingCredentialsPolicies.json
new file mode 100644
index 000000000000..f96c4a736517
--- /dev/null
+++ b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/ListPublishingCredentialsPolicies.json
@@ -0,0 +1,27 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "name": "testSite",
+ "api-version": "2019-08-01"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "properties": {
+ "ftp": {
+ "properties": {
+ "allow": false
+ }
+ },
+ "scm": {
+ "properties": {
+ "allow": false
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/UpdatePublishingCredentialsPolicy.json b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/UpdatePublishingCredentialsPolicy.json
new file mode 100644
index 000000000000..b8c83f16c837
--- /dev/null
+++ b/specification/web/resource-manager/Microsoft.Web/stable/2019-08-01/examples/UpdatePublishingCredentialsPolicy.json
@@ -0,0 +1,23 @@
+{
+ "parameters": {
+ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ "resourceGroupName": "rg",
+ "name": "testSite",
+ "api-version": "2019-08-01",
+ "csmPublishingAccessPoliciesEntity": {
+ "properties": {
+ "allow": true
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "properties": {
+ "allow": true
+ }
+ }
+ }
+ }
+}
diff --git a/specificationRepositoryConfiguration.json b/specificationRepositoryConfiguration.json
index 84b1131de2e0..dbcddfeb40e2 100644
--- a/specificationRepositoryConfiguration.json
+++ b/specificationRepositoryConfiguration.json
@@ -20,6 +20,11 @@
"mainRepository": "Azure/azure-sdk-for-net"
},
"azure-sdk-for-python": {
+ "integrationRepository": "AzureSDKAutomation/azure-sdk-for-python",
+ "mainRepository": "Azure/azure-sdk-for-python",
+ "mainBranch": "release/v3"
+ },
+ "azure-sdk-for-python-track2": {
"integrationRepository": "AzureSDKAutomation/azure-sdk-for-python",
"mainRepository": "Azure/azure-sdk-for-python"
},
@@ -33,8 +38,10 @@
"mainRepository": "Azure/azure-sdk-for-ruby"
},
"azure-sdk-for-trenton": {
- "integrationRepository": "test-repo-billy/azure-sdk-for-trenton",
- "mainRepository": "Azure/azure-sdk-for-trenton"
+ "integrationRepository": "Azure/azure-sdk-for-trenton",
+ "mainRepository": "Azure/azure-sdk-for-trenton",
+ "secondaryRepository": "Azure/azure-sdk-for-trenton",
+ "secondaryBranch": "secondary"
}
}
}